@sharadox/sharadox-web-library 0.6.6 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (280) hide show
  1. package/README.md +46 -8
  2. package/distribution/action/send-contact/index.d.ts +5 -6
  3. package/distribution/action/send-contact/index.d.ts.map +1 -1
  4. package/distribution/action/send-contact/index.js +13 -49
  5. package/distribution/action/send-contact/index.js.map +1 -1
  6. package/distribution/action/send-contact/type.d.ts +1 -3
  7. package/distribution/action/send-contact/type.d.ts.map +1 -1
  8. package/distribution/component/button/index.module.css +1 -58
  9. package/distribution/component/button/index.module.scss +60 -0
  10. package/distribution/component/capability/index.js +2 -2
  11. package/distribution/component/capability/index.module.css +1 -94
  12. package/distribution/component/capability/index.module.scss +85 -0
  13. package/distribution/component/capability/type.d.ts +1 -1
  14. package/distribution/component/consent/index.d.ts +1 -4
  15. package/distribution/component/consent/index.d.ts.map +1 -1
  16. package/distribution/component/consent/index.js +19 -32
  17. package/distribution/component/consent/index.js.map +1 -1
  18. package/distribution/component/consent/index.module.css +1 -183
  19. package/distribution/component/consent/index.module.scss +45 -0
  20. package/distribution/component/consent/preferences-link/index.js +1 -1
  21. package/distribution/component/consent/type.d.ts +1 -1
  22. package/distribution/component/contact/form/index.d.ts.map +1 -1
  23. package/distribution/component/contact/form/index.js +4 -4
  24. package/distribution/component/contact/form/index.js.map +1 -1
  25. package/distribution/component/contact/form/index.module.css +1 -168
  26. package/distribution/component/contact/form/index.module.scss +163 -0
  27. package/distribution/component/contact/form/type.d.ts +1 -1
  28. package/distribution/component/contact/index.js +2 -2
  29. package/distribution/component/contact/index.module.css +1 -56
  30. package/distribution/component/contact/index.module.scss +52 -0
  31. package/distribution/component/contact/type.d.ts +1 -1
  32. package/distribution/component/cross/index.module.css +1 -53
  33. package/distribution/component/cross/index.module.scss +50 -0
  34. package/distribution/component/eyebrow/index.module.css +1 -9
  35. package/distribution/component/eyebrow/index.module.scss +9 -0
  36. package/distribution/component/footer/index.js +4 -4
  37. package/distribution/component/footer/index.js.map +1 -1
  38. package/distribution/component/footer/index.module.css +1 -138
  39. package/distribution/component/footer/index.module.scss +125 -0
  40. package/distribution/component/footer/type.d.ts +1 -1
  41. package/distribution/component/globe/index.d.ts +2 -2
  42. package/distribution/component/globe/index.d.ts.map +1 -1
  43. package/distribution/component/globe/index.js +23 -32
  44. package/distribution/component/globe/index.js.map +1 -1
  45. package/distribution/component/globe/index.module.css +1 -25
  46. package/distribution/component/globe/index.module.scss +7 -0
  47. package/distribution/component/hero/guide/index.module.css +1 -97
  48. package/distribution/component/hero/guide/index.module.scss +94 -0
  49. package/distribution/component/hero/index.js +1 -1
  50. package/distribution/component/hero/index.module.css +1 -124
  51. package/distribution/component/hero/index.module.scss +109 -0
  52. package/distribution/component/hero/type.d.ts +1 -1
  53. package/distribution/component/language-switch/index.js +4 -4
  54. package/distribution/component/language-switch/index.js.map +1 -1
  55. package/distribution/component/language-switch/index.module.css +1 -20
  56. package/distribution/component/language-switch/index.module.scss +22 -0
  57. package/distribution/component/language-switch/type.d.ts +1 -1
  58. package/distribution/component/marquee/index.js +1 -1
  59. package/distribution/component/marquee/index.module.css +1 -43
  60. package/distribution/component/marquee/index.module.scss +39 -0
  61. package/distribution/component/navigation/index.js +1 -1
  62. package/distribution/component/navigation/index.module.css +1 -81
  63. package/distribution/component/navigation/index.module.scss +76 -0
  64. package/distribution/component/navigation/type.d.ts +1 -1
  65. package/distribution/component/process/index.js +1 -1
  66. package/distribution/component/process/index.module.css +1 -43
  67. package/distribution/component/process/index.module.scss +40 -0
  68. package/distribution/component/process/step/index.module.css +1 -33
  69. package/distribution/component/process/step/index.module.scss +31 -0
  70. package/distribution/component/process/type.d.ts +1 -1
  71. package/distribution/component/section/index.module.css +1 -35
  72. package/distribution/component/section/index.module.scss +32 -0
  73. package/distribution/component/section-heading/index.js +1 -1
  74. package/distribution/component/section-heading/index.module.css +1 -7
  75. package/distribution/component/section-heading/index.module.scss +7 -0
  76. package/distribution/component/section-indicator/index.js +2 -2
  77. package/distribution/component/section-indicator/index.module.css +1 -145
  78. package/distribution/component/section-indicator/index.module.scss +143 -0
  79. package/distribution/component/section-indicator/type.d.ts +1 -1
  80. package/distribution/component/service-index/index.js +1 -1
  81. package/distribution/component/service-index/index.module.css +1 -88
  82. package/distribution/component/service-index/index.module.scss +83 -0
  83. package/distribution/component/service-index/type.d.ts +1 -1
  84. package/distribution/component/services/campaign-visual/index.js +2 -2
  85. package/distribution/component/services/campaign-visual/index.module.css +1 -128
  86. package/distribution/component/services/campaign-visual/index.module.scss +122 -0
  87. package/distribution/component/services/campaign-visual/stage/index.js +3 -3
  88. package/distribution/component/services/campaign-visual/stage/index.js.map +1 -1
  89. package/distribution/component/services/campaign-visual/stage/type.d.ts +1 -1
  90. package/distribution/component/services/campaign-visual/type.d.ts +1 -1
  91. package/distribution/component/services/cell/index.js +2 -2
  92. package/distribution/component/services/cell/index.module.css +1 -86
  93. package/distribution/component/services/cell/index.module.scss +81 -0
  94. package/distribution/component/services/design-visual/index.js +1 -1
  95. package/distribution/component/services/design-visual/index.module.css +1 -130
  96. package/distribution/component/services/design-visual/index.module.scss +117 -0
  97. package/distribution/component/services/index.js +2 -2
  98. package/distribution/component/services/index.module.css +1 -84
  99. package/distribution/component/services/index.module.scss +66 -0
  100. package/distribution/component/services/mobile-visual/index.d.ts.map +1 -1
  101. package/distribution/component/services/mobile-visual/index.js +2 -1
  102. package/distribution/component/services/mobile-visual/index.js.map +1 -1
  103. package/distribution/component/services/mobile-visual/index.module.css +1 -104
  104. package/distribution/component/services/mobile-visual/index.module.scss +93 -0
  105. package/distribution/component/services/mobile-visual/type.d.ts +1 -1
  106. package/distribution/component/services/platform-visual/index.module.css +1 -46
  107. package/distribution/component/services/platform-visual/index.module.scss +39 -0
  108. package/distribution/component/services/social-visual/index.js +5 -5
  109. package/distribution/component/services/social-visual/index.js.map +1 -1
  110. package/distribution/component/services/social-visual/index.module.css +1 -131
  111. package/distribution/component/services/social-visual/index.module.scss +120 -0
  112. package/distribution/component/services/social-visual/type.d.ts +1 -1
  113. package/distribution/component/services/type.d.ts +1 -1
  114. package/distribution/component/services/web-visual/index.js +1 -1
  115. package/distribution/component/services/web-visual/index.module.css +1 -142
  116. package/distribution/component/services/web-visual/index.module.scss +132 -0
  117. package/distribution/component/share-image/index.d.ts +1 -2
  118. package/distribution/component/share-image/index.d.ts.map +1 -1
  119. package/distribution/component/share-image/index.js +3 -3
  120. package/distribution/component/share-image/index.js.map +1 -1
  121. package/distribution/component/share-image/type.d.ts +1 -1
  122. package/distribution/component/statement/index.js +1 -1
  123. package/distribution/component/statement/index.module.css +1 -11
  124. package/distribution/component/statement/index.module.scss +10 -0
  125. package/distribution/component/structured-data/index.d.ts.map +1 -1
  126. package/distribution/component/structured-data/index.js +48 -53
  127. package/distribution/component/structured-data/index.js.map +1 -1
  128. package/distribution/component/structured-data/type.d.ts +1 -1
  129. package/distribution/component/style-switch/index.d.ts +2 -2
  130. package/distribution/component/style-switch/index.d.ts.map +1 -1
  131. package/distribution/component/style-switch/index.js +11 -18
  132. package/distribution/component/style-switch/index.js.map +1 -1
  133. package/distribution/component/style-switch/index.module.css +1 -36
  134. package/distribution/component/style-switch/index.module.scss +37 -0
  135. package/distribution/component/style-switch/type.d.ts +1 -1
  136. package/distribution/component/touchpoint/index.js +3 -3
  137. package/distribution/component/touchpoint/index.module.css +1 -85
  138. package/distribution/component/touchpoint/index.module.scss +75 -0
  139. package/distribution/component/touchpoint/plate/index.module.css +1 -136
  140. package/distribution/component/touchpoint/plate/index.module.scss +129 -0
  141. package/distribution/component/touchpoint/type.d.ts +1 -1
  142. package/distribution/component/wordmark/index.module.css +1 -23
  143. package/distribution/component/wordmark/index.module.scss +22 -0
  144. package/distribution/content/locale/index.d.ts +6 -0
  145. package/distribution/content/locale/index.d.ts.map +1 -0
  146. package/distribution/content/locale/index.js +7 -0
  147. package/distribution/content/locale/index.js.map +1 -0
  148. package/distribution/{utility → content}/locale/type.d.ts +3 -2
  149. package/distribution/content/locale/type.d.ts.map +1 -0
  150. package/distribution/{utility → content}/locale/type.js.map +1 -1
  151. package/distribution/content/style/index.d.ts +47 -43
  152. package/distribution/content/style/index.d.ts.map +1 -1
  153. package/distribution/content/style/index.js +20 -13
  154. package/distribution/content/style/index.js.map +1 -1
  155. package/distribution/utility/separate/index.d.ts +6 -1
  156. package/distribution/utility/separate/index.d.ts.map +1 -1
  157. package/distribution/utility/separate/index.js +8 -2
  158. package/distribution/utility/separate/index.js.map +1 -1
  159. package/llms.txt +10 -0
  160. package/package.json +36 -27
  161. package/distribution/component/consent/toggle/index.d.ts +0 -4
  162. package/distribution/component/consent/toggle/index.d.ts.map +0 -1
  163. package/distribution/component/consent/toggle/index.js +0 -7
  164. package/distribution/component/consent/toggle/index.js.map +0 -1
  165. package/distribution/component/consent/toggle/type.d.ts +0 -10
  166. package/distribution/component/consent/toggle/type.d.ts.map +0 -1
  167. package/distribution/component/consent/toggle/type.js.map +0 -1
  168. package/distribution/component/cursor/index.d.ts +0 -3
  169. package/distribution/component/cursor/index.d.ts.map +0 -1
  170. package/distribution/component/cursor/index.js +0 -45
  171. package/distribution/component/cursor/index.js.map +0 -1
  172. package/distribution/component/cursor/index.module.css +0 -55
  173. package/distribution/component/globe/arc/index.d.ts +0 -4
  174. package/distribution/component/globe/arc/index.d.ts.map +0 -1
  175. package/distribution/component/globe/arc/index.js +0 -29
  176. package/distribution/component/globe/arc/index.js.map +0 -1
  177. package/distribution/component/globe/arc/type.d.ts +0 -12
  178. package/distribution/component/globe/arc/type.d.ts.map +0 -1
  179. package/distribution/component/globe/arc/type.js +0 -2
  180. package/distribution/component/globe/arc/type.js.map +0 -1
  181. package/distribution/component/globe/color/index.d.ts +0 -4
  182. package/distribution/component/globe/color/index.d.ts.map +0 -1
  183. package/distribution/component/globe/color/index.js +0 -16
  184. package/distribution/component/globe/color/index.js.map +0 -1
  185. package/distribution/component/globe/color/type.d.ts +0 -13
  186. package/distribution/component/globe/color/type.d.ts.map +0 -1
  187. package/distribution/component/globe/color/type.js +0 -2
  188. package/distribution/component/globe/color/type.js.map +0 -1
  189. package/distribution/component/globe/dots/index.d.ts +0 -4
  190. package/distribution/component/globe/dots/index.d.ts.map +0 -1
  191. package/distribution/component/globe/dots/index.js +0 -38
  192. package/distribution/component/globe/dots/index.js.map +0 -1
  193. package/distribution/component/globe/dots/type.d.ts +0 -7
  194. package/distribution/component/globe/dots/type.d.ts.map +0 -1
  195. package/distribution/component/globe/dots/type.js +0 -2
  196. package/distribution/component/globe/dots/type.js.map +0 -1
  197. package/distribution/component/globe/marker/index.d.ts +0 -4
  198. package/distribution/component/globe/marker/index.d.ts.map +0 -1
  199. package/distribution/component/globe/marker/index.js +0 -21
  200. package/distribution/component/globe/marker/index.js.map +0 -1
  201. package/distribution/component/globe/marker/type.d.ts +0 -9
  202. package/distribution/component/globe/marker/type.d.ts.map +0 -1
  203. package/distribution/component/globe/marker/type.js +0 -2
  204. package/distribution/component/globe/marker/type.js.map +0 -1
  205. package/distribution/component/globe/shader/arc/index.d.ts +0 -6
  206. package/distribution/component/globe/shader/arc/index.d.ts.map +0 -1
  207. package/distribution/component/globe/shader/arc/index.js +0 -24
  208. package/distribution/component/globe/shader/arc/index.js.map +0 -1
  209. package/distribution/component/globe/shader/atmosphere/index.d.ts +0 -6
  210. package/distribution/component/globe/shader/atmosphere/index.d.ts.map +0 -1
  211. package/distribution/component/globe/shader/atmosphere/index.js +0 -15
  212. package/distribution/component/globe/shader/atmosphere/index.js.map +0 -1
  213. package/distribution/component/globe/shader/body/index.d.ts +0 -6
  214. package/distribution/component/globe/shader/body/index.d.ts.map +0 -1
  215. package/distribution/component/globe/shader/body/index.js +0 -15
  216. package/distribution/component/globe/shader/body/index.js.map +0 -1
  217. package/distribution/component/globe/shader/dot/index.d.ts +0 -6
  218. package/distribution/component/globe/shader/dot/index.d.ts.map +0 -1
  219. package/distribution/component/globe/shader/dot/index.js +0 -29
  220. package/distribution/component/globe/shader/dot/index.js.map +0 -1
  221. package/distribution/component/globe/shader/glow-vertex/index.d.ts +0 -3
  222. package/distribution/component/globe/shader/glow-vertex/index.d.ts.map +0 -1
  223. package/distribution/component/globe/shader/glow-vertex/index.js +0 -9
  224. package/distribution/component/globe/shader/glow-vertex/index.js.map +0 -1
  225. package/distribution/component/globe/world/index.d.ts +0 -4
  226. package/distribution/component/globe/world/index.d.ts.map +0 -1
  227. package/distribution/component/globe/world/index.js +0 -39
  228. package/distribution/component/globe/world/index.js.map +0 -1
  229. package/distribution/component/globe/world/type.d.ts +0 -10
  230. package/distribution/component/globe/world/type.d.ts.map +0 -1
  231. package/distribution/component/globe/world/type.js +0 -2
  232. package/distribution/component/globe/world/type.js.map +0 -1
  233. package/distribution/component/locale-link/index.d.ts +0 -4
  234. package/distribution/component/locale-link/index.d.ts.map +0 -1
  235. package/distribution/component/locale-link/index.js +0 -9
  236. package/distribution/component/locale-link/index.js.map +0 -1
  237. package/distribution/component/locale-link/type.d.ts +0 -10
  238. package/distribution/component/locale-link/type.d.ts.map +0 -1
  239. package/distribution/component/locale-link/type.js +0 -2
  240. package/distribution/component/locale-link/type.js.map +0 -1
  241. package/distribution/hook/globe-drag/index.d.ts +0 -10
  242. package/distribution/hook/globe-drag/index.d.ts.map +0 -1
  243. package/distribution/hook/globe-drag/index.js +0 -99
  244. package/distribution/hook/globe-drag/index.js.map +0 -1
  245. package/distribution/hook/globe-drag/type.d.ts +0 -11
  246. package/distribution/hook/globe-drag/type.d.ts.map +0 -1
  247. package/distribution/hook/globe-drag/type.js +0 -2
  248. package/distribution/hook/globe-drag/type.js.map +0 -1
  249. package/distribution/hook/land-points/index.d.ts +0 -3
  250. package/distribution/hook/land-points/index.d.ts.map +0 -1
  251. package/distribution/hook/land-points/index.js +0 -17
  252. package/distribution/hook/land-points/index.js.map +0 -1
  253. package/distribution/style/token/index.css +0 -1
  254. package/distribution/utility/hex-channel/index.d.ts +0 -3
  255. package/distribution/utility/hex-channel/index.d.ts.map +0 -1
  256. package/distribution/utility/hex-channel/index.js +0 -8
  257. package/distribution/utility/hex-channel/index.js.map +0 -1
  258. package/distribution/utility/latitude-longitude-to-vector/index.d.ts +0 -7
  259. package/distribution/utility/latitude-longitude-to-vector/index.d.ts.map +0 -1
  260. package/distribution/utility/latitude-longitude-to-vector/index.js +0 -12
  261. package/distribution/utility/latitude-longitude-to-vector/index.js.map +0 -1
  262. package/distribution/utility/locale/index.d.ts +0 -6
  263. package/distribution/utility/locale/index.d.ts.map +0 -1
  264. package/distribution/utility/locale/index.js +0 -8
  265. package/distribution/utility/locale/index.js.map +0 -1
  266. package/distribution/utility/locale/type.d.ts.map +0 -1
  267. package/distribution/utility/locale/type.js +0 -2
  268. package/distribution/utility/parse-contact/index.d.ts +0 -4
  269. package/distribution/utility/parse-contact/index.d.ts.map +0 -1
  270. package/distribution/utility/parse-contact/index.js +0 -23
  271. package/distribution/utility/parse-contact/index.js.map +0 -1
  272. package/distribution/utility/parse-contact/type.d.ts +0 -20
  273. package/distribution/utility/parse-contact/type.d.ts.map +0 -1
  274. package/distribution/utility/parse-contact/type.js +0 -2
  275. package/distribution/utility/parse-contact/type.js.map +0 -1
  276. package/distribution/utility/web-gl-support/index.d.ts +0 -3
  277. package/distribution/utility/web-gl-support/index.d.ts.map +0 -1
  278. package/distribution/utility/web-gl-support/index.js +0 -11
  279. package/distribution/utility/web-gl-support/index.js.map +0 -1
  280. /package/distribution/{component/consent/toggle → content/locale}/type.js +0 -0
@@ -1,183 +1 @@
1
- .consent {
2
- position: fixed;
3
- z-index: 60;
4
- /* Bottom-left corner of the screen, not of the content column. */
5
- left: 16px;
6
- bottom: 16px;
7
- width: min(410px, 100vw - 32px);
8
- padding: 20px 20px 18px;
9
- border: 1px solid var(--line-2);
10
- border-radius: 4px;
11
- background: color-mix(in srgb, var(--background) 88%, transparent);
12
- backdrop-filter: blur(18px) saturate(1.5);
13
- box-shadow: 0 30px 80px -20px color-mix(in srgb, var(--background) 95%, transparent);
14
- overflow: visible;
15
- }
16
-
17
- .header {
18
- display: flex;
19
- align-items: center;
20
- gap: 10px;
21
- }
22
- .header h2 {
23
- font-size: 15px;
24
- letter-spacing: -0.02em;
25
- }
26
-
27
- /* A tiny animated cookie: three crumbs orbiting a ring. */
28
- .cookie {
29
- position: relative;
30
- width: 18px;
31
- height: 18px;
32
- border-radius: 50%;
33
- border: 1.4px solid var(--foreground);
34
- animation: spin 8s linear infinite;
35
- }
36
- .cookie i {
37
- position: absolute;
38
- width: 3px;
39
- height: 3px;
40
- border-radius: 50%;
41
- background: var(--foreground);
42
- }
43
- .cookie i:nth-child(1) {
44
- left: 4px;
45
- top: 4px;
46
- }
47
- .cookie i:nth-child(2) {
48
- right: 3px;
49
- top: 8px;
50
- }
51
- .cookie i:nth-child(3) {
52
- left: 7px;
53
- bottom: 3px;
54
- }
55
-
56
- @keyframes spin {
57
- to {
58
- transform: rotate(360deg);
59
- }
60
- }
61
- .text {
62
- margin: 12px 0 16px;
63
- font-size: 13.5px;
64
- line-height: 1.55;
65
- color: var(--foreground-2);
66
- }
67
-
68
- .categories {
69
- margin: 12px 0 14px;
70
- overflow: hidden;
71
- border-top: 1px dashed var(--line-2);
72
- }
73
-
74
- .category {
75
- display: flex;
76
- align-items: center;
77
- gap: 12px;
78
- padding: 11px 0;
79
- border-bottom: 1px dashed var(--line-2);
80
- cursor: pointer;
81
- }
82
-
83
- .categoryCopy {
84
- flex: 1;
85
- display: grid;
86
- gap: 2px;
87
- }
88
- .categoryCopy b {
89
- font-size: 13.5px;
90
- font-weight: 600;
91
- }
92
- .categoryCopy span {
93
- font-size: 12.5px;
94
- color: var(--foreground-2);
95
- line-height: 1.4;
96
- }
97
-
98
- .always {
99
- font-size: 10px;
100
- text-transform: uppercase;
101
- letter-spacing: 0.05em;
102
- color: var(--foreground-3);
103
- }
104
-
105
- /* An on/off switch drawn from the checkbox itself. */
106
- .switch {
107
- appearance: none;
108
- flex: none;
109
- position: relative;
110
- width: 34px;
111
- height: 20px;
112
- margin: 0;
113
- border-radius: 99px;
114
- border: 1px solid var(--line-2);
115
- background: color-mix(in srgb, var(--foreground) 8%, transparent);
116
- cursor: pointer;
117
- transition: background 0.3s, border-color 0.3s;
118
- }
119
- .switch::after {
120
- content: "";
121
- position: absolute;
122
- top: 2px;
123
- left: 2px;
124
- width: 14px;
125
- height: 14px;
126
- border-radius: 50%;
127
- background: var(--foreground-2);
128
- transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s;
129
- }
130
- .switch:checked {
131
- background: var(--foreground);
132
- border-color: var(--foreground);
133
- }
134
- .switch:checked::after {
135
- transform: translateX(14px);
136
- background: var(--background);
137
- }
138
- .switch:disabled {
139
- opacity: 0.55;
140
- cursor: not-allowed;
141
- }
142
-
143
- .actions {
144
- display: flex;
145
- flex-wrap: wrap;
146
- gap: 8px;
147
- }
148
- .actions button {
149
- flex: 1;
150
- height: 36px;
151
- padding: 0 14px;
152
- border-radius: 99px;
153
- border: 1px solid var(--line-2);
154
- background: none;
155
- font-size: 13px;
156
- font-weight: 500;
157
- white-space: nowrap;
158
- transition: background 0.25s, border-color 0.25s, color 0.25s;
159
- }
160
- .actions button:hover {
161
- background: color-mix(in srgb, var(--foreground) 7%, transparent);
162
- border-color: color-mix(in srgb, var(--foreground) 30%, transparent);
163
- }
164
-
165
- .primary {
166
- background: var(--foreground) !important;
167
- border-color: var(--foreground) !important;
168
- color: var(--background);
169
- }
170
- .primary:hover {
171
- background: color-mix(in srgb, var(--foreground) 85%, transparent) !important;
172
- }
173
-
174
- .quiet {
175
- flex: 0 0 auto !important;
176
- border-color: transparent !important;
177
- color: var(--foreground-2);
178
- text-decoration: underline;
179
- text-underline-offset: 3px;
180
- }
181
- .quiet:hover {
182
- color: var(--foreground);
183
- }
1
+ .consent{--consent-background: var(--background);--consent-foreground: var(--foreground);--consent-muted: var(--foreground-2);--consent-line: var(--line-2);--consent-radius: 4px;--consent-font: var(--sans-serif);left:16px}.cookie{position:relative;width:18px;height:18px;border-radius:50%;border:1.4px solid var(--foreground);animation:spin 8s linear infinite}.cookie i{position:absolute;width:3px;height:3px;border-radius:50%;background:var(--foreground)}.cookie i:nth-child(1){left:4px;top:4px}.cookie i:nth-child(2){right:3px;top:8px}.cookie i:nth-child(3){left:7px;bottom:3px}@keyframes spin{to{transform:rotate(360deg)}}
@@ -0,0 +1,45 @@
1
+ @use "style/token" as *;
2
+
3
+ /* The shared panel, in the Sharadox style: its colours, the grid's sharp corners, bottom-left of the screen. */
4
+ .consent {
5
+ --consent-background: var(--background);
6
+ --consent-foreground: var(--foreground);
7
+ --consent-muted: var(--foreground-2);
8
+ --consent-line: var(--line-2);
9
+ --consent-radius: 4px;
10
+ --consent-font: var(--sans-serif);
11
+ left: 16px;
12
+ }
13
+ /* A tiny animated cookie: three crumbs orbiting a ring. */
14
+ .cookie {
15
+ position: relative;
16
+ width: 18px;
17
+ height: 18px;
18
+ border-radius: 50%;
19
+ border: 1.4px solid var(--foreground);
20
+ animation: spin 8s linear infinite;
21
+ i {
22
+ position: absolute;
23
+ width: 3px;
24
+ height: 3px;
25
+ border-radius: 50%;
26
+ background: var(--foreground);
27
+ }
28
+ i:nth-child(1) {
29
+ left: 4px;
30
+ top: 4px;
31
+ }
32
+ i:nth-child(2) {
33
+ right: 3px;
34
+ top: 8px;
35
+ }
36
+ i:nth-child(3) {
37
+ left: 7px;
38
+ bottom: 3px;
39
+ }
40
+ }
41
+ @keyframes spin {
42
+ to {
43
+ transform: rotate(360deg);
44
+ }
45
+ }
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
- import { openConsent } from "@sharadox/web-library/privacy/consent";
3
+ import { openConsent } from "@sharadox/consent-web-library/consent";
4
4
  /** Reopens the cookie panel so the visitor can change their answer. */
5
5
  export function PreferencesLink({ label }) {
6
6
  return (_jsx("button", { type: "button", onClick: openConsent, "data-preferences-link": true, children: label }));
@@ -1,4 +1,4 @@
1
- import type { Locale } from "@sharadox/sharadox-web-library/utility/locale/type";
1
+ import type { Locale } from "@sharadox/sharadox-web-library/content/locale/type";
2
2
  export interface ConsentProperties {
3
3
  locale: Locale;
4
4
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/contact/form/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAExG,sGAAsG;AACtG,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,qBAAqB,+BAqFhF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/contact/form/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAExG,sGAAsG;AACtG,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,qBAAqB,+BAsFhF"}
@@ -5,8 +5,8 @@ import { useActionState, useEffect, useRef } from "react";
5
5
  import { Button } from "@sharadox/sharadox-web-library/component/button";
6
6
  import { CONTACT } from "@sharadox/sharadox-web-library/content/contact";
7
7
  import { SITE } from "@sharadox/sharadox-web-library/content/site";
8
- import { useSpotlight } from "@sharadox/web-library/pointer/spotlight";
9
- import { translate } from "@sharadox/web-library/internationalization/translate";
8
+ import { useSpotlight } from "@sharadox/pointer-web-library/spotlight";
9
+ import { translate } from "@sharadox/internationalization-web-library/translate";
10
10
  import styles from "./index.module.css";
11
11
  /** The enquiry form: honeypot and fill-time spam checks, inline errors, and an animated thank-you. */
12
12
  export function ContactForm({ locale, action: sendAction }) {
@@ -14,8 +14,8 @@ export function ContactForm({ locale, action: sendAction }) {
14
14
  // When the visitor started filling the form; bots submit faster than humans can.
15
15
  const startedAt = useRef(null);
16
16
  useEffect(() => {
17
- if (startedAt.current)
18
- startedAt.current.value = String(Date.now());
17
+ // The form is always what mounts first, so the field exists.
18
+ startedAt.current.value = String(Date.now());
19
19
  }, []);
20
20
  const spotlight = useSpotlight();
21
21
  return (_jsx(AnimatePresence, { mode: "wait", children: state.status === "sent" ? (_jsxs(motion.div, { className: `${styles.form} ${styles.done}`, initial: { opacity: 0, scale: 0.98 }, animate: { opacity: 1, scale: 1 }, role: "status", children: [_jsxs("svg", { viewBox: "0 0 48 48", className: styles.check, "aria-hidden": true, children: [_jsx("circle", { cx: "24", cy: "24", r: "22" }), _jsx("path", { d: "M14 24.5l7 7 13-14" })] }), _jsx("p", { children: translate(CONTACT.sent, locale) })] }, "sent")) : (_jsxs(motion.form, { ref: spotlight, action: action, className: styles.form, exit: { opacity: 0, scale: 0.98 }, children: [_jsx("input", { ref: startedAt, type: "hidden", name: "started-at", defaultValue: "0" }), _jsx("input", { type: "hidden", name: "locale", value: locale }), _jsx("div", { className: styles.honeypot, "aria-hidden": true, children: _jsxs("label", { children: ["Website", _jsx("input", { name: "website", tabIndex: -1, autoComplete: "off" })] }) }), _jsxs("div", { className: styles.row, children: [_jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.name, locale) }), _jsx("input", { name: "name", required: true, autoComplete: "name", maxLength: 120 })] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.company, locale) }), _jsx("input", { name: "company", autoComplete: "organization", maxLength: 160 })] })] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.email, locale) }), _jsx("input", { name: "email", type: "email", required: true, autoComplete: "email", maxLength: 200 })] }), _jsxs("fieldset", { className: styles.services, children: [_jsx("legend", { children: translate(CONTACT.needs.label, locale) }), CONTACT.needs.options.map((need) => (_jsxs("label", { className: styles.chip, children: [_jsx("input", { type: "checkbox", name: "need", value: need.key }), _jsx("span", { children: need[locale] })] }, need.key)))] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.message, locale) }), _jsx("textarea", { name: "message", required: true, rows: 5, maxLength: 5000 })] }), state.status !== "idle" && (_jsx("p", { className: styles.error, role: "alert", children: state.status === "failed" ? (_jsxs(_Fragment, { children: [translate(CONTACT.errors.failed, locale), " ", _jsx("a", { href: `mailto:${SITE.email}`, children: SITE.email }), "."] })) : (translate(CONTACT.errors[state.status], locale)) })), _jsx(Button, { size: "block", disabled: pending, arrow: !pending, children: pending ? translate(CONTACT.sending, locale) : translate(CONTACT.send, locale) })] }, "form")) }));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/contact/form/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE1D,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,IAAI,EAAE,MAAM,6CAA6C,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,sGAAsG;AACtG,MAAM,UAAU,WAAW,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAyB;IAC/E,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,GAAG,cAAc,CAAyB,UAAU,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACxG,iFAAiF;IACjF,MAAM,SAAS,GAAG,MAAM,CAAmB,IAAI,CAAC,CAAC;IACjD,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,SAAS,CAAC,OAAO;YAAE,SAAS,CAAC,OAAO,CAAC,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACtE,CAAC,EAAE,EAAE,CAAC,C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AAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAChD,GACC,CACL,EACD,KAAC,MAAM,IAAC,IAAI,EAAC,OAAO,EAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,OAAO,YACpD,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,GACxE,KAtDL,MAAM,CAuDE,CACf,GACe,CACnB,CAAC;AACJ,CAAC"}
@@ -1,168 +1 @@
1
- .form {
2
- --pointer-x: -500px;
3
- --pointer-y: -500px;
4
- position: relative;
5
- display: grid;
6
- gap: 14px;
7
- padding: clamp(22px, 3vw, 34px);
8
- border-radius: 18px;
9
- background: var(--card);
10
- border: 1px solid var(--line);
11
- isolation: isolate;
12
- }
13
- .form::before {
14
- content: "";
15
- position: absolute;
16
- inset: 0;
17
- z-index: -1;
18
- border-radius: inherit;
19
- background: radial-gradient(500px circle at var(--pointer-x) var(--pointer-y), color-mix(in srgb, var(--foreground) 5%, transparent), transparent 60%);
20
- }
21
-
22
- .row {
23
- display: grid;
24
- grid-template-columns: 1fr 1fr;
25
- gap: 14px;
26
- }
27
- @media (max-width: 860px) {
28
- .row {
29
- grid-template-columns: 1fr;
30
- }
31
- }
32
-
33
- .field {
34
- display: grid;
35
- gap: 7px;
36
- }
37
- .field span {
38
- font-size: 13px;
39
- color: var(--foreground-2);
40
- }
41
- .field input,
42
- .field textarea {
43
- width: 100%;
44
- font: inherit;
45
- font-size: 15px;
46
- color: var(--foreground);
47
- background: var(--background);
48
- border: 1px solid var(--line-2);
49
- border-radius: 12px;
50
- padding: 13px 14px;
51
- transition: border-color 0.25s, box-shadow 0.25s;
52
- resize: vertical;
53
- }
54
- .field input:focus,
55
- .field textarea:focus {
56
- outline: none;
57
- border-color: color-mix(in srgb, var(--foreground) 50%, transparent);
58
- box-shadow: 0 0 0 4px color-mix(in srgb, var(--foreground) 6%, transparent);
59
- }
60
-
61
- .services {
62
- display: flex;
63
- flex-wrap: wrap;
64
- gap: 8px;
65
- margin: 4px 0 2px;
66
- padding: 0;
67
- border: 0;
68
- }
69
- .services legend {
70
- float: left;
71
- padding: 0;
72
- width: 100%;
73
- margin-bottom: 9px;
74
- font-size: 13px;
75
- color: var(--foreground-2);
76
- }
77
-
78
- .chip {
79
- position: relative;
80
- }
81
- .chip input {
82
- position: absolute;
83
- opacity: 0;
84
- inset: 0;
85
- margin: 0;
86
- cursor: pointer;
87
- }
88
- .chip span {
89
- display: inline-flex;
90
- align-items: center;
91
- gap: 7px;
92
- padding: 8px 13px;
93
- border-radius: 99px;
94
- border: 1px solid var(--line-2);
95
- font-size: 13.5px;
96
- color: var(--foreground-2);
97
- transition: color 0.2s, background 0.2s, border-color 0.2s;
98
- }
99
- .chip span::before {
100
- content: "+";
101
- font-family: var(--monospace);
102
- transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
103
- }
104
- .chip:hover span {
105
- color: var(--foreground);
106
- border-color: color-mix(in srgb, var(--foreground) 30%, transparent);
107
- }
108
- .chip input:checked + span {
109
- background: var(--foreground);
110
- border-color: var(--foreground);
111
- color: var(--background);
112
- }
113
- .chip input:checked + span::before {
114
- transform: rotate(45deg);
115
- }
116
- .chip input:focus-visible + span {
117
- outline: 2px solid var(--foreground);
118
- outline-offset: 2px;
119
- }
120
-
121
- .honeypot {
122
- position: absolute;
123
- left: -9999px;
124
- width: 1px;
125
- height: 1px;
126
- overflow: hidden;
127
- }
128
-
129
- .error {
130
- font-size: 14px;
131
- color: var(--error);
132
- }
133
- .error a {
134
- text-decoration: underline;
135
- }
136
-
137
- .done {
138
- min-height: 380px;
139
- place-items: center;
140
- text-align: center;
141
- align-content: center;
142
- gap: 18px;
143
- }
144
- .done p {
145
- max-width: 30ch;
146
- color: var(--foreground-2);
147
- }
148
-
149
- .check {
150
- width: 56px;
151
- height: 56px;
152
- fill: none;
153
- stroke: var(--foreground);
154
- stroke-width: 1.6;
155
- stroke-linecap: round;
156
- stroke-linejoin: round;
157
- }
158
- .check path {
159
- stroke-dasharray: 40;
160
- stroke-dashoffset: 40;
161
- animation: draw 0.8s 0.2s var(--ease) forwards;
162
- }
163
-
164
- @keyframes draw {
165
- to {
166
- stroke-dashoffset: 0;
167
- }
168
- }
1
+ .form{--pointer-x: -500px;--pointer-y: -500px;position:relative;display:grid;gap:14px;padding:clamp(22px,3vw,34px);border-radius:18px;background:var(--card);border:1px solid var(--line);isolation:isolate}.form::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:radial-gradient(500px circle at var(--pointer-x) var(--pointer-y), color-mix(in srgb, var(--foreground) 5%, transparent), transparent 60%)}.row{display:grid;grid-template-columns:1fr 1fr;gap:14px}@media(max-width: 860px){.row{grid-template-columns:1fr}}.field{display:grid;gap:7px}.field span{font-size:13px;color:var(--foreground-2)}.field input,.field textarea{width:100%;font:inherit;font-size:15px;color:var(--foreground);background:var(--background);border:1px solid var(--line-2);border-radius:12px;padding:13px 14px;transition:border-color .25s,box-shadow .25s;resize:vertical}.field input:focus,.field textarea:focus{outline:none;border-color:color-mix(in srgb, var(--foreground) 50%, transparent);box-shadow:0 0 0 4px color-mix(in srgb, var(--foreground) 6%, transparent)}.services{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 2px;padding:0;border:0}.services legend{float:left;padding:0;width:100%;margin-bottom:9px;font-size:13px;color:var(--foreground-2)}.chip{position:relative}.chip input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}.chip span{display:inline-flex;align-items:center;gap:7px;padding:8px 13px;border-radius:99px;border:1px solid var(--line-2);font-size:13.5px;color:var(--foreground-2);transition:color .2s,background .2s,border-color .2s}.chip span::before{content:"+";font-family:var(--monospace);transition:transform .3s cubic-bezier(0.22, 1, 0.36, 1)}.chip:hover span{color:var(--foreground);border-color:color-mix(in srgb, var(--foreground) 30%, transparent)}.chip input:checked+span{background:var(--foreground);border-color:var(--foreground);color:var(--background)}.chip input:checked+span::before{transform:rotate(45deg)}.chip input:focus-visible+span{outline:2px solid var(--foreground);outline-offset:2px}.honeypot{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.error{font-size:14px;color:var(--error)}.error a{text-decoration:underline}.done{min-height:380px;place-items:center;text-align:center;align-content:center;gap:18px}.done p{max-width:30ch;color:var(--foreground-2)}.check{width:56px;height:56px;fill:none;stroke:var(--foreground);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.check path{stroke-dasharray:40;stroke-dashoffset:40;animation:draw .8s .2s var(--ease) forwards}@keyframes draw{to{stroke-dashoffset:0}}
@@ -0,0 +1,163 @@
1
+ @use "style/token" as *;
2
+
3
+ .form {
4
+ --pointer-x: -500px;
5
+ --pointer-y: -500px;
6
+ position: relative;
7
+ display: grid;
8
+ gap: 14px;
9
+ padding: clamp(22px, 3vw, 34px);
10
+ border-radius: 18px;
11
+ background: var(--card);
12
+ border: 1px solid var(--line);
13
+ isolation: isolate;
14
+ &::before {
15
+ content: "";
16
+ position: absolute;
17
+ inset: 0;
18
+ z-index: -1;
19
+ border-radius: inherit;
20
+ background: radial-gradient(500px circle at var(--pointer-x) var(--pointer-y), tint(5%), transparent 60%);
21
+ }
22
+ }
23
+ .row {
24
+ display: grid;
25
+ grid-template-columns: 1fr 1fr;
26
+ gap: 14px;
27
+ @include below(860px) {
28
+ grid-template-columns: 1fr;
29
+ }
30
+ }
31
+ .field {
32
+ display: grid;
33
+ gap: 7px;
34
+ span {
35
+ font-size: 13px;
36
+ color: var(--foreground-2);
37
+ }
38
+ input,
39
+ textarea {
40
+ width: 100%;
41
+ font: inherit;
42
+ font-size: 15px;
43
+ color: var(--foreground);
44
+ background: var(--background);
45
+ border: 1px solid var(--line-2);
46
+ border-radius: 12px;
47
+ padding: 13px 14px;
48
+ transition:
49
+ border-color 0.25s,
50
+ box-shadow 0.25s;
51
+ resize: vertical;
52
+ &:focus {
53
+ outline: none;
54
+ border-color: tint(50%);
55
+ box-shadow: 0 0 0 4px tint(6%);
56
+ }
57
+ }
58
+ }
59
+ .services {
60
+ display: flex;
61
+ flex-wrap: wrap;
62
+ gap: 8px;
63
+ margin: 4px 0 2px;
64
+ padding: 0;
65
+ border: 0;
66
+ legend {
67
+ float: left;
68
+ padding: 0;
69
+ width: 100%;
70
+ margin-bottom: 9px;
71
+ font-size: 13px;
72
+ color: var(--foreground-2);
73
+ }
74
+ }
75
+ .chip {
76
+ position: relative;
77
+ input {
78
+ position: absolute;
79
+ opacity: 0;
80
+ inset: 0;
81
+ margin: 0;
82
+ cursor: pointer;
83
+ }
84
+ span {
85
+ display: inline-flex;
86
+ align-items: center;
87
+ gap: 7px;
88
+ padding: 8px 13px;
89
+ border-radius: 99px;
90
+ border: 1px solid var(--line-2);
91
+ font-size: 13.5px;
92
+ color: var(--foreground-2);
93
+ transition:
94
+ color 0.2s,
95
+ background 0.2s,
96
+ border-color 0.2s;
97
+ &::before {
98
+ content: "+";
99
+ font-family: var(--monospace);
100
+ transition: transform 0.3s $ease;
101
+ }
102
+ }
103
+ &:hover span {
104
+ color: var(--foreground);
105
+ border-color: tint(30%);
106
+ }
107
+ input:checked + span {
108
+ background: var(--foreground);
109
+ border-color: var(--foreground);
110
+ color: var(--background);
111
+ &::before {
112
+ transform: rotate(45deg);
113
+ }
114
+ }
115
+ input:focus-visible + span {
116
+ outline: 2px solid var(--foreground);
117
+ outline-offset: 2px;
118
+ }
119
+ }
120
+ .honeypot {
121
+ position: absolute;
122
+ left: -9999px;
123
+ width: 1px;
124
+ height: 1px;
125
+ overflow: hidden;
126
+ }
127
+ .error {
128
+ font-size: 14px;
129
+ color: var(--error);
130
+ a {
131
+ text-decoration: underline;
132
+ }
133
+ }
134
+ .done {
135
+ min-height: 380px;
136
+ place-items: center;
137
+ text-align: center;
138
+ align-content: center;
139
+ gap: 18px;
140
+ p {
141
+ max-width: 30ch;
142
+ color: var(--foreground-2);
143
+ }
144
+ }
145
+ .check {
146
+ width: 56px;
147
+ height: 56px;
148
+ fill: none;
149
+ stroke: var(--foreground);
150
+ stroke-width: 1.6;
151
+ stroke-linecap: round;
152
+ stroke-linejoin: round;
153
+ path {
154
+ stroke-dasharray: 40;
155
+ stroke-dashoffset: 40;
156
+ animation: draw 0.8s 0.2s var(--ease) forwards;
157
+ }
158
+ }
159
+ @keyframes draw {
160
+ to {
161
+ stroke-dashoffset: 0;
162
+ }
163
+ }
@@ -1,5 +1,5 @@
1
1
  import type { ContactState } from "@sharadox/sharadox-web-library/action/send-contact/type";
2
- import type { Locale } from "@sharadox/sharadox-web-library/utility/locale/type";
2
+ import type { Locale } from "@sharadox/sharadox-web-library/content/locale/type";
3
3
  export interface ContactFormProperties {
4
4
  locale: Locale;
5
5
  /** The application's server action, which calls `sendContact`. */
@@ -1,10 +1,10 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Eyebrow } from "@sharadox/sharadox-web-library/component/eyebrow";
3
- import { Reveal } from "@sharadox/web-library/animation/reveal";
3
+ import { Reveal } from "@sharadox/animation-web-library/reveal";
4
4
  import { Section } from "@sharadox/sharadox-web-library/component/section";
5
5
  import { CONTACT } from "@sharadox/sharadox-web-library/content/contact";
6
6
  import { SITE } from "@sharadox/sharadox-web-library/content/site";
7
- import { translate } from "@sharadox/web-library/internationalization/translate";
7
+ import { translate } from "@sharadox/internationalization-web-library/translate";
8
8
  import { ContactForm } from "@sharadox/sharadox-web-library/component/contact/form";
9
9
  import styles from "./index.module.css";
10
10
  /** Contact section: invitation and direct email on the left, the form on the right. */