@sharadox/sharadox-web-library 0.4.0 → 0.6.0

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.
Files changed (95) hide show
  1. package/distribution/action/send-contact/index.d.ts.map +1 -1
  2. package/distribution/action/send-contact/index.js +4 -5
  3. package/distribution/action/send-contact/index.js.map +1 -1
  4. package/distribution/component/capability/index.d.ts.map +1 -1
  5. package/distribution/component/capability/index.js +2 -1
  6. package/distribution/component/capability/index.js.map +1 -1
  7. package/distribution/component/capability/index.module.css +14 -3
  8. package/distribution/component/consent/index.d.ts +7 -0
  9. package/distribution/component/consent/index.d.ts.map +1 -0
  10. package/distribution/component/consent/index.js +40 -0
  11. package/distribution/component/consent/index.js.map +1 -0
  12. package/distribution/component/consent/index.module.css +182 -0
  13. package/distribution/component/consent/preferences-link/index.d.ts +4 -0
  14. package/distribution/component/consent/preferences-link/index.d.ts.map +1 -0
  15. package/distribution/component/consent/preferences-link/index.js +8 -0
  16. package/distribution/component/consent/preferences-link/index.js.map +1 -0
  17. package/distribution/component/consent/preferences-link/type.d.ts +4 -0
  18. package/distribution/component/consent/preferences-link/type.d.ts.map +1 -0
  19. package/distribution/component/consent/preferences-link/type.js +2 -0
  20. package/distribution/component/consent/preferences-link/type.js.map +1 -0
  21. package/distribution/component/consent/toggle/index.d.ts +4 -0
  22. package/distribution/component/consent/toggle/index.d.ts.map +1 -0
  23. package/distribution/component/consent/toggle/index.js +7 -0
  24. package/distribution/component/consent/toggle/index.js.map +1 -0
  25. package/distribution/component/consent/toggle/type.d.ts +10 -0
  26. package/distribution/component/consent/toggle/type.d.ts.map +1 -0
  27. package/distribution/component/consent/toggle/type.js +2 -0
  28. package/distribution/component/consent/toggle/type.js.map +1 -0
  29. package/distribution/component/consent/type.d.ts +5 -0
  30. package/distribution/component/consent/type.d.ts.map +1 -0
  31. package/distribution/component/consent/type.js +2 -0
  32. package/distribution/component/consent/type.js.map +1 -0
  33. package/distribution/component/contact/form/index.d.ts.map +1 -1
  34. package/distribution/component/contact/form/index.js +1 -2
  35. package/distribution/component/contact/form/index.js.map +1 -1
  36. package/distribution/component/cursor/index.js +1 -1
  37. package/distribution/component/cursor/index.js.map +1 -1
  38. package/distribution/component/cursor/index.module.css +2 -1
  39. package/distribution/component/footer/index.d.ts.map +1 -1
  40. package/distribution/component/footer/index.js +3 -1
  41. package/distribution/component/footer/index.js.map +1 -1
  42. package/distribution/component/footer/index.module.css +12 -2
  43. package/distribution/component/hero/index.js +1 -1
  44. package/distribution/component/hero/index.js.map +1 -1
  45. package/distribution/component/hero/index.module.css +4 -1
  46. package/distribution/component/marquee/index.d.ts +2 -2
  47. package/distribution/component/marquee/index.d.ts.map +1 -1
  48. package/distribution/component/marquee/index.js +6 -3
  49. package/distribution/component/marquee/index.js.map +1 -1
  50. package/distribution/component/marquee/index.module.css +15 -16
  51. package/distribution/component/section-indicator/index.d.ts +8 -0
  52. package/distribution/component/section-indicator/index.d.ts.map +1 -0
  53. package/distribution/component/section-indicator/index.js +20 -0
  54. package/distribution/component/section-indicator/index.js.map +1 -0
  55. package/distribution/component/section-indicator/index.module.css +145 -0
  56. package/distribution/component/section-indicator/type.d.ts +5 -0
  57. package/distribution/component/section-indicator/type.d.ts.map +1 -0
  58. package/distribution/component/section-indicator/type.js +2 -0
  59. package/distribution/component/section-indicator/type.js.map +1 -0
  60. package/distribution/component/service-index/index.module.css +1 -1
  61. package/distribution/component/style-switch/index.d.ts +2 -2
  62. package/distribution/component/style-switch/index.d.ts.map +1 -1
  63. package/distribution/component/style-switch/index.js +20 -10
  64. package/distribution/component/style-switch/index.js.map +1 -1
  65. package/distribution/component/style-switch/index.module.css +2 -11
  66. package/distribution/component/touchpoint/index.module.css +0 -1
  67. package/distribution/content/consent/index.d.ts +92 -0
  68. package/distribution/content/consent/index.d.ts.map +1 -0
  69. package/distribution/content/consent/index.js +46 -0
  70. package/distribution/content/consent/index.js.map +1 -0
  71. package/distribution/content/contact/index.d.ts +39 -5
  72. package/distribution/content/contact/index.d.ts.map +1 -1
  73. package/distribution/content/contact/index.js +14 -2
  74. package/distribution/content/contact/index.js.map +1 -1
  75. package/distribution/content/hero/index.d.ts +4 -4
  76. package/distribution/content/hero/index.js +2 -2
  77. package/distribution/content/navigation/index.d.ts +2 -2
  78. package/distribution/content/navigation/index.js +1 -1
  79. package/distribution/content/section-indicator/index.d.ts +33 -0
  80. package/distribution/content/section-indicator/index.d.ts.map +1 -0
  81. package/distribution/content/section-indicator/index.js +13 -0
  82. package/distribution/content/section-indicator/index.js.map +1 -0
  83. package/distribution/content/services/index.d.ts +4 -4
  84. package/distribution/content/services/index.js +4 -4
  85. package/distribution/content/services/index.js.map +1 -1
  86. package/distribution/content/style/index.d.ts +3 -1
  87. package/distribution/content/style/index.d.ts.map +1 -1
  88. package/distribution/content/style/index.js +3 -1
  89. package/distribution/content/style/index.js.map +1 -1
  90. package/distribution/utility/parse-contact/index.d.ts.map +1 -1
  91. package/distribution/utility/parse-contact/index.js +4 -4
  92. package/distribution/utility/parse-contact/index.js.map +1 -1
  93. package/distribution/utility/parse-contact/type.d.ts +3 -3
  94. package/distribution/utility/parse-contact/type.d.ts.map +1 -1
  95. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/action/send-contact/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yDAAyD,CAAC;AAI5F;;;;;GAKG;AACH,wBAAsB,WAAW,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAoCnF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/action/send-contact/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yDAAyD,CAAC;AAI5F;;;;;GAKG;AACH,wBAAsB,WAAW,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAoCnF"}
@@ -1,7 +1,6 @@
1
1
  import { separate } from "@sharadox/sharadox-web-library/utility/separate";
2
2
  import { createEmailSender, EmailError, readEmailServerConfiguration } from "@sharadox/email-web-library";
3
3
  import { CONTACT } from "@sharadox/sharadox-web-library/content/contact";
4
- import { SERVICES } from "@sharadox/sharadox-web-library/content/services";
5
4
  import { SITE } from "@sharadox/sharadox-web-library/content/site";
6
5
  import { escapeHtml } from "@sharadox/web-library/html/escape";
7
6
  import { parseContact } from "@sharadox/sharadox-web-library/utility/parse-contact";
@@ -20,16 +19,16 @@ export async function sendContact(form, ip) {
20
19
  return { status: "sent" };
21
20
  if (parsed.kind === "invalid")
22
21
  return { status: "invalid" };
23
- const { name, email, company, message, locale, services } = parsed.value;
22
+ const { name, email, company, message, locale, needs } = parsed.value;
24
23
  if (!allow(ip))
25
24
  return { status: "rate-limited" };
26
25
  const subject = separate(CONTACT.subject, company ? `${name} (${company})` : name);
27
- const needs = SERVICES.items.filter((service) => services.includes(service.key)).map((service) => service.title.en);
28
- const text = `Name: ${name}\nEmail: ${email}\nCompany: ${company || "—"}\nServices: ${needs.join(", ") || "—"}\nLanguage: ${locale}\nIP: ${ip}\n\n${message}`;
26
+ const needed = CONTACT.needs.options.filter((need) => needs.includes(need.key)).map((need) => need.en);
27
+ const text = `Name: ${name}\nEmail: ${email}\nCompany: ${company || "—"}\nNeeds: ${needed.join(", ") || "—"}\nLanguage: ${locale}\nIP: ${ip}\n\n${message}`;
29
28
  const html = `<div style="font-family:-apple-system,Segoe UI,sans-serif;font-size:15px;line-height:1.6;color:#111">
30
29
  <p style="color:#666;font-size:13px;margin:0 0 16px">New enquiry from sharadox.com (${escapeHtml(locale)})</p>
31
30
  <p style="margin:0">${separate(`<b>${escapeHtml(name)}</b>`, company && escapeHtml(company))}<br><a href="mailto:${escapeHtml(email)}">${escapeHtml(email)}</a></p>
32
- ${needs.length ? `<p style="margin:12px 0 0;color:#444">${escapeHtml(separate(...needs))}</p>` : ""}
31
+ ${needed.length ? `<p style="margin:12px 0 0;color:#444">${escapeHtml(separate(...needed))}</p>` : ""}
33
32
  <hr style="border:0;border-top:1px solid #eee;margin:18px 0">
34
33
  <p style="white-space:pre-wrap;margin:0">${escapeHtml(message)}</p></div>`;
35
34
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/action/send-contact/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AAC1G,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,6CAA6C,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,sDAAsD,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAG1E,MAAM,KAAK,GAAG,iBAAiB,CAAC,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;AAExE;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,IAAc,EAAE,EAAU;IAC1D,MAAM,MAAM,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IAClC,+CAA+C;IAC/C,IAAI,MAAM,CAAC,IAAI,KAAK,KAAK;QAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IACrD,IAAI,MAAM,CAAC,IAAI,KAAK,SAAS;QAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;IAC5D,MAAM,EAAE,IAAI,EAAE,KAAK,EAA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OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,KAAK,CAAC,CAAC;QAChD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;IAC9B,CAAC;AACH,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/capability/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAErG,0FAA0F;AAC1F,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE,oBAAoB,+BA2B1D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/capability/index.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAErG,0FAA0F;AAC1F,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE,oBAAoB,+BA4B1D"}
@@ -8,6 +8,7 @@ import { SERVICES } from "@sharadox/sharadox-web-library/content/services";
8
8
  import styles from "./index.module.css";
9
9
  /** "Capabilities": every deliverable of every discipline, as columns of a ruled sheet. */
10
10
  export function Capability({ locale }) {
11
- return (_jsxs(Section, { id: "capabilities", padded: false, children: [_jsx("div", { className: styles.heading, children: _jsx(SectionHeading, { eyebrow: translate(CAPABILITY.eyebrow, locale), title: translate(CAPABILITY.title, locale) }) }), _jsx("div", { className: styles.sheet, children: SERVICES.items.map((service, column) => (_jsxs("div", { className: styles.column, children: [_jsxs("a", { href: `#${service.key}`, className: styles.title, children: [_jsx("span", { className: "monospace", children: service.number }), translate(service.title, locale)] }), _jsx("ul", { children: service.capabilities[locale].map((capability, row) => (_jsx("li", { children: _jsx(Reveal, { delay: column * 0.05 + row * 0.04, y: 8, blur: 0, margin: "-5% 0px", children: capability }) }, capability))) })] }, service.key))) })] }));
11
+ const rows = 1 + Math.max(...SERVICES.items.map((service) => service.capabilities[locale].length));
12
+ return (_jsxs(Section, { id: "capabilities", padded: false, children: [_jsx("div", { className: styles.heading, children: _jsx(SectionHeading, { eyebrow: translate(CAPABILITY.eyebrow, locale), title: translate(CAPABILITY.title, locale) }) }), _jsx("div", { className: styles.sheet, style: { "--rows": rows }, children: SERVICES.items.map((service, column) => (_jsxs("div", { className: styles.column, children: [_jsxs("a", { href: `#${service.key}`, className: styles.title, children: [_jsx("span", { className: "monospace", children: service.number }), translate(service.title, locale)] }), _jsx("ul", { role: "list", children: service.capabilities[locale].map((capability, row) => (_jsx("li", { children: _jsx(Reveal, { delay: column * 0.05 + row * 0.04, y: 8, blur: 0, margin: "-5% 0px", children: capability }) }, capability))) })] }, service.key))) })] }));
12
13
  }
13
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/capability/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAC1F,OAAO,EAAE,UAAU,EAAE,MAAM,mDAAmD,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,0FAA0F;AAC1F,MAAM,UAAU,UAAU,CAAC,EAAE,MAAM,EAAwB;IACzD,OAAO,CACL,MAAC,OAAO,IAAC,EAAE,EAAC,cAAc,EAAC,MAAM,EAAE,KAAK,aACtC,cAAK,SAAS,EAAE,MAAM,CAAC,OAAO,YAC5B,KAAC,cAAc,IAAC,OAAO,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,UAAU,CAAC,KAAK,EAAE,MAAM,CAAC,GAAI,GAC1G,EACN,cAA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AAU,GACJ,IAHF,UAAU,CAId,CACN,CAAC,GACC,KAbG,OAAO,CAAC,GAAG,CAcf,CACP,CAAC,GACE,IACE,CACX,CAAC;AACJ,CAAC"}
@@ -5,6 +5,8 @@
5
5
  .sheet {
6
6
  display: grid;
7
7
  grid-template-columns: repeat(5, 1fr);
8
+ /* Each column spans the title row plus one row per capability, shared by all columns, so lines line up. */
9
+ grid-auto-rows: auto;
8
10
  border-top: 1px solid var(--line);
9
11
  }
10
12
  @media (max-width: 960px) {
@@ -20,6 +22,15 @@
20
22
 
21
23
  .column {
22
24
  position: relative;
25
+ display: grid;
26
+ grid-row: span var(--rows);
27
+ grid-template-rows: subgrid;
28
+ }
29
+ @media (max-width: 600px) {
30
+ .column {
31
+ grid-row: auto;
32
+ grid-template-rows: none;
33
+ }
23
34
  }
24
35
  .column:not(:last-child)::after {
25
36
  content: "";
@@ -31,12 +42,12 @@
31
42
  background: linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 8px repeat-y;
32
43
  }
33
44
  .column ul {
34
- margin: 0;
35
- padding: 0;
36
- list-style: none;
45
+ display: contents;
37
46
  }
38
47
  .column li {
39
48
  position: relative;
49
+ display: flex;
50
+ align-items: center;
40
51
  padding: 13px 20px;
41
52
  font-size: 14.5px;
42
53
  color: var(--foreground-2);
@@ -0,0 +1,7 @@
1
+ import type { ConsentProperties } from "@sharadox/sharadox-web-library/component/consent/type";
2
+ /**
3
+ * The cookie panel. It shows while there is no stored answer: Accept All and manual choices are kept for good;
4
+ * Deny lasts only for this visit, so the visitor is asked again next time. "Cookie Preferences" reopens it.
5
+ */
6
+ export declare function Consent({ locale }: ConsentProperties): import("react").JSX.Element;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/consent/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAI/F;;;GAGG;AACH,wBAAgB,OAAO,CAAC,EAAE,MAAM,EAAE,EAAE,iBAAiB,+BA0GpD"}
@@ -0,0 +1,40 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { AnimatePresence, motion } from "motion/react";
4
+ import { useEffect, useState } from "react";
5
+ import { translate } from "@sharadox/web-library/internationalization/translate";
6
+ import { CONSENT_OPEN_EVENT, requiredOnly } from "@sharadox/web-library/privacy/consent";
7
+ import { useConsent } from "@sharadox/web-library/privacy/use-consent";
8
+ import { Cross } from "@sharadox/sharadox-web-library/component/cross";
9
+ import { Toggle } from "@sharadox/sharadox-web-library/component/consent/toggle";
10
+ import { CONSENT, CONSENT_CONFIGURATION } from "@sharadox/sharadox-web-library/content/consent";
11
+ import styles from "./index.module.css";
12
+ const EASE = [0.22, 1, 0.36, 1];
13
+ /**
14
+ * The cookie panel. It shows while there is no stored answer: Accept All and manual choices are kept for good;
15
+ * Deny lasts only for this visit, so the visitor is asked again next time. "Cookie Preferences" reopens it.
16
+ */
17
+ export function Consent({ locale }) {
18
+ const { status, acceptAll, deny, save } = useConsent(CONSENT_CONFIGURATION);
19
+ const [reopened, setReopened] = useState(false);
20
+ const [manual, setManual] = useState(false);
21
+ const [granted, setGranted] = useState(() => requiredOnly(CONSENT_CONFIGURATION));
22
+ useEffect(() => {
23
+ const open = () => {
24
+ const current = status?.kind === "decided" ? status.record.granted : requiredOnly(CONSENT_CONFIGURATION);
25
+ setGranted({ ...current });
26
+ setManual(true);
27
+ setReopened(true);
28
+ };
29
+ addEventListener(CONSENT_OPEN_EVENT, open);
30
+ return () => removeEventListener(CONSENT_OPEN_EVENT, open);
31
+ }, [status]);
32
+ const visible = reopened || status?.kind === "unknown";
33
+ const close = (action) => () => {
34
+ action();
35
+ setReopened(false);
36
+ setManual(false);
37
+ };
38
+ return (_jsx(AnimatePresence, { children: visible && (_jsxs(motion.section, { className: styles.consent, role: "dialog", "aria-labelledby": "consent-title", initial: { opacity: 0, y: 30, filter: "blur(8px)" }, animate: { opacity: 1, y: 0, filter: "blur(0px)" }, exit: { opacity: 0, y: 20, filter: "blur(6px)" }, transition: { duration: 0.7, delay: reopened ? 0 : 0.8, ease: EASE }, children: [_jsx(Cross, { corner: "top-left" }), _jsx(Cross, { corner: "top-right" }), _jsxs("div", { className: styles.header, children: [_jsxs("span", { className: styles.cookie, "aria-hidden": true, children: [_jsx("i", {}), _jsx("i", {}), _jsx("i", {})] }), _jsx("h2", { id: "consent-title", children: translate(CONSENT.title, locale) })] }), _jsx(AnimatePresence, { mode: "wait", initial: false, children: manual ? (_jsx(motion.div, { className: styles.categories, initial: { opacity: 0, height: 0 }, animate: { opacity: 1, height: "auto" }, exit: { opacity: 0, height: 0 }, transition: { duration: 0.45, ease: EASE }, children: CONSENT_CONFIGURATION.categories.map((category) => (_jsx(Toggle, { title: translate(CONSENT.categories[category.key].title, locale), text: translate(CONSENT.categories[category.key].text, locale), checked: "required" in category ? true : !!granted[category.key], locked: "required" in category, lockedLabel: translate(CONSENT.alwaysOn, locale), onChange: (checked) => setGranted((current) => ({ ...current, [category.key]: checked })) }, category.key))) }, "manual")) : (_jsx(motion.p, { className: styles.text, initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, children: translate(CONSENT.text, locale) }, "summary")) }), _jsxs("div", { className: styles.actions, children: [_jsx("button", { type: "button", className: styles.primary, onClick: close(acceptAll), children: translate(CONSENT.acceptAll, locale) }), manual ? (_jsx("button", { type: "button", onClick: close(() => save(granted)), children: translate(CONSENT.save, locale) })) : (_jsx("button", { type: "button", onClick: close(deny), children: translate(CONSENT.deny, locale) })), _jsx("button", { type: "button", className: styles.quiet, onClick: () => (manual && !reopened ? setManual(false) : manual ? close(() => { })() : setManual(true)), children: translate(manual ? (reopened ? CONSENT.close : CONSENT.back) : CONSENT.customize, locale) })] })] }, "consent")) }));
39
+ }
40
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index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,MAAM,CAAC,GACzB,CACV,EACD,iBACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,MAAM,CAAC,KAAK,EACvB,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,YAErG,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC,GACnF,IACL,KAzEF,SAAS,CA0EE,CAClB,GACe,CACnB,CAAC;AACJ,CAAC"}
@@ -0,0 +1,182 @@
1
+ .consent {
2
+ position: fixed;
3
+ z-index: 60;
4
+ left: max(16px, (100vw - var(--maximum-width)) / 2 + 16px);
5
+ bottom: 16px;
6
+ width: min(410px, 100vw - 32px);
7
+ padding: 20px 20px 18px;
8
+ border: 1px solid var(--line-2);
9
+ border-radius: 4px;
10
+ background: color-mix(in srgb, var(--background) 88%, transparent);
11
+ backdrop-filter: blur(18px) saturate(1.5);
12
+ box-shadow: 0 30px 80px -20px color-mix(in srgb, var(--background) 95%, transparent);
13
+ overflow: visible;
14
+ }
15
+
16
+ .header {
17
+ display: flex;
18
+ align-items: center;
19
+ gap: 10px;
20
+ }
21
+ .header h2 {
22
+ font-size: 15px;
23
+ letter-spacing: -0.02em;
24
+ }
25
+
26
+ /* A tiny animated cookie: three crumbs orbiting a ring. */
27
+ .cookie {
28
+ position: relative;
29
+ width: 18px;
30
+ height: 18px;
31
+ border-radius: 50%;
32
+ border: 1.4px solid var(--foreground);
33
+ animation: spin 8s linear infinite;
34
+ }
35
+ .cookie i {
36
+ position: absolute;
37
+ width: 3px;
38
+ height: 3px;
39
+ border-radius: 50%;
40
+ background: var(--foreground);
41
+ }
42
+ .cookie i:nth-child(1) {
43
+ left: 4px;
44
+ top: 4px;
45
+ }
46
+ .cookie i:nth-child(2) {
47
+ right: 3px;
48
+ top: 8px;
49
+ }
50
+ .cookie i:nth-child(3) {
51
+ left: 7px;
52
+ bottom: 3px;
53
+ }
54
+
55
+ @keyframes spin {
56
+ to {
57
+ transform: rotate(360deg);
58
+ }
59
+ }
60
+ .text {
61
+ margin: 12px 0 16px;
62
+ font-size: 13.5px;
63
+ line-height: 1.55;
64
+ color: var(--foreground-2);
65
+ }
66
+
67
+ .categories {
68
+ margin: 12px 0 14px;
69
+ overflow: hidden;
70
+ border-top: 1px dashed var(--line-2);
71
+ }
72
+
73
+ .category {
74
+ display: flex;
75
+ align-items: center;
76
+ gap: 12px;
77
+ padding: 11px 0;
78
+ border-bottom: 1px dashed var(--line-2);
79
+ cursor: pointer;
80
+ }
81
+
82
+ .categoryCopy {
83
+ flex: 1;
84
+ display: grid;
85
+ gap: 2px;
86
+ }
87
+ .categoryCopy b {
88
+ font-size: 13.5px;
89
+ font-weight: 600;
90
+ }
91
+ .categoryCopy span {
92
+ font-size: 12.5px;
93
+ color: var(--foreground-2);
94
+ line-height: 1.4;
95
+ }
96
+
97
+ .always {
98
+ font-size: 10px;
99
+ text-transform: uppercase;
100
+ letter-spacing: 0.05em;
101
+ color: var(--foreground-3);
102
+ }
103
+
104
+ /* An on/off switch drawn from the checkbox itself. */
105
+ .switch {
106
+ appearance: none;
107
+ flex: none;
108
+ position: relative;
109
+ width: 34px;
110
+ height: 20px;
111
+ margin: 0;
112
+ border-radius: 99px;
113
+ border: 1px solid var(--line-2);
114
+ background: color-mix(in srgb, var(--foreground) 8%, transparent);
115
+ cursor: pointer;
116
+ transition: background 0.3s, border-color 0.3s;
117
+ }
118
+ .switch::after {
119
+ content: "";
120
+ position: absolute;
121
+ top: 2px;
122
+ left: 2px;
123
+ width: 14px;
124
+ height: 14px;
125
+ border-radius: 50%;
126
+ background: var(--foreground-2);
127
+ transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s;
128
+ }
129
+ .switch:checked {
130
+ background: var(--foreground);
131
+ border-color: var(--foreground);
132
+ }
133
+ .switch:checked::after {
134
+ transform: translateX(14px);
135
+ background: var(--background);
136
+ }
137
+ .switch:disabled {
138
+ opacity: 0.55;
139
+ cursor: not-allowed;
140
+ }
141
+
142
+ .actions {
143
+ display: flex;
144
+ flex-wrap: wrap;
145
+ gap: 8px;
146
+ }
147
+ .actions button {
148
+ flex: 1;
149
+ height: 36px;
150
+ padding: 0 14px;
151
+ border-radius: 99px;
152
+ border: 1px solid var(--line-2);
153
+ background: none;
154
+ font-size: 13px;
155
+ font-weight: 500;
156
+ white-space: nowrap;
157
+ transition: background 0.25s, border-color 0.25s, color 0.25s;
158
+ }
159
+ .actions button:hover {
160
+ background: color-mix(in srgb, var(--foreground) 7%, transparent);
161
+ border-color: color-mix(in srgb, var(--foreground) 30%, transparent);
162
+ }
163
+
164
+ .primary {
165
+ background: var(--foreground) !important;
166
+ border-color: var(--foreground) !important;
167
+ color: var(--background);
168
+ }
169
+ .primary:hover {
170
+ background: color-mix(in srgb, var(--foreground) 85%, transparent) !important;
171
+ }
172
+
173
+ .quiet {
174
+ flex: 0 0 auto !important;
175
+ border-color: transparent !important;
176
+ color: var(--foreground-2);
177
+ text-decoration: underline;
178
+ text-underline-offset: 3px;
179
+ }
180
+ .quiet:hover {
181
+ color: var(--foreground);
182
+ }
@@ -0,0 +1,4 @@
1
+ import type { PreferencesLinkProperties } from "@sharadox/sharadox-web-library/component/consent/preferences-link/type";
2
+ /** Reopens the cookie panel so the visitor can change their answer. */
3
+ export declare function PreferencesLink({ label }: PreferencesLinkProperties): import("react").JSX.Element;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/consent/preferences-link/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wEAAwE,CAAC;AAExH,uEAAuE;AACvE,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,EAAE,yBAAyB,+BAMnE"}
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { openConsent } from "@sharadox/web-library/privacy/consent";
4
+ /** Reopens the cookie panel so the visitor can change their answer. */
5
+ export function PreferencesLink({ label }) {
6
+ return (_jsx("button", { type: "button", onClick: openConsent, "data-preferences-link": true, children: label }));
7
+ }
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/consent/preferences-link/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAGpE,uEAAuE;AACvE,MAAM,UAAU,eAAe,CAAC,EAAE,KAAK,EAA6B;IAClE,OAAO,CACL,iBAAQ,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,WAAW,2CACvC,KAAK,GACC,CACV,CAAC;AACJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ export interface PreferencesLinkProperties {
2
+ label: string;
3
+ }
4
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/consent/preferences-link/type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../source/component/consent/preferences-link/type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import type { ToggleProperties } from "@sharadox/sharadox-web-library/component/consent/toggle/type";
2
+ /** One cookie category with its on/off switch. */
3
+ export declare function Toggle({ title, text, checked, locked, lockedLabel, onChange }: ToggleProperties): import("react").JSX.Element;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/consent/toggle/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8DAA8D,CAAC;AAErG,kDAAkD;AAClD,wBAAgB,MAAM,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,gBAAgB,+BAkB/F"}
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import styles from "../index.module.css";
3
+ /** One cookie category with its on/off switch. */
4
+ export function Toggle({ title, text, checked, locked, lockedLabel, onChange }) {
5
+ return (_jsxs("label", { className: styles.category, children: [_jsxs("span", { className: styles.categoryCopy, children: [_jsx("b", { children: title }), _jsx("span", { children: text })] }), locked && _jsx("span", { className: `${styles.always} monospace`, children: lockedLabel }), _jsx("input", { type: "checkbox", role: "switch", checked: checked, disabled: locked, onChange: (event) => onChange(event.target.checked), className: styles.switch })] }));
6
+ }
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/consent/toggle/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAG1C,kDAAkD;AAClD,MAAM,UAAU,MAAM,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAoB;IAC9F,OAAO,CACL,iBAAO,SAAS,EAAE,MAAM,CAAC,QAAQ,aAC/B,gBAAM,SAAS,EAAE,MAAM,CAAC,YAAY,aAClC,sBAAI,KAAK,GAAK,EACd,yBAAO,IAAI,GAAQ,IACd,EACN,MAAM,IAAI,eAAM,SAAS,EAAE,GAAG,MAAM,CAAC,MAAM,YAAY,YAAG,WAAW,GAAQ,EAC9E,gBACE,IAAI,EAAC,UAAU,EACf,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,EACnD,SAAS,EAAE,MAAM,CAAC,MAAM,GACxB,IACI,CACT,CAAC;AACJ,CAAC"}
@@ -0,0 +1,10 @@
1
+ export interface ToggleProperties {
2
+ title: string;
3
+ text: string;
4
+ checked: boolean;
5
+ /** Required categories show as on and can't be switched off. */
6
+ locked?: boolean;
7
+ lockedLabel?: string;
8
+ onChange: (checked: boolean) => void;
9
+ }
10
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/consent/toggle/type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,gEAAgE;IAChE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CACtC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../source/component/consent/toggle/type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import type { Locale } from "@sharadox/sharadox-web-library/utility/locale/type";
2
+ export interface ConsentProperties {
3
+ locale: Locale;
4
+ }
5
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/consent/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../source/component/consent/type.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/contact/form/index.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAExG,sGAAsG;AACtG,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,qBAAqB,+BAqFhF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/contact/form/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAExG,sGAAsG;AACtG,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,qBAAqB,+BAqFhF"}
@@ -4,7 +4,6 @@ import { AnimatePresence, motion } from "motion/react";
4
4
  import { useActionState, useEffect, useRef } from "react";
5
5
  import { Button } from "@sharadox/sharadox-web-library/component/button";
6
6
  import { CONTACT } from "@sharadox/sharadox-web-library/content/contact";
7
- import { SERVICES } from "@sharadox/sharadox-web-library/content/services";
8
7
  import { SITE } from "@sharadox/sharadox-web-library/content/site";
9
8
  import { useSpotlight } from "@sharadox/web-library/pointer/spotlight";
10
9
  import { translate } from "@sharadox/web-library/internationalization/translate";
@@ -19,6 +18,6 @@ export function ContactForm({ locale, action: sendAction }) {
19
18
  startedAt.current.value = String(Date.now());
20
19
  }, []);
21
20
  const spotlight = useSpotlight();
22
- return (_jsx(AnimatePresence, { mode: "wait", children: state.status === "sent" ? (_jsxs(motion.div, { className: `${styles.form} ${styles.done}`, initial: { opacity: 0, scale: 0.98 }, animate: { opacity: 1, scale: 1 }, role: "status", children: [_jsxs("svg", { viewBox: "0 0 48 48", className: styles.check, "aria-hidden": true, children: [_jsx("circle", { cx: "24", cy: "24", r: "22" }), _jsx("path", { d: "M14 24.5l7 7 13-14" })] }), _jsx("p", { children: translate(CONTACT.sent, locale) })] }, "sent")) : (_jsxs(motion.form, { ref: spotlight, action: action, className: styles.form, exit: { opacity: 0, scale: 0.98 }, children: [_jsx("input", { ref: startedAt, type: "hidden", name: "started-at", defaultValue: "0" }), _jsx("input", { type: "hidden", name: "locale", value: locale }), _jsx("div", { className: styles.honeypot, "aria-hidden": true, children: _jsxs("label", { children: ["Website", _jsx("input", { name: "website", tabIndex: -1, autoComplete: "off" })] }) }), _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 })] }), _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", required: true, autoComplete: "email", maxLength: 200 })] }), _jsxs("fieldset", { className: styles.services, children: [_jsx("legend", { children: translate(CONTACT.services, locale) }), SERVICES.items.map((service) => (_jsxs("label", { className: styles.chip, children: [_jsx("input", { type: "checkbox", name: "service", value: service.key }), _jsx("span", { children: translate(service.title, locale) })] }, service.key)))] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.message, locale) }), _jsx("textarea", { name: "message", required: true, rows: 5, maxLength: 5000 })] }), 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}`, 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")) }));
21
+ return (_jsx(AnimatePresence, { mode: "wait", children: state.status === "sent" ? (_jsxs(motion.div, { className: `${styles.form} ${styles.done}`, initial: { opacity: 0, scale: 0.98 }, animate: { opacity: 1, scale: 1 }, role: "status", children: [_jsxs("svg", { viewBox: "0 0 48 48", className: styles.check, "aria-hidden": true, children: [_jsx("circle", { cx: "24", cy: "24", r: "22" }), _jsx("path", { d: "M14 24.5l7 7 13-14" })] }), _jsx("p", { children: translate(CONTACT.sent, locale) })] }, "sent")) : (_jsxs(motion.form, { ref: spotlight, action: action, className: styles.form, exit: { opacity: 0, scale: 0.98 }, children: [_jsx("input", { ref: startedAt, type: "hidden", name: "started-at", defaultValue: "0" }), _jsx("input", { type: "hidden", name: "locale", value: locale }), _jsx("div", { className: styles.honeypot, "aria-hidden": true, children: _jsxs("label", { children: ["Website", _jsx("input", { name: "website", tabIndex: -1, autoComplete: "off" })] }) }), _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 })] }), _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", required: true, autoComplete: "email", maxLength: 200 })] }), _jsxs("fieldset", { className: styles.services, children: [_jsx("legend", { children: translate(CONTACT.needs.label, locale) }), CONTACT.needs.options.map((need) => (_jsxs("label", { className: styles.chip, children: [_jsx("input", { type: "checkbox", name: "need", value: need.key }), _jsx("span", { children: need[locale] })] }, need.key)))] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.message, locale) }), _jsx("textarea", { name: "message", required: true, rows: 5, maxLength: 5000 })] }), 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}`, 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")) }));
23
22
  }
24
23
  //# 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,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE1D,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,6CAA6C,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,sGAAsG;AACtG,MAAM,UAAU,WAAW,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAyB;IAC/E,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,GAAG,cAAc,CAAyB,UAAU,EAAE,EAAE,MAA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,MAAM,CAAC,KAAK,EAAE,IAAI,EAAC,OAAO,YACrC,KAAK,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,CAC3B,8BACG,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,OAAE,YAAG,IAAI,EAAE,UAAU,IAAI,CAAC,KAAK,EAAE,YAAG,IAAI,CAAC,KAAK,GAAK,SAC3F,CACJ,CAAC,CAAC,CAAC,CACF,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAChD,GACC,CACL,EACD,KAAC,MAAM,IAAC,IAAI,EAAC,OAAO,EAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,OAAO,YACpD,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,GACxE,KAtDL,MAAM,CAuDE,CACf,GACe,CACnB,CAAC;AACJ,CAAC"}
@@ -21,7 +21,7 @@ export function Cursor() {
21
21
  y = event.clientY;
22
22
  const target = event.target;
23
23
  ring.current?.classList.toggle(styles.hot, !!target.closest("a, button, input, textarea, label, [data-hot]"));
24
- ring.current?.classList.toggle(styles.grab, !!target.closest("canvas"));
24
+ ring.current?.classList.toggle(styles.grab, !!target.closest("canvas, [data-grab]"));
25
25
  };
26
26
  const loop = () => {
27
27
  ringX += (x - ringX) * 0.18;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/cursor/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,qGAAqG;AACrG,MAAM,UAAU,MAAM;IACpB,MAAM,GAAG,GAAG,MAAM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AAI,CAAC,CAAC;QACtC,CAAC,CAAC;QACF,gBAAgB,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;QACtC,KAAK,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAAC;QACpC,OAAO,GAAG,EAAE;YACV,mBAAmB,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;YACzC,oBAAoB,CAAC,KAAK,CAAC,CAAC;YAC5B,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QACtC,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,CACL,8BACE,cAAK,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,IAAI,wBAAgB,EACtD,cAAK,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,GAAG,wBAAgB,IACnD,CACJ,CAAC;AACJ,CAAC"}
@@ -4,7 +4,8 @@
4
4
  cursor: none;
5
5
  }
6
6
 
7
- :global(.has-cursor) canvas {
7
+ :global(.has-cursor) canvas,
8
+ :global(.has-cursor) [data-grab] {
8
9
  cursor: none !important;
9
10
  }
10
11
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/footer/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AAI7F,mHAAmH;AACnH,wBAAgB,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,gBAAgB,+BAiDlD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/footer/index.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AAI7F,mHAAmH;AACnH,wBAAgB,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,gBAAgB,+BAkDlD"}
@@ -1,6 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { separate } from "@sharadox/sharadox-web-library/utility/separate";
3
3
  import { translate } from "@sharadox/web-library/internationalization/translate";
4
+ import { PreferencesLink } from "@sharadox/sharadox-web-library/component/consent/preferences-link";
5
+ import { CONSENT } from "@sharadox/sharadox-web-library/content/consent";
4
6
  import { Cross } from "@sharadox/sharadox-web-library/component/cross";
5
7
  import { LocaleLink } from "@sharadox/sharadox-web-library/component/locale-link";
6
8
  import { StyleSwitch } from "@sharadox/sharadox-web-library/component/style-switch";
@@ -15,6 +17,6 @@ import styles from "./index.module.css";
15
17
  const LANGUAGE_NAMES = { en: "English", pt: "Português" };
16
18
  /** Columns of links in the grid, the style and language switches, the big gradient wordmark and the legal line. */
17
19
  export function Footer({ locale }) {
18
- return (_jsxs("footer", { className: styles.footer, children: [_jsx(Cross, { corner: "top-left" }), _jsx(Cross, { corner: "top-right" }), _jsxs("div", { className: styles.columns, children: [_jsxs("div", { className: styles.brand, children: [_jsx(Wordmark, { href: `/${locale}` }), _jsxs("p", { className: styles.slogan, children: [translate(SITE.slogan, locale), "."] }), _jsx("a", { href: `mailto:${SITE.email}`, className: styles.email, children: SITE.email })] }), _jsxs("nav", { "aria-label": translate(FOOTER.services, locale), children: [_jsx("h2", { className: "monospace", children: translate(FOOTER.services, locale) }), SERVICES.items.map((service) => (_jsx("a", { href: `#${service.key}`, children: translate(service.title, locale) }, service.key)))] }), _jsxs("nav", { "aria-label": translate(FOOTER.studio, locale), children: [_jsx("h2", { className: "monospace", children: translate(FOOTER.studio, locale) }), _jsx("a", { href: "#capabilities", children: translate(NAVIGATION.capabilities, locale) }), _jsx("a", { href: "#process", children: translate(NAVIGATION.process, locale) }), _jsx("a", { href: "#contact", children: translate(NAVIGATION.contact, locale) }), _jsxs("a", { href: "#top", children: [translate(FOOTER.top, locale), " \u2191"] })] }), _jsxs("div", { className: styles.settings, children: [_jsx("h2", { className: "monospace", children: translate(FOOTER.language, locale) }), _jsx("span", { className: styles.languages, children: LOCALES.map((other) => (_jsx(LocaleLink, { locale: other, current: other === locale, children: LANGUAGE_NAMES[other] }, other))) }), _jsx("h2", { className: "monospace", children: translate(STYLE.label, locale) }), _jsx(StyleSwitch, { locale: locale, className: styles.style })] })] }), _jsx("div", { className: styles.mark, "aria-hidden": true, children: "Sharadox" }), _jsx("p", { className: `${styles.legal} monospace`, children: separate(`© ${new Date().getFullYear()} Sharadox`, translate(FOOTER.rights, locale)) })] }));
20
+ return (_jsxs("footer", { className: styles.footer, children: [_jsx(Cross, { corner: "top-left" }), _jsx(Cross, { corner: "top-right" }), _jsxs("div", { className: styles.columns, children: [_jsxs("div", { className: styles.brand, children: [_jsx(Wordmark, { href: `/${locale}` }), _jsxs("p", { className: styles.slogan, children: [translate(SITE.slogan, locale), "."] }), _jsx("a", { href: `mailto:${SITE.email}`, className: styles.email, children: SITE.email })] }), _jsxs("nav", { "aria-label": translate(FOOTER.services, locale), children: [_jsx("h2", { className: "monospace", children: translate(FOOTER.services, locale) }), SERVICES.items.map((service) => (_jsx("a", { href: `#${service.key}`, children: translate(service.title, locale) }, service.key)))] }), _jsxs("nav", { "aria-label": translate(FOOTER.studio, locale), children: [_jsx("h2", { className: "monospace", children: translate(FOOTER.studio, locale) }), _jsx("a", { href: "#capabilities", children: translate(NAVIGATION.capabilities, locale) }), _jsx("a", { href: "#process", children: translate(NAVIGATION.process, locale) }), _jsx("a", { href: "#contact", children: translate(NAVIGATION.contact, locale) }), _jsx(PreferencesLink, { label: translate(CONSENT.preferences, locale) }), _jsxs("a", { href: "#top", children: [translate(FOOTER.top, locale), " \u2191"] })] }), _jsxs("div", { className: styles.settings, children: [_jsx("h2", { className: "monospace", children: translate(FOOTER.language, locale) }), _jsx("span", { className: styles.languages, children: LOCALES.map((other) => (_jsx(LocaleLink, { locale: other, current: other === locale, children: LANGUAGE_NAMES[other] }, other))) }), _jsx("h2", { className: "monospace", children: translate(STYLE.label, locale) }), _jsx(StyleSwitch, { locale: locale, className: styles.style })] })] }), _jsx("div", { className: styles.mark, "aria-hidden": true, children: "Sharadox" }), _jsx("p", { className: `${styles.legal} monospace`, children: separate(`© ${new Date().getFullYear()} Sharadox`, translate(FOOTER.rights, locale)) })] }));
19
21
  }
20
22
  //# sourceMappingURL=index.js.map