@almadar/std 16.230.0 → 16.231.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/behaviors/behaviors-registry.json +1080 -78
- package/behaviors/lolo/ui/core/atoms/std-language-picker.lolo +52 -0
- package/behaviors/lolo/ui/core/atoms/std-site-header.lolo +77 -15
- package/behaviors/lolo/ui/core/atoms/std-step-flow.lolo +1 -0
- package/behaviors/lolo/ui/core/molecules/ui-header.lolo +1 -0
- package/behaviors/lolo/ui/core/molecules/ui-icon-button.lolo +105 -0
- package/behaviors/lolo/ui/core/molecules/ui-menu.lolo +1 -0
- package/behaviors/lolo/ui/core/molecules/ui-top-nav-item.lolo +53 -0
- package/behaviors/lolo/ui/core/organisms/ui-dock-layout.lolo +35 -5
- package/behaviors/lolo-behavior-contracts.json +1 -1
- package/behaviors/registry/factory-signatures.json +1 -1
- package/behaviors/registry/ui/core/atoms/std-language-picker.orb +285 -0
- package/behaviors/registry/ui/core/atoms/std-site-header.orb +348 -74
- package/behaviors/registry/ui/core/atoms/std-step-flow.orb +2 -1
- package/dist/behaviors/exports-reader.js +2413 -2353
- package/dist/behaviors/functions/index.d.ts +83 -5
- package/dist/behaviors/functions/index.js +2409 -2353
- package/dist/behaviors/index.d.ts +1 -1
- package/dist/behaviors/index.js +2414 -2354
- package/dist/behaviors/query.js +2413 -2353
- package/dist/behaviors-embeddings.hash.json +3 -3
- package/dist/behaviors-embeddings.json +7 -3
- package/dist/behaviors-registry.json +1080 -78
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2414 -2354
- package/dist/knob-embeddings.hash.json +3 -3
- package/dist/knob-embeddings.json +29 -1
- package/dist/registry/factory-signatures.json +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"description": "std-site-header — the sticky top bar of a public website: brand (logo + name), navigation links with the current page marked, and an optional call-to-action button. On small screens the links fold into a menu opened by a toggle. Links follow `href` (in-app path, #anchor, or absolute URL); the header action and the small-screen menu links also emit NAV_CLICKED { href, label }. Pick for marketing sites, docs portals and product websites; for signed-in app chrome use std-app-layout.",
|
|
2
|
+
"description": "std-site-header — the sticky top bar of a public website: brand (logo + name), navigation links with the current page marked (a link with children opens a dropdown), an optional language picker (std-language-picker: the same page in each language, default language at the root and the others under /<code>/), and an optional call-to-action button. On small screens the links fold into a menu opened by a toggle, with child links indented under their parent and the call-to-action button at the bottom. Links follow `href` (in-app path, #anchor, or absolute URL); the header action and the small-screen menu links also emit NAV_CLICKED { href, label }. Pick for marketing sites, docs portals and product websites; for signed-in app chrome use std-app-layout.",
|
|
3
3
|
"ledger": {
|
|
4
4
|
"entries": {
|
|
5
5
|
"ent_01M3B9EHRNR3JQPJSD36PH5QV8": {
|
|
@@ -69,6 +69,14 @@
|
|
|
69
69
|
"kind": "trait",
|
|
70
70
|
"owner": "workspace",
|
|
71
71
|
"renames": []
|
|
72
|
+
},
|
|
73
|
+
"trt_01M3EPAAKX1EXPTSJ0M1WTZFTB": {
|
|
74
|
+
"bakedName": "SiteHeaderLanguages",
|
|
75
|
+
"curName": "SiteHeaderLanguages",
|
|
76
|
+
"id": "trt_01M3EPAAKX1EXPTSJ0M1WTZFTB",
|
|
77
|
+
"kind": "trait",
|
|
78
|
+
"owner": "workspace",
|
|
79
|
+
"renames": []
|
|
72
80
|
}
|
|
73
81
|
},
|
|
74
82
|
"schemaVersion": 1
|
|
@@ -104,6 +112,10 @@
|
|
|
104
112
|
{
|
|
105
113
|
"ref": "SiteHeaderRender",
|
|
106
114
|
"refId": "trt_01M3B9EHRNJ40F0K1EDRJN2X0H"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"ref": "SiteHeaderLanguages",
|
|
118
|
+
"refId": "trt_01M3EPAAKX1EXPTSJ0M1WTZFTB"
|
|
107
119
|
}
|
|
108
120
|
]
|
|
109
121
|
}
|
|
@@ -133,6 +145,14 @@
|
|
|
133
145
|
"tier": "presentation",
|
|
134
146
|
"type": "string"
|
|
135
147
|
},
|
|
148
|
+
"currentLanguage": {
|
|
149
|
+
"default": "en",
|
|
150
|
+
"description": "The code of the language this page is in",
|
|
151
|
+
"label": "Current language",
|
|
152
|
+
"synonyms": "locale, active language, page language",
|
|
153
|
+
"tier": "presentation",
|
|
154
|
+
"type": "string"
|
|
155
|
+
},
|
|
136
156
|
"currentPath": {
|
|
137
157
|
"default": "/",
|
|
138
158
|
"description": "Marks the matching link as active",
|
|
@@ -144,30 +164,33 @@
|
|
|
144
164
|
"default": {
|
|
145
165
|
"children": [
|
|
146
166
|
{
|
|
147
|
-
"actions":
|
|
148
|
-
"
|
|
149
|
-
|
|
150
|
-
"
|
|
151
|
-
"
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
[
|
|
156
|
-
"
|
|
157
|
-
|
|
167
|
+
"actions": [
|
|
168
|
+
"@trait.SiteHeaderLanguages",
|
|
169
|
+
{
|
|
170
|
+
"action": "NAV_LINK",
|
|
171
|
+
"actionPayload": {
|
|
172
|
+
"href": "@config.actionHref",
|
|
173
|
+
"label": "@config.actionLabel"
|
|
174
|
+
},
|
|
175
|
+
"className": [
|
|
176
|
+
"if",
|
|
177
|
+
[
|
|
178
|
+
"==",
|
|
179
|
+
"@config.actionLabel",
|
|
180
|
+
""
|
|
181
|
+
],
|
|
182
|
+
"hidden",
|
|
158
183
|
""
|
|
159
184
|
],
|
|
160
|
-
"
|
|
161
|
-
""
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
"variant": "primary"
|
|
168
|
-
},
|
|
185
|
+
"href": "@config.actionHref",
|
|
186
|
+
"label": "@config.actionLabel",
|
|
187
|
+
"size": "sm",
|
|
188
|
+
"type": "button",
|
|
189
|
+
"variant": "primary"
|
|
190
|
+
}
|
|
191
|
+
],
|
|
169
192
|
"brandName": "@config.brandName",
|
|
170
|
-
"className": "hidden
|
|
193
|
+
"className": "hidden lg:flex",
|
|
171
194
|
"logoSrc": "@config.logoSrc",
|
|
172
195
|
"navigationItems": [
|
|
173
196
|
"array/map",
|
|
@@ -186,6 +209,43 @@
|
|
|
186
209
|
],
|
|
187
210
|
"@config.currentPath"
|
|
188
211
|
],
|
|
212
|
+
"children": [
|
|
213
|
+
"array/map",
|
|
214
|
+
[
|
|
215
|
+
"object/get",
|
|
216
|
+
"@entry",
|
|
217
|
+
"children",
|
|
218
|
+
[]
|
|
219
|
+
],
|
|
220
|
+
[
|
|
221
|
+
"fn",
|
|
222
|
+
"child",
|
|
223
|
+
{
|
|
224
|
+
"active": [
|
|
225
|
+
"==",
|
|
226
|
+
[
|
|
227
|
+
"object/get",
|
|
228
|
+
"@child",
|
|
229
|
+
"href",
|
|
230
|
+
""
|
|
231
|
+
],
|
|
232
|
+
"@config.currentPath"
|
|
233
|
+
],
|
|
234
|
+
"href": [
|
|
235
|
+
"object/get",
|
|
236
|
+
"@child",
|
|
237
|
+
"href",
|
|
238
|
+
""
|
|
239
|
+
],
|
|
240
|
+
"label": [
|
|
241
|
+
"object/get",
|
|
242
|
+
"@child",
|
|
243
|
+
"label",
|
|
244
|
+
""
|
|
245
|
+
]
|
|
246
|
+
}
|
|
247
|
+
]
|
|
248
|
+
],
|
|
189
249
|
"href": [
|
|
190
250
|
"object/get",
|
|
191
251
|
"@entry",
|
|
@@ -207,8 +267,11 @@
|
|
|
207
267
|
"variant": "desktop"
|
|
208
268
|
},
|
|
209
269
|
{
|
|
270
|
+
"actions": [
|
|
271
|
+
"@trait.SiteHeaderLanguages"
|
|
272
|
+
],
|
|
210
273
|
"brandName": "@config.brandName",
|
|
211
|
-
"className": "
|
|
274
|
+
"className": "lg:hidden",
|
|
212
275
|
"isMenuOpen": "@entity.menuOpen",
|
|
213
276
|
"logoSrc": "@config.logoSrc",
|
|
214
277
|
"onMenuToggle": "MENU_TOGGLE",
|
|
@@ -220,63 +283,171 @@
|
|
|
220
283
|
{
|
|
221
284
|
"align": "stretch",
|
|
222
285
|
"children": [
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
"actionPayload": {
|
|
231
|
-
"href": [
|
|
232
|
-
"object/get",
|
|
233
|
-
"@entry",
|
|
234
|
-
"href",
|
|
235
|
-
""
|
|
236
|
-
],
|
|
237
|
-
"label": [
|
|
238
|
-
"object/get",
|
|
239
|
-
"@entry",
|
|
240
|
-
"label",
|
|
241
|
-
""
|
|
242
|
-
]
|
|
243
|
-
},
|
|
244
|
-
"className": "justify-start",
|
|
245
|
-
"href": [
|
|
246
|
-
"object/get",
|
|
247
|
-
"@entry",
|
|
248
|
-
"href",
|
|
249
|
-
""
|
|
250
|
-
],
|
|
251
|
-
"label": [
|
|
252
|
-
"object/get",
|
|
253
|
-
"@entry",
|
|
254
|
-
"label",
|
|
255
|
-
""
|
|
256
|
-
],
|
|
257
|
-
"type": "button",
|
|
258
|
-
"variant": [
|
|
259
|
-
"if",
|
|
286
|
+
{
|
|
287
|
+
"align": "stretch",
|
|
288
|
+
"children": [
|
|
289
|
+
"array/map",
|
|
290
|
+
"@config.links",
|
|
291
|
+
[
|
|
292
|
+
"fn",
|
|
260
293
|
[
|
|
261
|
-
"
|
|
262
|
-
[
|
|
263
|
-
"object/get",
|
|
264
|
-
"@entry",
|
|
265
|
-
"href",
|
|
266
|
-
""
|
|
267
|
-
],
|
|
268
|
-
"@config.currentPath"
|
|
294
|
+
"entry"
|
|
269
295
|
],
|
|
270
|
-
|
|
271
|
-
|
|
296
|
+
{
|
|
297
|
+
"align": "stretch",
|
|
298
|
+
"children": [
|
|
299
|
+
{
|
|
300
|
+
"action": "NAV_LINK",
|
|
301
|
+
"actionPayload": {
|
|
302
|
+
"href": [
|
|
303
|
+
"object/get",
|
|
304
|
+
"@entry",
|
|
305
|
+
"href",
|
|
306
|
+
""
|
|
307
|
+
],
|
|
308
|
+
"label": [
|
|
309
|
+
"object/get",
|
|
310
|
+
"@entry",
|
|
311
|
+
"label",
|
|
312
|
+
""
|
|
313
|
+
]
|
|
314
|
+
},
|
|
315
|
+
"className": "justify-start",
|
|
316
|
+
"href": [
|
|
317
|
+
"object/get",
|
|
318
|
+
"@entry",
|
|
319
|
+
"href",
|
|
320
|
+
""
|
|
321
|
+
],
|
|
322
|
+
"label": [
|
|
323
|
+
"object/get",
|
|
324
|
+
"@entry",
|
|
325
|
+
"label",
|
|
326
|
+
""
|
|
327
|
+
],
|
|
328
|
+
"type": "button",
|
|
329
|
+
"variant": [
|
|
330
|
+
"if",
|
|
331
|
+
[
|
|
332
|
+
"==",
|
|
333
|
+
[
|
|
334
|
+
"object/get",
|
|
335
|
+
"@entry",
|
|
336
|
+
"href",
|
|
337
|
+
""
|
|
338
|
+
],
|
|
339
|
+
"@config.currentPath"
|
|
340
|
+
],
|
|
341
|
+
"secondary",
|
|
342
|
+
"ghost"
|
|
343
|
+
]
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"align": "stretch",
|
|
347
|
+
"children": [
|
|
348
|
+
"array/map",
|
|
349
|
+
[
|
|
350
|
+
"object/get",
|
|
351
|
+
"@entry",
|
|
352
|
+
"children",
|
|
353
|
+
[]
|
|
354
|
+
],
|
|
355
|
+
[
|
|
356
|
+
"fn",
|
|
357
|
+
[
|
|
358
|
+
"child"
|
|
359
|
+
],
|
|
360
|
+
{
|
|
361
|
+
"action": "NAV_LINK",
|
|
362
|
+
"actionPayload": {
|
|
363
|
+
"href": [
|
|
364
|
+
"object/get",
|
|
365
|
+
"@child",
|
|
366
|
+
"href",
|
|
367
|
+
""
|
|
368
|
+
],
|
|
369
|
+
"label": [
|
|
370
|
+
"object/get",
|
|
371
|
+
"@child",
|
|
372
|
+
"label",
|
|
373
|
+
""
|
|
374
|
+
]
|
|
375
|
+
},
|
|
376
|
+
"className": "justify-start",
|
|
377
|
+
"href": [
|
|
378
|
+
"object/get",
|
|
379
|
+
"@child",
|
|
380
|
+
"href",
|
|
381
|
+
""
|
|
382
|
+
],
|
|
383
|
+
"label": [
|
|
384
|
+
"object/get",
|
|
385
|
+
"@child",
|
|
386
|
+
"label",
|
|
387
|
+
""
|
|
388
|
+
],
|
|
389
|
+
"type": "button",
|
|
390
|
+
"variant": [
|
|
391
|
+
"if",
|
|
392
|
+
[
|
|
393
|
+
"==",
|
|
394
|
+
[
|
|
395
|
+
"object/get",
|
|
396
|
+
"@child",
|
|
397
|
+
"href",
|
|
398
|
+
""
|
|
399
|
+
],
|
|
400
|
+
"@config.currentPath"
|
|
401
|
+
],
|
|
402
|
+
"secondary",
|
|
403
|
+
"ghost"
|
|
404
|
+
]
|
|
405
|
+
}
|
|
406
|
+
]
|
|
407
|
+
],
|
|
408
|
+
"className": "ps-6",
|
|
409
|
+
"direction": "vertical",
|
|
410
|
+
"gap": "xs",
|
|
411
|
+
"type": "stack"
|
|
412
|
+
}
|
|
413
|
+
],
|
|
414
|
+
"direction": "vertical",
|
|
415
|
+
"gap": "xs",
|
|
416
|
+
"type": "stack"
|
|
417
|
+
}
|
|
272
418
|
]
|
|
273
|
-
|
|
274
|
-
|
|
419
|
+
],
|
|
420
|
+
"direction": "vertical",
|
|
421
|
+
"gap": "xs",
|
|
422
|
+
"type": "stack"
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"action": "NAV_LINK",
|
|
426
|
+
"actionPayload": {
|
|
427
|
+
"href": "@config.actionHref",
|
|
428
|
+
"label": "@config.actionLabel"
|
|
429
|
+
},
|
|
430
|
+
"className": [
|
|
431
|
+
"if",
|
|
432
|
+
[
|
|
433
|
+
"==",
|
|
434
|
+
"@config.actionLabel",
|
|
435
|
+
""
|
|
436
|
+
],
|
|
437
|
+
"hidden",
|
|
438
|
+
"mt-2 w-full"
|
|
439
|
+
],
|
|
440
|
+
"href": "@config.actionHref",
|
|
441
|
+
"label": "@config.actionLabel",
|
|
442
|
+
"size": "md",
|
|
443
|
+
"type": "button",
|
|
444
|
+
"variant": "primary"
|
|
445
|
+
}
|
|
275
446
|
],
|
|
276
447
|
"className": [
|
|
277
448
|
"if",
|
|
278
449
|
"@entity.menuOpen",
|
|
279
|
-
"
|
|
450
|
+
"lg:hidden border-b border-border bg-card px-4 py-3",
|
|
280
451
|
"hidden"
|
|
281
452
|
],
|
|
282
453
|
"direction": "vertical",
|
|
@@ -293,6 +464,34 @@
|
|
|
293
464
|
"tier": "internal",
|
|
294
465
|
"type": "render-ui"
|
|
295
466
|
},
|
|
467
|
+
"languages": {
|
|
468
|
+
"default": [],
|
|
469
|
+
"description": "Every language this page exists in, each named in its own language, with the href of THIS page in that language (default language at the root, others under /<code>/). Empty hides the language picker.",
|
|
470
|
+
"items": {
|
|
471
|
+
"properties": {
|
|
472
|
+
"code": {
|
|
473
|
+
"name": "code",
|
|
474
|
+
"required": true,
|
|
475
|
+
"type": "string"
|
|
476
|
+
},
|
|
477
|
+
"href": {
|
|
478
|
+
"name": "href",
|
|
479
|
+
"required": true,
|
|
480
|
+
"type": "string"
|
|
481
|
+
},
|
|
482
|
+
"label": {
|
|
483
|
+
"name": "label",
|
|
484
|
+
"required": true,
|
|
485
|
+
"type": "string"
|
|
486
|
+
}
|
|
487
|
+
},
|
|
488
|
+
"type": "object"
|
|
489
|
+
},
|
|
490
|
+
"label": "Languages",
|
|
491
|
+
"synonyms": "locales, translations, language switcher, i18n",
|
|
492
|
+
"tier": "presentation",
|
|
493
|
+
"type": "[SiteLanguage]"
|
|
494
|
+
},
|
|
296
495
|
"links": {
|
|
297
496
|
"default": [
|
|
298
497
|
{
|
|
@@ -310,6 +509,17 @@
|
|
|
310
509
|
],
|
|
311
510
|
"items": {
|
|
312
511
|
"properties": {
|
|
512
|
+
"children": {
|
|
513
|
+
"items": {
|
|
514
|
+
"type": "union",
|
|
515
|
+
"values": [
|
|
516
|
+
"SiteNavLink"
|
|
517
|
+
]
|
|
518
|
+
},
|
|
519
|
+
"name": "children",
|
|
520
|
+
"required": false,
|
|
521
|
+
"type": "array"
|
|
522
|
+
},
|
|
313
523
|
"href": {
|
|
314
524
|
"name": "href",
|
|
315
525
|
"required": true,
|
|
@@ -506,10 +716,47 @@
|
|
|
506
716
|
"to": "idle"
|
|
507
717
|
}
|
|
508
718
|
]
|
|
719
|
+
},
|
|
720
|
+
"traitEmbedIds": {
|
|
721
|
+
"SiteHeaderLanguages": "trt_01M3EPAAKX1EXPTSJ0M1WTZFTB"
|
|
509
722
|
}
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
"config": {
|
|
726
|
+
"currentLanguage": {
|
|
727
|
+
"default": "@config.currentLanguage",
|
|
728
|
+
"type": "unknown"
|
|
729
|
+
},
|
|
730
|
+
"languages": {
|
|
731
|
+
"default": "@config.languages",
|
|
732
|
+
"type": "unknown"
|
|
733
|
+
}
|
|
734
|
+
},
|
|
735
|
+
"id": "trt_01M3EPAAKX1EXPTSJ0M1WTZFTB",
|
|
736
|
+
"linkedEntity": "SiteHeaderView",
|
|
737
|
+
"linkedEntityId": "ent_01M3B9EHRNR3JQPJSD36PH5QV8",
|
|
738
|
+
"name": "SiteHeaderLanguages",
|
|
739
|
+
"ref": "LanguagePicker.traits.LanguagePickerRender"
|
|
510
740
|
}
|
|
511
741
|
],
|
|
512
742
|
"types": {
|
|
743
|
+
"SiteLanguage": [
|
|
744
|
+
{
|
|
745
|
+
"name": "code",
|
|
746
|
+
"required": true,
|
|
747
|
+
"type": "string"
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
"name": "label",
|
|
751
|
+
"required": true,
|
|
752
|
+
"type": "string"
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
"name": "href",
|
|
756
|
+
"required": true,
|
|
757
|
+
"type": "string"
|
|
758
|
+
}
|
|
759
|
+
],
|
|
513
760
|
"SiteNavLink": [
|
|
514
761
|
{
|
|
515
762
|
"name": "label",
|
|
@@ -520,9 +767,36 @@
|
|
|
520
767
|
"name": "href",
|
|
521
768
|
"required": true,
|
|
522
769
|
"type": "string"
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
"name": "children",
|
|
773
|
+
"properties": [
|
|
774
|
+
{
|
|
775
|
+
"name": "label",
|
|
776
|
+
"required": true,
|
|
777
|
+
"type": "string"
|
|
778
|
+
},
|
|
779
|
+
{
|
|
780
|
+
"name": "href",
|
|
781
|
+
"required": true,
|
|
782
|
+
"type": "string"
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
"name": "children",
|
|
786
|
+
"properties": [],
|
|
787
|
+
"type": "[SiteNavLink]"
|
|
788
|
+
}
|
|
789
|
+
],
|
|
790
|
+
"type": "[object]"
|
|
523
791
|
}
|
|
524
792
|
]
|
|
525
|
-
}
|
|
793
|
+
},
|
|
794
|
+
"uses": [
|
|
795
|
+
{
|
|
796
|
+
"as": "LanguagePicker",
|
|
797
|
+
"from": "std/behaviors/std-language-picker"
|
|
798
|
+
}
|
|
799
|
+
]
|
|
526
800
|
}
|
|
527
801
|
],
|
|
528
802
|
"schemaVersion": 1,
|