@sharadox/sharadox-web-library 0.1.0 → 0.2.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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/action/send-contact/index.ts"],"names":[],"mappings":"AAKA,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,CAiCnF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/action/send-contact/index.ts"],"names":[],"mappings":"AAMA,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,CAiCnF"}
@@ -1,3 +1,4 @@
1
+ import { separate } from "@sharadox/sharadox-web-library/utility/separate";
1
2
  import { createEmailSender, EmailError, readEmailServerConfiguration } from "@sharadox/email-web-library";
2
3
  import { SITE } from "@sharadox/sharadox-web-library/content/site";
3
4
  import { escapeHtml } from "@sharadox/web-library/html/escape";
@@ -20,11 +21,11 @@ export async function sendContact(form, ip) {
20
21
  const { name, email, company, message, locale } = parsed.value;
21
22
  if (!allow(ip))
22
23
  return { status: "rate-limited" };
23
- const subject = `New project enquiry — ${name}${company ? ` (${company})` : ""}`;
24
+ const subject = separate("New project enquiry", company ? `${name} (${company})` : name);
24
25
  const text = `Name: ${name}\nEmail: ${email}\nCompany: ${company || "—"}\nLanguage: ${locale}\nIP: ${ip}\n\n${message}`;
25
26
  const html = `<div style="font-family:-apple-system,Segoe UI,sans-serif;font-size:15px;line-height:1.6;color:#111">
26
27
  <p style="color:#666;font-size:13px;margin:0 0 16px">New enquiry from sharadox.com (${escapeHtml(locale)})</p>
27
- <p style="margin:0"><b>${escapeHtml(name)}</b>${company ? ` · ${escapeHtml(company)}` : ""}<br><a href="mailto:${escapeHtml(email)}">${escapeHtml(email)}</a></p>
28
+ <p style="margin:0">${separate(`<b>${escapeHtml(name)}</b>`, company && escapeHtml(company))}<br><a href="mailto:${escapeHtml(email)}">${escapeHtml(email)}</a></p>
28
29
  <hr style="border:0;border-top:1px solid #eee;margin:18px 0">
29
30
  <p style="white-space:pre-wrap;margin:0">${escapeHtml(message)}</p></div>`;
30
31
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/action/send-contact/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AAC1G,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,EAAE,OAAO,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AAI;SACL,CAAC,CAAC;QACH,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAC5B,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,iBAAiB;YAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;QAClG,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/footer/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AAE7F,mEAAmE;AACnE,wBAAgB,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,gBAAgB,+BA8BlD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/footer/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AAE7F,mEAAmE;AACnE,wBAAgB,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,gBAAgB,+BA8BlD"}
@@ -1,4 +1,5 @@
1
1
  import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
+ import { separate } from "@sharadox/sharadox-web-library/utility/separate";
2
3
  import Link from "next/link";
3
4
  import { FOOTER } from "@sharadox/sharadox-web-library/content/footer";
4
5
  import { SITE } from "@sharadox/sharadox-web-library/content/site";
@@ -7,6 +8,6 @@ import { translate } from "@sharadox/web-library/internationalization/translate"
7
8
  import styles from "./index.module.css";
8
9
  /** Slogan, links, the big gradient wordmark and the legal line. */
9
10
  export function Footer({ locale }) {
10
- return (_jsxs("footer", { className: styles.footer, children: [_jsxs("div", { className: styles.top, children: [_jsxs("p", { className: styles.slogan, children: [translate(SITE.slogan, locale), "."] }), _jsxs("div", { className: styles.links, children: [_jsx("a", { href: `mailto:${SITE.email}`, children: SITE.email }), _jsx("span", { className: styles.languages, children: LOCALES.map((other) => (_jsx(Link, { href: `/${other}`, hrefLang: other, "aria-current": other === locale ? "true" : undefined, children: other === "en" ? "English" : "Português" }, other))) }), _jsxs("a", { href: "#top", children: [translate(FOOTER.top, locale), " \u2191"] })] })] }), _jsx("div", { className: styles.mark, "aria-hidden": true, children: "Sharadox" }), _jsxs("p", { className: `${styles.legal} monospace`, children: ["\u00A9 ", new Date().getFullYear(), " Sharadox \u00B7 ", translate(FOOTER.rights, locale)] })] }));
11
+ return (_jsxs("footer", { className: styles.footer, children: [_jsxs("div", { className: styles.top, children: [_jsxs("p", { className: styles.slogan, children: [translate(SITE.slogan, locale), "."] }), _jsxs("div", { className: styles.links, children: [_jsx("a", { href: `mailto:${SITE.email}`, children: SITE.email }), _jsx("span", { className: styles.languages, children: LOCALES.map((other) => (_jsx(Link, { href: `/${other}`, hrefLang: other, "aria-current": other === locale ? "true" : undefined, children: other === "en" ? "English" : "Português" }, other))) }), _jsxs("a", { href: "#top", children: [translate(FOOTER.top, locale), " \u2191"] })] })] }), _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)) })] }));
11
12
  }
12
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/footer/index.tsx"],"names":[],"mappings":";AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AACvE,OAAO,EAAE,IAAI,EAAE,MAAM,6CAA6C,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,+CAA+C,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,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,MAAM,CAAC,KAAK,YAAY,YACtC,QAAQ,CAAC,KAAK,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,WAAW,EAAE,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GACnF,IACG,CACV,CAAC;AACJ,CAAC"}
@@ -1,8 +1,8 @@
1
1
  /** Hero copy. The title is split into lines so the last one can be styled on its own. */
2
2
  export declare const HERO: {
3
3
  readonly eyebrow: {
4
- readonly en: "Algarve, Portugal — working worldwide";
5
- readonly pt: "Algarve, Portugal — para o mundo inteiro";
4
+ readonly en: string;
5
+ readonly pt: string;
6
6
  };
7
7
  readonly lines: {
8
8
  readonly en: readonly ["Technologies", "that simplify", "the world."];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/hero/index.ts"],"names":[],"mappings":"AAAA,yFAAyF;AACzF,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;CAaP,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/hero/index.ts"],"names":[],"mappings":"AAEA,yFAAyF;AACzF,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;CAgBP,CAAC"}
@@ -1,6 +1,10 @@
1
+ import { separate } from "@sharadox/sharadox-web-library/utility/separate";
1
2
  /** Hero copy. The title is split into lines so the last one can be styled on its own. */
2
3
  export const HERO = {
3
- eyebrow: { en: "Algarve, Portugal — working worldwide", pt: "Algarve, Portugal — para o mundo inteiro" },
4
+ eyebrow: {
5
+ en: separate("Algarve, Portugal", "working worldwide"),
6
+ pt: separate("Algarve, Portugal", "para o mundo inteiro"),
7
+ },
4
8
  lines: {
5
9
  en: ["Technologies", "that simplify", "the world."],
6
10
  pt: ["Tecnologias", "que simplificam", "o mundo."],
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/content/hero/index.ts"],"names":[],"mappings":"AAAA,yFAAyF;AACz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AE,EAAE,EAAE,mBAAmB,EAAE;IAC3D,IAAI,EAAE,EAAE,EAAE,EAAE,iBAAiB,EAAE,EAAE,EAAE,uBAAuB,EAAE;CACpD,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * The Sharadox text separator, used wherever two labels sit side by side (page titles, the footer, tags, details,
3
+ * email subjects). Change it here and every Sharadox text follows.
4
+ */
5
+ export declare const SEPARATOR = "\u00B7";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/separator/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,SAAS,WAAM,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * The Sharadox text separator, used wherever two labels sit side by side (page titles, the footer, tags, details,
3
+ * email subjects). Change it here and every Sharadox text follows.
4
+ */
5
+ export const SEPARATOR = "·";
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/content/separator/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAC"}
@@ -10,7 +10,7 @@ export declare const SERVICES: {
10
10
  };
11
11
  readonly items: readonly [{
12
12
  readonly key: "web";
13
- readonly tag: "01 — Web";
13
+ readonly tag: string;
14
14
  readonly title: {
15
15
  readonly en: "Websites";
16
16
  readonly pt: "Websites";
@@ -25,7 +25,7 @@ export declare const SERVICES: {
25
25
  };
26
26
  }, {
27
27
  readonly key: "platform";
28
- readonly tag: "02 — Platforms";
28
+ readonly tag: string;
29
29
  readonly title: {
30
30
  readonly en: "Platforms";
31
31
  readonly pt: "Plataformas";
@@ -40,7 +40,7 @@ export declare const SERVICES: {
40
40
  };
41
41
  }, {
42
42
  readonly key: "applications";
43
- readonly tag: "03 — Apps";
43
+ readonly tag: string;
44
44
  readonly title: {
45
45
  readonly en: "Apps";
46
46
  readonly pt: "Aplicações";
@@ -55,8 +55,8 @@ export declare const SERVICES: {
55
55
  };
56
56
  }];
57
57
  readonly notifications: {
58
- readonly en: readonly [readonly ["New booking", "Table for 4 · 8:00 PM"], readonly ["Payment received", "€84.50 · Visa"], readonly ["Order ready", "#2041 · Pick-up"], readonly ["New customer", "Ana M. · Lisbon"]];
59
- readonly pt: readonly [readonly ["Nova reserva", "Mesa para 4 · 20:00"], readonly ["Pagamento recebido", "€84,50 · Visa"], readonly ["Encomenda pronta", "#2041 · Recolha"], readonly ["Novo cliente", "Ana M. · Lisboa"]];
58
+ readonly en: readonly [readonly ["New booking", string], readonly ["Payment received", string], readonly ["Order ready", string], readonly ["New customer", string]];
59
+ readonly pt: readonly [readonly ["Nova reserva", string], readonly ["Pagamento recebido", string], readonly ["Encomenda pronta", string], readonly ["Novo cliente", string]];
60
60
  };
61
61
  };
62
62
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/services/index.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDX,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/services/index.ts"],"names":[],"mappings":"AAEA,oEAAoE;AACpE,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDX,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { separate } from "@sharadox/sharadox-web-library/utility/separate";
1
2
  /** "What we build" section. `key` picks each card's live visual. */
2
3
  export const SERVICES = {
3
4
  eyebrow: { en: "What we build", pt: "O que construímos" },
@@ -5,7 +6,7 @@ export const SERVICES = {
5
6
  items: [
6
7
  {
7
8
  key: "web",
8
- tag: "01 — Web",
9
+ tag: separate("01", "Web"),
9
10
  title: { en: "Websites", pt: "Websites" },
10
11
  lead: { en: "Fast, beautiful, found.", pt: "Rápidos, bonitos, encontrados." },
11
12
  text: {
@@ -15,7 +16,7 @@ export const SERVICES = {
15
16
  },
16
17
  {
17
18
  key: "platform",
18
- tag: "02 — Platforms",
19
+ tag: separate("02", "Platforms"),
19
20
  title: { en: "Platforms", pt: "Plataformas" },
20
21
  lead: { en: "The engine behind the business.", pt: "O motor por trás do negócio." },
21
22
  text: {
@@ -25,7 +26,7 @@ export const SERVICES = {
25
26
  },
26
27
  {
27
28
  key: "applications",
28
- tag: "03 — Apps",
29
+ tag: separate("03", "Apps"),
29
30
  title: { en: "Apps", pt: "Aplicações" },
30
31
  lead: { en: "In every pocket.", pt: "Em todos os bolsos." },
31
32
  text: {
@@ -36,16 +37,16 @@ export const SERVICES = {
36
37
  ],
37
38
  notifications: {
38
39
  en: [
39
- ["New booking", "Table for 4 · 8:00 PM"],
40
- ["Payment received", "€84.50 · Visa"],
41
- ["Order ready", "#2041 · Pick-up"],
42
- ["New customer", "Ana M. · Lisbon"],
40
+ ["New booking", separate("Table for 4", "8:00 PM")],
41
+ ["Payment received", separate("€84.50", "Visa")],
42
+ ["Order ready", separate("#2041", "Pick-up")],
43
+ ["New customer", separate("Ana M.", "Lisbon")],
43
44
  ],
44
45
  pt: [
45
- ["Nova reserva", "Mesa para 4 · 20:00"],
46
- ["Pagamento recebido", "€84,50 · Visa"],
47
- ["Encomenda pronta", "#2041 · Recolha"],
48
- ["Novo cliente", "Ana M. · Lisboa"],
46
+ ["Nova reserva", separate("Mesa para 4", "20:00")],
47
+ ["Pagamento recebido", separate("€84,50", "Visa")],
48
+ ["Encomenda pronta", separate("#2041", "Recolha")],
49
+ ["Novo cliente", separate("Ana M.", "Lisboa")],
49
50
  ],
50
51
  },
51
52
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/content/services/index.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,MA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nB,GAAG,EAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;YAC3B,KAAK,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,YAAY,EAAE;YACvC,IAAI,EAAE,EAAE,EAAE,EAAE,kBAAkB,EAAE,EAAE,EAAE,qBAAqB,EAAE;YAC3D,IAAI,EAAE;gBACJ,EAAE,EAAE,+EAA+E;gBACnF,EAAE,EAAE,kFAAkF;aACvF;SACF;KACF;IACD,aAAa,EAAE;QACb,EAAE,EAAE;YACF,CAAC,aAAa,EAAE,QAAQ,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;YACnD,CAAC,kBAAkB,EAAE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;YAChD,CAAC,aAAa,EAAE,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;YAC7C,CAAC,cAAc,EAAE,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;SAC/C;QACD,EAAE,EAAE;YACF,CAAC,cAAc,EAAE,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;YAClD,CAAC,oBAAoB,EAAE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;YAClD,CAAC,kBAAkB,EAAE,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;YAClD,CAAC,cAAc,EAAE,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;SAC/C;KACF;CACO,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** Joins the parts that are set with the Sharadox separator, spaced: separate("01", "Web") → "01 · Web". */
2
+ export declare function separate(...parts: (string | false | null | undefined)[]): string;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/utility/separate/index.ts"],"names":[],"mappings":"AAEA,4GAA4G;AAC5G,wBAAgB,QAAQ,CAAC,GAAG,KAAK,EAAE,CAAC,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC,EAAE,GAAG,MAAM,CAEhF"}
@@ -0,0 +1,6 @@
1
+ import { SEPARATOR } from "@sharadox/sharadox-web-library/content/separator";
2
+ /** Joins the parts that are set with the Sharadox separator, spaced: separate("01", "Web") → "01 · Web". */
3
+ export function separate(...parts) {
4
+ return parts.filter(Boolean).join(` ${SEPARATOR} `);
5
+ }
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/utility/separate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kDAAkD,CAAC;AAE7E,4GAA4G;AAC5G,MAAM,UAAU,QAAQ,CAAC,GAAG,KAA4C;IACtE,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,SAAS,GAAG,CAAC,CAAC;AACtD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sharadox/sharadox-web-library",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
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",