contentoh-components-library 21.2.98 → 21.2.100

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.
Files changed (95) hide show
  1. package/.env.development +0 -3
  2. package/.env.production +23 -23
  3. package/dist/components/molecules/CustomSelect/CustomSelect.stories.js +22 -21
  4. package/dist/components/molecules/CustomSelect/SelectItem.js +1 -10
  5. package/dist/components/molecules/HeaderTop/index.js +5 -10
  6. package/dist/components/molecules/HeaderTop/styles.js +1 -1
  7. package/dist/components/organisms/OrderDetail/OrderDetail.stories.js +1 -1
  8. package/dist/components/organisms/OrderDetail/index.js +20 -11
  9. package/dist/components/organisms/OrderDetail/styles.js +1 -1
  10. package/dist/global-files/fonts.css +0 -12
  11. package/dist/global-files/variables.js +0 -2
  12. package/dist/index.js +46 -241
  13. package/package.json +1 -12
  14. package/src/components/molecules/CustomSelect/CustomSelect.stories.js +12 -20
  15. package/src/components/molecules/CustomSelect/SelectItem.js +0 -7
  16. package/src/components/molecules/HeaderTop/index.js +6 -11
  17. package/src/components/molecules/HeaderTop/styles.js +0 -4
  18. package/src/components/organisms/OrderDetail/OrderDetail.stories.js +1 -1
  19. package/src/components/organisms/OrderDetail/index.js +19 -12
  20. package/src/components/organisms/OrderDetail/styles.js +1 -0
  21. package/src/global-files/fonts.css +0 -12
  22. package/src/global-files/variables.js +0 -2
  23. package/src/index.js +0 -15
  24. package/src/assets/images/customSelect/starIcon.svg +0 -14
  25. package/src/assets/images/defaultImages/Spinner.gif +0 -0
  26. package/src/assets/images/defaultImages/notFound.svg +0 -124
  27. package/src/components/atoms/ButtonFileChooser/ButtonFileChooser.stories.js +0 -47
  28. package/src/components/atoms/ButtonFileChooser/index.js +0 -69
  29. package/src/components/atoms/ButtonFileChooser/styles.js +0 -4
  30. package/src/components/atoms/ButtonV2/ButtonV2.stories.js +0 -51
  31. package/src/components/atoms/ButtonV2/index.js +0 -79
  32. package/src/components/atoms/ButtonV2/styles.js +0 -195
  33. package/src/components/atoms/CustomIcon/CustomIcon.stories.js +0 -36
  34. package/src/components/atoms/CustomIcon/index.js +0 -41
  35. package/src/components/atoms/CustomIcon/styles.js +0 -85
  36. package/src/components/atoms/IconFile/IconFile.stories.js +0 -35
  37. package/src/components/atoms/IconFile/index.js +0 -119
  38. package/src/components/atoms/IconFile/styles.js +0 -67
  39. package/src/components/atoms/Image/Image.stories.js +0 -51
  40. package/src/components/atoms/Image/index.js +0 -55
  41. package/src/components/atoms/Image/styles.js +0 -34
  42. package/src/components/atoms/ImageLink/ImageLink.stories.js +0 -43
  43. package/src/components/atoms/ImageLink/index.js +0 -57
  44. package/src/components/atoms/ImageLink/styles.js +0 -30
  45. package/src/components/atoms/ImagePreview/ImagePreview.stories.js +0 -52
  46. package/src/components/atoms/ImagePreview/index.js +0 -191
  47. package/src/components/atoms/ImagePreview/styles.js +0 -77
  48. package/src/components/atoms/InputText/InputText.stories.js +0 -39
  49. package/src/components/atoms/InputText/index.js +0 -61
  50. package/src/components/atoms/InputText/styles.js +0 -89
  51. package/src/components/atoms/NotFound/NotFound.stories.js +0 -19
  52. package/src/components/atoms/NotFound/index.js +0 -52
  53. package/src/components/atoms/NotFound/styles.js +0 -55
  54. package/src/components/atoms/SelectItemV2/SelectItemV2.stories.js +0 -26
  55. package/src/components/atoms/SelectItemV2/index.js +0 -45
  56. package/src/components/atoms/SelectItemV2/styles.js +0 -55
  57. package/src/components/atoms/Tooltip/Tooltip.stories.js +0 -51
  58. package/src/components/atoms/Tooltip/index.js +0 -59
  59. package/src/components/atoms/Tooltip/styles.js +0 -42
  60. package/src/components/molecules/ButtonDownloadFile/DownloadFile.stories.js +0 -54
  61. package/src/components/molecules/ButtonDownloadFile/index.js +0 -111
  62. package/src/components/molecules/ButtonDownloadFile/styles.js +0 -66
  63. package/src/components/molecules/ImageTooltip/ImageTooltip.stories.js +0 -46
  64. package/src/components/molecules/ImageTooltip/index.js +0 -62
  65. package/src/components/molecules/ImageTooltip/styles.js +0 -18
  66. package/src/components/molecules/SelectV2/SelectV2.stories.js +0 -114
  67. package/src/components/molecules/SelectV2/index.js +0 -332
  68. package/src/components/molecules/SelectV2/styles.js +0 -100
  69. package/src/components/organisms/Chat/Chat.stories.js +0 -199
  70. package/src/components/organisms/Chat/ChatLists/ChatLists.stories.js +0 -65
  71. package/src/components/organisms/Chat/ChatLists/Rotoplas.jpeg +0 -0
  72. package/src/components/organisms/Chat/ChatLists/THD.png +0 -0
  73. package/src/components/organisms/Chat/ChatLists/index.js +0 -141
  74. package/src/components/organisms/Chat/ChatLists/styles.js +0 -162
  75. package/src/components/organisms/Chat/ContainerItems/ContainerItems.stories.js +0 -142
  76. package/src/components/organisms/Chat/ContainerItems/index.js +0 -549
  77. package/src/components/organisms/Chat/ContainerItems/styles.js +0 -328
  78. package/src/components/organisms/Chat/ContentChat/ContentChat.stories.js +0 -102
  79. package/src/components/organisms/Chat/ContentChat/Rotoplas.jpeg +0 -0
  80. package/src/components/organisms/Chat/ContentChat/THD.png +0 -0
  81. package/src/components/organisms/Chat/ContentChat/index.js +0 -900
  82. package/src/components/organisms/Chat/ContentChat/styles.js +0 -41
  83. package/src/components/organisms/Chat/Footer/Footer.stories.js +0 -22
  84. package/src/components/organisms/Chat/Footer/index.js +0 -669
  85. package/src/components/organisms/Chat/Footer/styles.js +0 -286
  86. package/src/components/organisms/Chat/Header/Header.stories.js +0 -66
  87. package/src/components/organisms/Chat/Header/index.js +0 -94
  88. package/src/components/organisms/Chat/Header/styles.js +0 -49
  89. package/src/components/organisms/Chat/index.js +0 -294
  90. package/src/components/organisms/Chat/styles.js +0 -42
  91. package/src/components/organisms/Modal/Modal.stories.js +0 -55
  92. package/src/components/organisms/Modal/index.js +0 -97
  93. package/src/components/organisms/Modal/styles.js +0 -103
  94. package/src/global-files/handle_http.js +0 -231
  95. package/src/global-files/utils.js +0 -300
package/.env.development CHANGED
@@ -21,9 +21,6 @@ REACT_APP_READ_REQUIRED_ORDERS=https://fc069ovhuk.execute-api.us-east-1.amazonaw
21
21
  REACT_APP_CATEGORY_ENDPOINT=https://fc069ovhuk.execute-api.us-east-1.amazonaws.com/dev/categories
22
22
  REACT_APP_READ_PROVIDERS=https://fc069ovhuk.execute-api.us-east-1.amazonaws.com/dev/providers
23
23
  REACT_APP_PENDING_INVITATIONS=https://fc069ovhuk.execute-api.us-east-1.amazonaws.com/dev/pending-invitations
24
- REACT_APP_PRODUCTS_CHAT_ENDPOINT=https://fc069ovhuk.execute-api.us-east-1.amazonaws.com/dev/products-chat
25
- REACT_APP_TICKETS_CHAT_ENDPOINT=https://ocqbzaa4a2.execute-api.us-east-1.amazonaws.com/dev/ticket-chat
26
- REACT_APP_IMAGES_ENDPOINT=https://content-management-images.s3.amazonaws.com
27
24
 
28
25
  REACT_APP_IMAGES_BUCKET=content-management-images
29
26
  REACT_APP_KEY_UPLOAD_TO_S3=AKIA5CPHLQTT46EQ5TIK
package/.env.production CHANGED
@@ -1,26 +1,26 @@
1
- REACT_APP_ARTICLE_DATA_ENDPOINT=https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/articles-data
2
- REACT_APP_ARTICLE_DATA_DATASHEET_ENDPOINT=https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/articles-data/datasheets
3
- REACT_APP_ARTICLE_DATA_DESCRIPTION_ENDPOINT=https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/articles-data/descriptions
4
- REACT_APP_ARTICLE_DATA_IMAGES_ENDPOINT=https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/articles-data/images
5
- REACT_APP_ARTICLE_DATA_ENDPOINT=https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/articles-data
6
- REACT_APP_VALID_EXPORT_ENDPOINT = https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/valid-export
7
- REACT_APP_SERVICES_ENDPOINT = https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/services
8
- REACT_APP_EVALUATION_ENDPOINT = https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/evaluations
9
- REACT_APP_SEND_EVAL = https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/eval-status
10
- REACT_APP_COMMENTS_ENDPOINT = https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/comments
11
- REACT_APP_USER_ENDPOINT=https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/users
12
- REACT_APP_ASSIGNATIONS_ENDPOINT = https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/assignations
13
- REACT_APP_TASKS_ENDPOINT = https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/tasks
14
- REACT_APP_USER_TASKS_ENDPOINT = https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/user-tasks
15
- REACT_APP_CART = https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/cart
16
- REACT_APP_RETAILER_REQUEST = https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/retailers-request
17
- REACT_APP_VERSIONS_ENDPOINT = https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/versions
18
- REACT_APP_RETAILER_ENDPOINT=https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/retailers
19
- REACT_APP_READ_ORDERS_BY_STATUS=https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/read-orders-by-status
20
- REACT_APP_READ_REQUIRED_ORDERS=https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/read-required-orders
21
- REACT_APP_CATEGORY_ENDPOINT=https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/categories
22
- REACT_APP_READ_PROVIDERS=https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/providers
23
- REACT_APP_PENDING_INVITATIONS=https://6jqnpjf841.execute-api.us-east-1.amazonaws.com/prod/pending-invitations
1
+ REACT_APP_ARTICLE_DATA_ENDPOINT=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/articles-data
2
+ REACT_APP_ARTICLE_DATA_DATASHEET_ENDPOINT=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/articles-data/datasheets
3
+ REACT_APP_ARTICLE_DATA_DESCRIPTION_ENDPOINT=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/articles-data/descriptions
4
+ REACT_APP_ARTICLE_DATA_IMAGES_ENDPOINT=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/articles-data/images
5
+ REACT_APP_ARTICLE_DATA_ENDPOINT=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/articles-data
6
+ REACT_APP_VALID_EXPORT_ENDPOINT = https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/valid-export
7
+ REACT_APP_SERVICES_ENDPOINT = https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/services
8
+ REACT_APP_EVALUATION_ENDPOINT = https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/evaluations
9
+ REACT_APP_SEND_EVAL = https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/eval-status
10
+ REACT_APP_COMMENTS_ENDPOINT = https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/comments
11
+ REACT_APP_USER_ENDPOINT=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/users
12
+ REACT_APP_ASSIGNATIONS_ENDPOINT = https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/assignations
13
+ REACT_APP_TASKS_ENDPOINT = https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/tasks
14
+ REACT_APP_USER_TASKS_ENDPOINT = https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/user-tasks
15
+ REACT_APP_CART = https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/cart
16
+ REACT_APP_RETAILER_REQUEST = https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/retailers-request
17
+ REACT_APP_VERSIONS_ENDPOINT = https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/versions
18
+ REACT_APP_RETAILER_ENDPOINT=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/retailers
19
+ REACT_APP_READ_ORDERS_BY_STATUS=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/read-orders-by-status
20
+ REACT_APP_READ_REQUIRED_ORDERS=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/read-required-orders
21
+ REACT_APP_CATEGORY_ENDPOINT=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/categories
22
+ REACT_APP_READ_PROVIDERS=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/providers
23
+ REACT_APP_PENDING_INVITATIONS=https://3v43slee1m.execute-api.us-east-1.amazonaws.com/prod/pending-invitations
24
24
 
25
25
  REACT_APP_IMAGES_BUCKET=content-management-images-prod
26
26
  REACT_APP_KEY_UPLOAD_TO_S3=AKIA5CPHLQTT46EQ5TIK
@@ -11,8 +11,6 @@ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/
11
11
 
12
12
  var _index = require("./index");
13
13
 
14
- var _starIcon = _interopRequireDefault(require("../../../assets/images/customSelect/starIcon.svg"));
15
-
16
14
  var _jsxRuntime = require("react/jsx-runtime");
17
15
 
18
16
  var _default = {
@@ -28,26 +26,29 @@ var Template = function Template(args) {
28
26
  var CustomSelectDefault = Template.bind({});
29
27
  exports.CustomSelectDefault = CustomSelectDefault;
30
28
  CustomSelectDefault.args = {
31
- // selectLabel: "Todos los departamentos",
29
+ selectLabel: "Todos los departamentos",
32
30
  defaultOption: "Todos los departamentos",
33
31
  options: [{
34
- id: 47,
35
- name: "Enero 2023",
36
- isSelected: true
32
+ id: 1,
33
+ value: "Decoración",
34
+ subOptions: [{
35
+ id: 1,
36
+ value: "Espejos"
37
+ }, {
38
+ id: 2,
39
+ value: "Persianas"
40
+ }]
41
+ }, {
42
+ id: 2,
43
+ value: "Eléctrico"
44
+ }, {
45
+ id: 3,
46
+ value: "Ferretería"
47
+ }, {
48
+ id: 4,
49
+ value: "Herramientas"
37
50
  }, {
38
- id: 49,
39
- name: "Mis Favoritos"
40
- }],
41
- onClickItem: function onClickItem(v, id) {
42
- if (v) {
43
- console.log("Agregar a la lista", id);
44
- } else {
45
- console.log("Eliminar a la lista", id);
46
- }
47
- },
48
- icon: _starIcon.default,
49
- showSearchBar: true,
50
- customOptions: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
51
- children: "Esto es un customOptions"
52
- })
51
+ id: 5,
52
+ value: "Iluminación"
53
+ }]
53
54
  };
@@ -26,8 +26,7 @@ var SelecItem = function SelecItem(_ref) {
26
26
  customSelectId = _ref.customSelectId,
27
27
  setParameterArray = _ref.setParameterArray,
28
28
  activeFilters = _ref.activeFilters,
29
- setActiveFilters = _ref.setActiveFilters,
30
- onClickItem = _ref.onClickItem;
29
+ setActiveFilters = _ref.setActiveFilters;
31
30
 
32
31
  var _useState = (0, _react.useState)(false),
33
32
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
@@ -47,10 +46,6 @@ var SelecItem = function SelecItem(_ref) {
47
46
  id: "main-item-" + option.id,
48
47
  label: option.name,
49
48
  onChange: function onChange(e) {
50
- if (onClickItem) {
51
- onClickItem(e.target.checked, option.id);
52
- }
53
-
54
49
  var subOptions = option.subOptions;
55
50
  var filtersCopy = (0, _objectSpread2.default)({}, activeFilters);
56
51
 
@@ -113,10 +108,6 @@ var SelecItem = function SelecItem(_ref) {
113
108
  label: sub.name,
114
109
  defaultChecked: activeFilters[option.name] && activeFilters[option.name][sub.name],
115
110
  onChange: function onChange(e) {
116
- if (onClickItem) {
117
- onClickItem(e.target.checked, sub.id);
118
- }
119
-
120
111
  if (e.target.checked) {
121
112
  setParameterArray(function (current) {
122
113
  return [].concat((0, _toConsumableArray2.default)(current), [sub.id]).sort(function (a, b) {
@@ -13,8 +13,6 @@ var _index2 = require("../../atoms/GeneralButton/index");
13
13
 
14
14
  var _react = require("react");
15
15
 
16
- var _Chat = require("../../organisms/Chat");
17
-
18
16
  var _jsxRuntime = require("react/jsx-runtime");
19
17
 
20
18
  var HeaderTop = function HeaderTop(_ref) {
@@ -27,14 +25,11 @@ var HeaderTop = function HeaderTop(_ref) {
27
25
  ref: headerTop,
28
26
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ScreenHeader, {
29
27
  text: "Edici\xF3n de producto"
30
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
31
- className: "buttons-top",
32
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Button, {
33
- buttonType: "close-button",
34
- onClick: function onClick() {
35
- window.location.href = "/products";
36
- }
37
- })
28
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Button, {
29
+ buttonType: "close-button",
30
+ onClick: function onClick() {
31
+ window.location.href = "/products";
32
+ }
38
33
  })]
39
34
  });
40
35
  };
@@ -13,6 +13,6 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
13
13
 
14
14
  var _templateObject;
15
15
 
16
- var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: space-between;\n .buttons-top {\n display: flex;\n align-items: center;\n }\n"])));
16
+ var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: space-between;\n"])));
17
17
 
18
18
  exports.Container = Container;
@@ -175,7 +175,7 @@ OrderDetailDefault.args = {
175
175
  company_name: "GRUPO BRAHMA",
176
176
  date: "2022-11-12T00:00:00.000Z",
177
177
  type: "En oficina",
178
- id_order: 1,
178
+ id_order: 5,
179
179
  status: "PA",
180
180
  total: 731.2639770507812,
181
181
  timestamp: "2022-11-12T22:48:23.000Z",
@@ -19,6 +19,8 @@ var _index = require("../../atoms/Status/index");
19
19
 
20
20
  var _index2 = require("../../atoms/ProgressBar/index");
21
21
 
22
+ var _index3 = require("../../atoms/Loading/index");
23
+
22
24
  var _moment = _interopRequireDefault(require("moment"));
23
25
 
24
26
  require("moment/locale/es");
@@ -36,17 +38,22 @@ _moment.default.locale("es");
36
38
  var OrderDetail = function OrderDetail(props) {
37
39
  var order = props.order;
38
40
 
39
- var _useState = (0, _react.useState)(order.payment !== "pagado"),
41
+ var _useState = (0, _react.useState)(true),
40
42
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
41
- showPaymentButton = _useState2[0],
42
- setShowPaymentButton = _useState2[1];
43
+ isLoading = _useState2[0],
44
+ setIsLoading = _useState2[1];
43
45
 
44
- var _useState3 = (0, _react.useState)({}),
46
+ var _useState3 = (0, _react.useState)(order.payment !== "pagado"),
45
47
  _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
46
- orderData = _useState4[0],
47
- setOrderData = _useState4[1];
48
+ showPaymentButton = _useState4[0],
49
+ setShowPaymentButton = _useState4[1];
50
+
51
+ var _useState5 = (0, _react.useState)({}),
52
+ _useState6 = (0, _slicedToArray2.default)(_useState5, 2),
53
+ orderData = _useState6[0],
54
+ setOrderData = _useState6[1];
48
55
 
49
- var _useState5 = (0, _react.useState)({
56
+ var _useState7 = (0, _react.useState)({
50
57
  approved: "-",
51
58
  rejected: "-",
52
59
  in_progress: "-",
@@ -56,9 +63,9 @@ var OrderDetail = function OrderDetail(props) {
56
63
  description: "-",
57
64
  images: "-"
58
65
  }),
59
- _useState6 = (0, _slicedToArray2.default)(_useState5, 2),
60
- dataGeneral = _useState6[0],
61
- setDataGeneral = _useState6[1];
66
+ _useState8 = (0, _slicedToArray2.default)(_useState7, 2),
67
+ dataGeneral = _useState8[0],
68
+ setDataGeneral = _useState8[1];
62
69
 
63
70
  var updBilling = function updBilling(articleId, newBillingStatus) {
64
71
  props.updateBilling && props.updateBilling({
@@ -81,6 +88,7 @@ var OrderDetail = function OrderDetail(props) {
81
88
 
82
89
  (0, _react.useEffect)(function () {
83
90
  var ac = new AbortController();
91
+ setIsLoading(true);
84
92
  props.getOrderDetail && props.getOrderDetail({
85
93
  query: {
86
94
  orderId: order.id_order
@@ -102,6 +110,7 @@ var OrderDetail = function OrderDetail(props) {
102
110
  setDataGeneral((0, _objectSpread2.default)((0, _objectSpread2.default)({}, countArticles), {}, {
103
111
  totalArticles: totalArticles
104
112
  }));
113
+ setIsLoading(false);
105
114
  });
106
115
  return function () {
107
116
  return ac.abort();
@@ -189,7 +198,7 @@ var OrderDetail = function OrderDetail(props) {
189
198
  })]
190
199
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
191
200
  className: "body",
192
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Table.default, {
201
+ children: isLoading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.Loading, {}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_Table.default, {
193
202
  headers: [{
194
203
  width: 140,
195
204
  name: "UPC"
@@ -15,7 +15,7 @@ var _variables = require("../../../global-files/variables");
15
15
 
16
16
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
17
17
 
18
- var MainContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: fixed;\n top: 0;\n right: 0;\n width: 785px;\n height: 100vh;\n z-index: 5;\n background: #ffffff;\n box-sizing: border-box;\n font-family: ", ";\n & > * {\n padding: 0 30px;\n }\n .headerTitle {\n font-weight: bold;\n font-size: 25px;\n }\n\n display: grid;\n grid-template-columns: 1fr;\n grid-template-rows: 101px 120px 1fr 115px;\n grid-column-gap: 0px;\n grid-row-gap: 0px;\n\n .body {\n overflow-y: auto;\n }\n .footer {\n width: 100%;\n display: flex;\n align-items: center;\n height: 115px;\n border-top: 1px solid #e6e6e6;\n position: sticky;\n bottom: 0;\n padding: 20px;\n box-sizing: border-box;\n > h2 {\n margin-right: 20px;\n }\n > div {\n margin-right: 10px;\n }\n }\n"])), _variables.FontFamily.Roboto);
18
+ var MainContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: fixed;\n top: 0;\n right: 0;\n width: 785px;\n height: 100vh;\n z-index: 5;\n background: #ffffff;\n box-sizing: border-box;\n font-family: ", ";\n & > * {\n padding: 0 30px;\n }\n box-shadow: -4px 0px 8px 0px rgba(0,0,0,0.1);\n .headerTitle {\n font-weight: bold;\n font-size: 25px;\n }\n\n display: grid;\n grid-template-columns: 1fr;\n grid-template-rows: 101px 120px 1fr 115px;\n grid-column-gap: 0px;\n grid-row-gap: 0px;\n\n .body {\n overflow-y: auto;\n }\n .footer {\n width: 100%;\n display: flex;\n align-items: center;\n height: 115px;\n border-top: 1px solid #e6e6e6;\n position: sticky;\n bottom: 0;\n padding: 20px;\n box-sizing: border-box;\n > h2 {\n margin-right: 20px;\n }\n > div {\n margin-right: 10px;\n }\n }\n"])), _variables.FontFamily.Roboto);
19
19
 
20
20
  exports.MainContainer = MainContainer;
21
21
 
@@ -61,15 +61,3 @@
61
61
  src: url("../assets/fonts/roboto/Roboto-Regular.ttf");
62
62
  font-weight: 400;
63
63
  }
64
-
65
- @font-face {
66
- font-family: "Roboto";
67
- src: url("../assets/fonts/roboto/Roboto-Regular.ttf");
68
- font-weight: 400;
69
- }
70
-
71
- .prueba {
72
- color: #9e3e26;
73
- color: #b42983;
74
- color: #e7e7e7;
75
- }
@@ -32,8 +32,6 @@ var FontFamily = {
32
32
  Raleway_700: "Raleway-700",
33
33
  Raleway_800: "Raleway-800",
34
34
  Raleway_900: "Raleway-900",
35
- RobotoMedium: "RobotoMedium",
36
- RobotoRegular: "RobotoRegular",
37
35
  Roboto: "Roboto"
38
36
  };
39
37
  exports.FontFamily = FontFamily;