@agent-analytics/shared-ui 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/recipes.css CHANGED
@@ -36,6 +36,124 @@
36
36
  border-bottom: 1px solid var(--header-border);
37
37
  }
38
38
 
39
+ .aa-utility-header__inner {
40
+ width: min(1180px, calc(100% - 56px));
41
+ margin: 0 auto;
42
+ padding: 18px 0;
43
+ display: flex;
44
+ align-items: center;
45
+ justify-content: space-between;
46
+ gap: 24px;
47
+ }
48
+
49
+ .aa-utility-header__brand {
50
+ display: inline-flex;
51
+ align-items: center;
52
+ gap: 12px;
53
+ min-width: 0;
54
+ color: var(--text);
55
+ text-decoration: none;
56
+ }
57
+
58
+ .aa-utility-header__mark {
59
+ width: 42px;
60
+ height: 42px;
61
+ display: inline-flex;
62
+ align-items: center;
63
+ justify-content: center;
64
+ flex-shrink: 0;
65
+ }
66
+
67
+ .aa-utility-header__mark img {
68
+ width: 100%;
69
+ height: 100%;
70
+ object-fit: contain;
71
+ }
72
+
73
+ .aa-utility-header__copy {
74
+ display: flex;
75
+ flex-direction: column;
76
+ gap: 2px;
77
+ min-width: 0;
78
+ }
79
+
80
+ .aa-utility-header__copy strong {
81
+ font-size: 16px;
82
+ font-weight: 700;
83
+ letter-spacing: -0.03em;
84
+ }
85
+
86
+ .aa-utility-header__copy span {
87
+ font-family: var(--font-mono);
88
+ font-size: 11px;
89
+ color: var(--text-dim);
90
+ text-transform: uppercase;
91
+ letter-spacing: 0.14em;
92
+ white-space: nowrap;
93
+ }
94
+
95
+ .aa-utility-header__nav {
96
+ display: flex;
97
+ align-items: center;
98
+ gap: 22px;
99
+ font-size: 14px;
100
+ }
101
+
102
+ .aa-utility-header__controls {
103
+ display: inline-flex;
104
+ align-items: center;
105
+ gap: 12px;
106
+ }
107
+
108
+ .aa-utility-header__link {
109
+ text-decoration: none;
110
+ transition: color 0.2s ease;
111
+ }
112
+
113
+ .aa-utility-header__locale {
114
+ display: inline-flex;
115
+ align-items: center;
116
+ gap: 6px;
117
+ padding: 4px;
118
+ border-radius: 999px;
119
+ border: 1px solid var(--surface-border);
120
+ background: var(--surface-glass);
121
+ box-shadow: var(--shadow-soft);
122
+ }
123
+
124
+ .aa-utility-header__locale-option {
125
+ min-height: 34px;
126
+ padding: 0 10px;
127
+ border: 0;
128
+ border-radius: 999px;
129
+ background: transparent;
130
+ color: var(--text-dim);
131
+ font: inherit;
132
+ line-height: 1;
133
+ cursor: pointer;
134
+ transition: background 0.18s ease, color 0.18s ease;
135
+ }
136
+
137
+ .aa-utility-header__locale-option:hover {
138
+ color: var(--text);
139
+ }
140
+
141
+ .aa-utility-header__locale-option.is-active {
142
+ background: var(--button-dark-background);
143
+ color: var(--button-dark-text);
144
+ }
145
+
146
+ .aa-utility-header__cta {
147
+ display: inline-flex;
148
+ align-items: center;
149
+ justify-content: center;
150
+ padding: 11px 18px;
151
+ border-radius: 14px;
152
+ font-size: 13px;
153
+ font-weight: 600;
154
+ text-decoration: none;
155
+ }
156
+
39
157
  .aa-paper-card,
40
158
  .aa-paper-panel {
41
159
  background: var(--surface-glass);
@@ -140,14 +258,26 @@
140
258
 
141
259
  .aa-footer {
142
260
  margin-top: clamp(4rem, 8vw, 6rem);
143
- padding: 3.5rem 0 4rem;
261
+ padding: clamp(3rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 4.5rem);
144
262
  border-top: 1px solid var(--aa-footer-border, var(--sl-color-hairline, rgba(16, 19, 19, 0.08)));
145
263
  }
146
264
 
147
265
  .aa-footer__inner {
148
266
  width: min(72rem, calc(100% - 3rem));
149
267
  margin: 0 auto;
150
- text-align: center;
268
+ }
269
+
270
+ .aa-footer__grid {
271
+ display: grid;
272
+ grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.6fr);
273
+ gap: 2.5rem 3rem;
274
+ align-items: start;
275
+ }
276
+
277
+ .aa-footer__brand {
278
+ display: grid;
279
+ gap: 1.25rem;
280
+ align-content: start;
151
281
  }
152
282
 
153
283
  .aa-footer__mark {
@@ -156,7 +286,6 @@
156
286
  justify-content: center;
157
287
  width: 5rem;
158
288
  height: 5rem;
159
- margin-bottom: 1.5rem;
160
289
  border-radius: 1.75rem;
161
290
  border: 1px solid var(--aa-footer-mark-border, var(--sl-color-hairline, rgba(16, 19, 19, 0.08)));
162
291
  background: var(--aa-footer-mark-bg, var(--sl-color-bg-sidebar, var(--surface-strong, rgba(255, 255, 255, 0.6))));
@@ -166,23 +295,66 @@
166
295
  .aa-footer__mark img {
167
296
  width: 3rem;
168
297
  height: 3rem;
298
+ object-fit: contain;
169
299
  border-radius: 1rem;
170
300
  }
171
301
 
172
- .aa-footer__links {
173
- display: flex;
174
- flex-wrap: wrap;
175
- align-items: center;
176
- justify-content: center;
177
- gap: 0.9rem 2rem;
178
- margin-bottom: 1.25rem;
302
+ .aa-footer__brand-copy {
303
+ display: grid;
304
+ gap: 0.7rem;
305
+ }
306
+
307
+ .aa-footer__title {
308
+ margin: 0;
309
+ font-size: clamp(1.5rem, 3vw, 1.9rem);
310
+ line-height: 1.05;
311
+ letter-spacing: -0.04em;
312
+ }
313
+
314
+ .aa-footer__description {
315
+ margin: 0;
316
+ max-width: 24rem;
317
+ color: var(--text-dim);
318
+ font-size: 1rem;
319
+ line-height: 1.65;
320
+ }
321
+
322
+ .aa-footer__copy {
323
+ margin: 0;
324
+ color: var(--aa-footer-copy, var(--sl-color-gray-3, var(--text-muted)));
325
+ font-size: 0.95rem;
326
+ line-height: 1.6;
327
+ }
328
+
329
+ .aa-footer__sections {
330
+ display: grid;
331
+ grid-template-columns: repeat(4, minmax(0, 1fr));
332
+ gap: 1.5rem 1.75rem;
333
+ }
334
+
335
+ .aa-footer__section {
336
+ display: grid;
337
+ gap: 0.9rem;
338
+ align-content: start;
339
+ }
340
+
341
+ .aa-footer__heading {
342
+ margin: 0;
343
+ font-size: 0.95rem;
344
+ font-weight: 700;
345
+ letter-spacing: -0.02em;
346
+ }
347
+
348
+ .aa-footer__list {
349
+ display: grid;
350
+ gap: 0.7rem;
179
351
  }
180
352
 
181
353
  .aa-footer__link {
182
354
  color: var(--aa-footer-text, var(--sl-color-text, var(--text-dim)));
183
355
  text-decoration: none;
184
- font-size: 1rem;
185
- line-height: 1.4;
356
+ font-size: 0.98rem;
357
+ line-height: 1.45;
186
358
  transition: color 0.18s ease;
187
359
  }
188
360
 
@@ -190,14 +362,74 @@
190
362
  color: var(--aa-footer-hover, var(--sl-color-white, var(--text)));
191
363
  }
192
364
 
193
- .aa-footer__copy {
194
- margin: 0;
195
- color: var(--aa-footer-copy, var(--sl-color-gray-3, var(--text-muted)));
196
- font-size: 1rem;
197
- line-height: 1.6;
365
+ [dir='rtl'] .aa-utility-header__inner,
366
+ [dir='rtl'] .aa-footer__grid,
367
+ [dir='rtl'] .aa-footer__sections {
368
+ direction: rtl;
369
+ }
370
+
371
+ [dir='rtl'] .aa-utility-header__copy,
372
+ [dir='rtl'] .aa-footer__brand-copy,
373
+ [dir='rtl'] .aa-footer__section,
374
+ [dir='rtl'] .aa-footer__description,
375
+ [dir='rtl'] .aa-footer__copy {
376
+ text-align: right;
377
+ }
378
+
379
+ @media (max-width: 960px) {
380
+ .aa-footer__grid {
381
+ grid-template-columns: 1fr;
382
+ }
383
+
384
+ .aa-footer__sections {
385
+ grid-template-columns: repeat(2, minmax(0, 1fr));
386
+ }
198
387
  }
199
388
 
200
389
  @media (max-width: 720px) {
390
+ .aa-utility-header__inner {
391
+ width: min(100%, calc(100% - 32px));
392
+ padding: 14px 0;
393
+ gap: 14px;
394
+ }
395
+
396
+ .aa-utility-header__mark {
397
+ width: 36px;
398
+ height: 36px;
399
+ }
400
+
401
+ .aa-utility-header__copy strong {
402
+ font-size: 14px;
403
+ }
404
+
405
+ .aa-utility-header__copy span {
406
+ font-size: 10px;
407
+ letter-spacing: 0.12em;
408
+ }
409
+
410
+ .aa-utility-header__nav {
411
+ gap: 12px;
412
+ }
413
+
414
+ .aa-utility-header__controls {
415
+ gap: 8px;
416
+ }
417
+
418
+ .aa-utility-header__locale-option {
419
+ min-height: 32px;
420
+ padding: 0 8px;
421
+ }
422
+
423
+ .aa-utility-header__link {
424
+ display: none;
425
+ }
426
+
427
+ .aa-utility-header__cta {
428
+ min-height: 44px;
429
+ padding: 10px 14px;
430
+ font-size: 14px;
431
+ }
432
+
201
433
  .aa-footer {
202
434
  padding-top: 3rem;
203
435
  }
@@ -206,12 +438,18 @@
206
438
  width: min(100%, calc(100% - 2rem));
207
439
  }
208
440
 
209
- .aa-footer__links {
210
- gap: 0.75rem 1.25rem;
441
+ .aa-footer__sections {
442
+ grid-template-columns: 1fr;
443
+ gap: 1.25rem;
444
+ }
445
+
446
+ .aa-footer__brand {
447
+ gap: 1rem;
211
448
  }
212
449
 
213
450
  .aa-footer__link,
214
- .aa-footer__copy {
451
+ .aa-footer__copy,
452
+ .aa-footer__description {
215
453
  font-size: 0.95rem;
216
454
  }
217
455
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-analytics/shared-ui",
3
- "version": "0.1.0",
3
+ "version": "0.3.0",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "description": "Shared UI primitives, tokens, and marketing chrome for Agent Analytics properties.",
@@ -30,8 +30,11 @@
30
30
  ],
31
31
  "exports": {
32
32
  ".": "./dist/index.js",
33
+ "./header": "./dist/header.js",
33
34
  "./footer": "./dist/footer.js",
35
+ "./locales": "./dist/locales.js",
34
36
  "./astro/Footer.astro": "./dist/astro/Footer.astro",
37
+ "./eleventy/header.njk": "./dist/eleventy/header.njk",
35
38
  "./eleventy/footer.njk": "./dist/eleventy/footer.njk",
36
39
  "./tokens.json": "./tokens.json",
37
40
  "./variables.css": "./dist/variables.css",