@sharadox/sharadox-web-library 0.6.6 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (300) hide show
  1. package/README.md +46 -8
  2. package/distribution/action/send-contact/index.d.ts +5 -6
  3. package/distribution/action/send-contact/index.d.ts.map +1 -1
  4. package/distribution/action/send-contact/index.js +13 -49
  5. package/distribution/action/send-contact/index.js.map +1 -1
  6. package/distribution/action/send-contact/type.d.ts +1 -3
  7. package/distribution/action/send-contact/type.d.ts.map +1 -1
  8. package/distribution/component/button/index.module.css +1 -58
  9. package/distribution/component/button/index.module.scss +60 -0
  10. package/distribution/component/capability/index.js +2 -2
  11. package/distribution/component/capability/index.module.css +1 -94
  12. package/distribution/component/capability/index.module.scss +85 -0
  13. package/distribution/component/capability/type.d.ts +1 -1
  14. package/distribution/component/consent/index.d.ts +1 -4
  15. package/distribution/component/consent/index.d.ts.map +1 -1
  16. package/distribution/component/consent/index.js +19 -32
  17. package/distribution/component/consent/index.js.map +1 -1
  18. package/distribution/component/consent/index.module.css +1 -183
  19. package/distribution/component/consent/index.module.scss +45 -0
  20. package/distribution/component/consent/preferences-link/index.js +1 -1
  21. package/distribution/component/consent/type.d.ts +1 -1
  22. package/distribution/component/contact/form/index.d.ts.map +1 -1
  23. package/distribution/component/contact/form/index.js +4 -4
  24. package/distribution/component/contact/form/index.js.map +1 -1
  25. package/distribution/component/contact/form/index.module.css +1 -168
  26. package/distribution/component/contact/form/index.module.scss +163 -0
  27. package/distribution/component/contact/form/type.d.ts +1 -1
  28. package/distribution/component/contact/index.js +2 -2
  29. package/distribution/component/contact/index.module.css +1 -56
  30. package/distribution/component/contact/index.module.scss +52 -0
  31. package/distribution/component/contact/type.d.ts +1 -1
  32. package/distribution/component/cross/index.d.ts.map +1 -1
  33. package/distribution/component/cross/index.js +2 -1
  34. package/distribution/component/cross/index.js.map +1 -1
  35. package/distribution/component/cross/index.module.css +1 -53
  36. package/distribution/component/cross/index.module.scss +50 -0
  37. package/distribution/component/eyebrow/index.d.ts.map +1 -1
  38. package/distribution/component/eyebrow/index.js +2 -1
  39. package/distribution/component/eyebrow/index.js.map +1 -1
  40. package/distribution/component/eyebrow/index.module.css +1 -9
  41. package/distribution/component/eyebrow/index.module.scss +9 -0
  42. package/distribution/component/footer/index.js +4 -4
  43. package/distribution/component/footer/index.js.map +1 -1
  44. package/distribution/component/footer/index.module.css +1 -138
  45. package/distribution/component/footer/index.module.scss +125 -0
  46. package/distribution/component/footer/type.d.ts +1 -1
  47. package/distribution/component/globe/index.d.ts +2 -2
  48. package/distribution/component/globe/index.d.ts.map +1 -1
  49. package/distribution/component/globe/index.js +23 -32
  50. package/distribution/component/globe/index.js.map +1 -1
  51. package/distribution/component/globe/index.module.css +1 -25
  52. package/distribution/component/globe/index.module.scss +7 -0
  53. package/distribution/component/hero/guide/index.module.css +1 -97
  54. package/distribution/component/hero/guide/index.module.scss +94 -0
  55. package/distribution/component/hero/index.js +1 -1
  56. package/distribution/component/hero/index.module.css +1 -124
  57. package/distribution/component/hero/index.module.scss +109 -0
  58. package/distribution/component/hero/type.d.ts +1 -1
  59. package/distribution/component/language-switch/index.js +4 -4
  60. package/distribution/component/language-switch/index.js.map +1 -1
  61. package/distribution/component/language-switch/index.module.css +1 -20
  62. package/distribution/component/language-switch/index.module.scss +22 -0
  63. package/distribution/component/language-switch/type.d.ts +1 -1
  64. package/distribution/component/marquee/index.js +1 -1
  65. package/distribution/component/marquee/index.module.css +1 -43
  66. package/distribution/component/marquee/index.module.scss +39 -0
  67. package/distribution/component/navigation/index.d.ts.map +1 -1
  68. package/distribution/component/navigation/index.js +3 -2
  69. package/distribution/component/navigation/index.js.map +1 -1
  70. package/distribution/component/navigation/index.module.css +1 -81
  71. package/distribution/component/navigation/index.module.scss +76 -0
  72. package/distribution/component/navigation/type.d.ts +1 -1
  73. package/distribution/component/process/index.js +1 -1
  74. package/distribution/component/process/index.module.css +1 -43
  75. package/distribution/component/process/index.module.scss +40 -0
  76. package/distribution/component/process/step/index.module.css +1 -33
  77. package/distribution/component/process/step/index.module.scss +31 -0
  78. package/distribution/component/process/type.d.ts +1 -1
  79. package/distribution/component/section/index.d.ts.map +1 -1
  80. package/distribution/component/section/index.js +2 -1
  81. package/distribution/component/section/index.js.map +1 -1
  82. package/distribution/component/section/index.module.css +1 -35
  83. package/distribution/component/section/index.module.scss +32 -0
  84. package/distribution/component/section-heading/index.js +1 -1
  85. package/distribution/component/section-heading/index.module.css +1 -7
  86. package/distribution/component/section-heading/index.module.scss +7 -0
  87. package/distribution/component/section-indicator/index.js +2 -2
  88. package/distribution/component/section-indicator/index.module.css +1 -145
  89. package/distribution/component/section-indicator/index.module.scss +143 -0
  90. package/distribution/component/section-indicator/type.d.ts +1 -1
  91. package/distribution/component/service-index/index.js +1 -1
  92. package/distribution/component/service-index/index.module.css +1 -88
  93. package/distribution/component/service-index/index.module.scss +83 -0
  94. package/distribution/component/service-index/type.d.ts +1 -1
  95. package/distribution/component/services/campaign-visual/index.d.ts.map +1 -1
  96. package/distribution/component/services/campaign-visual/index.js +4 -3
  97. package/distribution/component/services/campaign-visual/index.js.map +1 -1
  98. package/distribution/component/services/campaign-visual/index.module.css +1 -128
  99. package/distribution/component/services/campaign-visual/index.module.scss +122 -0
  100. package/distribution/component/services/campaign-visual/stage/index.js +3 -3
  101. package/distribution/component/services/campaign-visual/stage/index.js.map +1 -1
  102. package/distribution/component/services/campaign-visual/stage/type.d.ts +1 -1
  103. package/distribution/component/services/campaign-visual/type.d.ts +1 -1
  104. package/distribution/component/services/cell/index.d.ts.map +1 -1
  105. package/distribution/component/services/cell/index.js +4 -3
  106. package/distribution/component/services/cell/index.js.map +1 -1
  107. package/distribution/component/services/cell/index.module.css +1 -86
  108. package/distribution/component/services/cell/index.module.scss +81 -0
  109. package/distribution/component/services/design-visual/index.d.ts.map +1 -1
  110. package/distribution/component/services/design-visual/index.js +3 -2
  111. package/distribution/component/services/design-visual/index.js.map +1 -1
  112. package/distribution/component/services/design-visual/index.module.css +1 -130
  113. package/distribution/component/services/design-visual/index.module.scss +117 -0
  114. package/distribution/component/services/index.js +2 -2
  115. package/distribution/component/services/index.module.css +1 -84
  116. package/distribution/component/services/index.module.scss +66 -0
  117. package/distribution/component/services/mobile-visual/index.d.ts.map +1 -1
  118. package/distribution/component/services/mobile-visual/index.js +2 -1
  119. package/distribution/component/services/mobile-visual/index.js.map +1 -1
  120. package/distribution/component/services/mobile-visual/index.module.css +1 -104
  121. package/distribution/component/services/mobile-visual/index.module.scss +93 -0
  122. package/distribution/component/services/mobile-visual/type.d.ts +1 -1
  123. package/distribution/component/services/platform-visual/index.module.css +1 -46
  124. package/distribution/component/services/platform-visual/index.module.scss +39 -0
  125. package/distribution/component/services/social-visual/index.d.ts.map +1 -1
  126. package/distribution/component/services/social-visual/index.js +6 -5
  127. package/distribution/component/services/social-visual/index.js.map +1 -1
  128. package/distribution/component/services/social-visual/index.module.css +1 -131
  129. package/distribution/component/services/social-visual/index.module.scss +120 -0
  130. package/distribution/component/services/social-visual/type.d.ts +1 -1
  131. package/distribution/component/services/type.d.ts +1 -1
  132. package/distribution/component/services/web-visual/index.d.ts.map +1 -1
  133. package/distribution/component/services/web-visual/index.js +3 -2
  134. package/distribution/component/services/web-visual/index.js.map +1 -1
  135. package/distribution/component/services/web-visual/index.module.css +1 -142
  136. package/distribution/component/services/web-visual/index.module.scss +132 -0
  137. package/distribution/component/share-image/index.d.ts +1 -2
  138. package/distribution/component/share-image/index.d.ts.map +1 -1
  139. package/distribution/component/share-image/index.js +3 -3
  140. package/distribution/component/share-image/index.js.map +1 -1
  141. package/distribution/component/share-image/type.d.ts +1 -1
  142. package/distribution/component/statement/index.js +1 -1
  143. package/distribution/component/statement/index.module.css +1 -11
  144. package/distribution/component/statement/index.module.scss +10 -0
  145. package/distribution/component/structured-data/index.d.ts.map +1 -1
  146. package/distribution/component/structured-data/index.js +48 -53
  147. package/distribution/component/structured-data/index.js.map +1 -1
  148. package/distribution/component/structured-data/type.d.ts +1 -1
  149. package/distribution/component/style-switch/index.d.ts +2 -2
  150. package/distribution/component/style-switch/index.d.ts.map +1 -1
  151. package/distribution/component/style-switch/index.js +11 -18
  152. package/distribution/component/style-switch/index.js.map +1 -1
  153. package/distribution/component/style-switch/index.module.css +1 -36
  154. package/distribution/component/style-switch/index.module.scss +37 -0
  155. package/distribution/component/style-switch/type.d.ts +1 -1
  156. package/distribution/component/touchpoint/index.js +3 -3
  157. package/distribution/component/touchpoint/index.module.css +1 -85
  158. package/distribution/component/touchpoint/index.module.scss +75 -0
  159. package/distribution/component/touchpoint/plate/index.module.css +1 -136
  160. package/distribution/component/touchpoint/plate/index.module.scss +129 -0
  161. package/distribution/component/touchpoint/type.d.ts +1 -1
  162. package/distribution/component/wordmark/index.module.css +1 -23
  163. package/distribution/component/wordmark/index.module.scss +22 -0
  164. package/distribution/content/locale/index.d.ts +6 -0
  165. package/distribution/content/locale/index.d.ts.map +1 -0
  166. package/distribution/content/locale/index.js +7 -0
  167. package/distribution/content/locale/index.js.map +1 -0
  168. package/distribution/{utility → content}/locale/type.d.ts +3 -2
  169. package/distribution/content/locale/type.d.ts.map +1 -0
  170. package/distribution/{utility → content}/locale/type.js.map +1 -1
  171. package/distribution/content/style/index.d.ts +47 -43
  172. package/distribution/content/style/index.d.ts.map +1 -1
  173. package/distribution/content/style/index.js +20 -13
  174. package/distribution/content/style/index.js.map +1 -1
  175. package/distribution/utility/separate/index.d.ts +6 -1
  176. package/distribution/utility/separate/index.d.ts.map +1 -1
  177. package/distribution/utility/separate/index.js +8 -2
  178. package/distribution/utility/separate/index.js.map +1 -1
  179. package/llms.txt +10 -0
  180. package/package.json +37 -27
  181. package/distribution/component/consent/toggle/index.d.ts +0 -4
  182. package/distribution/component/consent/toggle/index.d.ts.map +0 -1
  183. package/distribution/component/consent/toggle/index.js +0 -7
  184. package/distribution/component/consent/toggle/index.js.map +0 -1
  185. package/distribution/component/consent/toggle/type.d.ts +0 -10
  186. package/distribution/component/consent/toggle/type.d.ts.map +0 -1
  187. package/distribution/component/consent/toggle/type.js.map +0 -1
  188. package/distribution/component/cursor/index.d.ts +0 -3
  189. package/distribution/component/cursor/index.d.ts.map +0 -1
  190. package/distribution/component/cursor/index.js +0 -45
  191. package/distribution/component/cursor/index.js.map +0 -1
  192. package/distribution/component/cursor/index.module.css +0 -55
  193. package/distribution/component/globe/arc/index.d.ts +0 -4
  194. package/distribution/component/globe/arc/index.d.ts.map +0 -1
  195. package/distribution/component/globe/arc/index.js +0 -29
  196. package/distribution/component/globe/arc/index.js.map +0 -1
  197. package/distribution/component/globe/arc/type.d.ts +0 -12
  198. package/distribution/component/globe/arc/type.d.ts.map +0 -1
  199. package/distribution/component/globe/arc/type.js +0 -2
  200. package/distribution/component/globe/arc/type.js.map +0 -1
  201. package/distribution/component/globe/color/index.d.ts +0 -4
  202. package/distribution/component/globe/color/index.d.ts.map +0 -1
  203. package/distribution/component/globe/color/index.js +0 -16
  204. package/distribution/component/globe/color/index.js.map +0 -1
  205. package/distribution/component/globe/color/type.d.ts +0 -13
  206. package/distribution/component/globe/color/type.d.ts.map +0 -1
  207. package/distribution/component/globe/color/type.js +0 -2
  208. package/distribution/component/globe/color/type.js.map +0 -1
  209. package/distribution/component/globe/dots/index.d.ts +0 -4
  210. package/distribution/component/globe/dots/index.d.ts.map +0 -1
  211. package/distribution/component/globe/dots/index.js +0 -38
  212. package/distribution/component/globe/dots/index.js.map +0 -1
  213. package/distribution/component/globe/dots/type.d.ts +0 -7
  214. package/distribution/component/globe/dots/type.d.ts.map +0 -1
  215. package/distribution/component/globe/dots/type.js +0 -2
  216. package/distribution/component/globe/dots/type.js.map +0 -1
  217. package/distribution/component/globe/marker/index.d.ts +0 -4
  218. package/distribution/component/globe/marker/index.d.ts.map +0 -1
  219. package/distribution/component/globe/marker/index.js +0 -21
  220. package/distribution/component/globe/marker/index.js.map +0 -1
  221. package/distribution/component/globe/marker/type.d.ts +0 -9
  222. package/distribution/component/globe/marker/type.d.ts.map +0 -1
  223. package/distribution/component/globe/marker/type.js +0 -2
  224. package/distribution/component/globe/marker/type.js.map +0 -1
  225. package/distribution/component/globe/shader/arc/index.d.ts +0 -6
  226. package/distribution/component/globe/shader/arc/index.d.ts.map +0 -1
  227. package/distribution/component/globe/shader/arc/index.js +0 -24
  228. package/distribution/component/globe/shader/arc/index.js.map +0 -1
  229. package/distribution/component/globe/shader/atmosphere/index.d.ts +0 -6
  230. package/distribution/component/globe/shader/atmosphere/index.d.ts.map +0 -1
  231. package/distribution/component/globe/shader/atmosphere/index.js +0 -15
  232. package/distribution/component/globe/shader/atmosphere/index.js.map +0 -1
  233. package/distribution/component/globe/shader/body/index.d.ts +0 -6
  234. package/distribution/component/globe/shader/body/index.d.ts.map +0 -1
  235. package/distribution/component/globe/shader/body/index.js +0 -15
  236. package/distribution/component/globe/shader/body/index.js.map +0 -1
  237. package/distribution/component/globe/shader/dot/index.d.ts +0 -6
  238. package/distribution/component/globe/shader/dot/index.d.ts.map +0 -1
  239. package/distribution/component/globe/shader/dot/index.js +0 -29
  240. package/distribution/component/globe/shader/dot/index.js.map +0 -1
  241. package/distribution/component/globe/shader/glow-vertex/index.d.ts +0 -3
  242. package/distribution/component/globe/shader/glow-vertex/index.d.ts.map +0 -1
  243. package/distribution/component/globe/shader/glow-vertex/index.js +0 -9
  244. package/distribution/component/globe/shader/glow-vertex/index.js.map +0 -1
  245. package/distribution/component/globe/world/index.d.ts +0 -4
  246. package/distribution/component/globe/world/index.d.ts.map +0 -1
  247. package/distribution/component/globe/world/index.js +0 -39
  248. package/distribution/component/globe/world/index.js.map +0 -1
  249. package/distribution/component/globe/world/type.d.ts +0 -10
  250. package/distribution/component/globe/world/type.d.ts.map +0 -1
  251. package/distribution/component/globe/world/type.js +0 -2
  252. package/distribution/component/globe/world/type.js.map +0 -1
  253. package/distribution/component/locale-link/index.d.ts +0 -4
  254. package/distribution/component/locale-link/index.d.ts.map +0 -1
  255. package/distribution/component/locale-link/index.js +0 -9
  256. package/distribution/component/locale-link/index.js.map +0 -1
  257. package/distribution/component/locale-link/type.d.ts +0 -10
  258. package/distribution/component/locale-link/type.d.ts.map +0 -1
  259. package/distribution/component/locale-link/type.js +0 -2
  260. package/distribution/component/locale-link/type.js.map +0 -1
  261. package/distribution/hook/globe-drag/index.d.ts +0 -10
  262. package/distribution/hook/globe-drag/index.d.ts.map +0 -1
  263. package/distribution/hook/globe-drag/index.js +0 -99
  264. package/distribution/hook/globe-drag/index.js.map +0 -1
  265. package/distribution/hook/globe-drag/type.d.ts +0 -11
  266. package/distribution/hook/globe-drag/type.d.ts.map +0 -1
  267. package/distribution/hook/globe-drag/type.js +0 -2
  268. package/distribution/hook/globe-drag/type.js.map +0 -1
  269. package/distribution/hook/land-points/index.d.ts +0 -3
  270. package/distribution/hook/land-points/index.d.ts.map +0 -1
  271. package/distribution/hook/land-points/index.js +0 -17
  272. package/distribution/hook/land-points/index.js.map +0 -1
  273. package/distribution/style/token/index.css +0 -1
  274. package/distribution/utility/hex-channel/index.d.ts +0 -3
  275. package/distribution/utility/hex-channel/index.d.ts.map +0 -1
  276. package/distribution/utility/hex-channel/index.js +0 -8
  277. package/distribution/utility/hex-channel/index.js.map +0 -1
  278. package/distribution/utility/latitude-longitude-to-vector/index.d.ts +0 -7
  279. package/distribution/utility/latitude-longitude-to-vector/index.d.ts.map +0 -1
  280. package/distribution/utility/latitude-longitude-to-vector/index.js +0 -12
  281. package/distribution/utility/latitude-longitude-to-vector/index.js.map +0 -1
  282. package/distribution/utility/locale/index.d.ts +0 -6
  283. package/distribution/utility/locale/index.d.ts.map +0 -1
  284. package/distribution/utility/locale/index.js +0 -8
  285. package/distribution/utility/locale/index.js.map +0 -1
  286. package/distribution/utility/locale/type.d.ts.map +0 -1
  287. package/distribution/utility/locale/type.js +0 -2
  288. package/distribution/utility/parse-contact/index.d.ts +0 -4
  289. package/distribution/utility/parse-contact/index.d.ts.map +0 -1
  290. package/distribution/utility/parse-contact/index.js +0 -23
  291. package/distribution/utility/parse-contact/index.js.map +0 -1
  292. package/distribution/utility/parse-contact/type.d.ts +0 -20
  293. package/distribution/utility/parse-contact/type.d.ts.map +0 -1
  294. package/distribution/utility/parse-contact/type.js +0 -2
  295. package/distribution/utility/parse-contact/type.js.map +0 -1
  296. package/distribution/utility/web-gl-support/index.d.ts +0 -3
  297. package/distribution/utility/web-gl-support/index.d.ts.map +0 -1
  298. package/distribution/utility/web-gl-support/index.js +0 -11
  299. package/distribution/utility/web-gl-support/index.js.map +0 -1
  300. /package/distribution/{component/consent/toggle → content/locale}/type.js +0 -0
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Every language sharadox.com is published in (the default is the x-default alternate). Adding a language is one
3
+ * more entry here, plus its copy in content/.
4
+ */
5
+ export declare const LOCALES: import("@sharadox/internationalization-web-library/locale/type").Locales<"en" | "pt">;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/locale/index.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,OAAO,uFAA+F,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { defineLocales } from "@sharadox/internationalization-web-library/locale";
2
+ /**
3
+ * Every language sharadox.com is published in (the default is the x-default alternate). Adding a language is one
4
+ * more entry here, plus its copy in content/.
5
+ */
6
+ export const LOCALES = defineLocales({ locales: ["en", "pt"], defaultLocale: "en", languageTags: { pt: "pt-PT" } });
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/content/locale/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mDAAmD,CAAC;AAElF;;;GAGG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC"}
@@ -1,6 +1,7 @@
1
- import type { Translated as GenericTranslated } from "@sharadox/web-library/internationalization/locale/type";
1
+ import type { Translated as GenericTranslated } from "@sharadox/internationalization-web-library/locale/type";
2
+ import type { LOCALES } from "@sharadox/sharadox-web-library/content/locale";
2
3
  /** A language sharadox.com is published in. */
3
- export type Locale = "en" | "pt";
4
+ export type Locale = (typeof LOCALES.locales)[number];
4
5
  /** A piece of copy written in every published language. */
5
6
  export type Translated = GenericTranslated<Locale>;
6
7
  //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/content/locale/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,IAAI,iBAAiB,EAAE,MAAM,wDAAwD,CAAC;AAC9G,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+CAA+C,CAAC;AAE7E,+CAA+C;AAC/C,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtD,2DAA2D;AAC3D,MAAM,MAAM,UAAU,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../source/utility/locale/type.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../source/content/locale/type.ts"],"names":[],"mappings":""}
@@ -1,50 +1,54 @@
1
1
  /**
2
- * Every Sharadox style (what other projects call a theme). Add a dark or light style here — name, scheme and the
3
- * same palette keys — and it appears in the style switch; `defaults` picks the one "System" uses for each scheme.
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.
2
+ * Every Sharadox style (what other projects call a theme), as style groups. The colour group holds Black (dark,
3
+ * where the site opens) and White (its exact inverse); add a dark or light option there — name, scheme and the same
4
+ * palette keys — and it appears in the style switch. `systemDefaults` picks what "System" uses for each scheme;
5
+ * set `defaultChoice` to "system" to follow the device from the start. More groups (corners, fonts…) go next to it.
6
+ * The colour choice stays under the "style" storage key, so visitors keep the choice they made before.
6
7
  */
7
- export declare const STYLE_CONFIGURATION: {
8
- readonly styles: readonly [{
9
- readonly name: "black";
10
- readonly scheme: "dark";
11
- readonly palette: {
12
- background: string;
13
- foreground: string;
14
- "foreground-2": string;
15
- "foreground-3": string;
16
- line: string;
17
- "line-2": string;
18
- card: string;
19
- surface: string;
20
- error: string;
21
- "globe-body": string;
22
- "globe-rim": string;
23
- };
24
- }, {
25
- readonly name: "white";
26
- readonly scheme: "light";
27
- readonly palette: {
28
- background: string;
29
- foreground: string;
30
- "foreground-2": string;
31
- "foreground-3": string;
32
- line: string;
33
- "line-2": string;
34
- card: string;
35
- surface: string;
36
- error: string;
37
- "globe-body": string;
38
- "globe-rim": string;
8
+ export declare const STYLES: {
9
+ readonly groups: readonly [{
10
+ readonly name: "color";
11
+ readonly defaultChoice: "black";
12
+ readonly systemDefaults: {
13
+ readonly dark: "black";
14
+ readonly light: "white";
39
15
  };
16
+ readonly fallbackScheme: "dark";
17
+ readonly storageKey: "style";
18
+ readonly options: readonly [{
19
+ readonly name: "black";
20
+ readonly scheme: "dark";
21
+ readonly palette: {
22
+ background: string;
23
+ foreground: string;
24
+ "foreground-2": string;
25
+ "foreground-3": string;
26
+ line: string;
27
+ "line-2": string;
28
+ card: string;
29
+ surface: string;
30
+ error: string;
31
+ "globe-body": string;
32
+ "globe-rim": string;
33
+ };
34
+ }, {
35
+ readonly name: "white";
36
+ readonly scheme: "light";
37
+ readonly palette: {
38
+ background: string;
39
+ foreground: string;
40
+ "foreground-2": string;
41
+ "foreground-3": string;
42
+ line: string;
43
+ "line-2": string;
44
+ card: string;
45
+ surface: string;
46
+ error: string;
47
+ "globe-body": string;
48
+ "globe-rim": string;
49
+ };
50
+ }];
40
51
  }];
41
- readonly defaults: {
42
- readonly dark: "black";
43
- readonly light: "white";
44
- };
45
- readonly fallback: "dark";
46
- readonly storageKey: "style";
47
- readonly defaultChoice: "black";
48
52
  };
49
53
  /** Names shown in the style switch. Style names are proper names, the same in every language. */
50
54
  export declare const STYLE: {
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/style/index.ts"],"names":[],"mappings":"AA8BA;;;;;;GAMG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcjB,CAAC;AAEH,iGAAiG;AACjG,eAAO,MAAM,KAAK;;;;;;;;;oBAG6B,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAC3D,CAAC"}
@@ -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). Add a dark or light style here — name, scheme and the
30
- * same palette keys — and it appears in the style switch; `defaults` picks the one "System" uses for each scheme.
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.
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 STYLE_CONFIGURATION = {
35
- styles: [
36
- { name: "black", scheme: "dark", palette: BLACK },
37
- { name: "white", scheme: "light", palette: WHITE },
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
- defaults: { dark: "black", light: "white" },
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":"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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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
- /** Joins the parts that are set with the Sharadox separator, spaced: separate("01", "Web") → "01 · Web". */
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":"AAEA,4GAA4G;AAC5G,wBAAgB,QAAQ,CAAC,GAAG,KAAK,EAAE,CAAC,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC,EAAE,GAAG,MAAM,CAEhF"}
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
- /** Joins the parts that are set with the Sharadox separator, spaced: separate("01", "Web") → "01 · Web". */
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 parts.filter(Boolean).join(` ${SEPARATOR} `);
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,4GAA4G;AAC5G,MAAM,UAAU,QAAQ,CAAC,GAAG,KAA4C;IACtE,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,SAAS,GAAG,CAAC,CAAC;AACtD,CAAC"}
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.6.6",
3
+ "version": "0.7.1",
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": ">=20"
34
+ "node": ">=24"
34
35
  },
35
36
  "publishConfig": {
36
37
  "access": "public"
@@ -47,55 +48,64 @@
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
- "@eslint/js": "^9.39.5",
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/test-web-library": "^0.2.0",
75
+ "@sharadox/turborepo-configuration-web-library": "^0.1.0",
76
+ "@sharadox/type-script-configuration-web-library": "^0.2.0",
77
+ "@sharadox/vitest-configuration-web-library": "^0.1.3",
52
78
  "@testing-library/dom": "^10.4.2",
53
79
  "@testing-library/react": "^16.3.3",
54
80
  "@types/node": "^24.19.2",
55
81
  "@types/react": "^19.3.0",
56
82
  "@types/react-dom": "^19.3.0",
57
83
  "@types/smtp-server": "^3.5.13",
58
- "@types/three": "^0.187.0",
59
- "@vitejs/plugin-react": "^6.3.0",
84
+ "@vitest/coverage-v8": "^5.1.0",
60
85
  "eslint": "9.39.5",
61
- "eslint-config-prettier": "^10.1.8",
62
- "eslint-plugin-react-hooks": "^7.1.1",
63
86
  "happy-dom": "^21.0.4",
64
87
  "husky": "^9.1.7",
65
88
  "lint-staged": "^17.6.0",
66
89
  "next": "16.4.5",
67
- "prettier": "^3.9.10",
90
+ "prettier": "^3.10.0",
68
91
  "react": "^19.3.1",
69
92
  "react-dom": "^19.3.1",
70
- "sass": "^1.108.1",
71
- "smtp-server": "^3.21.3",
93
+ "sass": "^1.108.2",
94
+ "smtp-server": "^3.21.4",
72
95
  "turbo": "^2.11.10",
73
96
  "typedoc": "^0.28.20",
74
97
  "typescript": "6.0.3",
75
- "typescript-eslint": "^8.72.2",
76
98
  "vitest": "^5.1.0"
77
99
  },
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
100
  "scripts": {
91
- "build": "rm -rf distribution && tsc -p tsconfig.build.json && sass --no-source-map --load-path=source source:distribution && node script/rewrite-style-import/index.ts && node script/copy-asset/index.ts",
101
+ "build": "library-build",
92
102
  "lint": "eslint --max-warnings=0 .",
93
103
  "format": "prettier --write .",
94
104
  "format:check": "prettier --check .",
95
105
  "type-check": "tsc --noEmit",
96
- "test:unit": "vitest run",
106
+ "test:unit": "vitest run --coverage",
97
107
  "test:benchmark": "vitest bench --run --passWithNoTests",
98
108
  "documentation": "typedoc",
99
- "verify": "turbo run format:check lint type-check test:unit test:benchmark build"
109
+ "verify": "turbo run format:check lint type-check test:unit build"
100
110
  }
101
111
  }
@@ -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,3 +0,0 @@
1
- /** Custom cursor on fine pointers: a dot plus a lagging ring that grows over links and the globe. */
2
- export declare function Cursor(): import("react").JSX.Element;
3
- //# sourceMappingURL=index.d.ts.map
@@ -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,M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B,KAAK,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,IAAI,CAAC;YAC5B,IAAI,GAAG,CAAC,OAAO;gBAAE,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,GAAG,eAAe,CAAC,OAAO,CAAC,QAAQ,CAAC;YAChF,IAAI,IAAI,CAAC,OAAO;gBAAE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,GAAG,eAAe,KAAK,OAAO,KAAK,QAAQ,CAAC;YAC1F,KAAK,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAAC;QACtC,CAAC,CAAC;QACF,gBAAgB,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;QACtC,KAAK,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAAC;QACpC,OAAO,GAAG,EAAE;YACV,mBAAmB,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;YACzC,oBAAoB,CAAC,KAAK,CAAC,CAAC;YAC5B,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QACtC,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,CACL,8BACE,cAAK,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,IAAI,wBAAgB,EACtD,cAAK,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,GAAG,wBAAgB,IACnD,CACJ,CAAC;AACJ,CAAC"}
@@ -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,qEAAqE,CAAC;AAGhH,6FAA6F;AAC7F,MAAM,UAAU,GAAG,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAiB;IAC7D,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,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,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=type.js.map
@@ -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"}