@appcorp/app-corp-vista 0.2.53 → 0.2.55
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.
|
@@ -6,8 +6,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.VistaContactV3 = void 0;
|
|
7
7
|
var react_1 = __importDefault(require("react"));
|
|
8
8
|
var outline_1 = require("@heroicons/react/24/outline");
|
|
9
|
+
var vista_button_v1_1 = require("../vista-button-v1/vista-button-v1");
|
|
10
|
+
var vista_button_type_1 = require("../../type/vista-button-type");
|
|
11
|
+
var vista_text_input_v1_1 = require("../vista-text-input-v1");
|
|
12
|
+
var vista_text_area_v1_1 = require("../vista-text-area-v1");
|
|
9
13
|
var VistaContactV3 = function (_a) {
|
|
10
|
-
var address = _a.address, description = _a.description, email = _a.email, phone = _a.phone, title = _a.title;
|
|
14
|
+
var address = _a.address, description = _a.description, email = _a.email, emailId = _a.emailId, emailLabel = _a.emailLabel, emailPlaceholder = _a.emailPlaceholder, emailValue = _a.emailValue, firstNameId = _a.firstNameId, firstNameLabel = _a.firstNameLabel, firstNamePlaceholder = _a.firstNamePlaceholder, firstNameValue = _a.firstNameValue, handleOnChange = _a.handleOnChange, handleOnClick = _a.handleOnClick, lastNameId = _a.lastNameId, lastNameLabel = _a.lastNameLabel, lastNamePlaceholder = _a.lastNamePlaceholder, lastNameValue = _a.lastNameValue, messageId = _a.messageId, messageLabel = _a.messageLabel, messagePlaceholder = _a.messagePlaceholder, messageValue = _a.messageValue, phone = _a.phone, phoneId = _a.phoneId, phoneLabel = _a.phoneLabel, phonePlaceholder = _a.phonePlaceholder, phoneValue = _a.phoneValue, _b = _a.sendLabel, sendLabel = _b === void 0 ? 'Send' : _b, title = _a.title;
|
|
11
15
|
return (react_1.default.createElement("div", { className: "relative isolate bg-white" },
|
|
12
16
|
react_1.default.createElement("div", { className: "mx-auto grid max-w-7xl grid-cols-1 lg:grid-cols-2" },
|
|
13
17
|
react_1.default.createElement("div", { className: "relative px-6 pt-24 pb-20 sm:pt-32 lg:static lg:px-8 lg:py-48" },
|
|
@@ -44,27 +48,15 @@ var VistaContactV3 = function (_a) {
|
|
|
44
48
|
react_1.default.createElement("form", { action: "#", method: "POST", className: "px-6 pt-20 pb-24 sm:pb-32 lg:px-8 lg:py-48" },
|
|
45
49
|
react_1.default.createElement("div", { className: "mx-auto max-w-xl lg:mr-0 lg:max-w-lg" },
|
|
46
50
|
react_1.default.createElement("div", { className: "grid grid-cols-1 gap-x-8 gap-y-6 sm:grid-cols-2" },
|
|
47
|
-
react_1.default.createElement(
|
|
48
|
-
|
|
49
|
-
react_1.default.createElement("div", { className: "mt-2.5" },
|
|
50
|
-
react_1.default.createElement("input", { id: "first-name", name: "first-name", type: "text", autoComplete: "given-name", className: "block w-full rounded-md bg-white px-3.5 py-2 text-base text-gray-900 outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline-2 focus:-outline-offset-2 focus:outline-primary" }))),
|
|
51
|
-
react_1.default.createElement("div", null,
|
|
52
|
-
react_1.default.createElement("label", { htmlFor: "last-name", className: "block text-sm/6 font-semibold text-primary" }, "Last name"),
|
|
53
|
-
react_1.default.createElement("div", { className: "mt-2.5" },
|
|
54
|
-
react_1.default.createElement("input", { id: "last-name", name: "last-name", type: "text", autoComplete: "family-name", className: "block w-full rounded-md bg-white px-3.5 py-2 text-base text-gray-900 outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline-2 focus:-outline-offset-2 focus:outline-primary" }))),
|
|
51
|
+
react_1.default.createElement(vista_text_input_v1_1.VistaTextInputV1, { handleOnChange: handleOnChange, id: firstNameId, label: firstNameLabel, placeholder: firstNamePlaceholder, required: true, type: 'text', value: firstNameValue }),
|
|
52
|
+
react_1.default.createElement(vista_text_input_v1_1.VistaTextInputV1, { handleOnChange: handleOnChange, id: lastNameId, label: lastNameLabel, placeholder: lastNamePlaceholder, required: true, type: 'text', value: lastNameValue }),
|
|
55
53
|
react_1.default.createElement("div", { className: "sm:col-span-2" },
|
|
56
|
-
react_1.default.createElement(
|
|
57
|
-
react_1.default.createElement("div", { className: "mt-2.5" },
|
|
58
|
-
react_1.default.createElement("input", { id: "email", name: "email", type: "email", autoComplete: "email", className: "block w-full rounded-md bg-white px-3.5 py-2 text-base text-gray-900 outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline-2 focus:-outline-offset-2 focus:outline-primary" }))),
|
|
54
|
+
react_1.default.createElement(vista_text_input_v1_1.VistaTextInputV1, { handleOnChange: handleOnChange, id: emailId, label: emailLabel, placeholder: emailPlaceholder, required: true, type: 'email', value: emailValue })),
|
|
59
55
|
react_1.default.createElement("div", { className: "sm:col-span-2" },
|
|
60
|
-
react_1.default.createElement(
|
|
61
|
-
react_1.default.createElement("div", { className: "mt-2.5" },
|
|
62
|
-
react_1.default.createElement("input", { id: "phone-number", name: "phone-number", type: "tel", autoComplete: "tel", className: "block w-full rounded-md bg-white px-3.5 py-2 text-base text-gray-900 outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline-2 focus:-outline-offset-2 focus:outline-primary" }))),
|
|
56
|
+
react_1.default.createElement(vista_text_input_v1_1.VistaTextInputV1, { handleOnChange: handleOnChange, id: phoneId, label: phoneLabel, placeholder: phonePlaceholder, required: true, type: 'tel', value: phoneValue })),
|
|
63
57
|
react_1.default.createElement("div", { className: "sm:col-span-2" },
|
|
64
|
-
react_1.default.createElement(
|
|
65
|
-
react_1.default.createElement("div", { className: "mt-2.5" },
|
|
66
|
-
react_1.default.createElement("textarea", { id: "message", name: "message", rows: 4, className: "block w-full rounded-md bg-white px-3.5 py-2 text-base text-gray-900 outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline-2 focus:-outline-offset-2 focus:outline-primary", defaultValue: '' })))),
|
|
58
|
+
react_1.default.createElement(vista_text_area_v1_1.VistaTextAreaV1, { handleOnChange: handleOnChange, id: messageId, label: messageLabel, placeholder: messagePlaceholder, required: true, value: messageValue }))),
|
|
67
59
|
react_1.default.createElement("div", { className: "mt-8 flex justify-end" },
|
|
68
|
-
react_1.default.createElement(
|
|
60
|
+
react_1.default.createElement(vista_button_v1_1.VistaButtonV1, { disabled: !firstNameValue || !lastNameValue || !emailValue || !phoneValue || !messageValue, handleOnClick: handleOnClick, label: sendLabel, size: vista_button_type_1.VISTA_BUTTON_SIZE.XL, variant: vista_button_type_1.VISTA_BUTTON_VARIANT.PRIMARY })))))));
|
|
69
61
|
};
|
|
70
62
|
exports.VistaContactV3 = VistaContactV3;
|
package/package.json
CHANGED
|
@@ -8,7 +8,30 @@ export interface VistaContactV3Props {
|
|
|
8
8
|
address?: string[];
|
|
9
9
|
description: string;
|
|
10
10
|
email?: string;
|
|
11
|
+
emailId: string;
|
|
12
|
+
emailLabel: string;
|
|
13
|
+
emailPlaceholder: string;
|
|
14
|
+
emailValue: string;
|
|
15
|
+
firstNameId: string;
|
|
16
|
+
firstNameLabel: string;
|
|
17
|
+
firstNamePlaceholder: string;
|
|
18
|
+
firstNameValue: string;
|
|
19
|
+
handleOnChange: (k: string, v: string) => void;
|
|
20
|
+
handleOnClick: () => void;
|
|
21
|
+
lastNameId: string;
|
|
22
|
+
lastNameLabel: string;
|
|
23
|
+
lastNamePlaceholder: string;
|
|
24
|
+
lastNameValue: string;
|
|
25
|
+
messageId: string;
|
|
26
|
+
messageLabel: string;
|
|
27
|
+
messagePlaceholder: string;
|
|
28
|
+
messageValue: string;
|
|
11
29
|
phone?: string;
|
|
30
|
+
phoneId: string;
|
|
31
|
+
phoneLabel: string;
|
|
32
|
+
phonePlaceholder: string;
|
|
33
|
+
phoneValue: string;
|
|
34
|
+
sendLabel?: string;
|
|
12
35
|
title: string;
|
|
13
36
|
}
|
|
14
37
|
export interface VistaContactV4Props {
|