@sharadox/sharadox-web-library 0.5.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.
- package/distribution/component/consent/index.d.ts +7 -0
- package/distribution/component/consent/index.d.ts.map +1 -0
- package/distribution/component/consent/index.js +40 -0
- package/distribution/component/consent/index.js.map +1 -0
- package/distribution/component/consent/index.module.css +182 -0
- package/distribution/component/consent/preferences-link/index.d.ts +4 -0
- package/distribution/component/consent/preferences-link/index.d.ts.map +1 -0
- package/distribution/component/consent/preferences-link/index.js +8 -0
- package/distribution/component/consent/preferences-link/index.js.map +1 -0
- package/distribution/component/consent/preferences-link/type.d.ts +4 -0
- package/distribution/component/consent/preferences-link/type.d.ts.map +1 -0
- package/distribution/component/consent/preferences-link/type.js +2 -0
- package/distribution/component/consent/preferences-link/type.js.map +1 -0
- package/distribution/component/consent/toggle/index.d.ts +4 -0
- package/distribution/component/consent/toggle/index.d.ts.map +1 -0
- package/distribution/component/consent/toggle/index.js +7 -0
- package/distribution/component/consent/toggle/index.js.map +1 -0
- package/distribution/component/consent/toggle/type.d.ts +10 -0
- package/distribution/component/consent/toggle/type.d.ts.map +1 -0
- package/distribution/component/consent/toggle/type.js +2 -0
- package/distribution/component/consent/toggle/type.js.map +1 -0
- package/distribution/component/consent/type.d.ts +5 -0
- package/distribution/component/consent/type.d.ts.map +1 -0
- package/distribution/component/consent/type.js +2 -0
- package/distribution/component/consent/type.js.map +1 -0
- package/distribution/component/footer/index.d.ts.map +1 -1
- package/distribution/component/footer/index.js +3 -1
- package/distribution/component/footer/index.js.map +1 -1
- package/distribution/component/footer/index.module.css +12 -2
- package/distribution/component/hero/index.js +1 -1
- package/distribution/component/hero/index.js.map +1 -1
- package/distribution/component/hero/index.module.css +4 -1
- package/distribution/component/section-indicator/index.d.ts +8 -0
- package/distribution/component/section-indicator/index.d.ts.map +1 -0
- package/distribution/component/section-indicator/index.js +20 -0
- package/distribution/component/section-indicator/index.js.map +1 -0
- package/distribution/component/section-indicator/index.module.css +145 -0
- package/distribution/component/section-indicator/type.d.ts +5 -0
- package/distribution/component/section-indicator/type.d.ts.map +1 -0
- package/distribution/component/section-indicator/type.js +2 -0
- package/distribution/component/section-indicator/type.js.map +1 -0
- package/distribution/content/consent/index.d.ts +92 -0
- package/distribution/content/consent/index.d.ts.map +1 -0
- package/distribution/content/consent/index.js +46 -0
- package/distribution/content/consent/index.js.map +1 -0
- package/distribution/content/section-indicator/index.d.ts +33 -0
- package/distribution/content/section-indicator/index.d.ts.map +1 -0
- package/distribution/content/section-indicator/index.js +13 -0
- package/distribution/content/section-indicator/index.js.map +1 -0
- package/distribution/content/style/index.d.ts +3 -1
- package/distribution/content/style/index.d.ts.map +1 -1
- package/distribution/content/style/index.js +3 -1
- package/distribution/content/style/index.js.map +1 -1
- package/package.json +2 -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.js","sourceRoot":"","sources":["../../../source/component/consent/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,UAAU,EAAE,MAAM,2CAA2C,CAAC;AACvE,OAAO,EAAE,KAAK,EAAE,MAAM,gDAAgD,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE,MAAM,yDAAyD,CAAC;AACjF,OAAO,EAAE,OAAO,EAAE,qBAAqB,EAAE,MAAM,gDAAgD,CAAC;AAChG,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,MAAM,IAAI,GAAG,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,CAAU,CAAC;AAEzC;;;GAGG;AACH,MAAM,UAAU,OAAO,CAAC,EAAE,MAAM,EAAqB;IACnD,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,qBAAqB,CAAC,CAAC;IAC5E,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAChD,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC5C,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAA0B,GAAG,EAAE,CAAC,YAAY,CAAC,qBAAqB,CAAC,CAAC,CAAC;IAE3G,SAAS,CAAC,GAAG,EAA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,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,YACvC,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../source/component/consent/toggle/type.ts"],"names":[],"mappings":""}
|
|
@@ -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 @@
|
|
|
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/footer/index.tsx"],"names":[],"mappings":"
|
|
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
|
|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W,IAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,IACpD,IACF,EACN,cAAK,SAAS,EAAE,MAAM,CAAC,IAAI,8CAErB,EACN,YAAG,SAAS,EAAE,GAAG,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"}
|
|
@@ -37,11 +37,21 @@
|
|
|
37
37
|
text-transform: uppercase;
|
|
38
38
|
color: var(--foreground-3);
|
|
39
39
|
}
|
|
40
|
-
.columns a
|
|
40
|
+
.columns a,
|
|
41
|
+
.columns button {
|
|
41
42
|
width: fit-content;
|
|
42
43
|
transition: color 0.2s;
|
|
43
44
|
}
|
|
44
|
-
.columns
|
|
45
|
+
.columns button {
|
|
46
|
+
padding: 0;
|
|
47
|
+
border: 0;
|
|
48
|
+
background: none;
|
|
49
|
+
font-size: inherit;
|
|
50
|
+
color: inherit;
|
|
51
|
+
text-align: left;
|
|
52
|
+
}
|
|
53
|
+
.columns a:hover,
|
|
54
|
+
.columns button:hover {
|
|
45
55
|
color: var(--foreground);
|
|
46
56
|
}
|
|
47
57
|
@media (max-width: 900px) {
|
|
@@ -18,6 +18,6 @@ const EASE = [0.22, 1, 0.36, 1];
|
|
|
18
18
|
/** First screen, inside the grid frame: the slogan rising line by line beside the interactive globe. */
|
|
19
19
|
export function Hero({ locale }) {
|
|
20
20
|
const lines = HERO.lines[locale];
|
|
21
|
-
return (_jsxs("section", { className: styles.hero, children: [_jsx(HeroGuide, {}), _jsx(Cross, { corner: "bottom-left" }), _jsx(Cross, { corner: "bottom-right" }), _jsxs("div", { className: styles.copy, children: [_jsx(motion.div, { initial: { opacity: 0 }, animate: { opacity: 1 }, transition: { duration: 1, delay: 0.1 }, children: _jsxs(Eyebrow, { className: styles.eyebrow, children: [_jsx("span", { className: styles.live, "aria-hidden": true }), " ", translate(HERO.eyebrow, locale)] }) }), _jsx("h1", { className: styles.title, children: lines.map((line, index) => (_jsx("span", { className: styles.line, children: _jsx(motion.span, { className: index === lines.length - 1 ? `${styles.lineInner} ${styles.dim}` : styles.lineInner, initial: { y: "110%" }, animate: { y: "0%" }, transition: { duration: 1.1, delay: 0.2 + index * 0.12, ease: EASE }, children: line }) }, index))) }), _jsx(motion.p, { className: styles.subtitle, initial: { opacity: 0, y: 14 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.9, delay: 0.75, ease: EASE }, children: translate(HERO.subtitle, locale) }), _jsxs(motion.div, { className: styles.actions, initial: { opacity: 0, y: 14 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.9, delay: 0.9, ease: EASE }, children: [_jsx(Button, { href: "#contact", arrow: true, children: translate(HERO.primary, locale) }), _jsx(Button, { href: "#services", variant: "ghost", children: translate(HERO.secondary, locale) })] })] }), _jsxs(motion.div, { className: styles.globe, initial: { opacity: 0, scale: 0.92 }, animate: { opacity: 1, scale: 1 }, transition: { duration: 1.8, delay: 0.3, ease: EASE }, children: [_jsx(Globe, {}), _jsx("span", { className: `${styles.hint} monospace`, "aria-hidden": true, children: translate(HERO.drag, locale) })] })] }));
|
|
21
|
+
return (_jsxs("section", { id: "home", className: styles.hero, children: [_jsx(HeroGuide, {}), _jsx(Cross, { corner: "bottom-left" }), _jsx(Cross, { corner: "bottom-right" }), _jsxs("div", { className: styles.copy, children: [_jsx(motion.div, { initial: { opacity: 0 }, animate: { opacity: 1 }, transition: { duration: 1, delay: 0.1 }, children: _jsxs(Eyebrow, { className: styles.eyebrow, children: [_jsx("span", { className: styles.live, "aria-hidden": true }), " ", translate(HERO.eyebrow, locale)] }) }), _jsx("h1", { className: styles.title, children: lines.map((line, index) => (_jsx("span", { className: styles.line, children: _jsx(motion.span, { className: index === lines.length - 1 ? `${styles.lineInner} ${styles.dim}` : styles.lineInner, initial: { y: "110%" }, animate: { y: "0%" }, transition: { duration: 1.1, delay: 0.2 + index * 0.12, ease: EASE }, children: line }) }, index))) }), _jsx(motion.p, { className: styles.subtitle, initial: { opacity: 0, y: 14 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.9, delay: 0.75, ease: EASE }, children: translate(HERO.subtitle, locale) }), _jsxs(motion.div, { className: styles.actions, initial: { opacity: 0, y: 14 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.9, delay: 0.9, ease: EASE }, children: [_jsx(Button, { href: "#contact", arrow: true, children: translate(HERO.primary, locale) }), _jsx(Button, { href: "#services", variant: "ghost", children: translate(HERO.secondary, locale) })] })] }), _jsxs(motion.div, { className: styles.globe, initial: { opacity: 0, scale: 0.92 }, animate: { opacity: 1, scale: 1 }, transition: { duration: 1.8, delay: 0.3, ease: EASE }, children: [_jsx(Globe, {}), _jsx("span", { className: `${styles.hint} monospace`, "aria-hidden": true, children: translate(HERO.drag, locale) })] })] }));
|
|
22
22
|
}
|
|
23
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/hero/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,KAAK,EAAE,MAAM,gDAAgD,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,4DAA4D,CAAC;AAC9F,OAAO,EAAE,SAAS,EAAE,MAAM,qDAAqD,CAAC;AAChF,OAAO,EAAE,IAAI,EAAE,MAAM,6CAA6C,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,MAAM,MAAM,qBAAq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AE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EACpC,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EACjC,UAAU,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,aAErD,KAAC,KAAK,KAAG,EACT,eAAM,SAAS,EAAE,GAAG,MAAM,CAAC,IAAI,YAAY,iCACxC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,GACxB,IACI,IACL,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
.copy {
|
|
22
22
|
position: relative;
|
|
23
23
|
z-index: 2;
|
|
24
|
+
container-type: inline-size;
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
.eyebrow {
|
|
@@ -50,7 +51,9 @@
|
|
|
50
51
|
}
|
|
51
52
|
.title {
|
|
52
53
|
margin: 26px 0 26px;
|
|
53
|
-
|
|
54
|
+
/* Each line stays on one line: the size follows the column so the longest line ("que simplificam") fits. */
|
|
55
|
+
font-size: min(clamp(3rem, 7vw, 6.4rem), 14.6cqi);
|
|
56
|
+
white-space: nowrap;
|
|
54
57
|
letter-spacing: -0.06em;
|
|
55
58
|
line-height: 0.95;
|
|
56
59
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SectionIndicatorProperties } from "@sharadox/sharadox-web-library/component/section-indicator/type";
|
|
2
|
+
/**
|
|
3
|
+
* The side indicator: a rail that fills as the page scrolls, a tick and number per section, the current one
|
|
4
|
+
* lit with its own progress, and its name flashing in whenever it changes. Every entry jumps to its section; all
|
|
5
|
+
* names show while the pointer is over it.
|
|
6
|
+
*/
|
|
7
|
+
export declare function SectionIndicator({ locale }: SectionIndicatorProperties): import("react").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/section-indicator/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iEAAiE,CAAC;AAIlH;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,MAAM,EAAE,EAAE,0BAA0B,+BAoCtE"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { translate } from "@sharadox/web-library/internationalization/translate";
|
|
4
|
+
import { useActiveSection } from "@sharadox/web-library/scroll/active-section";
|
|
5
|
+
import { SECTION_INDICATOR } from "@sharadox/sharadox-web-library/content/section-indicator";
|
|
6
|
+
import styles from "./index.module.css";
|
|
7
|
+
const IDS = SECTION_INDICATOR.sections.map((section) => section.id);
|
|
8
|
+
/**
|
|
9
|
+
* The side indicator: a rail that fills as the page scrolls, a tick and number per section, the current one
|
|
10
|
+
* lit with its own progress, and its name flashing in whenever it changes. Every entry jumps to its section; all
|
|
11
|
+
* names show while the pointer is over it.
|
|
12
|
+
*/
|
|
13
|
+
export function SectionIndicator({ locale }) {
|
|
14
|
+
const { active, within, page } = useActiveSection(IDS);
|
|
15
|
+
return (_jsxs("nav", { className: styles.indicator, "aria-label": translate(SECTION_INDICATOR.label, locale), style: { "--page": page, "--within": within }, children: [_jsx("span", { className: styles.rail, "aria-hidden": true, children: _jsx("span", {}) }), _jsx("ol", { children: SECTION_INDICATOR.sections.map((section, index) => {
|
|
16
|
+
const current = section.id === active;
|
|
17
|
+
return (_jsx("li", { children: _jsxs("a", { href: `#${section.id}`, className: current ? styles.current : undefined, "aria-current": current ? "location" : undefined, children: [_jsx("span", { className: styles.name, children: section[locale] }, current ? `${section.id}-on` : section.id), _jsx("span", { className: `${styles.number} monospace`, children: String(index + 1).padStart(2, "0") }), _jsx("span", { className: styles.tick, "aria-hidden": true, children: _jsx("span", {}) })] }) }, section.id));
|
|
18
|
+
}) })] }));
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/section-indicator/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,0DAA0D,CAAC;AAC7F,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,MAAM,GAAG,GAAG,iBAAiB,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AAEpE;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,EAAE,MAAM,EAA8B;IACrE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,gBAAgB,CAAC,GAAG,CAAC,CAAC;IACvD,OAAO,CACL,eACE,SAAS,EAAE,MAAM,CAAC,SAAS,gBACf,SAAS,CAAC,iBAAiB,CAAC,KAAK,EAAE,MAAM,CAAC,EACtD,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAmB,aAE9D,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,iCAC1B,gBAAQ,GACH,EACP,uBACG,iBAAiB,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE;oBACjD,MAAM,OAAO,GAAG,OAAO,CAAC,EAAE,KAAK,MAAM,CAAC;oBACtC,OAAO,CACL,uBACE,aACE,IAAI,EAAE,IAAI,OAAO,CAAC,EAAE,EAAE,EACtB,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,kBACjC,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,aAG9C,eAAsD,SAAS,EAAE,MAAM,CAAC,IAAI,YACzE,OAAO,CAAC,MAAM,CAAC,IADP,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAE7C,EACP,eAAM,SAAS,EAAE,GAAG,MAAM,CAAC,MAAM,YAAY,YAAG,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,GAAQ,EAC1F,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,iCAC1B,gBAAQ,GACH,IACL,IAdG,OAAO,CAAC,EAAE,CAed,CACN,CAAC;gBACJ,CAAC,CAAC,GACC,IACD,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
.indicator {
|
|
2
|
+
--page: 0;
|
|
3
|
+
--within: 0;
|
|
4
|
+
position: fixed;
|
|
5
|
+
z-index: 40;
|
|
6
|
+
right: max(14px, (100vw - var(--maximum-width)) / 2 - 92px);
|
|
7
|
+
top: 50%;
|
|
8
|
+
transform: translateY(-50%);
|
|
9
|
+
padding: 14px 0;
|
|
10
|
+
animation: enter 1s 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
|
|
11
|
+
}
|
|
12
|
+
.indicator ol {
|
|
13
|
+
position: relative;
|
|
14
|
+
display: grid;
|
|
15
|
+
gap: 6px;
|
|
16
|
+
margin: 0;
|
|
17
|
+
padding: 0;
|
|
18
|
+
list-style: none;
|
|
19
|
+
}
|
|
20
|
+
@media (max-width: 1180px) {
|
|
21
|
+
.indicator {
|
|
22
|
+
display: none;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@keyframes enter {
|
|
27
|
+
from {
|
|
28
|
+
opacity: 0;
|
|
29
|
+
transform: translate(16px, -50%);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
/* The rail fills with the page's progress. */
|
|
33
|
+
.rail {
|
|
34
|
+
position: absolute;
|
|
35
|
+
right: 0;
|
|
36
|
+
top: 0;
|
|
37
|
+
bottom: 0;
|
|
38
|
+
width: 1px;
|
|
39
|
+
background: linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 6px repeat-y;
|
|
40
|
+
}
|
|
41
|
+
.rail span {
|
|
42
|
+
position: absolute;
|
|
43
|
+
inset: 0 0 auto;
|
|
44
|
+
height: calc(var(--page) * 100%);
|
|
45
|
+
background: linear-gradient(180deg, transparent, var(--foreground));
|
|
46
|
+
box-shadow: 0 0 8px color-mix(in srgb, var(--foreground) 60%, transparent);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.indicator a {
|
|
50
|
+
position: relative;
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
justify-content: flex-end;
|
|
54
|
+
gap: 10px;
|
|
55
|
+
height: 26px;
|
|
56
|
+
padding-right: 0;
|
|
57
|
+
color: var(--foreground-3);
|
|
58
|
+
transition: color 0.3s;
|
|
59
|
+
}
|
|
60
|
+
.indicator a:hover {
|
|
61
|
+
color: var(--foreground);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.number {
|
|
65
|
+
font-size: 10.5px;
|
|
66
|
+
letter-spacing: 0.04em;
|
|
67
|
+
transition: color 0.3s;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.tick {
|
|
71
|
+
position: relative;
|
|
72
|
+
width: 12px;
|
|
73
|
+
height: 1px;
|
|
74
|
+
background: var(--line-2);
|
|
75
|
+
transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s;
|
|
76
|
+
}
|
|
77
|
+
.tick span {
|
|
78
|
+
position: absolute;
|
|
79
|
+
inset: 0 auto 0 0;
|
|
80
|
+
width: 0;
|
|
81
|
+
background: var(--foreground);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/* Names sit to the left in a frosted pill: hidden until hovered, flashing in when their section becomes current. */
|
|
85
|
+
.name {
|
|
86
|
+
position: absolute;
|
|
87
|
+
right: 64px;
|
|
88
|
+
padding: 5px 11px;
|
|
89
|
+
border-radius: 99px;
|
|
90
|
+
border: 1px solid var(--line-2);
|
|
91
|
+
background: color-mix(in srgb, var(--background) 75%, transparent);
|
|
92
|
+
backdrop-filter: blur(10px);
|
|
93
|
+
color: var(--foreground);
|
|
94
|
+
font-size: 12.5px;
|
|
95
|
+
font-weight: 500;
|
|
96
|
+
letter-spacing: -0.01em;
|
|
97
|
+
white-space: nowrap;
|
|
98
|
+
opacity: 0;
|
|
99
|
+
transform: translateX(8px);
|
|
100
|
+
filter: blur(4px);
|
|
101
|
+
pointer-events: none;
|
|
102
|
+
transition: opacity 0.35s, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.indicator:hover .name {
|
|
106
|
+
opacity: 1;
|
|
107
|
+
transform: none;
|
|
108
|
+
filter: none;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.current {
|
|
112
|
+
color: var(--foreground) !important;
|
|
113
|
+
}
|
|
114
|
+
.current .tick {
|
|
115
|
+
width: 34px;
|
|
116
|
+
background: color-mix(in srgb, var(--foreground) 25%, transparent);
|
|
117
|
+
}
|
|
118
|
+
.current .tick span {
|
|
119
|
+
width: calc(var(--within) * 100%);
|
|
120
|
+
box-shadow: 0 0 8px color-mix(in srgb, var(--foreground) 70%, transparent);
|
|
121
|
+
}
|
|
122
|
+
.current .name {
|
|
123
|
+
animation: flash 2.2s cubic-bezier(0.22, 1, 0.36, 1) both;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@keyframes flash {
|
|
127
|
+
0% {
|
|
128
|
+
opacity: 0;
|
|
129
|
+
transform: translateX(10px);
|
|
130
|
+
filter: blur(4px);
|
|
131
|
+
}
|
|
132
|
+
15%, 70% {
|
|
133
|
+
opacity: 1;
|
|
134
|
+
transform: none;
|
|
135
|
+
filter: none;
|
|
136
|
+
}
|
|
137
|
+
100% {
|
|
138
|
+
opacity: 0;
|
|
139
|
+
transform: translateX(4px);
|
|
140
|
+
filter: blur(2px);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
.indicator:hover .current .name {
|
|
144
|
+
animation: none;
|
|
145
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/section-indicator/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../source/component/section-indicator/type.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The cookie categories. Raise `version` whenever they change, so every visitor is asked again. Required is always
|
|
3
|
+
* on; the others start off in the manual selection.
|
|
4
|
+
*/
|
|
5
|
+
export declare const CONSENT_CONFIGURATION: {
|
|
6
|
+
readonly storageKey: "consent";
|
|
7
|
+
readonly version: 1;
|
|
8
|
+
readonly categories: readonly [{
|
|
9
|
+
readonly key: "required";
|
|
10
|
+
readonly required: true;
|
|
11
|
+
}, {
|
|
12
|
+
readonly key: "analytics";
|
|
13
|
+
}, {
|
|
14
|
+
readonly key: "marketing";
|
|
15
|
+
}];
|
|
16
|
+
};
|
|
17
|
+
/** Cookie panel copy. */
|
|
18
|
+
export declare const CONSENT: {
|
|
19
|
+
readonly title: {
|
|
20
|
+
readonly en: "Cookies";
|
|
21
|
+
readonly pt: "Cookies";
|
|
22
|
+
};
|
|
23
|
+
readonly text: {
|
|
24
|
+
readonly en: "We use required cookies to remember your language and style and to keep the contact form safe. With your permission, we would also measure visits and campaigns to improve the site.";
|
|
25
|
+
readonly pt: "Usamos cookies necessários para lembrar o idioma e o estilo e para proteger o formulário de contacto. Com a sua permissão, mediríamos também as visitas e as campanhas para melhorar o site.";
|
|
26
|
+
};
|
|
27
|
+
readonly acceptAll: {
|
|
28
|
+
readonly en: "Accept All";
|
|
29
|
+
readonly pt: "Aceitar Todos";
|
|
30
|
+
};
|
|
31
|
+
readonly deny: {
|
|
32
|
+
readonly en: "Deny";
|
|
33
|
+
readonly pt: "Recusar";
|
|
34
|
+
};
|
|
35
|
+
readonly customize: {
|
|
36
|
+
readonly en: "Customize";
|
|
37
|
+
readonly pt: "Personalizar";
|
|
38
|
+
};
|
|
39
|
+
readonly save: {
|
|
40
|
+
readonly en: "Save Choices";
|
|
41
|
+
readonly pt: "Guardar Escolhas";
|
|
42
|
+
};
|
|
43
|
+
readonly back: {
|
|
44
|
+
readonly en: "Back";
|
|
45
|
+
readonly pt: "Voltar";
|
|
46
|
+
};
|
|
47
|
+
readonly close: {
|
|
48
|
+
readonly en: "Close";
|
|
49
|
+
readonly pt: "Fechar";
|
|
50
|
+
};
|
|
51
|
+
readonly alwaysOn: {
|
|
52
|
+
readonly en: "Always on";
|
|
53
|
+
readonly pt: "Sempre ativos";
|
|
54
|
+
};
|
|
55
|
+
readonly preferences: {
|
|
56
|
+
readonly en: "Cookie Preferences";
|
|
57
|
+
readonly pt: "Preferências de Cookies";
|
|
58
|
+
};
|
|
59
|
+
readonly categories: {
|
|
60
|
+
readonly required: {
|
|
61
|
+
readonly title: {
|
|
62
|
+
readonly en: "Required";
|
|
63
|
+
readonly pt: "Necessários";
|
|
64
|
+
};
|
|
65
|
+
readonly text: {
|
|
66
|
+
readonly en: "Language, style and form security.";
|
|
67
|
+
readonly pt: "Idioma, estilo e segurança do formulário.";
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
readonly analytics: {
|
|
71
|
+
readonly title: {
|
|
72
|
+
readonly en: "Analytics";
|
|
73
|
+
readonly pt: "Análise";
|
|
74
|
+
};
|
|
75
|
+
readonly text: {
|
|
76
|
+
readonly en: "Anonymous visit statistics that help us improve the site.";
|
|
77
|
+
readonly pt: "Estatísticas anónimas de visitas que nos ajudam a melhorar o site.";
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
readonly marketing: {
|
|
81
|
+
readonly title: {
|
|
82
|
+
readonly en: "Marketing";
|
|
83
|
+
readonly pt: "Marketing";
|
|
84
|
+
};
|
|
85
|
+
readonly text: {
|
|
86
|
+
readonly en: "Measuring our campaigns on other platforms.";
|
|
87
|
+
readonly pt: "Medição das nossas campanhas noutras plataformas.";
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/consent/index.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;CAIO,CAAC;AAE1C,yBAAyB;AACzB,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCV,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The cookie categories. Raise `version` whenever they change, so every visitor is asked again. Required is always
|
|
3
|
+
* on; the others start off in the manual selection.
|
|
4
|
+
*/
|
|
5
|
+
export const CONSENT_CONFIGURATION = {
|
|
6
|
+
storageKey: "consent",
|
|
7
|
+
version: 1,
|
|
8
|
+
categories: [{ key: "required", required: true }, { key: "analytics" }, { key: "marketing" }],
|
|
9
|
+
};
|
|
10
|
+
/** Cookie panel copy. */
|
|
11
|
+
export const CONSENT = {
|
|
12
|
+
title: { en: "Cookies", pt: "Cookies" },
|
|
13
|
+
text: {
|
|
14
|
+
en: "We use required cookies to remember your language and style and to keep the contact form safe. With your permission, we would also measure visits and campaigns to improve the site.",
|
|
15
|
+
pt: "Usamos cookies necessários para lembrar o idioma e o estilo e para proteger o formulário de contacto. Com a sua permissão, mediríamos também as visitas e as campanhas para melhorar o site.",
|
|
16
|
+
},
|
|
17
|
+
acceptAll: { en: "Accept All", pt: "Aceitar Todos" },
|
|
18
|
+
deny: { en: "Deny", pt: "Recusar" },
|
|
19
|
+
customize: { en: "Customize", pt: "Personalizar" },
|
|
20
|
+
save: { en: "Save Choices", pt: "Guardar Escolhas" },
|
|
21
|
+
back: { en: "Back", pt: "Voltar" },
|
|
22
|
+
close: { en: "Close", pt: "Fechar" },
|
|
23
|
+
alwaysOn: { en: "Always on", pt: "Sempre ativos" },
|
|
24
|
+
preferences: { en: "Cookie Preferences", pt: "Preferências de Cookies" },
|
|
25
|
+
categories: {
|
|
26
|
+
required: {
|
|
27
|
+
title: { en: "Required", pt: "Necessários" },
|
|
28
|
+
text: { en: "Language, style and form security.", pt: "Idioma, estilo e segurança do formulário." },
|
|
29
|
+
},
|
|
30
|
+
analytics: {
|
|
31
|
+
title: { en: "Analytics", pt: "Análise" },
|
|
32
|
+
text: {
|
|
33
|
+
en: "Anonymous visit statistics that help us improve the site.",
|
|
34
|
+
pt: "Estatísticas anónimas de visitas que nos ajudam a melhorar o site.",
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
marketing: {
|
|
38
|
+
title: { en: "Marketing", pt: "Marketing" },
|
|
39
|
+
text: {
|
|
40
|
+
en: "Measuring our campaigns on other platforms.",
|
|
41
|
+
pt: "Medição das nossas campanhas noutras plataformas.",
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/content/consent/index.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAA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,EAAE,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,SAAS,EAAE;YACzC,IAAI,EAAE;gBACJ,EAAE,EAAE,2DAA2D;gBAC/D,EAAE,EAAE,oEAAoE;aACzE;SACF;QACD,SAAS,EAAE;YACT,KAAK,EAAE,EAAE,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,WAAW,EAAE;YAC3C,IAAI,EAAE;gBACJ,EAAE,EAAE,6CAA6C;gBACjD,EAAE,EAAE,mDAAmD;aACxD;SACF;KACF;CACO,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/** The sections the side indicator lists, in page order: element id and label. */
|
|
2
|
+
export declare const SECTION_INDICATOR: {
|
|
3
|
+
readonly label: {
|
|
4
|
+
readonly en: "Sections";
|
|
5
|
+
readonly pt: "Secções";
|
|
6
|
+
};
|
|
7
|
+
readonly sections: readonly [{
|
|
8
|
+
readonly id: "home";
|
|
9
|
+
readonly en: "Home";
|
|
10
|
+
readonly pt: "Início";
|
|
11
|
+
}, {
|
|
12
|
+
readonly id: "services";
|
|
13
|
+
readonly en: "Services";
|
|
14
|
+
readonly pt: "Serviços";
|
|
15
|
+
}, {
|
|
16
|
+
readonly id: "touchpoints";
|
|
17
|
+
readonly en: "One System";
|
|
18
|
+
readonly pt: "Um Só Sistema";
|
|
19
|
+
}, {
|
|
20
|
+
readonly id: "capabilities";
|
|
21
|
+
readonly en: "Capabilities";
|
|
22
|
+
readonly pt: "Capacidades";
|
|
23
|
+
}, {
|
|
24
|
+
readonly id: "process";
|
|
25
|
+
readonly en: "Process";
|
|
26
|
+
readonly pt: "Processo";
|
|
27
|
+
}, {
|
|
28
|
+
readonly id: "contact";
|
|
29
|
+
readonly en: "Contact";
|
|
30
|
+
readonly pt: "Contacto";
|
|
31
|
+
}];
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/section-indicator/index.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUpB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** The sections the side indicator lists, in page order: element id and label. */
|
|
2
|
+
export const SECTION_INDICATOR = {
|
|
3
|
+
label: { en: "Sections", pt: "Secções" },
|
|
4
|
+
sections: [
|
|
5
|
+
{ id: "home", en: "Home", pt: "Início" },
|
|
6
|
+
{ id: "services", en: "Services", pt: "Serviços" },
|
|
7
|
+
{ id: "touchpoints", en: "One System", pt: "Um Só Sistema" },
|
|
8
|
+
{ id: "capabilities", en: "Capabilities", pt: "Capacidades" },
|
|
9
|
+
{ id: "process", en: "Process", pt: "Processo" },
|
|
10
|
+
{ id: "contact", en: "Contact", pt: "Contacto" },
|
|
11
|
+
],
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/content/section-indicator/index.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,KAAK,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,SAAS,EAAE;IACxC,QAAQ,EAAE;QACR,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE;QACxC,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,UAAU,EAAE;QAClD,EAAE,EAAE,EAAE,aAAa,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE,eAAe,EAAE;QAC5D,EAAE,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE,aAAa,EAAE;QAC7D,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,UAAU,EAAE;QAChD,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,UAAU,EAAE;KACjD;CACO,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Every Sharadox style (what other projects call a theme). Add a dark or light style here — name, scheme and the
|
|
3
3
|
* same palette keys — and it appears in the style switch; `defaults` picks the one "System" uses for each scheme.
|
|
4
|
-
*
|
|
4
|
+
* The site opens in Black (`defaultChoice`); set it to "system" to follow the device instead. Dark is the fallback
|
|
5
|
+
* when the device's preference is unknown.
|
|
5
6
|
*/
|
|
6
7
|
export declare const STYLE_CONFIGURATION: {
|
|
7
8
|
readonly styles: readonly [{
|
|
@@ -43,6 +44,7 @@ export declare const STYLE_CONFIGURATION: {
|
|
|
43
44
|
};
|
|
44
45
|
readonly fallback: "dark";
|
|
45
46
|
readonly storageKey: "style";
|
|
47
|
+
readonly defaultChoice: "black";
|
|
46
48
|
};
|
|
47
49
|
/** Names shown in the style switch. Style names are proper names, the same in every language. */
|
|
48
50
|
export declare const STYLE: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/style/index.ts"],"names":[],"mappings":"AA8BA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/style/index.ts"],"names":[],"mappings":"AA8BA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASO,CAAC;AAExC,iGAAiG;AACjG,eAAO,MAAM,KAAK;;;;;;;;;oBAG6B,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAC3D,CAAC"}
|
|
@@ -28,7 +28,8 @@ const WHITE = {
|
|
|
28
28
|
/**
|
|
29
29
|
* Every Sharadox style (what other projects call a theme). Add a dark or light style here — name, scheme and the
|
|
30
30
|
* same palette keys — and it appears in the style switch; `defaults` picks the one "System" uses for each scheme.
|
|
31
|
-
*
|
|
31
|
+
* The site opens in Black (`defaultChoice`); set it to "system" to follow the device instead. Dark is the fallback
|
|
32
|
+
* when the device's preference is unknown.
|
|
32
33
|
*/
|
|
33
34
|
export const STYLE_CONFIGURATION = {
|
|
34
35
|
styles: [
|
|
@@ -38,6 +39,7 @@ export const STYLE_CONFIGURATION = {
|
|
|
38
39
|
defaults: { dark: "black", light: "white" },
|
|
39
40
|
fallback: "dark",
|
|
40
41
|
storageKey: "style",
|
|
42
|
+
defaultChoice: "black",
|
|
41
43
|
};
|
|
42
44
|
/** Names shown in the style switch. Style names are proper names, the same in every language. */
|
|
43
45
|
export const STYLE = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/content/style/index.ts"],"names":[],"mappings":"AAEA,kEAAkE;AAClE,MAAM,KAAK,GAAG;IACZ,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,cAAc,EAAE,SAAS;IACzB,cAAc,EAAE,SAAS;IACzB,IAAI,EAAE,2BAA2B;IACjC,QAAQ,EAAE,2BAA2B;IACrC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,SAAS;IAChB,YAAY,EAAE,SAAS;IACvB,WAAW,EAAE,SAAS;CACvB,CAAC;AACF,MAAM,KAAK,GAAG;IACZ,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,cAAc,EAAE,SAAS;IACzB,cAAc,EAAE,SAAS;IACzB,IAAI,EAAE,qBAAqB;IAC3B,QAAQ,EAAE,qBAAqB;IAC/B,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,SAAS;IAChB,YAAY,EAAE,SAAS;IACvB,WAAW,EAAE,SAAS;CACvB,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources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AAE,EAAE,EAAE,SAAS,EAAE;IACvC,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAA4B;CAC3D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sharadox/sharadox-web-library",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.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",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"dependencies": {
|
|
84
84
|
"@react-three/fiber": "^9.8.2",
|
|
85
85
|
"@sharadox/email-web-library": "^0.2.0",
|
|
86
|
-
"@sharadox/web-library": "^0.
|
|
86
|
+
"@sharadox/web-library": "^0.4.0",
|
|
87
87
|
"motion": "^12.43.0",
|
|
88
88
|
"three": "^0.180.0"
|
|
89
89
|
},
|