@appcorp/app-corp-vista 0.3.39 → 0.3.41
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.
|
@@ -20,7 +20,7 @@ var VistaModalV1 = function (_a) {
|
|
|
20
20
|
var _b = _a.cancelDisabled, cancelDisabled = _b === void 0 ? false : _b, cancelLabel = _a.cancelLabel, cancelPrefixIcon = _a.cancelPrefixIcon, _c = _a.cancelRounded, cancelRounded = _c === void 0 ? vista_button_type_1.VISTA_BUTTON_ROUNDED.MD : _c, _d = _a.cancelSize, cancelSize = _d === void 0 ? vista_button_type_1.VISTA_BUTTON_SIZE.MD : _d, cancelSuffixIcon = _a.cancelSuffixIcon, children = _a.children, _e = _a.enableActions, enableActions = _e === void 0 ? true : _e, handleCancelOnClick = _a.handleCancelOnClick, handleSaveOnClick = _a.handleSaveOnClick, handleSetIsOpen = _a.handleSetIsOpen, isOpen = _a.isOpen, mainIcon = _a.mainIcon, _f = _a.saveDisabled, saveDisabled = _f === void 0 ? false : _f, saveLabel = _a.saveLabel, savePrefixIcon = _a.savePrefixIcon, _g = _a.saveRounded, saveRounded = _g === void 0 ? vista_button_type_1.VISTA_BUTTON_ROUNDED.MD : _g, _h = _a.saveSize, saveSize = _h === void 0 ? vista_button_type_1.VISTA_BUTTON_SIZE.MD : _h, saveSuffixIcon = _a.saveSuffixIcon, _j = _a.size, size = _j === void 0 ? vista_modal_type_1.VISTA_MODAL_SIZE.MD : _j, title = _a.title;
|
|
21
21
|
return (react_1.default.createElement(react_2.Dialog, { open: isOpen, onClose: handleSetIsOpen, className: "relative z-10" },
|
|
22
22
|
react_1.default.createElement(react_2.DialogBackdrop, { transition: true, className: "fixed inset-0 bg-gray-500/75 transition-opacity data-[closed]:opacity-0 data-[enter]:duration-300 data-[leave]:duration-200 data-[enter]:ease-out data-[leave]:ease-in" }),
|
|
23
|
-
react_1.default.createElement("div", { className: "fixed inset-0 z-
|
|
23
|
+
react_1.default.createElement("div", { className: "fixed inset-0 z-20 w-screen overflow-y-auto" },
|
|
24
24
|
react_1.default.createElement("div", { className: "flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0" },
|
|
25
25
|
react_1.default.createElement(react_2.DialogPanel, { transition: true, className: "relative grid grid-rows-12 transform overflow-hidden rounded-lg bg-white p-4 text-left shadow-xl transition-all data-[closed]:translate-y-4 data-[closed]:opacity-0 data-[enter]:duration-300 data-[leave]:duration-200 data-[enter]:ease-out data-[leave]:ease-in sm:my-8 sm:w-full sm:max-w-sm sm:p-4 data-[closed]:sm:translate-y-0 data-[closed]:sm:scale-95 ".concat(vistaModalSizeMap[size]) },
|
|
26
26
|
react_1.default.createElement("div", { className: "h-full overflow-y-auto shadow-lg p-4 rounded-md ".concat(enableActions ? 'row-span-11' : 'row-span-12') },
|
|
@@ -14,7 +14,7 @@ var vista_banner_v1_1 = require("../../atoms/vista-banner-v1/vista-banner-v1");
|
|
|
14
14
|
var vista_chat_messages_v2_1 = require("./vista-chat-messages-v2");
|
|
15
15
|
var vista_chat_side_bar_v2_1 = require("../../molecules/vista-chat-side-bar-v2/vista-chat-side-bar-v2");
|
|
16
16
|
var VistaChatV2 = function (_a) {
|
|
17
|
-
var actionItems = _a.actionItems, bannerDescription = _a.bannerDescription, bannerHeading = _a.bannerHeading, buttonDenominations = _a.buttonDenominations, chatId = _a.chatId, _b = _a.chatIsLoading, chatIsLoading = _b === void 0 ? false : _b, chatValue = _a.chatValue, _c = _a.containerClassName, containerClassName = _c === void 0 ? '' : _c, _d = _a.estimatedBalance, estimatedBalance = _d === void 0 ? '' : _d, handleChatOnChange = _a.handleChatOnChange, handleLoadMore = _a.handleLoadMore, handleOnBlur = _a.handleOnBlur, handleOnFocus = _a.handleOnFocus, handlePayment = _a.handlePayment, isBalanceLow = _a.isBalanceLow, messages = _a.messages, name = _a.name, paymentLoading = _a.paymentLoading, psychic = _a.psychic, _e = _a.showBanner, showBanner = _e === void 0 ? false : _e, _f = _a.showControls, showControls = _f === void 0 ? true : _f, showLoadMore = _a.showLoadMore, sideBarHeading = _a.sideBarHeading, sideBarNode = _a.sideBarNode, timer = _a.timer,
|
|
17
|
+
var actionItems = _a.actionItems, bannerDescription = _a.bannerDescription, bannerHeading = _a.bannerHeading, buttonDenominations = _a.buttonDenominations, chatId = _a.chatId, _b = _a.chatIsLoading, chatIsLoading = _b === void 0 ? false : _b, chatValue = _a.chatValue, _c = _a.containerClassName, containerClassName = _c === void 0 ? '' : _c, _d = _a.estimatedBalance, estimatedBalance = _d === void 0 ? '' : _d, handleChatOnChange = _a.handleChatOnChange, handleLoadMore = _a.handleLoadMore, handleOnBlur = _a.handleOnBlur, handleOnFocus = _a.handleOnFocus, handlePayment = _a.handlePayment, isBalanceLow = _a.isBalanceLow, messages = _a.messages, name = _a.name, paymentLoading = _a.paymentLoading, psychic = _a.psychic, _e = _a.showBanner, showBanner = _e === void 0 ? false : _e, _f = _a.showControls, showControls = _f === void 0 ? true : _f, showLoadMore = _a.showLoadMore, sideBarHeading = _a.sideBarHeading, sideBarNode = _a.sideBarNode, timer = _a.timer, _g = _a.typing, typing = _g === void 0 ? '' : _g, user = _a.user;
|
|
18
18
|
var handleOnKeyDown = function (e) {
|
|
19
19
|
if (e.key === 'Enter') {
|
|
20
20
|
actionItems[0].handleOnClick();
|
|
@@ -35,7 +35,8 @@ var VistaChatV2 = function (_a) {
|
|
|
35
35
|
var loading = _a.loading, value = _a.value;
|
|
36
36
|
return (react_1.default.createElement(vista_button_v1_1.VistaButtonV1, { className: "min-w-[120px] disabled:cursor-not-allowed", disabled: paymentLoading === loading, handleOnClick: function () { return handlePayment(loading, value); }, key: value, label: "Top up $".concat(value), loading: paymentLoading === loading, size: vista_button_type_1.VISTA_BUTTON_SIZE.LG }));
|
|
37
37
|
})))),
|
|
38
|
-
react_1.default.createElement("div", { className: "pl-4
|
|
38
|
+
react_1.default.createElement("div", { className: "pl-4 min-h-5" },
|
|
39
|
+
react_1.default.createElement("p", { className: "text-xs italic pb-1 text-primary" }, typing || '')),
|
|
39
40
|
showControls && (react_1.default.createElement("div", { className: "flex flex-row items-center gap-4 border-t border-gray-200 p-4" },
|
|
40
41
|
react_1.default.createElement("div", { className: "w-full" },
|
|
41
42
|
react_1.default.createElement(vista_text_input_v1_1.VistaTextInputV1, { handleOnBlur: handleOnBlur, handleOnChange: handleChatOnChange, handleOnFocus: handleOnFocus, handleOnKeyDown: handleOnKeyDown, id: chatId, placeholder: "Message ".concat(name, "..."), value: chatValue })),
|