@sharadox/sharadox-web-library 0.53.1 → 0.53.2-bot-fields.94
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/CHANGELOG.md +4 -0
- package/distribution/component/contact/form/index.d.ts.map +1 -1
- package/distribution/component/contact/form/index.js +2 -9
- package/distribution/component/contact/form/index.js.map +1 -1
- package/distribution/component/contact/form/index.module.css +1 -1
- package/distribution/component/contact/form/index.module.scss +0 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
What changed in each version of `@sharadox/sharadox-web-library`, newest first.
|
|
4
4
|
|
|
5
|
+
## 0.53.2
|
|
6
|
+
|
|
7
|
+
The contact form's spam fields are form-web-library's `BotFields` instead of its own honeypot and fill-time field (same names, same hidden placement).
|
|
8
|
+
|
|
5
9
|
## 0.53.1
|
|
6
10
|
|
|
7
11
|
The tokens forward style-web-library's `style-helper` instead of defining $ease, below, tint, on-scroll and skip-entrance themselves; the compiled CSS is byte-identical. A site using these tokens needs `@sharadox/next-js-configuration-web-library` 0.3.0+ and `@sharadox/style-web-library` 0.3.0+ installed.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/contact/form/index.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/contact/form/index.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAMxG;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,qBAAqB,+BAqLhF"}
|
|
@@ -14,6 +14,7 @@ import { contactProblems } from "@sharadox/sharadox-web-library/utility/contact-
|
|
|
14
14
|
import styles from "./index.module.css";
|
|
15
15
|
import { newTab } from "@sharadox/web-library/navigation/new-tab";
|
|
16
16
|
import { PhoneField } from "@sharadox/form-web-library/phone-field";
|
|
17
|
+
import { BotFields } from "@sharadox/form-web-library/bot-field";
|
|
17
18
|
import { useChoiceRequests } from "@sharadox/form-web-library/choice-request";
|
|
18
19
|
/**
|
|
19
20
|
* The enquiry form: name, company, email and phone (one of them is enough), the choices grouped like the services, and
|
|
@@ -23,10 +24,6 @@ import { useChoiceRequests } from "@sharadox/form-web-library/choice-request";
|
|
|
23
24
|
*/
|
|
24
25
|
export function ContactForm({ locale, action: sendAction }) {
|
|
25
26
|
const [state, action, pending] = useActionState(sendAction, { status: "idle" });
|
|
26
|
-
// When the visitor started filling the form; bots submit faster than humans can.
|
|
27
|
-
// When the form appeared. It goes into the hidden field as the form is sent: React puts a hidden field back to its
|
|
28
|
-
// default whenever the form renders again, which silently turned the fill-time check off.
|
|
29
|
-
const startedAt = useRef(0);
|
|
30
27
|
const needs = useRef(null);
|
|
31
28
|
// Buttons elsewhere (the service cards) ask for choices: tick them and make them glow for a moment.
|
|
32
29
|
useChoiceRequests(CONTACT_NEED_EVENT, (requested) => {
|
|
@@ -41,9 +38,6 @@ export function ContactForm({ locale, action: sendAction }) {
|
|
|
41
38
|
chip.setAttribute("data-requested", "");
|
|
42
39
|
}
|
|
43
40
|
});
|
|
44
|
-
useEffect(() => {
|
|
45
|
-
startedAt.current = Date.now();
|
|
46
|
-
}, []);
|
|
47
41
|
const spotlight = useSpotlight();
|
|
48
42
|
// What the visitor still has to fill in; shown once they try to send, then updated as they type.
|
|
49
43
|
const [problems, setProblems] = useState(null);
|
|
@@ -79,7 +73,6 @@ export function ContactForm({ locale, action: sendAction }) {
|
|
|
79
73
|
setRefusals((count) => count + 1);
|
|
80
74
|
return;
|
|
81
75
|
}
|
|
82
|
-
form.elements.namedItem("started-at").value = String(startedAt.current);
|
|
83
76
|
// The page it was sent from, for the email (shown only when it's on the site's own domain).
|
|
84
77
|
form.elements.namedItem("page").value = location.href;
|
|
85
78
|
}, onChange: (event) => {
|
|
@@ -88,6 +81,6 @@ export function ContactForm({ locale, action: sendAction }) {
|
|
|
88
81
|
// Read once this change is on screen: the phone's own field fills its hidden input as it renders.
|
|
89
82
|
const form = event.currentTarget;
|
|
90
83
|
setTimeout(() => setProblems(contactProblems(new FormData(form))));
|
|
91
|
-
}, className: styles.form, exit: { opacity: 0, scale: 0.98 }, children: [_jsx("input", { type: "hidden", name: "
|
|
84
|
+
}, className: styles.form, exit: { opacity: 0, scale: 0.98 }, children: [_jsx("input", { type: "hidden", name: "page", defaultValue: "" }), _jsx("input", { type: "hidden", name: "locale", value: locale }), _jsx(BotFields, {}), _jsxs("div", { className: styles.about, children: [_jsxs("div", { className: styles.row, children: [_jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.name, locale) }), _jsx("input", { name: "name", required: true, autoComplete: "name", maxLength: 120, ...described("name") }), problem("name")] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.company, locale) }), _jsx("input", { name: "company", autoComplete: "organization", maxLength: 160 })] })] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.email, locale) }), _jsx("input", { name: "email", type: "email", autoComplete: "email", maxLength: 200, ...described("reach", "email") }), problem("email")] }), _jsxs("div", { className: styles.field, children: [_jsx("label", { htmlFor: "contact-phone", children: _jsx("span", { children: translate(CONTACT.phone, locale) }) }), _jsx(PhoneField, { name: "phone", locale: locale, defaultCountry: "PT", labels: { country: translate(CONTACT.country, locale), search: translate(CONTACT.search, locale) }, className: styles.phone, inputProps: { id: "contact-phone", ...described("reach", "phone") } }), problem("phone")] }), has("reach") ? problem("reach") : _jsx("span", { className: styles.hint, children: translate(CONTACT.reach, locale) })] }), _jsxs("fieldset", { ref: needs, className: styles.services, "data-invalid": has("needs") || undefined, "aria-describedby": has("needs") ? "contact-needs-problem" : undefined, children: [_jsx("legend", { children: translate(CONTACT.needs.label, locale) }), CONTACT.needs.groups.map((group) => (_jsxs("div", { className: styles.group, role: "group", "aria-label": translate(group.title, locale), children: [_jsx("span", { className: "monospace", children: translate(group.title, locale) }), group.options.map((need) => (_jsx(Chip, { need: need.key, label: need[locale] }, need.key)))] }, group.key))), _jsxs("div", { className: styles.group, role: "group", "aria-label": translate(CONTACT.needs.unsure.title, locale), children: [_jsx("span", { className: "monospace", children: translate(CONTACT.needs.unsure.title, locale) }), CONTACT.needs.unsure.options.map((need) => (_jsx(Chip, { need: need.key, label: need[locale] }, need.key)))] }), problem("needs")] }), _jsxs("label", { className: `${styles.field} ${styles.message}`, children: [_jsx("span", { children: translate(CONTACT.message, locale) }), _jsx("textarea", { name: "message", required: true, rows: 5, minLength: CONTACT.minimumMessageLength, maxLength: 5000, ...described("message") }), problem("message")] }), _jsxs("div", { className: styles.submit, children: [state.status !== "idle" && (_jsx("p", { className: styles.error, role: "alert", children: state.status === "failed" ? (_jsxs(_Fragment, { children: [translate(CONTACT.errors.failed, locale), " ", _jsx("a", { href: `mailto:${SITE.email}`, ...newTab(`mailto:${SITE.email}`), children: SITE.email }), "."] })) : (translate(CONTACT.errors[state.status], locale)) })), _jsx(Button, { size: "block", disabled: pending, arrow: !pending, children: pending ? translate(CONTACT.sending, locale) : translate(CONTACT.send, locale) })] })] }, "form")) }));
|
|
92
85
|
}
|
|
93
86
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/contact/form/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEpE,OAAO,EAAE,MAAM,EAAE,MAAM,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O,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,GACxE,IACL,KArHF,MAAM,CAsHE,CACf,GACe,CACnB,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.form{justify-content:stretch;align-items:stretch;--pointer-x: -500px;--pointer-y: -500px;position:relative;display:grid;gap:14px;padding:clamp(22px,3vw,34px);border-radius:18px;background:var(--card);border:1px solid var(--line);isolation:isolate}.form::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:radial-gradient(500px circle at var(--pointer-x) var(--pointer-y), color-mix(in srgb, var(--foreground) 5%, transparent), transparent 60%)}@media(min-width: 1000px){.form:not(.done){grid-template-columns:1fr 1fr;grid-template-rows:auto 1fr auto;gap:18px clamp(32px,4vw,56px)}.services{align-content:start;grid-column:2;grid-row:1/-1}.message{grid-template-rows:auto 1fr}.message textarea{height:100%;min-height:140px}}.about,.submit{justify-content:stretch;display:grid;gap:14px}.row{display:grid;grid-template-columns:1fr 1fr;gap:14px}@media(max-width: 860px){.row{grid-template-columns:1fr}}.field{justify-content:stretch;display:grid;align-content:start;gap:7px}.field>span,.field>label>span{font-size:13px;color:var(--foreground-2)}.field input,.field textarea{width:100%;font:inherit;font-size:15px;color:var(--foreground);background:var(--background);border:1px solid var(--line-2);border-radius:12px;padding:13px 14px;transition:border-color .25s,box-shadow .25s;resize:vertical}.field input:focus,.field textarea:focus{outline:none;border-color:color-mix(in srgb, var(--foreground) 50%, transparent);box-shadow:0 0 0 4px color-mix(in srgb, var(--foreground) 6%, transparent)}.phone{--phone-field-line: var(--line-2);--phone-field-accent: var(--foreground);--phone-field-surface: var(--background);--phone-field-popover: var(--background);--phone-field-radius: 12px;font-size:15px}.phone>button{min-height:48px;color:var(--foreground)}.phone [role=listbox]{font-size:14px;color:var(--foreground-2)}.field .phone input[type=search]{padding:9px 12px;border-radius:9px;font-size:14px}.services{display:grid;gap:12px;margin:4px 0 2px;padding:0;border:0}.services legend{float:left;padding:0;width:100%;margin-bottom:9px;font-size:13px;color:var(--foreground-2)}.
|
|
1
|
+
.form{justify-content:stretch;align-items:stretch;--pointer-x: -500px;--pointer-y: -500px;position:relative;display:grid;gap:14px;padding:clamp(22px,3vw,34px);border-radius:18px;background:var(--card);border:1px solid var(--line);isolation:isolate}.form::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:radial-gradient(500px circle at var(--pointer-x) var(--pointer-y), color-mix(in srgb, var(--foreground) 5%, transparent), transparent 60%)}@media(min-width: 1000px){.form:not(.done){grid-template-columns:1fr 1fr;grid-template-rows:auto 1fr auto;gap:18px clamp(32px,4vw,56px)}.services{align-content:start;grid-column:2;grid-row:1/-1}.message{grid-template-rows:auto 1fr}.message textarea{height:100%;min-height:140px}}.about,.submit{justify-content:stretch;display:grid;gap:14px}.row{display:grid;grid-template-columns:1fr 1fr;gap:14px}@media(max-width: 860px){.row{grid-template-columns:1fr}}.field{justify-content:stretch;display:grid;align-content:start;gap:7px}.field>span,.field>label>span{font-size:13px;color:var(--foreground-2)}.field input,.field textarea{width:100%;font:inherit;font-size:15px;color:var(--foreground);background:var(--background);border:1px solid var(--line-2);border-radius:12px;padding:13px 14px;transition:border-color .25s,box-shadow .25s;resize:vertical}.field input:focus,.field textarea:focus{outline:none;border-color:color-mix(in srgb, var(--foreground) 50%, transparent);box-shadow:0 0 0 4px color-mix(in srgb, var(--foreground) 6%, transparent)}.phone{--phone-field-line: var(--line-2);--phone-field-accent: var(--foreground);--phone-field-surface: var(--background);--phone-field-popover: var(--background);--phone-field-radius: 12px;font-size:15px}.phone>button{min-height:48px;color:var(--foreground)}.phone [role=listbox]{font-size:14px;color:var(--foreground-2)}.field .phone input[type=search]{padding:9px 12px;border-radius:9px;font-size:14px}.services{display:grid;gap:12px;margin:4px 0 2px;padding:0;border:0}.services legend{float:left;padding:0;width:100%;margin-bottom:9px;font-size:13px;color:var(--foreground-2)}.error{font-size:14px;color:var(--error)}.error a{text-decoration:underline}.done{min-height:380px;place-items:center;text-align:center;align-content:center;gap:18px}.done p{max-width:30ch;color:var(--foreground-2)}.check{width:56px;height:56px;fill:none;stroke:var(--foreground);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.check path{stroke-dasharray:40;stroke-dashoffset:40;animation:draw .8s .2s var(--ease) forwards}@keyframes draw{to{stroke-dashoffset:0}}.group{justify-content:flex-start;display:flex;flex-wrap:wrap;align-items:center;gap:8px}.group>span{flex-basis:100%;font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:var(--foreground-3)}.problem{font-size:13px;color:var(--error) !important}.hint{margin-top:-6px;font-size:13px;color:var(--foreground-3)}.field input[aria-invalid],.field textarea[aria-invalid]{border-color:var(--error)}.services[data-invalid] .group label>span{border-color:color-mix(in srgb, var(--error) 55%, transparent)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sharadox/sharadox-web-library",
|
|
3
|
-
"version": "0.53.
|
|
3
|
+
"version": "0.53.2-bot-fields.94",
|
|
4
4
|
"description": "Sharadox's own website building blocks: content, components, brand and actions for sharadox-web-application, plus the preview notice and agency credit used on client demos.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "SEE LICENSE IN LICENCA.md",
|