@sharadox/sharadox-web-library 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (360) hide show
  1. package/LICENCA.md +89 -0
  2. package/LICENSE.md +89 -0
  3. package/NOTICE.md +3 -0
  4. package/README.md +14 -2
  5. package/distribution/action/send-contact/index.d.ts +9 -0
  6. package/distribution/action/send-contact/index.d.ts.map +1 -0
  7. package/distribution/action/send-contact/index.js +50 -0
  8. package/distribution/action/send-contact/index.js.map +1 -0
  9. package/distribution/action/send-contact/type.d.ts +5 -0
  10. package/distribution/action/send-contact/type.d.ts.map +1 -0
  11. package/distribution/action/send-contact/type.js +2 -0
  12. package/distribution/action/send-contact/type.js.map +1 -0
  13. package/distribution/asset/font/Geist-Regular.ttf +0 -0
  14. package/distribution/asset/font/Geist-SemiBold.ttf +0 -0
  15. package/distribution/asset/font/GeistMono-Regular.ttf +0 -0
  16. package/distribution/component/button/index.d.ts +4 -0
  17. package/distribution/component/button/index.d.ts.map +1 -0
  18. package/distribution/component/button/index.js +11 -0
  19. package/distribution/component/button/index.js.map +1 -0
  20. package/distribution/component/button/index.module.css +55 -0
  21. package/distribution/component/button/type.d.ts +13 -0
  22. package/distribution/component/button/type.d.ts.map +1 -0
  23. package/distribution/component/button/type.js +2 -0
  24. package/distribution/component/button/type.js.map +1 -0
  25. package/distribution/component/contact/form/index.d.ts +4 -0
  26. package/distribution/component/contact/form/index.d.ts.map +1 -0
  27. package/distribution/component/contact/form/index.js +23 -0
  28. package/distribution/component/contact/form/index.js.map +1 -0
  29. package/distribution/component/contact/form/index.module.css +108 -0
  30. package/distribution/component/contact/form/type.d.ts +8 -0
  31. package/distribution/component/contact/form/type.d.ts.map +1 -0
  32. package/distribution/component/contact/form/type.js +2 -0
  33. package/distribution/component/contact/form/type.js.map +1 -0
  34. package/distribution/component/contact/index.d.ts +4 -0
  35. package/distribution/component/contact/index.d.ts.map +1 -0
  36. package/distribution/component/contact/index.js +14 -0
  37. package/distribution/component/contact/index.js.map +1 -0
  38. package/distribution/component/contact/index.module.css +56 -0
  39. package/distribution/component/contact/type.d.ts +8 -0
  40. package/distribution/component/contact/type.d.ts.map +1 -0
  41. package/distribution/component/contact/type.js +2 -0
  42. package/distribution/component/contact/type.js.map +1 -0
  43. package/distribution/component/cursor/index.d.ts +3 -0
  44. package/distribution/component/cursor/index.d.ts.map +1 -0
  45. package/distribution/component/cursor/index.js +45 -0
  46. package/distribution/component/cursor/index.js.map +1 -0
  47. package/distribution/component/cursor/index.module.css +53 -0
  48. package/distribution/component/eyebrow/index.d.ts +4 -0
  49. package/distribution/component/eyebrow/index.d.ts.map +1 -0
  50. package/distribution/component/eyebrow/index.js +7 -0
  51. package/distribution/component/eyebrow/index.js.map +1 -0
  52. package/distribution/component/eyebrow/index.module.css +9 -0
  53. package/distribution/component/eyebrow/type.d.ts +6 -0
  54. package/distribution/component/eyebrow/type.d.ts.map +1 -0
  55. package/distribution/component/eyebrow/type.js +2 -0
  56. package/distribution/component/eyebrow/type.js.map +1 -0
  57. package/distribution/component/footer/index.d.ts +4 -0
  58. package/distribution/component/footer/index.d.ts.map +1 -0
  59. package/distribution/component/footer/index.js +13 -0
  60. package/distribution/component/footer/index.js.map +1 -0
  61. package/distribution/component/footer/index.module.css +59 -0
  62. package/distribution/component/footer/type.d.ts +5 -0
  63. package/distribution/component/footer/type.d.ts.map +1 -0
  64. package/distribution/component/footer/type.js +2 -0
  65. package/distribution/component/footer/type.js.map +1 -0
  66. package/distribution/component/globe/arc/index.d.ts +4 -0
  67. package/distribution/component/globe/arc/index.d.ts.map +1 -0
  68. package/distribution/component/globe/arc/index.js +29 -0
  69. package/distribution/component/globe/arc/index.js.map +1 -0
  70. package/distribution/component/globe/arc/type.d.ts +10 -0
  71. package/distribution/component/globe/arc/type.d.ts.map +1 -0
  72. package/distribution/component/globe/arc/type.js +2 -0
  73. package/distribution/component/globe/arc/type.js.map +1 -0
  74. package/distribution/component/globe/dots/index.d.ts +4 -0
  75. package/distribution/component/globe/dots/index.d.ts.map +1 -0
  76. package/distribution/component/globe/dots/index.js +34 -0
  77. package/distribution/component/globe/dots/index.js.map +1 -0
  78. package/distribution/component/globe/dots/type.d.ts +5 -0
  79. package/distribution/component/globe/dots/type.d.ts.map +1 -0
  80. package/distribution/component/globe/dots/type.js +2 -0
  81. package/distribution/component/globe/dots/type.js.map +1 -0
  82. package/distribution/component/globe/index.d.ts +6 -0
  83. package/distribution/component/globe/index.d.ts.map +1 -0
  84. package/distribution/component/globe/index.js +34 -0
  85. package/distribution/component/globe/index.js.map +1 -0
  86. package/distribution/component/globe/index.module.css +25 -0
  87. package/distribution/component/globe/marker/index.d.ts +4 -0
  88. package/distribution/component/globe/marker/index.d.ts.map +1 -0
  89. package/distribution/component/globe/marker/index.js +21 -0
  90. package/distribution/component/globe/marker/index.js.map +1 -0
  91. package/distribution/component/globe/marker/type.d.ts +7 -0
  92. package/distribution/component/globe/marker/type.d.ts.map +1 -0
  93. package/distribution/component/globe/marker/type.js +2 -0
  94. package/distribution/component/globe/marker/type.js.map +1 -0
  95. package/distribution/component/globe/placeholder/index.d.ts +3 -0
  96. package/distribution/component/globe/placeholder/index.d.ts.map +1 -0
  97. package/distribution/component/globe/placeholder/index.js +7 -0
  98. package/distribution/component/globe/placeholder/index.js.map +1 -0
  99. package/distribution/component/globe/shader/arc/index.d.ts +6 -0
  100. package/distribution/component/globe/shader/arc/index.d.ts.map +1 -0
  101. package/distribution/component/globe/shader/arc/index.js +23 -0
  102. package/distribution/component/globe/shader/arc/index.js.map +1 -0
  103. package/distribution/component/globe/shader/atmosphere/index.d.ts +6 -0
  104. package/distribution/component/globe/shader/atmosphere/index.d.ts.map +1 -0
  105. package/distribution/component/globe/shader/atmosphere/index.js +14 -0
  106. package/distribution/component/globe/shader/atmosphere/index.js.map +1 -0
  107. package/distribution/component/globe/shader/body/index.d.ts +6 -0
  108. package/distribution/component/globe/shader/body/index.d.ts.map +1 -0
  109. package/distribution/component/globe/shader/body/index.js +13 -0
  110. package/distribution/component/globe/shader/body/index.js.map +1 -0
  111. package/distribution/component/globe/shader/dot/index.d.ts +6 -0
  112. package/distribution/component/globe/shader/dot/index.d.ts.map +1 -0
  113. package/distribution/component/globe/shader/dot/index.js +28 -0
  114. package/distribution/component/globe/shader/dot/index.js.map +1 -0
  115. package/distribution/component/globe/shader/glow-vertex/index.d.ts +3 -0
  116. package/distribution/component/globe/shader/glow-vertex/index.d.ts.map +1 -0
  117. package/distribution/component/globe/shader/glow-vertex/index.js +9 -0
  118. package/distribution/component/globe/shader/glow-vertex/index.js.map +1 -0
  119. package/distribution/component/globe/world/index.d.ts +4 -0
  120. package/distribution/component/globe/world/index.d.ts.map +1 -0
  121. package/distribution/component/globe/world/index.js +35 -0
  122. package/distribution/component/globe/world/index.js.map +1 -0
  123. package/distribution/component/globe/world/type.d.ts +8 -0
  124. package/distribution/component/globe/world/type.d.ts.map +1 -0
  125. package/distribution/component/globe/world/type.js +2 -0
  126. package/distribution/component/globe/world/type.js.map +1 -0
  127. package/distribution/component/hero/index.d.ts +4 -0
  128. package/distribution/component/hero/index.d.ts.map +1 -0
  129. package/distribution/component/hero/index.js +21 -0
  130. package/distribution/component/hero/index.js.map +1 -0
  131. package/distribution/component/hero/index.module.css +127 -0
  132. package/distribution/component/hero/type.d.ts +5 -0
  133. package/distribution/component/hero/type.d.ts.map +1 -0
  134. package/distribution/component/hero/type.js +2 -0
  135. package/distribution/component/hero/type.js.map +1 -0
  136. package/distribution/component/language-switch/index.d.ts +4 -0
  137. package/distribution/component/language-switch/index.d.ts.map +1 -0
  138. package/distribution/component/language-switch/index.js +9 -0
  139. package/distribution/component/language-switch/index.js.map +1 -0
  140. package/distribution/component/language-switch/index.module.css +17 -0
  141. package/distribution/component/language-switch/type.d.ts +5 -0
  142. package/distribution/component/language-switch/type.d.ts.map +1 -0
  143. package/distribution/component/language-switch/type.js +2 -0
  144. package/distribution/component/language-switch/type.js.map +1 -0
  145. package/distribution/component/marquee/index.d.ts +3 -0
  146. package/distribution/component/marquee/index.d.ts.map +1 -0
  147. package/distribution/component/marquee/index.js +9 -0
  148. package/distribution/component/marquee/index.js.map +1 -0
  149. package/distribution/component/marquee/index.module.css +28 -0
  150. package/distribution/component/navigation/index.d.ts +4 -0
  151. package/distribution/component/navigation/index.d.ts.map +1 -0
  152. package/distribution/component/navigation/index.js +21 -0
  153. package/distribution/component/navigation/index.js.map +1 -0
  154. package/distribution/component/navigation/index.module.css +53 -0
  155. package/distribution/component/navigation/type.d.ts +5 -0
  156. package/distribution/component/navigation/type.d.ts.map +1 -0
  157. package/distribution/component/navigation/type.js +2 -0
  158. package/distribution/component/navigation/type.js.map +1 -0
  159. package/distribution/component/process/index.d.ts +4 -0
  160. package/distribution/component/process/index.d.ts.map +1 -0
  161. package/distribution/component/process/index.js +19 -0
  162. package/distribution/component/process/index.js.map +1 -0
  163. package/distribution/component/process/index.module.css +43 -0
  164. package/distribution/component/process/step/index.d.ts +4 -0
  165. package/distribution/component/process/step/index.d.ts.map +1 -0
  166. package/distribution/component/process/step/index.js +12 -0
  167. package/distribution/component/process/step/index.js.map +1 -0
  168. package/distribution/component/process/step/index.module.css +33 -0
  169. package/distribution/component/process/step/type.d.ts +10 -0
  170. package/distribution/component/process/step/type.d.ts.map +1 -0
  171. package/distribution/component/process/step/type.js +2 -0
  172. package/distribution/component/process/step/type.js.map +1 -0
  173. package/distribution/component/process/type.d.ts +5 -0
  174. package/distribution/component/process/type.d.ts.map +1 -0
  175. package/distribution/component/process/type.js +2 -0
  176. package/distribution/component/process/type.js.map +1 -0
  177. package/distribution/component/section/index.d.ts +4 -0
  178. package/distribution/component/section/index.d.ts.map +1 -0
  179. package/distribution/component/section/index.js +7 -0
  180. package/distribution/component/section/index.js.map +1 -0
  181. package/distribution/component/section/index.module.css +6 -0
  182. package/distribution/component/section/type.d.ts +7 -0
  183. package/distribution/component/section/type.d.ts.map +1 -0
  184. package/distribution/component/section/type.js +2 -0
  185. package/distribution/component/section/type.js.map +1 -0
  186. package/distribution/component/section-heading/index.d.ts +4 -0
  187. package/distribution/component/section-heading/index.d.ts.map +1 -0
  188. package/distribution/component/section-heading/index.js +9 -0
  189. package/distribution/component/section-heading/index.js.map +1 -0
  190. package/distribution/component/section-heading/index.module.css +7 -0
  191. package/distribution/component/section-heading/type.d.ts +5 -0
  192. package/distribution/component/section-heading/type.d.ts.map +1 -0
  193. package/distribution/component/section-heading/type.js +2 -0
  194. package/distribution/component/section-heading/type.js.map +1 -0
  195. package/distribution/component/services/application-visual/index.d.ts +4 -0
  196. package/distribution/component/services/application-visual/index.d.ts.map +1 -0
  197. package/distribution/component/services/application-visual/index.js +17 -0
  198. package/distribution/component/services/application-visual/index.js.map +1 -0
  199. package/distribution/component/services/application-visual/index.module.css +95 -0
  200. package/distribution/component/services/application-visual/type.d.ts +5 -0
  201. package/distribution/component/services/application-visual/type.d.ts.map +1 -0
  202. package/distribution/component/services/application-visual/type.js +2 -0
  203. package/distribution/component/services/application-visual/type.js.map +1 -0
  204. package/distribution/component/services/card/index.d.ts +4 -0
  205. package/distribution/component/services/card/index.d.ts.map +1 -0
  206. package/distribution/component/services/card/index.js +10 -0
  207. package/distribution/component/services/card/index.js.map +1 -0
  208. package/distribution/component/services/card/index.module.css +92 -0
  209. package/distribution/component/services/card/type.d.ts +12 -0
  210. package/distribution/component/services/card/type.d.ts.map +1 -0
  211. package/distribution/component/services/card/type.js +2 -0
  212. package/distribution/component/services/card/type.js.map +1 -0
  213. package/distribution/component/services/index.d.ts +4 -0
  214. package/distribution/component/services/index.d.ts.map +1 -0
  215. package/distribution/component/services/index.js +21 -0
  216. package/distribution/component/services/index.js.map +1 -0
  217. package/distribution/component/services/index.module.css +19 -0
  218. package/distribution/component/services/platform-visual/index.d.ts +3 -0
  219. package/distribution/component/services/platform-visual/index.d.ts.map +1 -0
  220. package/distribution/component/services/platform-visual/index.js +16 -0
  221. package/distribution/component/services/platform-visual/index.js.map +1 -0
  222. package/distribution/component/services/platform-visual/index.module.css +46 -0
  223. package/distribution/component/services/type.d.ts +5 -0
  224. package/distribution/component/services/type.d.ts.map +1 -0
  225. package/distribution/component/services/type.js +2 -0
  226. package/distribution/component/services/type.js.map +1 -0
  227. package/distribution/component/services/web-visual/index.d.ts +3 -0
  228. package/distribution/component/services/web-visual/index.d.ts.map +1 -0
  229. package/distribution/component/services/web-visual/index.js +25 -0
  230. package/distribution/component/services/web-visual/index.js.map +1 -0
  231. package/distribution/component/services/web-visual/index.module.css +134 -0
  232. package/distribution/component/share-image/index.d.ts +5 -0
  233. package/distribution/component/share-image/index.d.ts.map +1 -0
  234. package/distribution/component/share-image/index.js +66 -0
  235. package/distribution/component/share-image/index.js.map +1 -0
  236. package/distribution/component/share-image/type.d.ts +7 -0
  237. package/distribution/component/share-image/type.d.ts.map +1 -0
  238. package/distribution/component/share-image/type.js +2 -0
  239. package/distribution/component/share-image/type.js.map +1 -0
  240. package/distribution/component/statement/index.d.ts +4 -0
  241. package/distribution/component/statement/index.d.ts.map +1 -0
  242. package/distribution/component/statement/index.js +9 -0
  243. package/distribution/component/statement/index.js.map +1 -0
  244. package/distribution/component/statement/index.module.css +13 -0
  245. package/distribution/component/statement/type.d.ts +4 -0
  246. package/distribution/component/statement/type.d.ts.map +1 -0
  247. package/distribution/component/statement/type.js +2 -0
  248. package/distribution/component/statement/type.js.map +1 -0
  249. package/distribution/component/structured-data/index.d.ts +4 -0
  250. package/distribution/component/structured-data/index.d.ts.map +1 -0
  251. package/distribution/component/structured-data/index.js +36 -0
  252. package/distribution/component/structured-data/index.js.map +1 -0
  253. package/distribution/component/structured-data/type.d.ts +5 -0
  254. package/distribution/component/structured-data/type.d.ts.map +1 -0
  255. package/distribution/component/structured-data/type.js +2 -0
  256. package/distribution/component/structured-data/type.js.map +1 -0
  257. package/distribution/component/wordmark/index.d.ts +4 -0
  258. package/distribution/component/wordmark/index.d.ts.map +1 -0
  259. package/distribution/component/wordmark/index.js +7 -0
  260. package/distribution/component/wordmark/index.js.map +1 -0
  261. package/distribution/component/wordmark/index.module.css +23 -0
  262. package/distribution/component/wordmark/type.d.ts +4 -0
  263. package/distribution/component/wordmark/type.d.ts.map +1 -0
  264. package/distribution/component/wordmark/type.js +2 -0
  265. package/distribution/component/wordmark/type.js.map +1 -0
  266. package/distribution/content/contact/index.d.ts +62 -0
  267. package/distribution/content/contact/index.d.ts.map +1 -0
  268. package/distribution/content/contact/index.js +35 -0
  269. package/distribution/content/contact/index.js.map +1 -0
  270. package/distribution/content/footer/index.d.ts +12 -0
  271. package/distribution/content/footer/index.d.ts.map +1 -0
  272. package/distribution/content/footer/index.js +6 -0
  273. package/distribution/content/footer/index.js.map +1 -0
  274. package/distribution/content/globe/index.d.ts +8 -0
  275. package/distribution/content/globe/index.d.ts.map +1 -0
  276. package/distribution/content/globe/index.js +18 -0
  277. package/distribution/content/globe/index.js.map +1 -0
  278. package/distribution/content/hero/index.d.ts +28 -0
  279. package/distribution/content/hero/index.d.ts.map +1 -0
  280. package/distribution/content/hero/index.js +20 -0
  281. package/distribution/content/hero/index.js.map +1 -0
  282. package/distribution/content/navigation/index.d.ts +20 -0
  283. package/distribution/content/navigation/index.d.ts.map +1 -0
  284. package/distribution/content/navigation/index.js +8 -0
  285. package/distribution/content/navigation/index.js.map +1 -0
  286. package/distribution/content/process/index.d.ts +53 -0
  287. package/distribution/content/process/index.d.ts.map +1 -0
  288. package/distribution/content/process/index.js +31 -0
  289. package/distribution/content/process/index.js.map +1 -0
  290. package/distribution/content/separator/index.d.ts +6 -0
  291. package/distribution/content/separator/index.d.ts.map +1 -0
  292. package/distribution/content/separator/index.js +6 -0
  293. package/distribution/content/separator/index.js.map +1 -0
  294. package/distribution/content/services/index.d.ts +62 -0
  295. package/distribution/content/services/index.d.ts.map +1 -0
  296. package/distribution/content/services/index.js +53 -0
  297. package/distribution/content/services/index.js.map +1 -0
  298. package/distribution/content/site/index.d.ts +19 -0
  299. package/distribution/content/site/index.d.ts.map +1 -0
  300. package/distribution/content/site/index.js +19 -0
  301. package/distribution/content/site/index.js.map +1 -0
  302. package/distribution/content/stack/index.d.ts +3 -0
  303. package/distribution/content/stack/index.d.ts.map +1 -0
  304. package/distribution/content/stack/index.js +16 -0
  305. package/distribution/content/stack/index.js.map +1 -0
  306. package/distribution/content/statement/index.d.ts +6 -0
  307. package/distribution/content/statement/index.d.ts.map +1 -0
  308. package/distribution/content/statement/index.js +6 -0
  309. package/distribution/content/statement/index.js.map +1 -0
  310. package/distribution/hook/globe-drag/index.d.ts +10 -0
  311. package/distribution/hook/globe-drag/index.d.ts.map +1 -0
  312. package/distribution/hook/globe-drag/index.js +99 -0
  313. package/distribution/hook/globe-drag/index.js.map +1 -0
  314. package/distribution/hook/globe-drag/type.d.ts +11 -0
  315. package/distribution/hook/globe-drag/type.d.ts.map +1 -0
  316. package/distribution/hook/globe-drag/type.js +2 -0
  317. package/distribution/hook/globe-drag/type.js.map +1 -0
  318. package/distribution/hook/land-points/index.d.ts +3 -0
  319. package/distribution/hook/land-points/index.d.ts.map +1 -0
  320. package/distribution/hook/land-points/index.js +17 -0
  321. package/distribution/hook/land-points/index.js.map +1 -0
  322. package/distribution/style/token/index.css +1 -0
  323. package/distribution/style/token/index.scss +18 -0
  324. package/distribution/utility/horizon-dots/index.d.ts +4 -0
  325. package/distribution/utility/horizon-dots/index.d.ts.map +1 -0
  326. package/distribution/utility/horizon-dots/index.js +17 -0
  327. package/distribution/utility/horizon-dots/index.js.map +1 -0
  328. package/distribution/utility/horizon-dots/type.d.ts +7 -0
  329. package/distribution/utility/horizon-dots/type.d.ts.map +1 -0
  330. package/distribution/utility/horizon-dots/type.js +2 -0
  331. package/distribution/utility/horizon-dots/type.js.map +1 -0
  332. package/distribution/utility/latitude-longitude-to-vector/index.d.ts +7 -0
  333. package/distribution/utility/latitude-longitude-to-vector/index.d.ts.map +1 -0
  334. package/distribution/utility/latitude-longitude-to-vector/index.js +12 -0
  335. package/distribution/utility/latitude-longitude-to-vector/index.js.map +1 -0
  336. package/distribution/utility/locale/index.d.ts +6 -0
  337. package/distribution/utility/locale/index.d.ts.map +1 -0
  338. package/distribution/utility/locale/index.js +8 -0
  339. package/distribution/utility/locale/index.js.map +1 -0
  340. package/distribution/utility/locale/type.d.ts +6 -0
  341. package/distribution/utility/locale/type.d.ts.map +1 -0
  342. package/distribution/utility/locale/type.js +2 -0
  343. package/distribution/utility/locale/type.js.map +1 -0
  344. package/distribution/utility/parse-contact/index.d.ts +4 -0
  345. package/distribution/utility/parse-contact/index.d.ts.map +1 -0
  346. package/distribution/utility/parse-contact/index.js +19 -0
  347. package/distribution/utility/parse-contact/index.js.map +1 -0
  348. package/distribution/utility/parse-contact/type.d.ts +17 -0
  349. package/distribution/utility/parse-contact/type.d.ts.map +1 -0
  350. package/distribution/utility/parse-contact/type.js +2 -0
  351. package/distribution/utility/parse-contact/type.js.map +1 -0
  352. package/distribution/utility/separate/index.d.ts +3 -0
  353. package/distribution/utility/separate/index.d.ts.map +1 -0
  354. package/distribution/utility/separate/index.js +6 -0
  355. package/distribution/utility/separate/index.js.map +1 -0
  356. package/distribution/utility/web-gl-support/index.d.ts +3 -0
  357. package/distribution/utility/web-gl-support/index.d.ts.map +1 -0
  358. package/distribution/utility/web-gl-support/index.js +11 -0
  359. package/distribution/utility/web-gl-support/index.js.map +1 -0
  360. package/package.json +96 -3
@@ -0,0 +1,6 @@
1
+ /** The sentence that lights up word by word on scroll. */
2
+ export declare const STATEMENT: {
3
+ readonly en: "Every complex problem has a simple answer. We spend our days finding it — then we build it, beautifully.";
4
+ readonly pt: "Todo o problema complexo tem uma resposta simples. Passamos os dias a encontrá-la — e depois construímo-la, com cuidado.";
5
+ };
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/statement/index.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,eAAO,MAAM,SAAS;;;CAGZ,CAAC"}
@@ -0,0 +1,6 @@
1
+ /** The sentence that lights up word by word on scroll. */
2
+ export const STATEMENT = {
3
+ en: "Every complex problem has a simple answer. We spend our days finding it — then we build it, beautifully.",
4
+ pt: "Todo o problema complexo tem uma resposta simples. Passamos os dias a encontrá-la — e depois construímo-la, com cuidado.",
5
+ };
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/content/statement/index.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,EAAE,EAAE,0GAA0G;IAC9G,EAAE,EAAE,0HAA0H;CACtH,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { GlobeDrag } from "@sharadox/sharadox-web-library/hook/globe-drag/type";
2
+ /**
3
+ * Drag-to-spin with inertia, a slow auto-rotation that eases back in after a drag,
4
+ * and a small tilt towards the cursor. Attach the returned reference to the element that receives the pointer.
5
+ */
6
+ export declare function useGlobeDrag(initial: {
7
+ x: number;
8
+ y: number;
9
+ }, autoRotate: boolean): readonly [import("react").RefObject<HTMLDivElement | null>, GlobeDrag];
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/hook/globe-drag/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qDAAqD,CAAC;AAErF;;;GAGG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE,UAAU,EAAE,OAAO,0EA6FlF"}
@@ -0,0 +1,99 @@
1
+ "use client";
2
+ import { clamp } from "@sharadox/web-library/math/clamp";
3
+ import { useEffect, useRef, useState } from "react";
4
+ /**
5
+ * Drag-to-spin with inertia, a slow auto-rotation that eases back in after a drag,
6
+ * and a small tilt towards the cursor. Attach the returned reference to the element that receives the pointer.
7
+ */
8
+ export function useGlobeDrag(initial, autoRotate) {
9
+ const target = useRef(null);
10
+ const [drag] = useState(() => {
11
+ const state = {
12
+ rotationX: initial.x,
13
+ rotationY: initial.y,
14
+ velocityX: 0,
15
+ velocityY: 0,
16
+ dragging: false,
17
+ lastX: 0,
18
+ lastY: 0,
19
+ idleSeconds: 0,
20
+ tiltX: 0,
21
+ tiltY: 0,
22
+ };
23
+ const controller = {
24
+ down(event) {
25
+ state.dragging = true;
26
+ state.lastX = event.clientX;
27
+ state.lastY = event.clientY;
28
+ },
29
+ move(event, element) {
30
+ const bounds = element.getBoundingClientRect();
31
+ state.tiltX = ((event.clientY - bounds.top) / bounds.height - 0.5) * 0.18;
32
+ state.tiltY = ((event.clientX - bounds.left) / bounds.width - 0.5) * 0.18;
33
+ if (!state.dragging)
34
+ return;
35
+ const speed = 2.6 / Math.max(bounds.width, 1);
36
+ state.velocityY = (event.clientX - state.lastX) * speed;
37
+ state.velocityX = (event.clientY - state.lastY) * speed;
38
+ state.lastX = event.clientX;
39
+ state.lastY = event.clientY;
40
+ state.rotationY += state.velocityY;
41
+ state.rotationX = clamp(state.rotationX + state.velocityX, -0.9, 1.1);
42
+ state.idleSeconds = 0;
43
+ },
44
+ up() {
45
+ state.dragging = false;
46
+ },
47
+ leave() {
48
+ state.tiltX = 0;
49
+ state.tiltY = 0;
50
+ },
51
+ step(deltaSeconds) {
52
+ if (!state.dragging) {
53
+ state.rotationY += state.velocityY;
54
+ state.rotationX = clamp(state.rotationX + state.velocityX, -0.9, 1.1);
55
+ state.velocityY *= 0.94;
56
+ state.velocityX *= 0.9;
57
+ state.idleSeconds += deltaSeconds;
58
+ if (autoRotate)
59
+ state.rotationY += deltaSeconds * 0.06 * Math.min(1, state.idleSeconds / 2);
60
+ }
61
+ return { x: state.rotationX + state.tiltX, y: state.rotationY + state.tiltY };
62
+ },
63
+ };
64
+ return controller;
65
+ });
66
+ useEffect(() => {
67
+ const element = target.current;
68
+ if (!element)
69
+ return;
70
+ const down = (event) => {
71
+ drag.down(event, element);
72
+ element.setPointerCapture(event.pointerId);
73
+ element.style.cursor = "grabbing";
74
+ };
75
+ const move = (event) => drag.move(event, element);
76
+ const up = (event) => {
77
+ drag.up();
78
+ element.style.cursor = "grab";
79
+ if (element.hasPointerCapture(event.pointerId))
80
+ element.releasePointerCapture(event.pointerId);
81
+ };
82
+ element.style.cursor = "grab";
83
+ element.style.touchAction = "pan-y";
84
+ element.addEventListener("pointerdown", down);
85
+ element.addEventListener("pointermove", move);
86
+ element.addEventListener("pointerup", up);
87
+ element.addEventListener("pointercancel", up);
88
+ element.addEventListener("pointerleave", drag.leave);
89
+ return () => {
90
+ element.removeEventListener("pointerdown", down);
91
+ element.removeEventListener("pointermove", move);
92
+ element.removeEventListener("pointerup", up);
93
+ element.removeEventListener("pointercancel", up);
94
+ element.removeEventListener("pointerleave", drag.leave);
95
+ };
96
+ }, [drag]);
97
+ return [target, drag];
98
+ }
99
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/hook/globe-drag/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,OAAO,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGpD;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAC,OAAiC,EAAE,UAAmB;IACjF,MAAM,MAAM,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAC5C,MAAM,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE;QAC3B,MAAM,KAAK,GAAG;YACZ,SAAS,EAAE,OAAO,CAAC,CAAC;YACpB,SAAS,EAAE,OAAO,CAAC,CAAC;YACpB,SAAS,EAAE,CAAC;YACZ,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAE,KAAK;YACf,KAAK,EAAE,CAAC;YACR,KAAK,EAAE,CAAC;YACR,WA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AAC,mBAAmB,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;YAC7C,OAAO,CAAC,mBAAmB,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;YACjD,OAAO,CAAC,mBAAmB,CAAC,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QAC1D,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAEX,OAAO,CAAC,MAAM,EAAE,IAAiB,CAAU,CAAC;AAC9C,CAAC"}
@@ -0,0 +1,11 @@
1
+ /** The rotation to apply this frame, in radians. */
2
+ export interface GlobeRotation {
3
+ x: number;
4
+ y: number;
5
+ }
6
+ /** Drag-to-spin controller for the globe. */
7
+ export interface GlobeDrag {
8
+ /** Advances inertia and auto-rotation by `deltaSeconds` and returns the target rotation. */
9
+ step: (deltaSeconds: number) => GlobeRotation;
10
+ }
11
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/hook/globe-drag/type.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,MAAM,WAAW,aAAa;IAC5B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,6CAA6C;AAC7C,MAAM,WAAW,SAAS;IACxB,4FAA4F;IAC5F,IAAI,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,aAAa,CAAC;CAC/C"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../source/hook/globe-drag/type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ /** Loads the precomputed land dots (Float32 latitude/longitude pairs) for the globe. */
2
+ export declare function useLandPoints(url?: string): Float32Array<ArrayBufferLike> | null;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/hook/land-points/index.ts"],"names":[],"mappings":"AAGA,wFAAwF;AACxF,wBAAgB,aAAa,CAAC,GAAG,SAAoB,wCAYpD"}
@@ -0,0 +1,17 @@
1
+ "use client";
2
+ import { useEffect, useState } from "react";
3
+ /** Loads the precomputed land dots (Float32 latitude/longitude pairs) for the globe. */
4
+ export function useLandPoints(url = "/globe/land.bin") {
5
+ const [points, setPoints] = useState(null);
6
+ useEffect(() => {
7
+ let live = true;
8
+ fetch(url)
9
+ .then((response) => response.arrayBuffer())
10
+ .then((buffer) => live && setPoints(new Float32Array(buffer)));
11
+ return () => {
12
+ live = false;
13
+ };
14
+ }, [url]);
15
+ return points;
16
+ }
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/hook/land-points/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5C,wFAAwF;AACxF,MAAM,UAAU,aAAa,CAAC,GAAG,GAAG,iBAAiB;IACnD,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAsB,IAAI,CAAC,CAAC;IAChE,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,IAAI,GAAG,IAAI,CAAC;QAChB,KAAK,CAAC,GAAG,CAAC;aACP,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC;aAC1C,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,IAAI,SAAS,CAAC,IAAI,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QACjE,OAAO,GAAG,EAAE;YACV,IAAI,GAAG,KAAK,CAAC;QACf,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACV,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,18 @@
1
+ // Sharadox — black canvas, white type, light as the only accent.
2
+ // Colours and sizes live as CSS custom properties in styles/global; these are build-time helpers.
3
+ $ease: cubic-bezier(0.22, 1, 0.36, 1);
4
+
5
+ /// Below a viewport width.
6
+ @mixin below($width) {
7
+ @media (max-width: $width) {
8
+ @content;
9
+ }
10
+ }
11
+
12
+ /// Fills the positioned parent and centres the content.
13
+ @mixin fill-center {
14
+ position: absolute;
15
+ inset: 0;
16
+ display: grid;
17
+ place-items: center;
18
+ }
@@ -0,0 +1,4 @@
1
+ import type { HorizonDot } from "@sharadox/sharadox-web-library/utility/horizon-dots/type";
2
+ /** Dotted rows following the curve of a planet rising from the bottom of a 1200×630 share card. */
3
+ export declare function horizonDots(): HorizonDot[];
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/utility/horizon-dots/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0DAA0D,CAAC;AAE3F,mGAAmG;AACnG,wBAAgB,WAAW,IAAI,UAAU,EAAE,CAa1C"}
@@ -0,0 +1,17 @@
1
+ /** Dotted rows following the curve of a planet rising from the bottom of a 1200×630 share card. */
2
+ export function horizonDots() {
3
+ const dots = [];
4
+ for (let row = 1; row < 9; row++) {
5
+ for (let column = 0; column < 90; column++) {
6
+ const angle = Math.PI * (0.08 + (column / 89) * 0.84);
7
+ const radiusX = 750 - row * 26;
8
+ const radiusY = 550 - row * 26;
9
+ const x = 600 + Math.cos(angle) * radiusX;
10
+ const y = 970 - Math.sin(angle) * radiusY;
11
+ if (y < 625)
12
+ dots.push({ x, y, opacity: 0.55 - row * 0.05 });
13
+ }
14
+ }
15
+ return dots;
16
+ }
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/utility/horizon-dots/index.ts"],"names":[],"mappings":"AAEA,mGAAmG;AACnG,MAAM,UAAU,WAAW;IACzB,MAAM,IAAI,GAAiB,EAAE,CAAC;IAC9B,KAAK,IAAI,GAAG,GAAG,CAAC,EAAE,GAAG,GAAG,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC;QACjC,KAAK,IAAI,MAAM,GAAG,CAAC,EAAE,MAAM,GAAG,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC;YAC3C,MAAM,KAAK,GAAG,IAAI,CAAC,EAAE,GAAG,CAAC,IAAI,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;YACtD,MAAM,OAAO,GAAG,GAAG,GAAG,GAAG,GAAG,EAAE,CAAC;YAC/B,MAAM,OAAO,GAAG,GAAG,GAAG,GAAG,GAAG,EAAE,CAAC;YAC/B,MAAM,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC;YAC1C,MAAM,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC;YAC1C,IAAI,CAAC,GAAG,GAAG;gBAAE,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,GAAG,GAAG,GAAG,IAAI,EAAE,CAAC,CAAC;QAC/D,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -0,0 +1,7 @@
1
+ export interface HorizonDot {
2
+ x: number;
3
+ y: number;
4
+ /** Opacity, 0–1. */
5
+ opacity: number;
6
+ }
7
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/utility/horizon-dots/type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,oBAAoB;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../source/utility/horizon-dots/type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { Vector3 } from "three";
2
+ /**
3
+ * A point on a sphere of `radius`. Longitude 0 faces the camera (+z), so
4
+ * `rotation.y = -longitude` brings a longitude to the front and `rotation.x = latitude` centres a latitude.
5
+ */
6
+ export declare function latitudeLongitudeToVector(latitude: number, longitude: number, radius?: number): Vector3;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/utility/latitude-longitude-to-vector/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAGhC;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,SAAI,GAAG,OAAO,CAQlG"}
@@ -0,0 +1,12 @@
1
+ import { Vector3 } from "three";
2
+ import { radians } from "@sharadox/web-library/math/radians";
3
+ /**
4
+ * A point on a sphere of `radius`. Longitude 0 faces the camera (+z), so
5
+ * `rotation.y = -longitude` brings a longitude to the front and `rotation.x = latitude` centres a latitude.
6
+ */
7
+ export function latitudeLongitudeToVector(latitude, longitude, radius = 1) {
8
+ const latitudeRadians = radians(latitude);
9
+ const longitudeRadians = radians(longitude);
10
+ return new Vector3(radius * Math.cos(latitudeRadians) * Math.sin(longitudeRadians), radius * Math.sin(latitudeRadians), radius * Math.cos(latitudeRadians) * Math.cos(longitudeRadians));
11
+ }
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/utility/latitude-longitude-to-vector/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;AAE7D;;;GAGG;AACH,MAAM,UAAU,yBAAyB,CAAC,QAAgB,EAAE,SAAiB,EAAE,MAAM,GAAG,CAAC;IACvF,MAAM,eAAe,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC1C,MAAM,gBAAgB,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IAC5C,OAAO,IAAI,OAAO,CAChB,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAC/D,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,EAClC,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAChE,CAAC;AACJ,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { Locale } from "@sharadox/sharadox-web-library/utility/locale/type";
2
+ /** Every language sharadox.com is published in. The first one is the default (x-default). */
3
+ export declare const LOCALES: readonly Locale[];
4
+ /** Narrows an untrusted route segment to one of the site's locales. */
5
+ export declare function isSiteLocale(value: string): value is Locale;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/utility/locale/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,6FAA6F;AAC7F,eAAO,MAAM,OAAO,EAAE,SAAS,MAAM,EAAiB,CAAC;AAEvD,uEAAuE;AACvE,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,MAAM,CAE3D"}
@@ -0,0 +1,8 @@
1
+ import { isLocale } from "@sharadox/web-library/internationalization/locale";
2
+ /** Every language sharadox.com is published in. The first one is the default (x-default). */
3
+ export const LOCALES = ["en", "pt"];
4
+ /** Narrows an untrusted route segment to one of the site's locales. */
5
+ export function isSiteLocale(value) {
6
+ return isLocale(value, LOCALES);
7
+ }
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/utility/locale/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mDAAmD,CAAC;AAG7E,6FAA6F;AAC7F,MAAM,CAAC,MAAM,OAAO,GAAsB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAEvD,uEAAuE;AACvE,MAAM,UAAU,YAAY,CAAC,KAAa;IACxC,OAAO,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AAClC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { Translated as GenericTranslated } from "@sharadox/web-library/internationalization/locale/type";
2
+ /** A language sharadox.com is published in. */
3
+ export type Locale = "en" | "pt";
4
+ /** A piece of copy written in every published language. */
5
+ export type Translated = GenericTranslated<Locale>;
6
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/utility/locale/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,IAAI,iBAAiB,EAAE,MAAM,wDAAwD,CAAC;AAE9G,+CAA+C;AAC/C,MAAM,MAAM,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;AAEjC,2DAA2D;AAC3D,MAAM,MAAM,UAAU,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../source/utility/locale/type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import type { ParsedContact } from "@sharadox/sharadox-web-library/utility/parse-contact/type";
2
+ /** Reads and validates the contact form, flagging likely bots (honeypot filled or submitted too fast). */
3
+ export declare function parseContact(form: FormData, now?: number): ParsedContact;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/utility/parse-contact/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAC;AAI/F,0GAA0G;AAC1G,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,EAAE,GAAG,SAAa,GAAG,aAAa,CAW5E"}
@@ -0,0 +1,19 @@
1
+ import { isLikelyBot } from "@sharadox/web-library/form/bot-check";
2
+ import { readField } from "@sharadox/web-library/form/field";
3
+ const EMAIL = /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/;
4
+ /** Reads and validates the contact form, flagging likely bots (honeypot filled or submitted too fast). */
5
+ export function parseContact(form, now = Date.now()) {
6
+ if (isLikelyBot(form, { now }))
7
+ return { kind: "bot" };
8
+ const value = {
9
+ name: readField(form, "name", 120),
10
+ email: readField(form, "email", 200),
11
+ company: readField(form, "company", 160),
12
+ message: readField(form, "message", 5000),
13
+ locale: readField(form, "locale", 5) || "en",
14
+ };
15
+ if (!value.name || !value.message || !EMAIL.test(value.email))
16
+ return { kind: "invalid" };
17
+ return { kind: "valid", value };
18
+ }
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/utility/parse-contact/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAG7D,MAAM,KAAK,GAAG,+BAA+B,CAAC;AAE9C,0GAA0G;AAC1G,MAAM,UAAU,YAAY,CAAC,IAAc,EAAE,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE;IAC3D,IAAI,WAAW,CAAC,IAAI,EAAE,EAAE,GAAG,EAAE,CAAC;QAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;IACvD,MAAM,KAAK,GAAG;QACZ,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,CAAC;QAClC,KAAK,EAAE,SAAS,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,CAAC;QACpC,OAAO,EAAE,SAAS,CAAC,IAAI,EAAE,SAAS,EAAE,GAAG,CAAC;QACxC,OAAO,EAAE,SAAS,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC;QACzC,MAAM,EAAE,SAAS,CAAC,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC,IAAI,IAAI;KAC7C,CAAC;IACF,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;QAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAC1F,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;AAClC,CAAC"}
@@ -0,0 +1,17 @@
1
+ /** A validated contact form submission. */
2
+ export interface ContactMessage {
3
+ name: string;
4
+ email: string;
5
+ company: string;
6
+ message: string;
7
+ locale: string;
8
+ }
9
+ export type ParsedContact = {
10
+ kind: "bot";
11
+ } | {
12
+ kind: "invalid";
13
+ } | {
14
+ kind: "valid";
15
+ value: ContactMessage;
16
+ };
17
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/utility/parse-contact/type.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,aAAa,GAAG;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,cAAc,CAAA;CAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../source/utility/parse-contact/type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ /** Joins the parts that are set with the Sharadox separator, spaced: separate("01", "Web") → "01 · Web". */
2
+ export declare function separate(...parts: (string | false | null | undefined)[]): string;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/utility/separate/index.ts"],"names":[],"mappings":"AAEA,4GAA4G;AAC5G,wBAAgB,QAAQ,CAAC,GAAG,KAAK,EAAE,CAAC,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC,EAAE,GAAG,MAAM,CAEhF"}
@@ -0,0 +1,6 @@
1
+ import { SEPARATOR } from "@sharadox/sharadox-web-library/content/separator";
2
+ /** Joins the parts that are set with the Sharadox separator, spaced: separate("01", "Web") → "01 · Web". */
3
+ export function separate(...parts) {
4
+ return parts.filter(Boolean).join(` ${SEPARATOR} `);
5
+ }
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/utility/separate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kDAAkD,CAAC;AAE7E,4GAA4G;AAC5G,MAAM,UAAU,QAAQ,CAAC,GAAG,KAA4C;IACtE,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,SAAS,GAAG,CAAC,CAAC;AACtD,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** Whether this browser can create a WebGL context. */
2
+ export declare function supportsWebGl(): boolean;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/utility/web-gl-support/index.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,wBAAgB,aAAa,IAAI,OAAO,CAOvC"}
@@ -0,0 +1,11 @@
1
+ /** Whether this browser can create a WebGL context. */
2
+ export function supportsWebGl() {
3
+ try {
4
+ const canvas = document.createElement("canvas");
5
+ return !!(canvas.getContext("webgl2") || canvas.getContext("webgl"));
6
+ }
7
+ catch {
8
+ return false;
9
+ }
10
+ }
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/utility/web-gl-support/index.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,MAAM,UAAU,aAAa;IAC3B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QAChD,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC;IACvE,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,99 @@
1
1
  {
2
2
  "name": "@sharadox/sharadox-web-library",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.2.0",
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
+ "private": false,
6
+ "license": "SEE LICENSE IN LICENCA.md",
7
+ "author": "Sharadox <email@sharadox.com>",
8
+ "type": "module",
9
+ "exports": {
10
+ "./*/type": {
11
+ "sharadox-source": "./source/*/type.ts",
12
+ "types": "./distribution/*/type.d.ts"
13
+ },
14
+ "./*": {
15
+ "sharadox-source": [
16
+ "./source/*/index.ts",
17
+ "./source/*/index.tsx"
18
+ ],
19
+ "types": "./distribution/*/index.d.ts",
20
+ "default": "./distribution/*/index.js"
21
+ }
22
+ },
23
+ "files": [
24
+ "distribution",
25
+ "LICENCA.md",
26
+ "LICENSE.md",
27
+ "NOTICE.md"
28
+ ],
29
+ "sideEffects": [
30
+ "**/*.css"
31
+ ],
32
+ "engines": {
33
+ "node": ">=20"
34
+ },
35
+ "publishConfig": {
36
+ "access": "public"
37
+ },
38
+ "peerDependencies": {
39
+ "next": ">=16",
40
+ "react": ">=19",
41
+ "react-dom": ">=19"
42
+ },
43
+ "lint-staged": {
44
+ "*.{ts,tsx,js,mjs,cjs}": [
45
+ "prettier --write",
46
+ "eslint --fix --max-warnings=0"
47
+ ],
48
+ "*.{json,md,yml,yaml,scss}": "prettier --write"
49
+ },
50
+ "devDependencies": {
51
+ "@eslint/js": "^9.39.5",
52
+ "@testing-library/dom": "^10.4.2",
53
+ "@testing-library/react": "^16.3.3",
54
+ "@types/node": "^24.19.2",
55
+ "@types/react": "^19.3.0",
56
+ "@types/react-dom": "^19.3.0",
57
+ "@types/three": "^0.187.0",
58
+ "@vitejs/plugin-react": "^6.3.0",
59
+ "eslint": "9.39.5",
60
+ "eslint-config-prettier": "^10.1.8",
61
+ "eslint-plugin-react-hooks": "^7.1.1",
62
+ "happy-dom": "^21.0.4",
63
+ "husky": "^9.1.7",
64
+ "lint-staged": "^17.6.0",
65
+ "next": "16.4.5",
66
+ "prettier": "^3.9.10",
67
+ "react": "^19.3.1",
68
+ "react-dom": "^19.3.1",
69
+ "sass": "^1.108.1",
70
+ "turbo": "^2.11.10",
71
+ "typedoc": "^0.28.20",
72
+ "typescript": "6.0.3",
73
+ "typescript-eslint": "^8.72.2",
74
+ "vitest": "^5.1.0"
75
+ },
76
+ "repository": {
77
+ "type": "git",
78
+ "url": "git+https://github.com/Sharadox/sharadox-web-library.git"
79
+ },
80
+ "homepage": "https://github.com/Sharadox/sharadox-web-library#readme",
81
+ "dependencies": {
82
+ "@react-three/fiber": "^9.8.2",
83
+ "@sharadox/email-web-library": "^0.2.0",
84
+ "@sharadox/web-library": "^0.1.0",
85
+ "motion": "^12.43.0",
86
+ "three": "^0.180.0"
87
+ },
88
+ "scripts": {
89
+ "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",
90
+ "lint": "eslint --max-warnings=0 .",
91
+ "format": "prettier --write .",
92
+ "format:check": "prettier --check .",
93
+ "type-check": "tsc --noEmit",
94
+ "test:unit": "vitest run",
95
+ "test:benchmark": "vitest bench --run --passWithNoTests",
96
+ "documentation": "typedoc",
97
+ "verify": "turbo run format:check lint type-check test:unit test:benchmark build"
98
+ }
6
99
  }