@sharadox/sharadox-web-library 0.2.0 → 0.4.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 (307) hide show
  1. package/README.md +4 -2
  2. package/distribution/action/send-contact/index.d.ts.map +1 -1
  3. package/distribution/action/send-contact/index.js +9 -4
  4. package/distribution/action/send-contact/index.js.map +1 -1
  5. package/distribution/component/button/index.d.ts +1 -1
  6. package/distribution/component/button/index.d.ts.map +1 -1
  7. package/distribution/component/button/index.js +2 -2
  8. package/distribution/component/button/index.js.map +1 -1
  9. package/distribution/component/button/index.module.css +11 -8
  10. package/distribution/component/button/type.d.ts +1 -1
  11. package/distribution/component/capability/index.d.ts +4 -0
  12. package/distribution/component/capability/index.d.ts.map +1 -0
  13. package/distribution/component/capability/index.js +13 -0
  14. package/distribution/component/capability/index.js.map +1 -0
  15. package/distribution/component/capability/index.module.css +83 -0
  16. package/distribution/component/{services/application-visual → capability}/type.d.ts +1 -1
  17. package/distribution/component/capability/type.d.ts.map +1 -0
  18. package/distribution/component/capability/type.js.map +1 -0
  19. package/distribution/component/contact/form/index.d.ts.map +1 -1
  20. package/distribution/component/contact/form/index.js +2 -1
  21. package/distribution/component/contact/form/index.js.map +1 -1
  22. package/distribution/component/contact/form/index.module.css +67 -7
  23. package/distribution/component/contact/index.module.css +2 -2
  24. package/distribution/component/cross/index.d.ts +4 -0
  25. package/distribution/component/cross/index.d.ts.map +1 -0
  26. package/distribution/component/cross/index.js +7 -0
  27. package/distribution/component/cross/index.js.map +1 -0
  28. package/distribution/component/cross/index.module.css +53 -0
  29. package/distribution/component/cross/type.d.ts +6 -0
  30. package/distribution/component/cross/type.d.ts.map +1 -0
  31. package/distribution/component/cross/type.js.map +1 -0
  32. package/distribution/component/cursor/index.module.css +1 -0
  33. package/distribution/component/footer/index.d.ts +1 -1
  34. package/distribution/component/footer/index.d.ts.map +1 -1
  35. package/distribution/component/footer/index.js +12 -5
  36. package/distribution/component/footer/index.js.map +1 -1
  37. package/distribution/component/footer/index.module.css +88 -22
  38. package/distribution/component/globe/arc/index.d.ts +1 -1
  39. package/distribution/component/globe/arc/index.d.ts.map +1 -1
  40. package/distribution/component/globe/arc/index.js +4 -4
  41. package/distribution/component/globe/arc/index.js.map +1 -1
  42. package/distribution/component/globe/arc/type.d.ts +2 -0
  43. package/distribution/component/globe/arc/type.d.ts.map +1 -1
  44. package/distribution/component/globe/color/index.d.ts +4 -0
  45. package/distribution/component/globe/color/index.d.ts.map +1 -0
  46. package/distribution/component/globe/color/index.js +16 -0
  47. package/distribution/component/globe/color/index.js.map +1 -0
  48. package/distribution/component/globe/color/type.d.ts +13 -0
  49. package/distribution/component/globe/color/type.d.ts.map +1 -0
  50. package/distribution/component/globe/color/type.js +2 -0
  51. package/distribution/component/globe/color/type.js.map +1 -0
  52. package/distribution/component/globe/dots/index.d.ts +1 -1
  53. package/distribution/component/globe/dots/index.d.ts.map +1 -1
  54. package/distribution/component/globe/dots/index.js +6 -2
  55. package/distribution/component/globe/dots/index.js.map +1 -1
  56. package/distribution/component/globe/dots/type.d.ts +2 -0
  57. package/distribution/component/globe/dots/type.d.ts.map +1 -1
  58. package/distribution/component/globe/index.d.ts +1 -1
  59. package/distribution/component/globe/index.d.ts.map +1 -1
  60. package/distribution/component/globe/index.js +8 -3
  61. package/distribution/component/globe/index.js.map +1 -1
  62. package/distribution/component/globe/index.module.css +3 -3
  63. package/distribution/component/globe/marker/index.d.ts +1 -1
  64. package/distribution/component/globe/marker/index.d.ts.map +1 -1
  65. package/distribution/component/globe/marker/index.js +2 -2
  66. package/distribution/component/globe/marker/index.js.map +1 -1
  67. package/distribution/component/globe/marker/type.d.ts +2 -0
  68. package/distribution/component/globe/marker/type.d.ts.map +1 -1
  69. package/distribution/component/globe/shader/arc/index.d.ts.map +1 -1
  70. package/distribution/component/globe/shader/arc/index.js +2 -1
  71. package/distribution/component/globe/shader/arc/index.js.map +1 -1
  72. package/distribution/component/globe/shader/atmosphere/index.d.ts.map +1 -1
  73. package/distribution/component/globe/shader/atmosphere/index.js +2 -1
  74. package/distribution/component/globe/shader/atmosphere/index.js.map +1 -1
  75. package/distribution/component/globe/shader/body/index.d.ts +1 -1
  76. package/distribution/component/globe/shader/body/index.d.ts.map +1 -1
  77. package/distribution/component/globe/shader/body/index.js +4 -2
  78. package/distribution/component/globe/shader/body/index.js.map +1 -1
  79. package/distribution/component/globe/shader/dot/index.d.ts.map +1 -1
  80. package/distribution/component/globe/shader/dot/index.js +2 -1
  81. package/distribution/component/globe/shader/dot/index.js.map +1 -1
  82. package/distribution/component/globe/world/index.d.ts +1 -1
  83. package/distribution/component/globe/world/index.d.ts.map +1 -1
  84. package/distribution/component/globe/world/index.js +11 -7
  85. package/distribution/component/globe/world/index.js.map +1 -1
  86. package/distribution/component/globe/world/type.d.ts +2 -0
  87. package/distribution/component/globe/world/type.d.ts.map +1 -1
  88. package/distribution/component/hero/guide/index.d.ts +6 -0
  89. package/distribution/component/hero/guide/index.d.ts.map +1 -0
  90. package/distribution/component/hero/guide/index.js +12 -0
  91. package/distribution/component/hero/guide/index.js.map +1 -0
  92. package/distribution/component/hero/guide/index.module.css +97 -0
  93. package/distribution/component/hero/index.d.ts +1 -1
  94. package/distribution/component/hero/index.d.ts.map +1 -1
  95. package/distribution/component/hero/index.js +4 -2
  96. package/distribution/component/hero/index.js.map +1 -1
  97. package/distribution/component/hero/index.module.css +23 -29
  98. package/distribution/component/language-switch/index.d.ts +1 -1
  99. package/distribution/component/language-switch/index.d.ts.map +1 -1
  100. package/distribution/component/language-switch/index.js +5 -3
  101. package/distribution/component/language-switch/index.js.map +1 -1
  102. package/distribution/component/language-switch/index.module.css +6 -3
  103. package/distribution/component/locale-link/index.d.ts +4 -0
  104. package/distribution/component/locale-link/index.d.ts.map +1 -0
  105. package/distribution/component/locale-link/index.js +9 -0
  106. package/distribution/component/locale-link/index.js.map +1 -0
  107. package/distribution/component/locale-link/type.d.ts +10 -0
  108. package/distribution/component/locale-link/type.d.ts.map +1 -0
  109. package/distribution/component/locale-link/type.js +2 -0
  110. package/distribution/component/locale-link/type.js.map +1 -0
  111. package/distribution/component/marquee/index.d.ts +4 -1
  112. package/distribution/component/marquee/index.d.ts.map +1 -1
  113. package/distribution/component/marquee/index.js +8 -3
  114. package/distribution/component/marquee/index.js.map +1 -1
  115. package/distribution/component/marquee/index.module.css +20 -4
  116. package/distribution/component/navigation/index.d.ts +1 -1
  117. package/distribution/component/navigation/index.d.ts.map +1 -1
  118. package/distribution/component/navigation/index.js +4 -2
  119. package/distribution/component/navigation/index.js.map +1 -1
  120. package/distribution/component/navigation/index.module.css +32 -7
  121. package/distribution/component/process/index.module.css +3 -3
  122. package/distribution/component/process/step/index.module.css +2 -2
  123. package/distribution/component/section/index.d.ts +5 -2
  124. package/distribution/component/section/index.d.ts.map +1 -1
  125. package/distribution/component/section/index.js +8 -4
  126. package/distribution/component/section/index.js.map +1 -1
  127. package/distribution/component/section/index.module.css +32 -3
  128. package/distribution/component/section/type.d.ts +5 -1
  129. package/distribution/component/section/type.d.ts.map +1 -1
  130. package/distribution/component/service-index/index.d.ts +4 -0
  131. package/distribution/component/service-index/index.d.ts.map +1 -0
  132. package/distribution/component/service-index/index.js +11 -0
  133. package/distribution/component/service-index/index.js.map +1 -0
  134. package/distribution/component/service-index/index.module.css +88 -0
  135. package/distribution/component/service-index/type.d.ts +5 -0
  136. package/distribution/component/service-index/type.d.ts.map +1 -0
  137. package/distribution/component/service-index/type.js +2 -0
  138. package/distribution/component/service-index/type.js.map +1 -0
  139. package/distribution/component/services/campaign-visual/index.d.ts +4 -0
  140. package/distribution/component/services/campaign-visual/index.d.ts.map +1 -0
  141. package/distribution/component/services/campaign-visual/index.js +18 -0
  142. package/distribution/component/services/campaign-visual/index.js.map +1 -0
  143. package/distribution/component/services/campaign-visual/index.module.css +128 -0
  144. package/distribution/component/services/campaign-visual/stage/index.d.ts +4 -0
  145. package/distribution/component/services/campaign-visual/stage/index.d.ts.map +1 -0
  146. package/distribution/component/services/campaign-visual/stage/index.js +11 -0
  147. package/distribution/component/services/campaign-visual/stage/index.js.map +1 -0
  148. package/distribution/component/services/campaign-visual/stage/type.d.ts +10 -0
  149. package/distribution/component/services/campaign-visual/stage/type.d.ts.map +1 -0
  150. package/distribution/component/services/campaign-visual/stage/type.js +2 -0
  151. package/distribution/component/services/campaign-visual/stage/type.js.map +1 -0
  152. package/distribution/component/services/campaign-visual/type.d.ts +5 -0
  153. package/distribution/component/services/campaign-visual/type.d.ts.map +1 -0
  154. package/distribution/component/services/campaign-visual/type.js +2 -0
  155. package/distribution/component/services/campaign-visual/type.js.map +1 -0
  156. package/distribution/component/services/cell/index.d.ts +7 -0
  157. package/distribution/component/services/cell/index.d.ts.map +1 -0
  158. package/distribution/component/services/cell/index.js +15 -0
  159. package/distribution/component/services/cell/index.js.map +1 -0
  160. package/distribution/component/services/cell/index.module.css +86 -0
  161. package/distribution/component/services/cell/type.d.ts +14 -0
  162. package/distribution/component/services/cell/type.d.ts.map +1 -0
  163. package/distribution/component/services/cell/type.js +2 -0
  164. package/distribution/component/services/cell/type.js.map +1 -0
  165. package/distribution/component/services/design-visual/index.d.ts +5 -0
  166. package/distribution/component/services/design-visual/index.d.ts.map +1 -0
  167. package/distribution/component/services/design-visual/index.js +20 -0
  168. package/distribution/component/services/design-visual/index.js.map +1 -0
  169. package/distribution/component/services/design-visual/index.module.css +130 -0
  170. package/distribution/component/services/index.d.ts +1 -1
  171. package/distribution/component/services/index.d.ts.map +1 -1
  172. package/distribution/component/services/index.js +16 -10
  173. package/distribution/component/services/index.js.map +1 -1
  174. package/distribution/component/services/index.module.css +73 -8
  175. package/distribution/component/services/mobile-visual/index.d.ts +4 -0
  176. package/distribution/component/services/mobile-visual/index.d.ts.map +1 -0
  177. package/distribution/component/services/{application-visual → mobile-visual}/index.js +1 -1
  178. package/distribution/component/services/mobile-visual/index.js.map +1 -0
  179. package/distribution/component/services/{application-visual → mobile-visual}/index.module.css +15 -6
  180. package/distribution/component/services/mobile-visual/type.d.ts +5 -0
  181. package/distribution/component/services/mobile-visual/type.d.ts.map +1 -0
  182. package/distribution/component/services/mobile-visual/type.js +2 -0
  183. package/distribution/component/services/mobile-visual/type.js.map +1 -0
  184. package/distribution/component/services/platform-visual/index.js +1 -1
  185. package/distribution/component/services/platform-visual/index.js.map +1 -1
  186. package/distribution/component/services/platform-visual/index.module.css +8 -8
  187. package/distribution/component/services/social-visual/index.d.ts +4 -0
  188. package/distribution/component/services/social-visual/index.d.ts.map +1 -0
  189. package/distribution/component/services/social-visual/index.js +17 -0
  190. package/distribution/component/services/social-visual/index.js.map +1 -0
  191. package/distribution/component/services/social-visual/index.module.css +131 -0
  192. package/distribution/component/services/social-visual/type.d.ts +5 -0
  193. package/distribution/component/services/social-visual/type.d.ts.map +1 -0
  194. package/distribution/component/services/social-visual/type.js +2 -0
  195. package/distribution/component/services/social-visual/type.js.map +1 -0
  196. package/distribution/component/services/web-visual/index.module.css +19 -11
  197. package/distribution/component/statement/index.d.ts.map +1 -1
  198. package/distribution/component/statement/index.js +2 -1
  199. package/distribution/component/statement/index.js.map +1 -1
  200. package/distribution/component/statement/index.module.css +1 -3
  201. package/distribution/component/structured-data/index.d.ts +1 -1
  202. package/distribution/component/structured-data/index.d.ts.map +1 -1
  203. package/distribution/component/structured-data/index.js +28 -2
  204. package/distribution/component/structured-data/index.js.map +1 -1
  205. package/distribution/component/style-switch/index.d.ts +7 -0
  206. package/distribution/component/style-switch/index.d.ts.map +1 -0
  207. package/distribution/component/style-switch/index.js +24 -0
  208. package/distribution/component/style-switch/index.js.map +1 -0
  209. package/distribution/component/style-switch/index.module.css +45 -0
  210. package/distribution/component/style-switch/type.d.ts +6 -0
  211. package/distribution/component/style-switch/type.d.ts.map +1 -0
  212. package/distribution/component/style-switch/type.js +2 -0
  213. package/distribution/component/style-switch/type.js.map +1 -0
  214. package/distribution/component/touchpoint/index.d.ts +7 -0
  215. package/distribution/component/touchpoint/index.d.ts.map +1 -0
  216. package/distribution/component/touchpoint/index.js +25 -0
  217. package/distribution/component/touchpoint/index.js.map +1 -0
  218. package/distribution/component/touchpoint/index.module.css +86 -0
  219. package/distribution/component/touchpoint/plate/index.d.ts +4 -0
  220. package/distribution/component/touchpoint/plate/index.d.ts.map +1 -0
  221. package/distribution/component/touchpoint/plate/index.js +9 -0
  222. package/distribution/component/touchpoint/plate/index.js.map +1 -0
  223. package/distribution/component/touchpoint/plate/index.module.css +136 -0
  224. package/distribution/component/touchpoint/plate/type.d.ts +8 -0
  225. package/distribution/component/touchpoint/plate/type.d.ts.map +1 -0
  226. package/distribution/component/touchpoint/plate/type.js +2 -0
  227. package/distribution/component/touchpoint/plate/type.js.map +1 -0
  228. package/distribution/component/touchpoint/type.d.ts +5 -0
  229. package/distribution/component/touchpoint/type.d.ts.map +1 -0
  230. package/distribution/component/touchpoint/type.js +2 -0
  231. package/distribution/component/touchpoint/type.js.map +1 -0
  232. package/distribution/component/wordmark/index.module.css +2 -2
  233. package/distribution/content/capability/index.d.ts +12 -0
  234. package/distribution/content/capability/index.d.ts.map +1 -0
  235. package/distribution/content/capability/index.js +6 -0
  236. package/distribution/content/capability/index.js.map +1 -0
  237. package/distribution/content/contact/index.d.ts +12 -4
  238. package/distribution/content/contact/index.d.ts.map +1 -1
  239. package/distribution/content/contact/index.js +8 -3
  240. package/distribution/content/contact/index.js.map +1 -1
  241. package/distribution/content/footer/index.d.ts +12 -0
  242. package/distribution/content/footer/index.d.ts.map +1 -1
  243. package/distribution/content/footer/index.js +3 -0
  244. package/distribution/content/footer/index.js.map +1 -1
  245. package/distribution/content/hero/index.d.ts +4 -4
  246. package/distribution/content/hero/index.js +3 -3
  247. package/distribution/content/hero/index.js.map +1 -1
  248. package/distribution/content/navigation/index.d.ts +8 -0
  249. package/distribution/content/navigation/index.d.ts.map +1 -1
  250. package/distribution/content/navigation/index.js +2 -0
  251. package/distribution/content/navigation/index.js.map +1 -1
  252. package/distribution/content/process/index.d.ts +7 -7
  253. package/distribution/content/process/index.d.ts.map +1 -1
  254. package/distribution/content/process/index.js +8 -5
  255. package/distribution/content/process/index.js.map +1 -1
  256. package/distribution/content/separator/index.d.ts +2 -5
  257. package/distribution/content/separator/index.d.ts.map +1 -1
  258. package/distribution/content/separator/index.js +2 -5
  259. package/distribution/content/separator/index.js.map +1 -1
  260. package/distribution/content/services/index.d.ts +120 -29
  261. package/distribution/content/services/index.d.ts.map +1 -1
  262. package/distribution/content/services/index.js +146 -21
  263. package/distribution/content/services/index.js.map +1 -1
  264. package/distribution/content/site/index.d.ts.map +1 -1
  265. package/distribution/content/site/index.js +28 -4
  266. package/distribution/content/site/index.js.map +1 -1
  267. package/distribution/content/stack/index.d.ts +2 -2
  268. package/distribution/content/stack/index.d.ts.map +1 -1
  269. package/distribution/content/stack/index.js +8 -1
  270. package/distribution/content/stack/index.js.map +1 -1
  271. package/distribution/content/statement/index.d.ts +2 -2
  272. package/distribution/content/statement/index.js +2 -2
  273. package/distribution/content/statement/index.js.map +1 -1
  274. package/distribution/content/style/index.d.ts +59 -0
  275. package/distribution/content/style/index.d.ts.map +1 -0
  276. package/distribution/content/style/index.js +48 -0
  277. package/distribution/content/style/index.js.map +1 -0
  278. package/distribution/content/touchpoint/index.d.ts +37 -0
  279. package/distribution/content/touchpoint/index.d.ts.map +1 -0
  280. package/distribution/content/touchpoint/index.js +17 -0
  281. package/distribution/content/touchpoint/index.js.map +1 -0
  282. package/distribution/style/token/index.scss +33 -2
  283. package/distribution/utility/hex-channel/index.d.ts +3 -0
  284. package/distribution/utility/hex-channel/index.d.ts.map +1 -0
  285. package/distribution/utility/hex-channel/index.js +8 -0
  286. package/distribution/utility/hex-channel/index.js.map +1 -0
  287. package/distribution/utility/parse-contact/index.d.ts.map +1 -1
  288. package/distribution/utility/parse-contact/index.js +4 -0
  289. package/distribution/utility/parse-contact/index.js.map +1 -1
  290. package/distribution/utility/parse-contact/type.d.ts +3 -0
  291. package/distribution/utility/parse-contact/type.d.ts.map +1 -1
  292. package/package.json +4 -2
  293. package/distribution/component/services/application-visual/index.d.ts +0 -4
  294. package/distribution/component/services/application-visual/index.d.ts.map +0 -1
  295. package/distribution/component/services/application-visual/index.js.map +0 -1
  296. package/distribution/component/services/application-visual/type.d.ts.map +0 -1
  297. package/distribution/component/services/application-visual/type.js.map +0 -1
  298. package/distribution/component/services/card/index.d.ts +0 -4
  299. package/distribution/component/services/card/index.d.ts.map +0 -1
  300. package/distribution/component/services/card/index.js +0 -10
  301. package/distribution/component/services/card/index.js.map +0 -1
  302. package/distribution/component/services/card/index.module.css +0 -92
  303. package/distribution/component/services/card/type.d.ts +0 -12
  304. package/distribution/component/services/card/type.d.ts.map +0 -1
  305. package/distribution/component/services/card/type.js.map +0 -1
  306. /package/distribution/component/{services/application-visual → capability}/type.js +0 -0
  307. /package/distribution/component/{services/card → cross}/type.js +0 -0
@@ -0,0 +1,48 @@
1
+ /** Black: the Sharadox dark style. White is its exact inverse. */
2
+ const BLACK = {
3
+ background: "#000000",
4
+ foreground: "#ffffff",
5
+ "foreground-2": "#a1a1a1",
6
+ "foreground-3": "#6b6b6b",
7
+ line: "rgba(255, 255, 255, 0.09)",
8
+ "line-2": "rgba(255, 255, 255, 0.16)",
9
+ card: "#0a0a0a",
10
+ surface: "#121212",
11
+ error: "#ff8a8a",
12
+ "globe-body": "#050505",
13
+ "globe-rim": "#525252",
14
+ };
15
+ const WHITE = {
16
+ background: "#ffffff",
17
+ foreground: "#000000",
18
+ "foreground-2": "#5e5e5e",
19
+ "foreground-3": "#949494",
20
+ line: "rgba(0, 0, 0, 0.09)",
21
+ "line-2": "rgba(0, 0, 0, 0.16)",
22
+ card: "#f5f5f5",
23
+ surface: "#ededed",
24
+ error: "#c62828",
25
+ "globe-body": "#fafafa",
26
+ "globe-rim": "#adadad",
27
+ };
28
+ /**
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
+ * Dark is the fallback when the device's preference is unknown.
32
+ */
33
+ export const STYLE_CONFIGURATION = {
34
+ styles: [
35
+ { name: "black", scheme: "dark", palette: BLACK },
36
+ { name: "white", scheme: "light", palette: WHITE },
37
+ ],
38
+ defaults: { dark: "black", light: "white" },
39
+ fallback: "dark",
40
+ storageKey: "style",
41
+ };
42
+ /** Names shown in the style switch. Style names are proper names, the same in every language. */
43
+ export const STYLE = {
44
+ label: { en: "Style", pt: "Estilo" },
45
+ system: { en: "System", pt: "Sistema" },
46
+ names: { black: "Black", white: "White" },
47
+ };
48
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/content/style/index.ts"],"names":[],"mappings":"AAEA,kEAAkE;AAClE,MAAM,KAAK,GAAG;IACZ,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,cAAc,EAAE,SAAS;IACzB,cAAc,EAAE,SAAS;IACzB,IAAI,EAAE,2BAA2B;IACjC,QAAQ,EAAE,2BAA2B;IACrC,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,SAAS;IAChB,YAAY,EAAE,SAAS;IACvB,WAAW,EAAE,SAAS;CACvB,CAAC;AACF,MAAM,KAAK,GAAG;IACZ,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,cAAc,EAAE,SAAS;IACzB,cAAc,EAAE,SAAS;IACzB,IAAI,EAAE,qBAAqB;IAC3B,QAAQ,EAAE,qBAAqB;IAC/B,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,SAAS;IAChB,YAAY,EAAE,SAAS;IACvB,WAAW,EAAE,SAAS;CACvB,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,MAAM,EAAE;QACN,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE;QACjD,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE;KACnD;IACD,QAAQ,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;IAC3C,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,OAAO;CACkB,CAAC;AAExC,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"}
@@ -0,0 +1,37 @@
1
+ /** "One brand. Every touchpoint.": the layers of a brand, stacked in 3D, that separate as the visitor scrolls. */
2
+ export declare const TOUCHPOINT: {
3
+ readonly eyebrow: {
4
+ readonly en: "One system";
5
+ readonly pt: "Um só sistema";
6
+ };
7
+ readonly title: {
8
+ readonly en: "One brand. Every touchpoint.";
9
+ readonly pt: "Uma marca. Todos os pontos de contacto.";
10
+ };
11
+ readonly text: {
12
+ readonly en: "Identity, website, app, social feed and campaigns grow from one source, so everything your customers see feels like one — and nothing ever looks off-brand.";
13
+ readonly pt: "Identidade, website, aplicação, redes sociais e campanhas nascem da mesma origem, para que tudo o que os seus clientes veem pareça um só — e nada fique fora da marca.";
14
+ };
15
+ readonly layers: readonly [{
16
+ readonly key: "identity";
17
+ readonly en: "Identity";
18
+ readonly pt: "Identidade";
19
+ }, {
20
+ readonly key: "website";
21
+ readonly en: "Website";
22
+ readonly pt: "Website";
23
+ }, {
24
+ readonly key: "application";
25
+ readonly en: "App";
26
+ readonly pt: "Aplicação";
27
+ }, {
28
+ readonly key: "social";
29
+ readonly en: "Social";
30
+ readonly pt: "Redes sociais";
31
+ }, {
32
+ readonly key: "campaign";
33
+ readonly en: "Campaign";
34
+ readonly pt: "Campanha";
35
+ }];
36
+ };
37
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/content/touchpoint/index.ts"],"names":[],"mappings":"AAAA,kHAAkH;AAClH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcb,CAAC"}
@@ -0,0 +1,17 @@
1
+ /** "One brand. Every touchpoint.": the layers of a brand, stacked in 3D, that separate as the visitor scrolls. */
2
+ export const TOUCHPOINT = {
3
+ eyebrow: { en: "One system", pt: "Um só sistema" },
4
+ title: { en: "One brand. Every touchpoint.", pt: "Uma marca. Todos os pontos de contacto." },
5
+ text: {
6
+ en: "Identity, website, app, social feed and campaigns grow from one source, so everything your customers see feels like one — and nothing ever looks off-brand.",
7
+ pt: "Identidade, website, aplicação, redes sociais e campanhas nascem da mesma origem, para que tudo o que os seus clientes veem pareça um só — e nada fique fora da marca.",
8
+ },
9
+ layers: [
10
+ { key: "identity", en: "Identity", pt: "Identidade" },
11
+ { key: "website", en: "Website", pt: "Website" },
12
+ { key: "application", en: "App", pt: "Aplicação" },
13
+ { key: "social", en: "Social", pt: "Redes sociais" },
14
+ { key: "campaign", en: "Campaign", pt: "Campanha" },
15
+ ],
16
+ };
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/content/touchpoint/index.ts"],"names":[],"mappings":"AAAA,kHAAkH;AAClH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,OAAO,EAAE,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE,eAAe,EAAE;IAClD,KAAK,EAAE,EAAE,EAAE,EAAE,8BAA8B,EAAE,EAAE,EAAE,yCAAyC,EAAE;IAC5F,IAAI,EAAE;QACJ,EAAE,EAAE,6JAA6J;QACjK,EAAE,EAAE,wKAAwK;KAC7K;IACD,MAAM,EAAE;QACN,EAAE,GAAG,EAAE,UAAU,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,YAAY,EAAE;QACrD,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE;QAChD,EAAE,GAAG,EAAE,aAAa,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,WAAW,EAAE;QAClD,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,eAAe,EAAE;QACpD,EAAE,GAAG,EAAE,UAAU,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,UAAU,EAAE;KACpD;CACO,CAAC"}
@@ -1,5 +1,5 @@
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.
1
+ // Sharadox design helpers. Colours are CSS custom properties set by the active style (content/style: Black, White…),
2
+ // so everything here works in every style. Only build-time helpers live in this file.
3
3
  $ease: cubic-bezier(0.22, 1, 0.36, 1);
4
4
 
5
5
  /// Below a viewport width.
@@ -16,3 +16,34 @@ $ease: cubic-bezier(0.22, 1, 0.36, 1);
16
16
  display: grid;
17
17
  place-items: center;
18
18
  }
19
+
20
+ /// The foreground colour at an opacity, for lights, glows and hairlines that follow the style.
21
+ @function tint($amount) {
22
+ @return color-mix(in srgb, var(--foreground) $amount, transparent);
23
+ }
24
+
25
+ /// The background colour at an opacity, for frosted bars and shadows that follow the style.
26
+ @function shade($amount) {
27
+ @return color-mix(in srgb, var(--background) $amount, transparent);
28
+ }
29
+
30
+ /// A dashed hairline drawn with a gradient, so the dash length is exact: `horizontal` or `vertical`.
31
+ @mixin dashed($direction: horizontal, $color: var(--line-2), $dash: 4px, $gap: 4px) {
32
+ @if $direction == horizontal {
33
+ background: linear-gradient(90deg, $color 50%, transparent 0) 0 0 / #{$dash + $gap} 1px repeat-x;
34
+ } @else {
35
+ background: linear-gradient(180deg, $color 50%, transparent 0) 0 0 / 1px #{$dash + $gap} repeat-y;
36
+ }
37
+ }
38
+
39
+ /// Animates something in as it scrolls into view (CSS scroll-driven animation, where supported, and only when the
40
+ /// visitor allows motion). The element's normal styles are its final state, so it is complete everywhere else.
41
+ @mixin on-scroll($keyframes, $range: entry 10% cover 40%) {
42
+ @media (prefers-reduced-motion: no-preference) {
43
+ @supports (animation-timeline: view()) {
44
+ animation: $keyframes linear both;
45
+ animation-timeline: view();
46
+ animation-range: $range;
47
+ }
48
+ }
49
+ }
@@ -0,0 +1,3 @@
1
+ /** "#rrggbb" (or "#rgb") as red, green and blue from 0 to 1, for shader colours. */
2
+ export declare function hexChannel(hex: string): [number, number, number];
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/utility/hex-channel/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAKhE"}
@@ -0,0 +1,8 @@
1
+ /** "#rrggbb" (or "#rgb") as red, green and blue from 0 to 1, for shader colours. */
2
+ export function hexChannel(hex) {
3
+ const digits = hex.replace("#", "");
4
+ const full = digits.length === 3 ? [...digits].map((digit) => digit + digit).join("") : digits;
5
+ const value = Number.parseInt(full, 16);
6
+ return [((value >> 16) & 255) / 255, ((value >> 8) & 255) / 255, (value & 255) / 255];
7
+ }
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/utility/hex-channel/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,MAAM,UAAU,UAAU,CAAC,GAAW;IACpC,MAAM,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;IACpC,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;IAC/F,MAAM,KAAK,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IACxC,OAAO,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,EAAE,CAAC,KAAK,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC;AACxF,CAAC"}
@@ -1 +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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/utility/parse-contact/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAC;AAK/F,0GAA0G;AAC1G,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,EAAE,GAAG,SAAa,GAAG,aAAa,CAe5E"}
@@ -1,5 +1,7 @@
1
1
  import { isLikelyBot } from "@sharadox/web-library/form/bot-check";
2
2
  import { readField } from "@sharadox/web-library/form/field";
3
+ import { SERVICES } from "@sharadox/sharadox-web-library/content/services";
4
+ const SERVICE_KEYS = SERVICES.items.map((service) => service.key);
3
5
  const EMAIL = /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/;
4
6
  /** Reads and validates the contact form, flagging likely bots (honeypot filled or submitted too fast). */
5
7
  export function parseContact(form, now = Date.now()) {
@@ -11,6 +13,8 @@ export function parseContact(form, now = Date.now()) {
11
13
  company: readField(form, "company", 160),
12
14
  message: readField(form, "message", 5000),
13
15
  locale: readField(form, "locale", 5) || "en",
16
+ // The disciplines ticked in the form; anything else is ignored.
17
+ services: [...new Set(form.getAll("service").map(String))].filter((key) => SERVICE_KEYS.includes(key)),
14
18
  };
15
19
  if (!value.name || !value.message || !EMAIL.test(value.email))
16
20
  return { kind: "invalid" };
@@ -1 +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"}
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;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAI3E,MAAM,YAAY,GAAsB,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AACrF,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;QAC5C,gEAAgE;QAChE,QAAQ,EAAE,CAAC,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAqB,EAAE,CAC3F,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,CAC3B;KACF,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"}
@@ -1,3 +1,4 @@
1
+ import type { ServiceKey } from "@sharadox/sharadox-web-library/content/services";
1
2
  /** A validated contact form submission. */
2
3
  export interface ContactMessage {
3
4
  name: string;
@@ -5,6 +6,8 @@ export interface ContactMessage {
5
6
  company: string;
6
7
  message: string;
7
8
  locale: string;
9
+ /** The disciplines the visitor is interested in. */
10
+ services: ServiceKey[];
8
11
  }
9
12
  export type ParsedContact = {
10
13
  kind: "bot";
@@ -1 +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"}
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/utility/parse-contact/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAElF,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;IACf,oDAAoD;IACpD,QAAQ,EAAE,UAAU,EAAE,CAAC;CACxB;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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sharadox/sharadox-web-library",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "description": "Sharadox's own website building blocks: content, components, brand and actions for sharadox-web-application, plus the preview notice and agency credit used on client demos.",
5
5
  "private": false,
6
6
  "license": "SEE LICENSE IN LICENCA.md",
@@ -54,6 +54,7 @@
54
54
  "@types/node": "^24.19.2",
55
55
  "@types/react": "^19.3.0",
56
56
  "@types/react-dom": "^19.3.0",
57
+ "@types/smtp-server": "^3.5.13",
57
58
  "@types/three": "^0.187.0",
58
59
  "@vitejs/plugin-react": "^6.3.0",
59
60
  "eslint": "9.39.5",
@@ -67,6 +68,7 @@
67
68
  "react": "^19.3.1",
68
69
  "react-dom": "^19.3.1",
69
70
  "sass": "^1.108.1",
71
+ "smtp-server": "^3.21.3",
70
72
  "turbo": "^2.11.10",
71
73
  "typedoc": "^0.28.20",
72
74
  "typescript": "6.0.3",
@@ -81,7 +83,7 @@
81
83
  "dependencies": {
82
84
  "@react-three/fiber": "^9.8.2",
83
85
  "@sharadox/email-web-library": "^0.2.0",
84
- "@sharadox/web-library": "^0.1.0",
86
+ "@sharadox/web-library": "^0.2.0",
85
87
  "motion": "^12.43.0",
86
88
  "three": "^0.180.0"
87
89
  },
@@ -1,4 +0,0 @@
1
- import type { AppVisualProperties } from "@sharadox/sharadox-web-library/component/services/application-visual/type";
2
- /** A phone with business notifications sliding in. */
3
- export declare function ApplicationVisual({ locale }: AppVisualProperties): import("react").JSX.Element;
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/services/application-visual/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2EAA2E,CAAC;AAErH,sDAAsD;AACtD,wBAAgB,iBAAiB,CAAC,EAAE,MAAM,EAAE,EAAE,mBAAmB,+BA2BhE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/services/application-visual/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,sDAAsD;AACtD,MAAM,UAAU,iBAAiB,CAAC,EAAE,MAAM,EAAuB;IAC/D,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAC7C,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IACpC,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;QACzE,OAAO,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACpC,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,MAAM,KAAK,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,MAAM,CAAE,CAAC,CAAC;IAC5E,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,MAAM,iCAC3B,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,aAC1B,cAAK,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,EAChC,cAAK,SAAS,EAAE,GAAG,MAAM,CAAC,IAAI,YAAY,qBAAY,EACtD,cAAK,SAAS,EAAE,MAAM,CAAC,KAAK,YACzB,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,CACpC,eAA6B,SAAS,EAAE,GAAG,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,aACrF,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,EAChC,gBAAM,SAAS,EAAE,MAAM,CAAC,IAAI,aAC1B,sBAAI,KAAK,GAAK,EACd,uBAAK,MAAM,GAAM,IACZ,KALC,GAAG,IAAI,IAAI,IAAI,EAAE,CAMrB,CACP,CAAC,GACE,IACF,GACF,CACP,CAAC;AACJ,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/services/application-visual/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../source/component/services/application-visual/type.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- import type { CardProperties } from "@sharadox/sharadox-web-library/component/services/card/type";
2
- /** A service card with a pointer-following light on its surface and border. */
3
- export declare function Card({ visual, tag, title, lead, text, wide }: CardProperties): import("react").JSX.Element;
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/services/card/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6DAA6D,CAAC;AAElG,+EAA+E;AAC/E,wBAAgB,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,cAAc,+BAa5E"}
@@ -1,10 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { useSpotlight } from "@sharadox/web-library/pointer/spotlight";
4
- import styles from "./index.module.css";
5
- /** A service card with a pointer-following light on its surface and border. */
6
- export function Card({ visual, tag, title, lead, text, wide }) {
7
- const spotlight = useSpotlight();
8
- return (_jsxs("article", { ref: spotlight, className: [styles.card, wide && styles.wide].filter(Boolean).join(" "), children: [_jsx("div", { className: styles.visual, children: visual }), _jsxs("div", { className: styles.copy, children: [_jsx("span", { className: `monospace ${styles.tag}`, children: tag }), _jsx("h3", { children: title }), _jsx("p", { className: styles.lead, children: lead }), _jsx("p", { children: text })] })] }));
9
- }
10
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/services/card/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,+EAA+E;AAC/E,MAAM,UAAU,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAkB;IAC3E,MAAM,SAAS,GAAG,YAAY,EAAe,CAAC;IAC9C,OAAO,CACL,mBAAS,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,aAC9F,cAAK,SAAS,EAAE,MAAM,CAAC,MAAM,YAAG,MAAM,GAAO,EAC7C,eAAK,SAAS,EAAE,MAAM,CAAC,IAAI,aACzB,eAAM,SAAS,EAAE,aAAa,MAAM,CAAC,GAAG,EAAE,YAAG,GAAG,GAAQ,EACxD,uBAAK,KAAK,GAAM,EAChB,YAAG,SAAS,EAAE,MAAM,CAAC,IAAI,YAAG,IAAI,GAAK,EACrC,sBAAI,IAAI,GAAK,IACT,IACE,CACX,CAAC;AACJ,CAAC"}
@@ -1,92 +0,0 @@
1
- .card {
2
- --pointer-x: -500px;
3
- --pointer-y: -500px;
4
- position: relative;
5
- height: 100%;
6
- border-radius: 20px;
7
- background: var(--card);
8
- border: 1px solid var(--line);
9
- overflow: hidden;
10
- display: flex;
11
- flex-direction: column;
12
- isolation: isolate;
13
- }
14
- .card::before {
15
- content: "";
16
- position: absolute;
17
- inset: 0;
18
- z-index: -1;
19
- background: radial-gradient(420px circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.07), transparent 60%);
20
- }
21
- .card::after {
22
- content: "";
23
- position: absolute;
24
- inset: 0;
25
- border-radius: inherit;
26
- padding: 1px;
27
- pointer-events: none;
28
- background: radial-gradient(300px circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.45), transparent 60%);
29
- -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
30
- -webkit-mask-composite: xor;
31
- mask-composite: exclude;
32
- }
33
-
34
- .visual {
35
- position: relative;
36
- height: 300px;
37
- border-bottom: 1px solid var(--line);
38
- overflow: hidden;
39
- background: radial-gradient(120% 90% at 50% 0%, #121212, #050505);
40
- }
41
-
42
- .copy {
43
- padding: 28px 30px 32px;
44
- display: grid;
45
- gap: 10px;
46
- }
47
- .copy h3 {
48
- margin-top: 4px;
49
- }
50
- .copy p:not(.lead) {
51
- color: var(--foreground-2);
52
- max-width: 46ch;
53
- }
54
-
55
- .tag {
56
- font-size: 12px;
57
- color: var(--foreground-3);
58
- }
59
-
60
- .lead {
61
- color: var(--foreground);
62
- font-weight: 500;
63
- }
64
-
65
- .wide {
66
- flex-direction: row;
67
- }
68
- .wide .visual {
69
- flex: 1.3;
70
- height: auto;
71
- min-height: 360px;
72
- border-bottom: 0;
73
- border-right: 1px solid var(--line);
74
- }
75
- .wide .copy {
76
- flex: 1;
77
- align-content: center;
78
- padding: 40px;
79
- }
80
- @media (max-width: 860px) {
81
- .wide {
82
- flex-direction: column;
83
- }
84
- .wide .visual {
85
- min-height: 280px;
86
- border-right: 0;
87
- border-bottom: 1px solid var(--line);
88
- }
89
- .wide .copy {
90
- padding: 28px 30px 32px;
91
- }
92
- }
@@ -1,12 +0,0 @@
1
- import type { ReactNode } from "react";
2
- export interface CardProperties {
3
- /** The live visual in the top (or left, when wide) half. */
4
- visual: ReactNode;
5
- tag: string;
6
- title: string;
7
- lead: string;
8
- text: string;
9
- /** Spans the full row with the visual beside the copy. */
10
- wide?: boolean;
11
- }
12
- //# sourceMappingURL=type.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/services/card/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,cAAc;IAC7B,4DAA4D;IAC5D,MAAM,EAAE,SAAS,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,0DAA0D;IAC1D,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../source/component/services/card/type.ts"],"names":[],"mappings":""}