@voplus/morpho-csp 1.2.92 → 1.2.93
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/es/modules/corporate/clda/components/CLDASendForm/index.js +5 -9
- package/es/modules/corporate/clda/components/CLDASendForm/index.js.map +1 -1
- package/es/modules/corporate/clda/components/CLDASendForm/index.less +17 -7
- package/es/modules/self-registration/components/StripeForm/index.d.ts +0 -1
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Form } from "@voplus/antd";
|
|
2
2
|
import React, { useState } from "react";
|
|
3
3
|
import { useIncorporationCLDA, useIncorporationCLDAStore, } from "../../../../../data/incorporation-clda";
|
|
4
|
+
import SideForm from "@voplus/morpho-ui/es/controls/SideForm";
|
|
4
5
|
import ProseMirror from "@voplus/morpho-text/es/controls/ProseMirror";
|
|
5
6
|
import { State } from "./state";
|
|
6
7
|
import { observe, useAutorunEffect } from "@voplus/morpho-ui";
|
|
@@ -12,16 +13,11 @@ const CLDASendForm = (props) => {
|
|
|
12
13
|
useAutorunEffect(() => { var _a, _b; return (state.text = (_b = (_a = clda.clientTexts) === null || _a === void 0 ? void 0 : _a.emailContent) !== null && _b !== void 0 ? _b : ""); });
|
|
13
14
|
return observe(() => {
|
|
14
15
|
var _a;
|
|
15
|
-
return (React.createElement(
|
|
16
|
-
React.createElement(
|
|
17
|
-
React.createElement(Form, { layout: "vertical" },
|
|
16
|
+
return (React.createElement(SideForm, { title: "CLDA Send Form", okText: "Send", onCancel: onCancel, onSubmit: onSend },
|
|
17
|
+
React.createElement(Form, { layout: "vertical", className: styles["clda-send-form"] },
|
|
18
18
|
React.createElement(Form.Item, { label: "Email Content" },
|
|
19
19
|
React.createElement(ProseMirror, { toolbarProps: { sticky: false }, scroll: true, defaultHtml: (_a = clda === null || clda === void 0 ? void 0 : clda.clientTexts) === null || _a === void 0 ? void 0 : _a.emailContent, className: "proseMirror", onChange: (opt) => (state.text =
|
|
20
|
-
opt.editor.dom.innerHTML === "<p><br></p>" ? "" : opt.editor.dom.innerHTML) }))
|
|
21
|
-
React.createElement(Row, { justify: "end" },
|
|
22
|
-
React.createElement(Space, null,
|
|
23
|
-
React.createElement(Button, { onClick: onCancel }, "Cancel"),
|
|
24
|
-
React.createElement(Button, { type: "primary", onClick: onSend }, "Send"))))));
|
|
20
|
+
opt.editor.dom.innerHTML === "<p><br></p>" ? "" : opt.editor.dom.innerHTML) })))));
|
|
25
21
|
});
|
|
26
22
|
function onCancel() {
|
|
27
23
|
if (props.onCancel)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/components/CLDASendForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/components/CLDASendForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EACN,oBAAoB,EACpB,yBAAyB,GACzB,MAAM,wCAAwC,CAAC;AAChD,OAAO,QAAQ,MAAM,wCAAwC,CAAC;AAC9D,OAAO,WAAW,MAAM,6CAA6C,CAAC;AACtE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,YAAY,GAAG,CAAC,KAA4C,EAAE,EAAE;IACrE,MAAM,IAAI,GAAG,oBAAoB,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,EAAE,CAAC,CAAC;IACxF,MAAM,KAAK,GAAG,yBAAyB,EAAE,CAAC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AI,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QAC9E,IAAI,KAAK,CAAC,QAAQ;YAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;IACtC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,14 +1,24 @@
|
|
|
1
1
|
.clda-send-form {
|
|
2
|
-
|
|
2
|
+
height: 98%;
|
|
3
3
|
:global {
|
|
4
|
-
.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
.ant-form-item {
|
|
5
|
+
height: 100%;
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
flex-flow: column;
|
|
9
|
+
}
|
|
10
|
+
.ant-form-item-control {
|
|
11
|
+
height: 100%;
|
|
12
|
+
.ant-form-item-control-input {
|
|
13
|
+
height: 100%;
|
|
14
|
+
align-items: flex-start;
|
|
15
|
+
.ant-form-item-control-input-content {
|
|
16
|
+
height: 95%;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
9
19
|
}
|
|
10
20
|
.proseMirror {
|
|
11
|
-
|
|
21
|
+
// height: 60vh !important;
|
|
12
22
|
background: #fff;
|
|
13
23
|
.editor-toolbar .toolbar-button {
|
|
14
24
|
display: inline-block;
|