contentoh-components-library 21.2.86 → 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 +26 -24
- 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 +11 -11
- 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,25 +25,25 @@ 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
|
|
|
@@ -55,7 +55,7 @@ var _swiper = require("swiper");
|
|
|
55
55
|
|
|
56
56
|
var _utils = require("../../../../global-files/utils");
|
|
57
57
|
|
|
58
|
-
var _InputText =
|
|
58
|
+
var _InputText = require("../../../atoms/InputText");
|
|
59
59
|
|
|
60
60
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
61
61
|
|
|
@@ -75,7 +75,7 @@ var myBucket = new _awsSdk.default.S3({
|
|
|
75
75
|
region: REGION
|
|
76
76
|
});
|
|
77
77
|
|
|
78
|
-
function Footer(props) {
|
|
78
|
+
var Footer = function Footer(props) {
|
|
79
79
|
var chatType = props.chatType,
|
|
80
80
|
dataChat = props.dataChat,
|
|
81
81
|
statusChat = props.statusChat,
|
|
@@ -588,20 +588,20 @@ function Footer(props) {
|
|
|
588
588
|
jsxFiles.push( /*#__PURE__*/(0, _jsxRuntime.jsx)(_react2.SwiperSlide, {
|
|
589
589
|
className: "item-carrousel",
|
|
590
590
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.ContainerItemCarrousel, {
|
|
591
|
-
children: [fileType === "image" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Image.
|
|
591
|
+
children: [fileType === "image" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Image.Image, {
|
|
592
592
|
width: "100%",
|
|
593
593
|
className: "container-img",
|
|
594
594
|
sizeLoading: 40,
|
|
595
595
|
colorLoading: undefined,
|
|
596
596
|
src: base64,
|
|
597
|
-
componentDefault: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomIcon.
|
|
597
|
+
componentDefault: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomIcon.CustomIcon, {
|
|
598
598
|
className: "icon-img",
|
|
599
599
|
size: 60,
|
|
600
600
|
icon: _freeSolidSvgIcons.faImage,
|
|
601
601
|
type: "pink",
|
|
602
602
|
transparent: true
|
|
603
603
|
})
|
|
604
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconFile.
|
|
604
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconFile.IconFile, {
|
|
605
605
|
transparent: true,
|
|
606
606
|
size: 60,
|
|
607
607
|
ext: (0, _utils.getFileExtension)(file.name)
|
|
@@ -619,7 +619,7 @@ function Footer(props) {
|
|
|
619
619
|
fileName: ""
|
|
620
620
|
});
|
|
621
621
|
},
|
|
622
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.
|
|
622
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.ButtonV2, {
|
|
623
623
|
className: "btn-delete",
|
|
624
624
|
type: "white",
|
|
625
625
|
label: "Eliminar",
|
|
@@ -735,7 +735,7 @@ function Footer(props) {
|
|
|
735
735
|
} // retornar el icono
|
|
736
736
|
|
|
737
737
|
|
|
738
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.
|
|
738
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.Tooltip, {
|
|
739
739
|
componentTooltip: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
740
740
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
741
741
|
className: "label-title",
|
|
@@ -751,7 +751,7 @@ function Footer(props) {
|
|
|
751
751
|
addArrow: false,
|
|
752
752
|
transitionType: "zoom",
|
|
753
753
|
followCursor: false,
|
|
754
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomIcon.
|
|
754
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomIcon.CustomIcon, {
|
|
755
755
|
className: "icon-errorUpdate",
|
|
756
756
|
size: 15,
|
|
757
757
|
icon: _freeSolidSvgIcons.faExclamationTriangle,
|
|
@@ -777,7 +777,7 @@ function Footer(props) {
|
|
|
777
777
|
})
|
|
778
778
|
}) : filesJsxPreview.length === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
779
779
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.ContainerMain, {
|
|
780
|
-
children: [getErrorUpdate(), /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputText.
|
|
780
|
+
children: [getErrorUpdate(), /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputText.InputText, {
|
|
781
781
|
className: "input-itemMessage",
|
|
782
782
|
type: "gray",
|
|
783
783
|
transparent: true,
|
|
@@ -816,7 +816,7 @@ function Footer(props) {
|
|
|
816
816
|
};
|
|
817
817
|
}(),
|
|
818
818
|
refInputText: refInputTextMessage
|
|
819
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonFileChooser.
|
|
819
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonFileChooser.ButtonFileChooser, {
|
|
820
820
|
className: "btn-chooserFiles",
|
|
821
821
|
type: "gray",
|
|
822
822
|
transparent: true,
|
|
@@ -825,7 +825,7 @@ function Footer(props) {
|
|
|
825
825
|
showIcon: true,
|
|
826
826
|
multipleFiles: true,
|
|
827
827
|
onChangeFiles: onChangeFiles
|
|
828
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.
|
|
828
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.ButtonV2, {
|
|
829
829
|
className: "btn-sendMessage",
|
|
830
830
|
type: "pink",
|
|
831
831
|
size: 10,
|
|
@@ -908,7 +908,7 @@ function Footer(props) {
|
|
|
908
908
|
timeout: 500,
|
|
909
909
|
container: containerRef.current,
|
|
910
910
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
911
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonFileChooser.
|
|
911
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonFileChooser.ButtonFileChooser, {
|
|
912
912
|
className: "btn-chooserFiles",
|
|
913
913
|
type: "gray",
|
|
914
914
|
size: 17,
|
|
@@ -926,7 +926,7 @@ function Footer(props) {
|
|
|
926
926
|
container: containerRef.current,
|
|
927
927
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
928
928
|
className: "slide-btnSendFiles",
|
|
929
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.
|
|
929
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonV.ButtonV2, {
|
|
930
930
|
className: "btn-sendFiles",
|
|
931
931
|
type: "pink",
|
|
932
932
|
label: "Enviar archivos",
|
|
@@ -961,7 +961,7 @@ function Footer(props) {
|
|
|
961
961
|
})
|
|
962
962
|
})
|
|
963
963
|
})
|
|
964
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Modal.
|
|
964
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Modal.Modal, {
|
|
965
965
|
className: "container-modalAlert",
|
|
966
966
|
show: modalAlert.show,
|
|
967
967
|
title: modalAlert.title,
|
|
@@ -980,4 +980,6 @@ function Footer(props) {
|
|
|
980
980
|
}
|
|
981
981
|
})]
|
|
982
982
|
});
|
|
983
|
-
}
|
|
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;
|