@sharadox/sharadox-web-library 0.6.6 → 0.7.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/README.md +46 -8
- package/distribution/action/send-contact/index.d.ts +5 -6
- package/distribution/action/send-contact/index.d.ts.map +1 -1
- package/distribution/action/send-contact/index.js +13 -49
- package/distribution/action/send-contact/index.js.map +1 -1
- package/distribution/action/send-contact/type.d.ts +1 -3
- package/distribution/action/send-contact/type.d.ts.map +1 -1
- package/distribution/component/button/index.module.css +1 -58
- package/distribution/component/button/index.module.scss +60 -0
- package/distribution/component/capability/index.js +2 -2
- package/distribution/component/capability/index.module.css +1 -94
- package/distribution/component/capability/index.module.scss +85 -0
- package/distribution/component/capability/type.d.ts +1 -1
- package/distribution/component/consent/index.d.ts +1 -4
- package/distribution/component/consent/index.d.ts.map +1 -1
- package/distribution/component/consent/index.js +19 -32
- package/distribution/component/consent/index.js.map +1 -1
- package/distribution/component/consent/index.module.css +1 -183
- package/distribution/component/consent/index.module.scss +45 -0
- package/distribution/component/consent/preferences-link/index.js +1 -1
- package/distribution/component/consent/type.d.ts +1 -1
- package/distribution/component/contact/form/index.d.ts.map +1 -1
- package/distribution/component/contact/form/index.js +4 -4
- package/distribution/component/contact/form/index.js.map +1 -1
- package/distribution/component/contact/form/index.module.css +1 -168
- package/distribution/component/contact/form/index.module.scss +163 -0
- package/distribution/component/contact/form/type.d.ts +1 -1
- package/distribution/component/contact/index.js +2 -2
- package/distribution/component/contact/index.module.css +1 -56
- package/distribution/component/contact/index.module.scss +52 -0
- package/distribution/component/contact/type.d.ts +1 -1
- package/distribution/component/cross/index.module.css +1 -53
- package/distribution/component/cross/index.module.scss +50 -0
- package/distribution/component/eyebrow/index.module.css +1 -9
- package/distribution/component/eyebrow/index.module.scss +9 -0
- package/distribution/component/footer/index.js +4 -4
- package/distribution/component/footer/index.js.map +1 -1
- package/distribution/component/footer/index.module.css +1 -138
- package/distribution/component/footer/index.module.scss +125 -0
- package/distribution/component/footer/type.d.ts +1 -1
- package/distribution/component/globe/index.d.ts +2 -2
- package/distribution/component/globe/index.d.ts.map +1 -1
- package/distribution/component/globe/index.js +23 -32
- package/distribution/component/globe/index.js.map +1 -1
- package/distribution/component/globe/index.module.css +1 -25
- package/distribution/component/globe/index.module.scss +7 -0
- package/distribution/component/hero/guide/index.module.css +1 -97
- package/distribution/component/hero/guide/index.module.scss +94 -0
- package/distribution/component/hero/index.js +1 -1
- package/distribution/component/hero/index.module.css +1 -124
- package/distribution/component/hero/index.module.scss +109 -0
- package/distribution/component/hero/type.d.ts +1 -1
- package/distribution/component/language-switch/index.js +4 -4
- package/distribution/component/language-switch/index.js.map +1 -1
- package/distribution/component/language-switch/index.module.css +1 -20
- package/distribution/component/language-switch/index.module.scss +22 -0
- package/distribution/component/language-switch/type.d.ts +1 -1
- package/distribution/component/marquee/index.js +1 -1
- package/distribution/component/marquee/index.module.css +1 -43
- package/distribution/component/marquee/index.module.scss +39 -0
- package/distribution/component/navigation/index.js +1 -1
- package/distribution/component/navigation/index.module.css +1 -81
- package/distribution/component/navigation/index.module.scss +76 -0
- package/distribution/component/navigation/type.d.ts +1 -1
- package/distribution/component/process/index.js +1 -1
- package/distribution/component/process/index.module.css +1 -43
- package/distribution/component/process/index.module.scss +40 -0
- package/distribution/component/process/step/index.module.css +1 -33
- package/distribution/component/process/step/index.module.scss +31 -0
- package/distribution/component/process/type.d.ts +1 -1
- package/distribution/component/section/index.module.css +1 -35
- package/distribution/component/section/index.module.scss +32 -0
- package/distribution/component/section-heading/index.js +1 -1
- package/distribution/component/section-heading/index.module.css +1 -7
- package/distribution/component/section-heading/index.module.scss +7 -0
- package/distribution/component/section-indicator/index.js +2 -2
- package/distribution/component/section-indicator/index.module.css +1 -145
- package/distribution/component/section-indicator/index.module.scss +143 -0
- package/distribution/component/section-indicator/type.d.ts +1 -1
- package/distribution/component/service-index/index.js +1 -1
- package/distribution/component/service-index/index.module.css +1 -88
- package/distribution/component/service-index/index.module.scss +83 -0
- package/distribution/component/service-index/type.d.ts +1 -1
- package/distribution/component/services/campaign-visual/index.js +2 -2
- package/distribution/component/services/campaign-visual/index.module.css +1 -128
- package/distribution/component/services/campaign-visual/index.module.scss +122 -0
- package/distribution/component/services/campaign-visual/stage/index.js +3 -3
- package/distribution/component/services/campaign-visual/stage/index.js.map +1 -1
- package/distribution/component/services/campaign-visual/stage/type.d.ts +1 -1
- package/distribution/component/services/campaign-visual/type.d.ts +1 -1
- package/distribution/component/services/cell/index.js +2 -2
- package/distribution/component/services/cell/index.module.css +1 -86
- package/distribution/component/services/cell/index.module.scss +81 -0
- package/distribution/component/services/design-visual/index.js +1 -1
- package/distribution/component/services/design-visual/index.module.css +1 -130
- package/distribution/component/services/design-visual/index.module.scss +117 -0
- package/distribution/component/services/index.js +2 -2
- package/distribution/component/services/index.module.css +1 -84
- package/distribution/component/services/index.module.scss +66 -0
- package/distribution/component/services/mobile-visual/index.d.ts.map +1 -1
- package/distribution/component/services/mobile-visual/index.js +2 -1
- package/distribution/component/services/mobile-visual/index.js.map +1 -1
- package/distribution/component/services/mobile-visual/index.module.css +1 -104
- package/distribution/component/services/mobile-visual/index.module.scss +93 -0
- package/distribution/component/services/mobile-visual/type.d.ts +1 -1
- package/distribution/component/services/platform-visual/index.module.css +1 -46
- package/distribution/component/services/platform-visual/index.module.scss +39 -0
- package/distribution/component/services/social-visual/index.js +5 -5
- package/distribution/component/services/social-visual/index.js.map +1 -1
- package/distribution/component/services/social-visual/index.module.css +1 -131
- package/distribution/component/services/social-visual/index.module.scss +120 -0
- package/distribution/component/services/social-visual/type.d.ts +1 -1
- package/distribution/component/services/type.d.ts +1 -1
- package/distribution/component/services/web-visual/index.js +1 -1
- package/distribution/component/services/web-visual/index.module.css +1 -142
- package/distribution/component/services/web-visual/index.module.scss +132 -0
- package/distribution/component/share-image/index.d.ts +1 -2
- package/distribution/component/share-image/index.d.ts.map +1 -1
- package/distribution/component/share-image/index.js +3 -3
- package/distribution/component/share-image/index.js.map +1 -1
- package/distribution/component/share-image/type.d.ts +1 -1
- package/distribution/component/statement/index.js +1 -1
- package/distribution/component/statement/index.module.css +1 -11
- package/distribution/component/statement/index.module.scss +10 -0
- package/distribution/component/structured-data/index.d.ts.map +1 -1
- package/distribution/component/structured-data/index.js +48 -53
- package/distribution/component/structured-data/index.js.map +1 -1
- package/distribution/component/structured-data/type.d.ts +1 -1
- package/distribution/component/style-switch/index.d.ts +2 -2
- package/distribution/component/style-switch/index.d.ts.map +1 -1
- package/distribution/component/style-switch/index.js +11 -18
- package/distribution/component/style-switch/index.js.map +1 -1
- package/distribution/component/style-switch/index.module.css +1 -36
- package/distribution/component/style-switch/index.module.scss +37 -0
- package/distribution/component/style-switch/type.d.ts +1 -1
- package/distribution/component/touchpoint/index.js +3 -3
- package/distribution/component/touchpoint/index.module.css +1 -85
- package/distribution/component/touchpoint/index.module.scss +75 -0
- package/distribution/component/touchpoint/plate/index.module.css +1 -136
- package/distribution/component/touchpoint/plate/index.module.scss +129 -0
- package/distribution/component/touchpoint/type.d.ts +1 -1
- package/distribution/component/wordmark/index.module.css +1 -23
- package/distribution/component/wordmark/index.module.scss +22 -0
- package/distribution/content/locale/index.d.ts +6 -0
- package/distribution/content/locale/index.d.ts.map +1 -0
- package/distribution/content/locale/index.js +7 -0
- package/distribution/content/locale/index.js.map +1 -0
- package/distribution/{utility → content}/locale/type.d.ts +3 -2
- package/distribution/content/locale/type.d.ts.map +1 -0
- package/distribution/{utility → content}/locale/type.js.map +1 -1
- package/distribution/content/style/index.d.ts +47 -43
- package/distribution/content/style/index.d.ts.map +1 -1
- package/distribution/content/style/index.js +20 -13
- package/distribution/content/style/index.js.map +1 -1
- package/distribution/utility/separate/index.d.ts +6 -1
- package/distribution/utility/separate/index.d.ts.map +1 -1
- package/distribution/utility/separate/index.js +8 -2
- package/distribution/utility/separate/index.js.map +1 -1
- package/llms.txt +10 -0
- package/package.json +36 -27
- package/distribution/component/consent/toggle/index.d.ts +0 -4
- package/distribution/component/consent/toggle/index.d.ts.map +0 -1
- package/distribution/component/consent/toggle/index.js +0 -7
- package/distribution/component/consent/toggle/index.js.map +0 -1
- package/distribution/component/consent/toggle/type.d.ts +0 -10
- package/distribution/component/consent/toggle/type.d.ts.map +0 -1
- package/distribution/component/consent/toggle/type.js.map +0 -1
- package/distribution/component/cursor/index.d.ts +0 -3
- package/distribution/component/cursor/index.d.ts.map +0 -1
- package/distribution/component/cursor/index.js +0 -45
- package/distribution/component/cursor/index.js.map +0 -1
- package/distribution/component/cursor/index.module.css +0 -55
- package/distribution/component/globe/arc/index.d.ts +0 -4
- package/distribution/component/globe/arc/index.d.ts.map +0 -1
- package/distribution/component/globe/arc/index.js +0 -29
- package/distribution/component/globe/arc/index.js.map +0 -1
- package/distribution/component/globe/arc/type.d.ts +0 -12
- package/distribution/component/globe/arc/type.d.ts.map +0 -1
- package/distribution/component/globe/arc/type.js +0 -2
- package/distribution/component/globe/arc/type.js.map +0 -1
- package/distribution/component/globe/color/index.d.ts +0 -4
- package/distribution/component/globe/color/index.d.ts.map +0 -1
- package/distribution/component/globe/color/index.js +0 -16
- package/distribution/component/globe/color/index.js.map +0 -1
- package/distribution/component/globe/color/type.d.ts +0 -13
- package/distribution/component/globe/color/type.d.ts.map +0 -1
- package/distribution/component/globe/color/type.js +0 -2
- package/distribution/component/globe/color/type.js.map +0 -1
- package/distribution/component/globe/dots/index.d.ts +0 -4
- package/distribution/component/globe/dots/index.d.ts.map +0 -1
- package/distribution/component/globe/dots/index.js +0 -38
- package/distribution/component/globe/dots/index.js.map +0 -1
- package/distribution/component/globe/dots/type.d.ts +0 -7
- package/distribution/component/globe/dots/type.d.ts.map +0 -1
- package/distribution/component/globe/dots/type.js +0 -2
- package/distribution/component/globe/dots/type.js.map +0 -1
- package/distribution/component/globe/marker/index.d.ts +0 -4
- package/distribution/component/globe/marker/index.d.ts.map +0 -1
- package/distribution/component/globe/marker/index.js +0 -21
- package/distribution/component/globe/marker/index.js.map +0 -1
- package/distribution/component/globe/marker/type.d.ts +0 -9
- package/distribution/component/globe/marker/type.d.ts.map +0 -1
- package/distribution/component/globe/marker/type.js +0 -2
- package/distribution/component/globe/marker/type.js.map +0 -1
- package/distribution/component/globe/shader/arc/index.d.ts +0 -6
- package/distribution/component/globe/shader/arc/index.d.ts.map +0 -1
- package/distribution/component/globe/shader/arc/index.js +0 -24
- package/distribution/component/globe/shader/arc/index.js.map +0 -1
- package/distribution/component/globe/shader/atmosphere/index.d.ts +0 -6
- package/distribution/component/globe/shader/atmosphere/index.d.ts.map +0 -1
- package/distribution/component/globe/shader/atmosphere/index.js +0 -15
- package/distribution/component/globe/shader/atmosphere/index.js.map +0 -1
- package/distribution/component/globe/shader/body/index.d.ts +0 -6
- package/distribution/component/globe/shader/body/index.d.ts.map +0 -1
- package/distribution/component/globe/shader/body/index.js +0 -15
- package/distribution/component/globe/shader/body/index.js.map +0 -1
- package/distribution/component/globe/shader/dot/index.d.ts +0 -6
- package/distribution/component/globe/shader/dot/index.d.ts.map +0 -1
- package/distribution/component/globe/shader/dot/index.js +0 -29
- package/distribution/component/globe/shader/dot/index.js.map +0 -1
- package/distribution/component/globe/shader/glow-vertex/index.d.ts +0 -3
- package/distribution/component/globe/shader/glow-vertex/index.d.ts.map +0 -1
- package/distribution/component/globe/shader/glow-vertex/index.js +0 -9
- package/distribution/component/globe/shader/glow-vertex/index.js.map +0 -1
- package/distribution/component/globe/world/index.d.ts +0 -4
- package/distribution/component/globe/world/index.d.ts.map +0 -1
- package/distribution/component/globe/world/index.js +0 -39
- package/distribution/component/globe/world/index.js.map +0 -1
- package/distribution/component/globe/world/type.d.ts +0 -10
- package/distribution/component/globe/world/type.d.ts.map +0 -1
- package/distribution/component/globe/world/type.js +0 -2
- package/distribution/component/globe/world/type.js.map +0 -1
- package/distribution/component/locale-link/index.d.ts +0 -4
- package/distribution/component/locale-link/index.d.ts.map +0 -1
- package/distribution/component/locale-link/index.js +0 -9
- package/distribution/component/locale-link/index.js.map +0 -1
- package/distribution/component/locale-link/type.d.ts +0 -10
- package/distribution/component/locale-link/type.d.ts.map +0 -1
- package/distribution/component/locale-link/type.js +0 -2
- package/distribution/component/locale-link/type.js.map +0 -1
- package/distribution/hook/globe-drag/index.d.ts +0 -10
- package/distribution/hook/globe-drag/index.d.ts.map +0 -1
- package/distribution/hook/globe-drag/index.js +0 -99
- package/distribution/hook/globe-drag/index.js.map +0 -1
- package/distribution/hook/globe-drag/type.d.ts +0 -11
- package/distribution/hook/globe-drag/type.d.ts.map +0 -1
- package/distribution/hook/globe-drag/type.js +0 -2
- package/distribution/hook/globe-drag/type.js.map +0 -1
- package/distribution/hook/land-points/index.d.ts +0 -3
- package/distribution/hook/land-points/index.d.ts.map +0 -1
- package/distribution/hook/land-points/index.js +0 -17
- package/distribution/hook/land-points/index.js.map +0 -1
- package/distribution/style/token/index.css +0 -1
- package/distribution/utility/hex-channel/index.d.ts +0 -3
- package/distribution/utility/hex-channel/index.d.ts.map +0 -1
- package/distribution/utility/hex-channel/index.js +0 -8
- package/distribution/utility/hex-channel/index.js.map +0 -1
- package/distribution/utility/latitude-longitude-to-vector/index.d.ts +0 -7
- package/distribution/utility/latitude-longitude-to-vector/index.d.ts.map +0 -1
- package/distribution/utility/latitude-longitude-to-vector/index.js +0 -12
- package/distribution/utility/latitude-longitude-to-vector/index.js.map +0 -1
- package/distribution/utility/locale/index.d.ts +0 -6
- package/distribution/utility/locale/index.d.ts.map +0 -1
- package/distribution/utility/locale/index.js +0 -8
- package/distribution/utility/locale/index.js.map +0 -1
- package/distribution/utility/locale/type.d.ts.map +0 -1
- package/distribution/utility/locale/type.js +0 -2
- package/distribution/utility/parse-contact/index.d.ts +0 -4
- package/distribution/utility/parse-contact/index.d.ts.map +0 -1
- package/distribution/utility/parse-contact/index.js +0 -23
- package/distribution/utility/parse-contact/index.js.map +0 -1
- package/distribution/utility/parse-contact/type.d.ts +0 -20
- package/distribution/utility/parse-contact/type.d.ts.map +0 -1
- package/distribution/utility/parse-contact/type.js +0 -2
- package/distribution/utility/parse-contact/type.js.map +0 -1
- package/distribution/utility/web-gl-support/index.d.ts +0 -3
- package/distribution/utility/web-gl-support/index.d.ts.map +0 -1
- package/distribution/utility/web-gl-support/index.js +0 -11
- package/distribution/utility/web-gl-support/index.js.map +0 -1
- /package/distribution/{component/consent/toggle → content/locale}/type.js +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { defineStyles } from "@sharadox/style-web-library/definition";
|
|
1
2
|
/** Black: the Sharadox dark style. White is its exact inverse. */
|
|
2
3
|
const BLACK = {
|
|
3
4
|
background: "#000000",
|
|
@@ -26,21 +27,27 @@ const WHITE = {
|
|
|
26
27
|
"globe-rim": "#adadad",
|
|
27
28
|
};
|
|
28
29
|
/**
|
|
29
|
-
* Every Sharadox style (what other projects call a theme)
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
30
|
+
* Every Sharadox style (what other projects call a theme), as style groups. The colour group holds Black (dark,
|
|
31
|
+
* where the site opens) and White (its exact inverse); add a dark or light option there — name, scheme and the same
|
|
32
|
+
* palette keys — and it appears in the style switch. `systemDefaults` picks what "System" uses for each scheme;
|
|
33
|
+
* set `defaultChoice` to "system" to follow the device from the start. More groups (corners, fonts…) go next to it.
|
|
34
|
+
* The colour choice stays under the "style" storage key, so visitors keep the choice they made before.
|
|
33
35
|
*/
|
|
34
|
-
export const
|
|
35
|
-
|
|
36
|
-
{
|
|
37
|
-
|
|
36
|
+
export const STYLES = defineStyles({
|
|
37
|
+
groups: [
|
|
38
|
+
{
|
|
39
|
+
name: "color",
|
|
40
|
+
defaultChoice: "black",
|
|
41
|
+
systemDefaults: { dark: "black", light: "white" },
|
|
42
|
+
fallbackScheme: "dark",
|
|
43
|
+
storageKey: "style",
|
|
44
|
+
options: [
|
|
45
|
+
{ name: "black", scheme: "dark", palette: BLACK },
|
|
46
|
+
{ name: "white", scheme: "light", palette: WHITE },
|
|
47
|
+
],
|
|
48
|
+
},
|
|
38
49
|
],
|
|
39
|
-
|
|
40
|
-
fallback: "dark",
|
|
41
|
-
storageKey: "style",
|
|
42
|
-
defaultChoice: "black",
|
|
43
|
-
};
|
|
50
|
+
});
|
|
44
51
|
/** Names shown in the style switch. Style names are proper names, the same in every language. */
|
|
45
52
|
export const STYLE = {
|
|
46
53
|
label: { en: "Style", pt: "Estilo" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/content/style/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/content/style/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AAEtE,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;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,YAAY,CAAC;IACjC,MAAM,EAAE;QACN;YACE,IAAI,EAAE,OAAO;YACb,aAAa,EAAE,OAAO;YACtB,cAAc,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;YACjD,cAAc,EAAE,MAAM;YACtB,UAAU,EAAE,OAAO;YACnB,OAAO,EAAE;gBACP,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE;gBACjD,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE;aACnD;SACF;KACF;CACF,CAAC,CAAC;AAEH,iGAAiG;AACjG,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,KAAK,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,QAAQ,EAAE;IACpC,MAAM,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAS,EAAE;IACvC,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAA4B;CAC3D,CAAC"}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* Joins the parts that are set with the Sharadox separator (•), spaced on both sides.
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* separate("Contact", "Ana (Café)"); // "Contact • Ana (Café)"
|
|
6
|
+
*/
|
|
2
7
|
export declare function separate(...parts: (string | false | null | undefined)[]): string;
|
|
3
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/utility/separate/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/utility/separate/index.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,GAAG,KAAK,EAAE,CAAC,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC,EAAE,GAAG,MAAM,CAEhF"}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
import { separate as join } from "@sharadox/web-library/text/separate";
|
|
1
2
|
import { SEPARATOR } from "@sharadox/sharadox-web-library/content/separator";
|
|
2
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Joins the parts that are set with the Sharadox separator (•), spaced on both sides.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* separate("Contact", "Ana (Café)"); // "Contact • Ana (Café)"
|
|
8
|
+
*/
|
|
3
9
|
export function separate(...parts) {
|
|
4
|
-
return
|
|
10
|
+
return join(SEPARATOR, ...parts);
|
|
5
11
|
}
|
|
6
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +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
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/utility/separate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,IAAI,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,kDAAkD,CAAC;AAE7E;;;;;GAKG;AACH,MAAM,UAAU,QAAQ,CAAC,GAAG,KAA4C;IACtE,OAAO,IAAI,CAAC,SAAS,EAAE,GAAG,KAAK,CAAC,CAAC;AACnC,CAAC"}
|
package/llms.txt
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# @sharadox/sharadox-web-library
|
|
2
|
+
|
|
3
|
+
> Sharadox's own website library (verifiable source, not open source): content, branded components, styles and contact configuration for sharadox.com, built on the open-source @sharadox/*-web-library topic libraries.
|
|
4
|
+
|
|
5
|
+
- content/locale LOCALES (defineLocales en/pt); content/style STYLES (colour group: black default, white, system; storageKey "style"); content/separator SEPARATOR "•"
|
|
6
|
+
- utility/separate separate(...parts) with the Sharadox separator
|
|
7
|
+
- action/send-contact sendContact(form, ip) — createContactAction to contact@sharadox.com, subject "Contact • Name (Company)"
|
|
8
|
+
- component/*: navigation, hero (+ lazy globe), service-index, statement, services (+ visuals), touchpoint, capability, marquee, process, contact (+ form), footer, section-indicator, style-switch, consent (shared ConsentPanel), structured-data, share-image (renderShareImage)
|
|
9
|
+
- style/token Sass helpers: tint, shade, dashed, on-scroll, below, fill-center
|
|
10
|
+
- Licence: Sharadox Verifiable Source Licence 0.1.0 (read and verify only)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sharadox/sharadox-web-library",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.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",
|
|
@@ -24,13 +24,14 @@
|
|
|
24
24
|
"distribution",
|
|
25
25
|
"LICENCA.md",
|
|
26
26
|
"LICENSE.md",
|
|
27
|
-
"NOTICE.md"
|
|
27
|
+
"NOTICE.md",
|
|
28
|
+
"llms.txt"
|
|
28
29
|
],
|
|
29
30
|
"sideEffects": [
|
|
30
31
|
"**/*.css"
|
|
31
32
|
],
|
|
32
33
|
"engines": {
|
|
33
|
-
"node": ">=
|
|
34
|
+
"node": ">=24"
|
|
34
35
|
},
|
|
35
36
|
"publishConfig": {
|
|
36
37
|
"access": "public"
|
|
@@ -47,55 +48,63 @@
|
|
|
47
48
|
],
|
|
48
49
|
"*.{json,md,yml,yaml,scss}": "prettier --write"
|
|
49
50
|
},
|
|
51
|
+
"repository": {
|
|
52
|
+
"type": "git",
|
|
53
|
+
"url": "git+https://github.com/Sharadox/sharadox-web-library.git"
|
|
54
|
+
},
|
|
55
|
+
"homepage": "https://github.com/Sharadox/sharadox-web-library#readme",
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"@sharadox/animation-web-library": "^0.1.0",
|
|
58
|
+
"@sharadox/consent-web-library": "^0.1.0",
|
|
59
|
+
"@sharadox/form-web-library": "^0.1.0",
|
|
60
|
+
"@sharadox/globe-web-library": "^0.1.0",
|
|
61
|
+
"@sharadox/internationalization-web-library": "^0.1.0",
|
|
62
|
+
"@sharadox/metadata-web-library": "^0.1.0",
|
|
63
|
+
"@sharadox/pointer-web-library": "^0.1.0",
|
|
64
|
+
"@sharadox/scroll-web-library": "^0.1.0",
|
|
65
|
+
"@sharadox/style-web-library": "^0.1.0",
|
|
66
|
+
"@sharadox/web-library": "^0.5.0",
|
|
67
|
+
"motion": "^12.43.0"
|
|
68
|
+
},
|
|
50
69
|
"devDependencies": {
|
|
51
|
-
"@
|
|
70
|
+
"@sharadox/email-web-library": "^0.2.1",
|
|
71
|
+
"@sharadox/es-lint-configuration-web-library": "^0.1.1",
|
|
72
|
+
"@sharadox/library-build-web-library": "^0.1.1",
|
|
73
|
+
"@sharadox/prettier-configuration-web-library": "^0.1.0",
|
|
74
|
+
"@sharadox/turborepo-configuration-web-library": "^0.1.0",
|
|
75
|
+
"@sharadox/type-script-configuration-web-library": "^0.2.0",
|
|
76
|
+
"@sharadox/vitest-configuration-web-library": "^0.1.3",
|
|
52
77
|
"@testing-library/dom": "^10.4.2",
|
|
53
78
|
"@testing-library/react": "^16.3.3",
|
|
54
79
|
"@types/node": "^24.19.2",
|
|
55
80
|
"@types/react": "^19.3.0",
|
|
56
81
|
"@types/react-dom": "^19.3.0",
|
|
57
82
|
"@types/smtp-server": "^3.5.13",
|
|
58
|
-
"@
|
|
59
|
-
"@vitejs/plugin-react": "^6.3.0",
|
|
83
|
+
"@vitest/coverage-v8": "^5.1.0",
|
|
60
84
|
"eslint": "9.39.5",
|
|
61
|
-
"eslint-config-prettier": "^10.1.8",
|
|
62
|
-
"eslint-plugin-react-hooks": "^7.1.1",
|
|
63
85
|
"happy-dom": "^21.0.4",
|
|
64
86
|
"husky": "^9.1.7",
|
|
65
87
|
"lint-staged": "^17.6.0",
|
|
66
88
|
"next": "16.4.5",
|
|
67
|
-
"prettier": "^3.
|
|
89
|
+
"prettier": "^3.10.0",
|
|
68
90
|
"react": "^19.3.1",
|
|
69
91
|
"react-dom": "^19.3.1",
|
|
70
|
-
"sass": "^1.108.
|
|
71
|
-
"smtp-server": "^3.21.
|
|
92
|
+
"sass": "^1.108.2",
|
|
93
|
+
"smtp-server": "^3.21.4",
|
|
72
94
|
"turbo": "^2.11.10",
|
|
73
95
|
"typedoc": "^0.28.20",
|
|
74
96
|
"typescript": "6.0.3",
|
|
75
|
-
"typescript-eslint": "^8.72.2",
|
|
76
97
|
"vitest": "^5.1.0"
|
|
77
98
|
},
|
|
78
|
-
"repository": {
|
|
79
|
-
"type": "git",
|
|
80
|
-
"url": "git+https://github.com/Sharadox/sharadox-web-library.git"
|
|
81
|
-
},
|
|
82
|
-
"homepage": "https://github.com/Sharadox/sharadox-web-library#readme",
|
|
83
|
-
"dependencies": {
|
|
84
|
-
"@react-three/fiber": "^9.8.2",
|
|
85
|
-
"@sharadox/email-web-library": "^0.2.0",
|
|
86
|
-
"@sharadox/web-library": "^0.4.0",
|
|
87
|
-
"motion": "^12.43.0",
|
|
88
|
-
"three": "^0.180.0"
|
|
89
|
-
},
|
|
90
99
|
"scripts": {
|
|
91
|
-
"build": "
|
|
100
|
+
"build": "library-build",
|
|
92
101
|
"lint": "eslint --max-warnings=0 .",
|
|
93
102
|
"format": "prettier --write .",
|
|
94
103
|
"format:check": "prettier --check .",
|
|
95
104
|
"type-check": "tsc --noEmit",
|
|
96
|
-
"test:unit": "vitest run",
|
|
105
|
+
"test:unit": "vitest run --coverage",
|
|
97
106
|
"test:benchmark": "vitest bench --run --passWithNoTests",
|
|
98
107
|
"documentation": "typedoc",
|
|
99
|
-
"verify": "turbo run format:check lint type-check test:unit
|
|
108
|
+
"verify": "turbo run format:check lint type-check test:unit build"
|
|
100
109
|
}
|
|
101
110
|
}
|
|
@@ -1,4 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,7 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../source/component/consent/toggle/type.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/cursor/index.tsx"],"names":[],"mappings":"AAIA,qGAAqG;AACrG,wBAAgB,MAAM,gCAwCrB"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useEffect, useRef } from "react";
|
|
4
|
-
import styles from "./index.module.css";
|
|
5
|
-
/** Custom cursor on fine pointers: a dot plus a lagging ring that grows over links and the globe. */
|
|
6
|
-
export function Cursor() {
|
|
7
|
-
const dot = useRef(null);
|
|
8
|
-
const ring = useRef(null);
|
|
9
|
-
useEffect(() => {
|
|
10
|
-
if (!window.matchMedia("(pointer: fine)").matches)
|
|
11
|
-
return;
|
|
12
|
-
const root = document.documentElement;
|
|
13
|
-
root.classList.add("has-cursor");
|
|
14
|
-
let x = innerWidth / 2;
|
|
15
|
-
let y = innerHeight / 2;
|
|
16
|
-
let ringX = x;
|
|
17
|
-
let ringY = y;
|
|
18
|
-
let frame = 0;
|
|
19
|
-
const move = (event) => {
|
|
20
|
-
x = event.clientX;
|
|
21
|
-
y = event.clientY;
|
|
22
|
-
const target = event.target;
|
|
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, [data-grab]"));
|
|
25
|
-
};
|
|
26
|
-
const loop = () => {
|
|
27
|
-
ringX += (x - ringX) * 0.18;
|
|
28
|
-
ringY += (y - ringY) * 0.18;
|
|
29
|
-
if (dot.current)
|
|
30
|
-
dot.current.style.transform = `translate3d(${x}px, ${y}px, 0)`;
|
|
31
|
-
if (ring.current)
|
|
32
|
-
ring.current.style.transform = `translate3d(${ringX}px, ${ringY}px, 0)`;
|
|
33
|
-
frame = requestAnimationFrame(loop);
|
|
34
|
-
};
|
|
35
|
-
addEventListener("pointermove", move);
|
|
36
|
-
frame = requestAnimationFrame(loop);
|
|
37
|
-
return () => {
|
|
38
|
-
removeEventListener("pointermove", move);
|
|
39
|
-
cancelAnimationFrame(frame);
|
|
40
|
-
root.classList.remove("has-cursor");
|
|
41
|
-
};
|
|
42
|
-
}, []);
|
|
43
|
-
return (_jsxs(_Fragment, { children: [_jsx("div", { ref: ring, className: styles.ring, "aria-hidden": true }), _jsx("div", { ref: dot, className: styles.dot, "aria-hidden": true })] }));
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,CAAiB,IAAI,CAAC,CAAC;IACzC,MAAM,IAAI,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAC1C,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC,OAAO;YAAE,OAAO;QAC1D,MAAM,IAAI,GAAG,QAAQ,CAAC,eAAe,CAAC;QACtC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QACjC,IAAI,CAAC,GAAG,UAAU,GAAG,CAAC,CAAC;QACvB,IAAI,CAAC,GAAG,WAAW,GAAG,CAAC,CAAC;QACxB,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,MAAM,IAAI,GAAG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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"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
:global(.has-cursor),
|
|
2
|
-
:global(.has-cursor) a,
|
|
3
|
-
:global(.has-cursor) button {
|
|
4
|
-
cursor: none;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
:global(.has-cursor) canvas,
|
|
8
|
-
:global(.has-cursor) [data-grab] {
|
|
9
|
-
cursor: none !important;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.dot,
|
|
13
|
-
.ring {
|
|
14
|
-
position: fixed;
|
|
15
|
-
left: 0;
|
|
16
|
-
top: 0;
|
|
17
|
-
z-index: 1000;
|
|
18
|
-
pointer-events: none;
|
|
19
|
-
border-radius: 50%;
|
|
20
|
-
mix-blend-mode: difference;
|
|
21
|
-
}
|
|
22
|
-
:global(html:not(.has-cursor)) .dot,
|
|
23
|
-
:global(html:not(.has-cursor)) .ring {
|
|
24
|
-
display: none;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.dot {
|
|
28
|
-
width: 6px;
|
|
29
|
-
height: 6px;
|
|
30
|
-
margin: -3px 0 0 -3px;
|
|
31
|
-
background: #fff;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/* White with "difference" blending inverts whatever is underneath, so the cursor shows on every style. */
|
|
35
|
-
.ring {
|
|
36
|
-
width: 34px;
|
|
37
|
-
height: 34px;
|
|
38
|
-
margin: -17px 0 0 -17px;
|
|
39
|
-
border: 1px solid rgba(255, 255, 255, 0.6);
|
|
40
|
-
transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.35s;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.hot {
|
|
44
|
-
width: 60px;
|
|
45
|
-
height: 60px;
|
|
46
|
-
margin: -30px 0 0 -30px;
|
|
47
|
-
background: rgba(255, 255, 255, 0.12);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.grab {
|
|
51
|
-
width: 76px;
|
|
52
|
-
height: 76px;
|
|
53
|
-
margin: -38px 0 0 -38px;
|
|
54
|
-
border-style: dashed;
|
|
55
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { ArcProperties } from "@sharadox/sharadox-web-library/component/globe/arc/type";
|
|
2
|
-
/** A light arc lifting off the surface between two places, with a pulse running along it. */
|
|
3
|
-
export declare function Arc({ from, to, offset, colors }: ArcProperties): import("react").JSX.Element;
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/globe/arc/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yDAAyD,CAAC;AAE7F,6FAA6F;AAC7F,wBAAgB,GAAG,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,aAAa,+BAiC9D"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { useFrame } from "@react-three/fiber";
|
|
4
|
-
import { useMemo, useRef } from "react";
|
|
5
|
-
import { AdditiveBlending, NormalBlending, QuadraticBezierCurve3, TubeGeometry } from "three";
|
|
6
|
-
import { ARC_SHADER } from "@sharadox/sharadox-web-library/component/globe/shader/arc";
|
|
7
|
-
import { latitudeLongitudeToVector } from "@sharadox/sharadox-web-library/utility/latitude-longitude-to-vector";
|
|
8
|
-
/** A light arc lifting off the surface between two places, with a pulse running along it. */
|
|
9
|
-
export function Arc({ from, to, offset, colors }) {
|
|
10
|
-
const material = useRef(null);
|
|
11
|
-
const geometry = useMemo(() => {
|
|
12
|
-
const start = latitudeLongitudeToVector(from.latitude, from.longitude, 1.002);
|
|
13
|
-
const end = latitudeLongitudeToVector(to[0], to[1], 1.002);
|
|
14
|
-
const middle = start
|
|
15
|
-
.clone()
|
|
16
|
-
.add(end)
|
|
17
|
-
.multiplyScalar(0.5)
|
|
18
|
-
.normalize()
|
|
19
|
-
.multiplyScalar(1 + start.distanceTo(end) * 0.38);
|
|
20
|
-
return new TubeGeometry(new QuadraticBezierCurve3(start, middle, end), 90, 0.0032, 6, false);
|
|
21
|
-
}, [from, to]);
|
|
22
|
-
const uniforms = useMemo(() => ({ time: { value: 0 }, offset: { value: offset }, color: { value: colors.ink } }), [offset, colors]);
|
|
23
|
-
useFrame((_, deltaSeconds) => {
|
|
24
|
-
if (material.current)
|
|
25
|
-
material.current.uniforms.time.value += deltaSeconds;
|
|
26
|
-
});
|
|
27
|
-
return (_jsx("mesh", { geometry: geometry, children: _jsx("shaderMaterial", { ref: material, vertexShader: ARC_SHADER.vertex, fragmentShader: ARC_SHADER.fragment, uniforms: uniforms, transparent: true, depthWrite: false, blending: colors.additive ? AdditiveBlending : NormalBlending }) }));
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/globe/arc/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,qBAAqB,EAAE,YAAY,EAAuB,MAAM,OAAO,CAAC;AACnH,OAAO,EAAE,UAAU,EAAE,MAAM,2DAA2D,CAAC;AACvF,OAAO,EAAE,yBAAyB,EAAE,MAAM,q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O;YAAE,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAK,CAAC,KAAK,IAAI,YAAY,CAAC;IAC9E,CAAC,CAAC,CAAC;IACH,OAAO,CACL,eAAM,QAAQ,EAAE,QAAQ,YACtB,yBACE,GAAG,EAAE,QAAQ,EACb,YAAY,EAAE,UAAU,CAAC,MAAM,EAC/B,cAAc,EAAE,UAAU,CAAC,QAAQ,EACnC,QAAQ,EAAE,QAAQ,EAClB,WAAW,QACX,UAAU,EAAE,KAAK,EACjB,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,cAAc,GAC7D,GACG,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { GlobeColors } from "@sharadox/sharadox-web-library/component/globe/color/type";
|
|
2
|
-
export interface ArcProperties {
|
|
3
|
-
colors: GlobeColors;
|
|
4
|
-
from: {
|
|
5
|
-
latitude: number;
|
|
6
|
-
longitude: number;
|
|
7
|
-
};
|
|
8
|
-
to: readonly [number, number];
|
|
9
|
-
/** Phase of the travelling pulse, 0–1, so arcs don't pulse in sync. */
|
|
10
|
-
offset: number;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/globe/arc/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2DAA2D,CAAC;AAE7F,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,WAAW,CAAC;IACpB,IAAI,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9C,EAAE,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,uEAAuE;IACvE,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../source/component/globe/arc/type.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { GlobeColors } from "@sharadox/sharadox-web-library/component/globe/color/type";
|
|
2
|
-
/** The globe's colours, taken from a style's palette (`foreground`, `globe-body`, `globe-rim`). */
|
|
3
|
-
export declare function globeColors(styleName: string): GlobeColors;
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/globe/color/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2DAA2D,CAAC;AAE7F,mGAAmG;AACnG,wBAAgB,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,WAAW,CAW1D"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { findStyle } from "@sharadox/web-library/style/definition";
|
|
2
|
-
import { STYLE_CONFIGURATION } from "@sharadox/sharadox-web-library/content/style";
|
|
3
|
-
import { hexChannel } from "@sharadox/sharadox-web-library/utility/hex-channel";
|
|
4
|
-
/** The globe's colours, taken from a style's palette (`foreground`, `globe-body`, `globe-rim`). */
|
|
5
|
-
export function globeColors(styleName) {
|
|
6
|
-
const style = findStyle(STYLE_CONFIGURATION, styleName) ?? findStyle(STYLE_CONFIGURATION, STYLE_CONFIGURATION.defaults.dark);
|
|
7
|
-
const palette = style.palette;
|
|
8
|
-
return {
|
|
9
|
-
ink: hexChannel(palette.foreground),
|
|
10
|
-
inkHex: palette.foreground,
|
|
11
|
-
body: hexChannel(palette["globe-body"]),
|
|
12
|
-
rim: hexChannel(palette["globe-rim"]),
|
|
13
|
-
additive: style.scheme === "dark",
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/globe/color/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,wCAAwC,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACnF,OAAO,EAAE,UAAU,EAAE,MAAM,oDAAoD,CAAC;AAGhF,mGAAmG;AACnG,MAAM,UAAU,WAAW,CAAC,SAAiB;IAC3C,MAAM,KAAK,GACT,SAAS,CAAC,mBAAmB,EAAE,SAAS,CAAC,IAAI,SAAS,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAE,CAAC;IAClH,MAAM,OAAO,GAAG,KAAK,CAAC,OAAiC,CAAC;IACxD,OAAO;QACL,GAAG,EAAE,UAAU,CAAC,OAAO,CAAC,UAAW,CAAC;QACpC,MAAM,EAAE,OAAO,CAAC,UAAW;QAC3B,IAAI,EAAE,UAAU,CAAC,OAAO,CAAC,YAAY,CAAE,CAAC;QACxC,GAAG,EAAE,UAAU,CAAC,OAAO,CAAC,WAAW,CAAE,CAAC;QACtC,QAAQ,EAAE,KAAK,CAAC,MAAM,KAAK,MAAM;KAClC,CAAC;AACJ,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/** The globe's colours for the style in use. Channels run from 0 to 1. */
|
|
2
|
-
export interface GlobeColors {
|
|
3
|
-
/** Land dots, arcs and markers: the style's foreground. */
|
|
4
|
-
ink: [number, number, number];
|
|
5
|
-
/** The same, as "#rrggbb", for standard three.js materials. */
|
|
6
|
-
inkHex: string;
|
|
7
|
-
/** The planet body, and its rim where it turns away. */
|
|
8
|
-
body: [number, number, number];
|
|
9
|
-
rim: [number, number, number];
|
|
10
|
-
/** Light adds up on dark styles; on light styles the ink is drawn normally (dark on light). */
|
|
11
|
-
additive: boolean;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/globe/color/type.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,MAAM,WAAW,WAAW;IAC1B,2DAA2D;IAC3D,GAAG,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,+DAA+D;IAC/D,MAAM,EAAE,MAAM,CAAC;IACf,wDAAwD;IACxD,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,GAAG,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,+FAA+F;IAC/F,QAAQ,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../source/component/globe/color/type.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { DotsProperties } from "@sharadox/sharadox-web-library/component/globe/dots/type";
|
|
2
|
-
/** The land, drawn as twinkling points that fade towards the globe's edge. */
|
|
3
|
-
export declare function Dots({ data, colors }: DotsProperties): import("react").JSX.Element;
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/globe/dots/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAE/F,8EAA8E;AAC9E,wBAAgB,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,cAAc,+BAwCpD"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { pseudoRandom } from "@sharadox/web-library/math/pseudo-random";
|
|
4
|
-
import { useFrame, useThree } from "@react-three/fiber";
|
|
5
|
-
import { useMemo, useRef } from "react";
|
|
6
|
-
import { BufferAttribute, BufferGeometry } from "three";
|
|
7
|
-
import { DOT_SHADER } from "@sharadox/sharadox-web-library/component/globe/shader/dot";
|
|
8
|
-
import { latitudeLongitudeToVector } from "@sharadox/sharadox-web-library/utility/latitude-longitude-to-vector";
|
|
9
|
-
/** The land, drawn as twinkling points that fade towards the globe's edge. */
|
|
10
|
-
export function Dots({ data, colors }) {
|
|
11
|
-
const { gl } = useThree();
|
|
12
|
-
const material = useRef(null);
|
|
13
|
-
const geometry = useMemo(() => {
|
|
14
|
-
const count = data.length / 2;
|
|
15
|
-
const position = new Float32Array(count * 3);
|
|
16
|
-
const seed = new Float32Array(count);
|
|
17
|
-
for (let index = 0; index < count; index++) {
|
|
18
|
-
const point = latitudeLongitudeToVector(data[index * 2], data[index * 2 + 1], 1.001);
|
|
19
|
-
position.set([point.x, point.y, point.z], index * 3);
|
|
20
|
-
seed[index] = pseudoRandom(index);
|
|
21
|
-
}
|
|
22
|
-
const points = new BufferGeometry();
|
|
23
|
-
points.setAttribute("position", new BufferAttribute(position, 3));
|
|
24
|
-
points.setAttribute("seed", new BufferAttribute(seed, 1));
|
|
25
|
-
return points;
|
|
26
|
-
}, [data]);
|
|
27
|
-
const uniforms = useMemo(() => ({
|
|
28
|
-
time: { value: 0 },
|
|
29
|
-
pointSize: { value: 2.6 * Math.min(gl.getPixelRatio(), 2) },
|
|
30
|
-
color: { value: colors.ink },
|
|
31
|
-
}), [gl, colors]);
|
|
32
|
-
useFrame((_, deltaSeconds) => {
|
|
33
|
-
if (material.current)
|
|
34
|
-
material.current.uniforms.time.value += deltaSeconds;
|
|
35
|
-
});
|
|
36
|
-
return (_jsx("points", { geometry: geometry, children: _jsx("shaderMaterial", { ref: material, vertexShader: DOT_SHADER.vertex, fragmentShader: DOT_SHADER.fragment, uniforms: uniforms, transparent: true, depthWrite: false }) }));
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@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1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/globe/dots/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2DAA2D,CAAC;AAE7F,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,WAAW,CAAC;IACpB,2CAA2C;IAC3C,IAAI,EAAE,YAAY,CAAC;CACpB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../source/component/globe/dots/type.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { MarkerProperties } from "@sharadox/sharadox-web-library/component/globe/marker/type";
|
|
2
|
-
/** A city dot lying flat on the surface. */
|
|
3
|
-
export declare function Marker({ latitude, longitude, color, home }: MarkerProperties): import("react").JSX.Element;
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/globe/marker/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4DAA4D,CAAC;AAEnG,4CAA4C;AAC5C,wBAAgB,MAAM,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,IAAY,EAAE,EAAE,gBAAgB,+BA2BpF"}
|