contentoh-components-library 21.2.87 → 21.2.88
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/ButtonFileChooser/ButtonFileChooser.stories.js +3 -3
- package/dist/components/atoms/ButtonFileChooser/index.js +7 -5
- package/dist/components/atoms/ButtonV2/ButtonV2.stories.js +3 -3
- package/dist/components/atoms/ButtonV2/index.js +5 -3
- package/dist/components/atoms/CustomIcon/CustomIcon.stories.js +3 -3
- package/dist/components/atoms/CustomIcon/index.js +5 -3
- package/dist/components/atoms/IconFile/IconFile.stories.js +3 -3
- package/dist/components/atoms/IconFile/index.js +7 -9
- package/dist/components/atoms/Image/Image.stories.js +3 -3
- package/dist/components/atoms/Image/index.js +5 -3
- package/dist/components/atoms/ImageLink/ImageLink.stories.js +3 -3
- package/dist/components/atoms/ImageLink/index.js +5 -3
- package/dist/components/atoms/ImagePreview/ImagePreview.stories.js +3 -3
- package/dist/components/atoms/ImagePreview/index.js +13 -11
- package/dist/components/atoms/InputText/InputText.stories.js +3 -5
- package/dist/components/atoms/InputText/index.js +7 -5
- package/dist/components/atoms/NotFound/NotFound.stories.js +3 -3
- package/dist/components/atoms/NotFound/index.js +9 -7
- package/dist/components/atoms/Tooltip/Tooltip.stories.js +3 -3
- package/dist/components/atoms/Tooltip/index.js +5 -3
- package/dist/components/molecules/ButtonDownloadFile/DownloadFile.stories.js +3 -3
- package/dist/components/molecules/ButtonDownloadFile/index.js +9 -9
- package/dist/components/molecules/HeaderTop/index.js +1 -3
- package/dist/components/molecules/ImageTooltip/ImageTooltip.stories.js +3 -3
- package/dist/components/molecules/ImageTooltip/index.js +7 -7
- package/dist/components/organisms/Chat/Chat.stories.js +3 -3
- package/dist/components/organisms/Chat/ChatLists/ChatLists.stories.js +3 -3
- package/dist/components/organisms/Chat/ChatLists/index.js +12 -10
- package/dist/components/organisms/Chat/ContainerItems/ContainerItems.stories.js +3 -3
- package/dist/components/organisms/Chat/ContainerItems/index.js +24 -22
- package/dist/components/organisms/Chat/ContentChat/index.js +17 -17
- package/dist/components/organisms/Chat/Footer/Footer.stories.js +3 -3
- package/dist/components/organisms/Chat/Footer/index.js +28 -25
- package/dist/components/organisms/Chat/Header/Header.stories.js +3 -3
- package/dist/components/organisms/Chat/Header/index.js +13 -13
- package/dist/components/organisms/Chat/index.js +7 -5
- package/dist/components/organisms/Modal/Modal.stories.js +6 -6
- package/dist/components/organisms/Modal/index.js +9 -9
- package/dist/index.js +215 -46
- package/package.json +1 -1
- package/src/components/atoms/ButtonFileChooser/ButtonFileChooser.stories.js +1 -1
- package/src/components/atoms/ButtonFileChooser/index.js +3 -4
- package/src/components/atoms/ButtonV2/ButtonV2.stories.js +1 -1
- package/src/components/atoms/ButtonV2/index.js +2 -2
- package/src/components/atoms/CustomIcon/CustomIcon.stories.js +1 -1
- package/src/components/atoms/CustomIcon/index.js +2 -2
- package/src/components/atoms/IconFile/IconFile.stories.js +1 -1
- package/src/components/atoms/IconFile/index.js +3 -4
- package/src/components/atoms/Image/Image.stories.js +1 -1
- package/src/components/atoms/Image/index.js +2 -2
- package/src/components/atoms/ImageLink/ImageLink.stories.js +1 -1
- package/src/components/atoms/ImageLink/index.js +2 -3
- package/src/components/atoms/ImagePreview/ImagePreview.stories.js +1 -1
- package/src/components/atoms/ImagePreview/index.js +5 -6
- package/src/components/atoms/InputText/InputText.stories.js +1 -2
- package/src/components/atoms/InputText/index.js +2 -4
- package/src/components/atoms/NotFound/NotFound.stories.js +1 -1
- package/src/components/atoms/NotFound/index.js +4 -5
- package/src/components/atoms/Tooltip/Tooltip.stories.js +1 -1
- package/src/components/atoms/Tooltip/index.js +2 -2
- package/src/components/molecules/ButtonDownloadFile/DownloadFile.stories.js +1 -1
- package/src/components/molecules/ButtonDownloadFile/index.js +4 -6
- package/src/components/molecules/HeaderTop/index.js +1 -1
- package/src/components/molecules/ImageTooltip/ImageTooltip.stories.js +1 -1
- package/src/components/molecules/ImageTooltip/index.js +3 -5
- package/src/components/organisms/Chat/Chat.stories.js +1 -1
- package/src/components/organisms/Chat/ChatLists/ChatLists.stories.js +1 -1
- package/src/components/organisms/Chat/ChatLists/index.js +5 -5
- package/src/components/organisms/Chat/ContainerItems/ContainerItems.stories.js +1 -1
- package/src/components/organisms/Chat/ContainerItems/index.js +9 -9
- package/src/components/organisms/Chat/ContentChat/index.js +10 -10
- package/src/components/organisms/Chat/Footer/Footer.stories.js +1 -1
- package/src/components/organisms/Chat/Footer/index.js +12 -12
- package/src/components/organisms/Chat/Header/Header.stories.js +1 -1
- package/src/components/organisms/Chat/Header/index.js +5 -5
- package/src/components/organisms/Chat/index.js +3 -4
- package/src/components/organisms/Modal/Modal.stories.js +2 -2
- package/src/components/organisms/Modal/index.js +4 -4
- package/src/index.js +13 -0
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.Footer = void 0;
|
|
9
9
|
|
|
10
10
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
11
|
|
|
@@ -25,40 +25,41 @@ var _awsSdk = _interopRequireDefault(require("aws-sdk"));
|
|
|
25
25
|
|
|
26
26
|
var _uuid = require("uuid");
|
|
27
27
|
|
|
28
|
-
var _Image =
|
|
28
|
+
var _Image = require("../../../atoms/Image");
|
|
29
29
|
|
|
30
|
-
var _ImageTooltip =
|
|
30
|
+
var _ImageTooltip = require("../../../molecules/ImageTooltip");
|
|
31
31
|
|
|
32
32
|
var _freeSolidSvgIcons = require("@fortawesome/free-solid-svg-icons");
|
|
33
33
|
|
|
34
|
-
var _CustomIcon =
|
|
34
|
+
var _CustomIcon = require("../../../atoms/CustomIcon");
|
|
35
35
|
|
|
36
|
-
var _ButtonV =
|
|
36
|
+
var _ButtonV = require("../../../atoms/ButtonV2");
|
|
37
37
|
|
|
38
|
-
var _IconFile =
|
|
38
|
+
var _IconFile = require("../../../atoms/IconFile");
|
|
39
39
|
|
|
40
|
-
var _Modal =
|
|
40
|
+
var _Modal = require("../../Modal");
|
|
41
41
|
|
|
42
|
-
var _Tooltip =
|
|
42
|
+
var _Tooltip = require("../../../atoms/Tooltip");
|
|
43
43
|
|
|
44
44
|
var _material = require("@mui/material");
|
|
45
45
|
|
|
46
|
-
var _ButtonFileChooser =
|
|
46
|
+
var _ButtonFileChooser = require("../../../atoms/ButtonFileChooser");
|
|
47
47
|
|
|
48
48
|
var _react2 = require("swiper/react");
|
|
49
49
|
|
|
50
50
|
require("swiper/swiper.min.css");
|
|
51
51
|
|
|
52
|
+
require("swiper/modules/free-mode/free-mode.min.css");
|
|
53
|
+
|
|
52
54
|
var _swiper = require("swiper");
|
|
53
55
|
|
|
54
56
|
var _utils = require("../../../../global-files/utils");
|
|
55
57
|
|
|
56
|
-
var _InputText =
|
|
58
|
+
var _InputText = require("../../../atoms/InputText");
|
|
57
59
|
|
|
58
60
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
59
61
|
|
|
60
62
|
// carrousel
|
|
61
|
-
//import "swiper/modules/free-mode/free-mode.min.css";
|
|
62
63
|
var S3_BUCKET = process.env.REACT_APP_IMAGES_BUCKET;
|
|
63
64
|
var REGION = "us-east-1";
|
|
64
65
|
|
|
@@ -74,7 +75,7 @@ var myBucket = new _awsSdk.default.S3({
|
|
|
74
75
|
region: REGION
|
|
75
76
|
});
|
|
76
77
|
|
|
77
|
-
function Footer(props) {
|
|
78
|
+
var Footer = function Footer(props) {
|
|
78
79
|
var chatType = props.chatType,
|
|
79
80
|
dataChat = props.dataChat,
|
|
80
81
|
statusChat = props.statusChat,
|
|
@@ -587,20 +588,20 @@ function Footer(props) {
|
|
|
587
588
|
jsxFiles.push( /*#__PURE__*/(0, _jsxRuntime.jsx)(_react2.SwiperSlide, {
|
|
588
589
|
className: "item-carrousel",
|
|
589
590
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.ContainerItemCarrousel, {
|
|
590
|
-
children: [fileType === "image" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Image.
|
|
591
|
+
children: [fileType === "image" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Image.Image, {
|
|
591
592
|
width: "100%",
|
|
592
593
|
className: "container-img",
|
|
593
594
|
sizeLoading: 40,
|
|
594
595
|
colorLoading: undefined,
|
|
595
596
|
src: base64,
|
|
596
|
-
componentDefault: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomIcon.
|
|
597
|
+
componentDefault: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomIcon.CustomIcon, {
|
|
597
598
|
className: "icon-img",
|
|
598
599
|
size: 60,
|
|
599
600
|
icon: _freeSolidSvgIcons.faImage,
|
|
600
601
|
type: "pink",
|
|
601
602
|
transparent: true
|
|
602
603
|
})
|
|
603
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconFile.
|
|
604
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconFile.IconFile, {
|
|
604
605
|
transparent: true,
|
|
605
606
|
size: 60,
|
|
606
607
|
ext: (0, _utils.getFileExtension)(file.name)
|
|
@@ -618,7 +619,7 @@ function Footer(props) {
|
|
|
618
619
|
fileName: ""
|
|
619
620
|
});
|
|
620
621
|
},
|
|
621
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.
|
|
622
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.ButtonV2, {
|
|
622
623
|
className: "btn-delete",
|
|
623
624
|
type: "white",
|
|
624
625
|
label: "Eliminar",
|
|
@@ -734,7 +735,7 @@ function Footer(props) {
|
|
|
734
735
|
} // retornar el icono
|
|
735
736
|
|
|
736
737
|
|
|
737
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.
|
|
738
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.Tooltip, {
|
|
738
739
|
componentTooltip: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
739
740
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
740
741
|
className: "label-title",
|
|
@@ -750,7 +751,7 @@ function Footer(props) {
|
|
|
750
751
|
addArrow: false,
|
|
751
752
|
transitionType: "zoom",
|
|
752
753
|
followCursor: false,
|
|
753
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomIcon.
|
|
754
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomIcon.CustomIcon, {
|
|
754
755
|
className: "icon-errorUpdate",
|
|
755
756
|
size: 15,
|
|
756
757
|
icon: _freeSolidSvgIcons.faExclamationTriangle,
|
|
@@ -776,7 +777,7 @@ function Footer(props) {
|
|
|
776
777
|
})
|
|
777
778
|
}) : filesJsxPreview.length === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
778
779
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.ContainerMain, {
|
|
779
|
-
children: [getErrorUpdate(), /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputText.
|
|
780
|
+
children: [getErrorUpdate(), /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputText.InputText, {
|
|
780
781
|
className: "input-itemMessage",
|
|
781
782
|
type: "gray",
|
|
782
783
|
transparent: true,
|
|
@@ -815,7 +816,7 @@ function Footer(props) {
|
|
|
815
816
|
};
|
|
816
817
|
}(),
|
|
817
818
|
refInputText: refInputTextMessage
|
|
818
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonFileChooser.
|
|
819
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonFileChooser.ButtonFileChooser, {
|
|
819
820
|
className: "btn-chooserFiles",
|
|
820
821
|
type: "gray",
|
|
821
822
|
transparent: true,
|
|
@@ -824,7 +825,7 @@ function Footer(props) {
|
|
|
824
825
|
showIcon: true,
|
|
825
826
|
multipleFiles: true,
|
|
826
827
|
onChangeFiles: onChangeFiles
|
|
827
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.
|
|
828
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.ButtonV2, {
|
|
828
829
|
className: "btn-sendMessage",
|
|
829
830
|
type: "pink",
|
|
830
831
|
size: 10,
|
|
@@ -907,7 +908,7 @@ function Footer(props) {
|
|
|
907
908
|
timeout: 500,
|
|
908
909
|
container: containerRef.current,
|
|
909
910
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
910
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonFileChooser.
|
|
911
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonFileChooser.ButtonFileChooser, {
|
|
911
912
|
className: "btn-chooserFiles",
|
|
912
913
|
type: "gray",
|
|
913
914
|
size: 17,
|
|
@@ -925,7 +926,7 @@ function Footer(props) {
|
|
|
925
926
|
container: containerRef.current,
|
|
926
927
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
927
928
|
className: "slide-btnSendFiles",
|
|
928
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.
|
|
929
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.ButtonV2, {
|
|
929
930
|
className: "btn-sendFiles",
|
|
930
931
|
type: "pink",
|
|
931
932
|
label: "Enviar archivos",
|
|
@@ -960,7 +961,7 @@ function Footer(props) {
|
|
|
960
961
|
})
|
|
961
962
|
})
|
|
962
963
|
})
|
|
963
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Modal.
|
|
964
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Modal.Modal, {
|
|
964
965
|
className: "container-modalAlert",
|
|
965
966
|
show: modalAlert.show,
|
|
966
967
|
title: modalAlert.title,
|
|
@@ -979,4 +980,6 @@ function Footer(props) {
|
|
|
979
980
|
}
|
|
980
981
|
})]
|
|
981
982
|
});
|
|
982
|
-
}
|
|
983
|
+
};
|
|
984
|
+
|
|
985
|
+
exports.Footer = Footer;
|
|
@@ -9,18 +9,18 @@ exports.headerChatSimple = exports.headerChatMultiple = exports.headerChatEmpty
|
|
|
9
9
|
|
|
10
10
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
11
|
|
|
12
|
-
var _index =
|
|
12
|
+
var _index = require("./index");
|
|
13
13
|
|
|
14
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
15
|
|
|
16
16
|
var _default = {
|
|
17
17
|
title: "Components/organisms/Chat/Header",
|
|
18
|
-
component: _index.
|
|
18
|
+
component: _index.Header
|
|
19
19
|
};
|
|
20
20
|
exports.default = _default;
|
|
21
21
|
|
|
22
22
|
var Template = function Template(args) {
|
|
23
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Header, (0, _objectSpread2.default)({}, args));
|
|
24
24
|
}; // companies de prueba multiple
|
|
25
25
|
|
|
26
26
|
|
|
@@ -1,27 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
|
-
exports.
|
|
6
|
+
exports.Header = void 0;
|
|
9
7
|
|
|
10
8
|
var _styles = require("./styles");
|
|
11
9
|
|
|
12
10
|
var _react = require("react");
|
|
13
11
|
|
|
14
|
-
var _CustomIcon =
|
|
12
|
+
var _CustomIcon = require("../../../atoms/CustomIcon");
|
|
15
13
|
|
|
16
|
-
var _ButtonV =
|
|
14
|
+
var _ButtonV = require("../../../atoms/ButtonV2");
|
|
17
15
|
|
|
18
|
-
var _Image =
|
|
16
|
+
var _Image = require("../../../atoms/Image");
|
|
19
17
|
|
|
20
18
|
var _freeSolidSvgIcons = require("@fortawesome/free-solid-svg-icons");
|
|
21
19
|
|
|
22
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
21
|
|
|
24
|
-
function Header(props) {
|
|
22
|
+
var Header = function Header(props) {
|
|
25
23
|
var showBtnClose = props.showBtnClose,
|
|
26
24
|
showChatsList = props.showChatsList,
|
|
27
25
|
chatCompany = props.chatCompany,
|
|
@@ -32,7 +30,7 @@ function Header(props) {
|
|
|
32
30
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
33
31
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
34
32
|
children: [showChatsList ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
35
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomIcon.
|
|
33
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomIcon.CustomIcon, {
|
|
36
34
|
className: "icon-chooseChat",
|
|
37
35
|
type: "pink",
|
|
38
36
|
borderType: "circle",
|
|
@@ -43,13 +41,13 @@ function Header(props) {
|
|
|
43
41
|
children: " Todos los chats "
|
|
44
42
|
})]
|
|
45
43
|
}) : chatCompany && chatCompany.id && chatCompany.name && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
46
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Image.
|
|
44
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Image.Image, {
|
|
47
45
|
className: "logoCompany",
|
|
48
46
|
width: "24px",
|
|
49
47
|
sizeLoading: 20,
|
|
50
48
|
colorLoading: undefined,
|
|
51
49
|
src: chatCompany.src,
|
|
52
|
-
componentDefault: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomIcon.
|
|
50
|
+
componentDefault: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomIcon.CustomIcon, {
|
|
53
51
|
className: "icon-logoCompany",
|
|
54
52
|
type: "white",
|
|
55
53
|
borderType: "circle",
|
|
@@ -59,7 +57,7 @@ function Header(props) {
|
|
|
59
57
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("label", {
|
|
60
58
|
className: "title",
|
|
61
59
|
children: [" ", chatCompany.name, " "]
|
|
62
|
-
}), multipleCompanies && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.
|
|
60
|
+
}), multipleCompanies && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.ButtonV2, {
|
|
63
61
|
className: "btn-chooseChat",
|
|
64
62
|
type: "pink",
|
|
65
63
|
size: 10,
|
|
@@ -69,7 +67,7 @@ function Header(props) {
|
|
|
69
67
|
return onClickBtnChooseChat && onClickBtnChooseChat();
|
|
70
68
|
}
|
|
71
69
|
})]
|
|
72
|
-
}), showBtnClose && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.
|
|
70
|
+
}), showBtnClose && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.ButtonV2, {
|
|
73
71
|
className: "btn-X",
|
|
74
72
|
type: "white",
|
|
75
73
|
size: 11,
|
|
@@ -81,4 +79,6 @@ function Header(props) {
|
|
|
81
79
|
})]
|
|
82
80
|
})
|
|
83
81
|
});
|
|
84
|
-
}
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
exports.Header = Header;
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.Chat = void 0;
|
|
9
9
|
|
|
10
10
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
11
|
|
|
@@ -19,7 +19,7 @@ var _styles = require("./styles");
|
|
|
19
19
|
|
|
20
20
|
var _react = require("react");
|
|
21
21
|
|
|
22
|
-
var _ButtonV =
|
|
22
|
+
var _ButtonV = require("../../atoms/ButtonV2");
|
|
23
23
|
|
|
24
24
|
var _ContentChat = require("./ContentChat");
|
|
25
25
|
|
|
@@ -31,7 +31,7 @@ var _utils = require("../../../global-files/utils");
|
|
|
31
31
|
|
|
32
32
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
33
33
|
|
|
34
|
-
function Chat(props) {
|
|
34
|
+
var Chat = function Chat(props) {
|
|
35
35
|
var chatType = props.chatType,
|
|
36
36
|
chatContainerType = props.chatContainerType,
|
|
37
37
|
chatData = props.chatData,
|
|
@@ -277,7 +277,7 @@ function Chat(props) {
|
|
|
277
277
|
})
|
|
278
278
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
279
279
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.ContainerBtnPopUpChat, {
|
|
280
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.
|
|
280
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.ButtonV2, {
|
|
281
281
|
className: "container-btn-popUpChat",
|
|
282
282
|
type: "whiteS2",
|
|
283
283
|
size: 14,
|
|
@@ -322,4 +322,6 @@ function Chat(props) {
|
|
|
322
322
|
})]
|
|
323
323
|
})
|
|
324
324
|
});
|
|
325
|
-
}
|
|
325
|
+
};
|
|
326
|
+
|
|
327
|
+
exports.Chat = Chat;
|
|
@@ -9,15 +9,15 @@ exports.modalWithButtons = exports.modalDefault = exports.default = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
11
|
|
|
12
|
-
var _index =
|
|
12
|
+
var _index = require("./index");
|
|
13
13
|
|
|
14
|
-
var _ButtonV =
|
|
14
|
+
var _ButtonV = require("../../atoms/ButtonV2");
|
|
15
15
|
|
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
17
|
|
|
18
18
|
var _default = {
|
|
19
19
|
title: "Components/organisms/Modal",
|
|
20
|
-
component: _index.
|
|
20
|
+
component: _index.Modal,
|
|
21
21
|
argTypes: {
|
|
22
22
|
icon: {
|
|
23
23
|
options: [undefined, "error", "warning", "success", "info"],
|
|
@@ -30,7 +30,7 @@ var _default = {
|
|
|
30
30
|
exports.default = _default;
|
|
31
31
|
|
|
32
32
|
var Template = function Template(args) {
|
|
33
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.
|
|
33
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Modal, (0, _objectSpread2.default)({}, args));
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
var modalDefault = Template.bind({});
|
|
@@ -48,14 +48,14 @@ modalWithButtons.args = {
|
|
|
48
48
|
title: "Titulo del modal",
|
|
49
49
|
icon: undefined,
|
|
50
50
|
message: "descripcion amplia sobre el componente \n\tmodal white para saber como se ven varias lineas\n\tde codigo",
|
|
51
|
-
buttons: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.
|
|
51
|
+
buttons: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.ButtonV2, {
|
|
52
52
|
type: "white",
|
|
53
53
|
label: "Cancelar",
|
|
54
54
|
size: 12,
|
|
55
55
|
onClick: function onClick(event) {
|
|
56
56
|
alert("cancelar");
|
|
57
57
|
}
|
|
58
|
-
}, "btn-Cancelar"), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.
|
|
58
|
+
}, "btn-Cancelar"), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.ButtonV2, {
|
|
59
59
|
type: "pink",
|
|
60
60
|
label: "Aceptar",
|
|
61
61
|
size: 12,
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
3
|
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
6
4
|
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
exports.
|
|
8
|
+
exports.Modal = void 0;
|
|
11
9
|
|
|
12
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
11
|
|
|
@@ -19,13 +17,13 @@ var _reactFontawesome = require("@fortawesome/react-fontawesome");
|
|
|
19
17
|
|
|
20
18
|
var _material = require("@mui/material");
|
|
21
19
|
|
|
22
|
-
var _ButtonV =
|
|
20
|
+
var _ButtonV = require("../../atoms/ButtonV2");
|
|
23
21
|
|
|
24
|
-
var _CustomIcon =
|
|
22
|
+
var _CustomIcon = require("../../atoms/CustomIcon");
|
|
25
23
|
|
|
26
24
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
27
25
|
|
|
28
|
-
function Modal(props) {
|
|
26
|
+
var Modal = function Modal(props) {
|
|
29
27
|
var className = props.className,
|
|
30
28
|
show = props.show,
|
|
31
29
|
title = props.title,
|
|
@@ -64,7 +62,7 @@ function Modal(props) {
|
|
|
64
62
|
className: "label-title",
|
|
65
63
|
children: title.trim()
|
|
66
64
|
})
|
|
67
|
-
}), icons[icon === null || icon === void 0 ? void 0 : icon.toLowerCase()] && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomIcon.
|
|
65
|
+
}), icons[icon === null || icon === void 0 ? void 0 : icon.toLowerCase()] && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomIcon.CustomIcon, {
|
|
68
66
|
type: "white",
|
|
69
67
|
className: "iconModal " + "iconModal-" + icon.toLowerCase(),
|
|
70
68
|
size: 35,
|
|
@@ -78,7 +76,7 @@ function Modal(props) {
|
|
|
78
76
|
children: customComponent
|
|
79
77
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
80
78
|
className: "container-buttons",
|
|
81
|
-
children: buttons !== null && buttons !== void 0 && buttons.length ? buttons : /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.
|
|
79
|
+
children: buttons !== null && buttons !== void 0 && buttons.length ? buttons : /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.ButtonV2, {
|
|
82
80
|
type: "white",
|
|
83
81
|
borderType: "oval",
|
|
84
82
|
label: "Aceptar",
|
|
@@ -92,4 +90,6 @@ function Modal(props) {
|
|
|
92
90
|
})
|
|
93
91
|
})
|
|
94
92
|
});
|
|
95
|
-
}
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
exports.Modal = Modal;
|