@nextrap/nte-nav 1.2.0 → 2.0.1

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/CHANGELOG.md CHANGED
@@ -1,586 +1,3 @@
1
- ## 1.2.0 (2025-12-05)
1
+ ## 2.0.1 (2026-09-09)
2
2
 
3
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
4
-
5
- ## 1.1.29 (2025-09-12)
6
-
7
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
8
-
9
- ## 1.1.28 (2025-09-11)
10
-
11
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
12
-
13
- ## 1.1.27 (2025-09-11)
14
-
15
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
16
-
17
- ## 1.1.26 (2025-09-11)
18
-
19
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
20
-
21
- ## 1.1.25 (2025-09-11)
22
-
23
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
24
-
25
- ## 1.1.24 (2025-09-11)
26
-
27
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
28
-
29
- ## 1.1.23 (2025-09-11)
30
-
31
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
32
-
33
- ## 1.1.22 (2025-09-11)
34
-
35
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
36
-
37
- ## 1.1.21 (2025-09-11)
38
-
39
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
40
-
41
- ## 1.1.20 (2025-09-11)
42
-
43
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
44
-
45
- ## 1.1.19 (2025-09-11)
46
-
47
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
48
-
49
- ## 1.1.18 (2025-09-11)
50
-
51
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
52
-
53
- ## 1.1.17 (2025-09-11)
54
-
55
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
56
-
57
- ## 1.1.16 (2025-09-11)
58
-
59
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
60
-
61
- ## 1.1.15 (2025-09-11)
62
-
63
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
64
-
65
- ## 1.1.14 (2025-08-28)
66
-
67
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
68
-
69
- ## 1.1.13 (2025-08-28)
70
-
71
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
72
-
73
- ## 1.1.12 (2025-08-28)
74
-
75
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
76
-
77
- ## 1.1.11 (2025-08-24)
78
-
79
- ### 🧱 Updated Dependencies
80
-
81
- - Updated style-reset to 1.0.0
82
- - Updated style-base to 1.1.11
83
- - Updated nte-offcanvas to 1.0.16
84
-
85
- ## 1.1.10 (2025-08-13)
86
-
87
- ### 🩹 Fixes
88
-
89
- - do not re-export lit via nt-framework ([12ac05f](https://github.com/nextrap/nextrap-monorepo/commit/12ac05f))
90
-
91
- ### ❤️ Thank You
92
-
93
- - Enzo Volkmann @evolkmann
94
-
95
- ## 1.1.9 (2025-08-01)
96
-
97
- ### 🧱 Updated Dependencies
98
-
99
- - Updated nte-offcanvas to 1.0.15
100
-
101
- ## 1.1.8 (2025-08-01)
102
-
103
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
104
-
105
- ## 1.1.7 (2025-08-01)
106
-
107
- ### 🧱 Updated Dependencies
108
-
109
- - Updated nte-offcanvas to 1.0.14
110
-
111
- ## 1.1.6 (2025-08-01)
112
-
113
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
114
-
115
- ## 1.1.5 (2025-07-31)
116
-
117
- ### 🧱 Updated Dependencies
118
-
119
- - Updated nte-offcanvas to 1.0.13
120
-
121
- ## 1.1.4 (2025-07-31)
122
-
123
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
124
-
125
- ## 1.1.3 (2025-07-31)
126
-
127
- ### 🧱 Updated Dependencies
128
-
129
- - Updated style-base to 1.1.10
130
- - Updated nte-offcanvas to 1.0.12
131
-
132
- ## 1.1.2 (2025-07-31)
133
-
134
- ### 🧱 Updated Dependencies
135
-
136
- - Updated nte-offcanvas to 1.0.11
137
-
138
- ## 1.1.1 (2025-07-31)
139
-
140
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
141
-
142
- ## 1.1.0 (2025-07-31)
143
-
144
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
145
-
146
- ## 1.0.25 (2025-07-24)
147
-
148
- ### 🧱 Updated Dependencies
149
-
150
- - Updated style-base to 1.1.9
151
- - Updated nte-offcanvas to 1.0.10
152
-
153
- ## 1.0.24 (2025-07-24)
154
-
155
- ### 🧱 Updated Dependencies
156
-
157
- - Updated style-base to 1.1.8
158
- - Updated nte-offcanvas to 1.0.9
159
-
160
- ## 1.0.23 (2025-07-24)
161
-
162
- ### 🧱 Updated Dependencies
163
-
164
- - Updated style-base to 1.1.7
165
- - Updated nte-offcanvas to 1.0.8
166
-
167
- ## 1.0.22 (2025-07-24)
168
-
169
- ### 🧱 Updated Dependencies
170
-
171
- - Updated style-base to 1.1.6
172
- - Updated nte-offcanvas to 1.0.7
173
-
174
- ## 1.0.21 (2025-07-23)
175
-
176
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
177
-
178
- ## 1.0.20 (2025-07-23)
179
-
180
- ### 🧱 Updated Dependencies
181
-
182
- - Updated nte-burger to 1.1.7
183
-
184
- ## 1.0.19 (2025-07-23)
185
-
186
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
187
-
188
- ## 1.0.18 (2025-07-23)
189
-
190
- ### 🧱 Updated Dependencies
191
-
192
- - Updated nte-burger to 1.1.6
193
-
194
- ## 1.0.17 (2025-07-23)
195
-
196
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
197
-
198
- ## 1.0.16 (2025-07-23)
199
-
200
- ### 🧱 Updated Dependencies
201
-
202
- - Updated nte-offcanvas to 1.0.6
203
-
204
- ## 1.0.15 (2025-07-23)
205
-
206
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
207
-
208
- ## 1.0.14 (2025-07-23)
209
-
210
- ### 🧱 Updated Dependencies
211
-
212
- - Updated nte-burger to 1.1.5
213
-
214
- ## 1.0.13 (2025-07-23)
215
-
216
- ### 🧱 Updated Dependencies
217
-
218
- - Updated nt-framework to 1.1.1
219
- - Updated nte-offcanvas to 1.0.5
220
- - Updated nte-burger to 1.1.4
221
-
222
- ## 1.0.12 (2025-07-23)
223
-
224
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
225
-
226
- ## 1.0.11 (2025-07-23)
227
-
228
- ### 🧱 Updated Dependencies
229
-
230
- - Updated nte-offcanvas to 1.0.4
231
-
232
- ## 1.0.10 (2025-07-23)
233
-
234
- ### 🧱 Updated Dependencies
235
-
236
- - Updated nt-framework to 1.1.0
237
- - Updated nte-offcanvas to 1.0.3
238
- - Updated nte-burger to 1.1.3
239
-
240
- ## 1.0.9 (2025-07-23)
241
-
242
- ### 🧱 Updated Dependencies
243
-
244
- - Updated nte-burger to 1.1.2
245
-
246
- ## 1.0.8 (2025-07-23)
247
-
248
- ### 🧱 Updated Dependencies
249
-
250
- - Updated nt-framework to 1.0.0
251
- - Updated nte-offcanvas to 1.0.2
252
- - Updated nte-burger to 1.1.1
253
-
254
- ## 1.0.7 (2025-07-23)
255
-
256
- ### 🧱 Updated Dependencies
257
-
258
- - Updated nte-burger to 1.1.0
259
-
260
- ## 1.0.6 (2025-07-23)
261
-
262
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
263
-
264
- ## 1.0.5 (2025-07-23)
265
-
266
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
267
-
268
- ## 1.0.4 (2025-07-22)
269
-
270
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
271
-
272
- ## 1.0.3 (2025-07-22)
273
-
274
- ### 🧱 Updated Dependencies
275
-
276
- - Updated nte-offcanvas to 1.0.1
277
-
278
- ## 1.0.2 (2025-07-22)
279
-
280
- ### 🧱 Updated Dependencies
281
-
282
- - Updated nte-burger to 1.0.1
283
-
284
- ## 1.0.1 (2025-07-22)
285
-
286
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
287
-
288
- # 1.0.0 (2025-07-22)
289
-
290
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
291
-
292
- ## 0.2.48 (2025-07-22)
293
-
294
- ### 🧱 Updated Dependencies
295
-
296
- - Updated nte-burger to 1.0.0
297
-
298
- ## 0.2.47 (2025-07-22)
299
-
300
- ### 🧱 Updated Dependencies
301
-
302
- - Updated nte-offcanvas to 1.0.0
303
-
304
- ## 0.2.46 (2025-07-22)
305
-
306
- ### 🧱 Updated Dependencies
307
-
308
- - Updated nte-offcanvas to 0.0.25
309
-
310
- ## 0.2.45 (2025-07-22)
311
-
312
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
313
-
314
- ## 0.2.44 (2025-07-22)
315
-
316
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
317
-
318
- ## 0.2.43 (2025-07-22)
319
-
320
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
321
-
322
- ## 0.2.42 (2025-07-22)
323
-
324
- ### 🧱 Updated Dependencies
325
-
326
- - Updated nt-framework to 0.0.3
327
- - Updated nte-offcanvas to 0.0.24
328
- - Updated nte-burger to 0.1.3
329
-
330
- ## 0.2.41 (2025-07-22)
331
-
332
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
333
-
334
- ## 0.2.40 (2025-07-22)
335
-
336
- ### 🧱 Updated Dependencies
337
-
338
- - Updated nt-framework to 0.0.2
339
- - Updated nte-offcanvas to 0.0.23
340
- - Updated nte-burger to 0.1.2
341
-
342
- ## 0.2.39 (2025-07-22)
343
-
344
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
345
-
346
- ## 0.2.38 (2025-07-22)
347
-
348
- ### 🧱 Updated Dependencies
349
-
350
- - Updated nte-offcanvas to 0.0.22
351
-
352
- ## 0.2.37 (2025-07-22)
353
-
354
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
355
-
356
- ## 0.2.36 (2025-07-21)
357
-
358
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
359
-
360
- ## 0.2.35 (2025-07-21)
361
-
362
- ### 🧱 Updated Dependencies
363
-
364
- - Updated style-base to 1.1.5
365
- - Updated nte-offcanvas to 0.0.21
366
-
367
- ## 0.2.34 (2025-07-21)
368
-
369
- ### 🧱 Updated Dependencies
370
-
371
- - Updated nte-offcanvas to 0.0.20
372
-
373
- ## 0.2.33 (2025-07-21)
374
-
375
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
376
-
377
- ## 0.2.32 (2025-07-21)
378
-
379
- ### 🧱 Updated Dependencies
380
-
381
- - Updated nte-burger to 0.1.1
382
-
383
- ## 0.2.31 (2025-07-21)
384
-
385
- ### 🧱 Updated Dependencies
386
-
387
- - Updated nte-burger to 0.1.0
388
-
389
- ## 0.2.30 (2025-07-21)
390
-
391
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
392
-
393
- ## 0.2.29 (2025-07-21)
394
-
395
- ### 🧱 Updated Dependencies
396
-
397
- - Updated nte-offcanvas to 0.0.19
398
-
399
- ## 0.2.28 (2025-07-21)
400
-
401
- ### 🧱 Updated Dependencies
402
-
403
- - Updated style-base to 1.1.4
404
- - Updated nte-offcanvas to 0.0.18
405
-
406
- ## 0.2.27 (2025-07-21)
407
-
408
- ### 🧱 Updated Dependencies
409
-
410
- - Updated style-base to 1.1.3
411
- - Updated nte-offcanvas to 0.0.17
412
-
413
- ## 0.2.26 (2025-07-21)
414
-
415
- ### 🧱 Updated Dependencies
416
-
417
- - Updated style-base to 1.1.2
418
- - Updated nte-offcanvas to 0.0.16
419
-
420
- ## 0.2.25 (2025-07-21)
421
-
422
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
423
-
424
- ## 0.2.24 (2025-07-21)
425
-
426
- ### 🧱 Updated Dependencies
427
-
428
- - Updated nte-offcanvas to 0.0.15
429
-
430
- ## 0.2.23 (2025-07-21)
431
-
432
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
433
-
434
- ## 0.2.22 (2025-07-21)
435
-
436
- ### 🧱 Updated Dependencies
437
-
438
- - Updated style-base to 1.1.1
439
- - Updated nte-offcanvas to 0.0.14
440
-
441
- ## 0.2.21 (2025-07-21)
442
-
443
- ### 🧱 Updated Dependencies
444
-
445
- - Updated style-base to 1.1.0
446
- - Updated nte-offcanvas to 0.0.13
447
-
448
- ## 0.2.20 (2025-07-21)
449
-
450
- ### 🧱 Updated Dependencies
451
-
452
- - Updated style-base to 1.0.3
453
- - Updated nte-offcanvas to 0.0.12
454
-
455
- ## 0.2.19 (2025-07-21)
456
-
457
- ### 🧱 Updated Dependencies
458
-
459
- - Updated style-base to 1.0.2
460
- - Updated nte-offcanvas to 0.0.11
461
-
462
- ## 0.2.18 (2025-07-21)
463
-
464
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
465
-
466
- ## 0.2.17 (2025-07-21)
467
-
468
- ### 🧱 Updated Dependencies
469
-
470
- - Updated nte-offcanvas to 0.0.10
471
-
472
- ## 0.2.16 (2025-07-21)
473
-
474
- ### 🧱 Updated Dependencies
475
-
476
- - Updated nte-offcanvas to 0.0.9
477
-
478
- ## 0.2.15 (2025-07-21)
479
-
480
- ### 🧱 Updated Dependencies
481
-
482
- - Updated style-base to 1.0.1
483
- - Updated nte-offcanvas to 0.0.8
484
-
485
- ## 0.2.14 (2025-07-21)
486
-
487
- ### 🧱 Updated Dependencies
488
-
489
- - Updated style-base to 1.0.0
490
- - Updated nte-offcanvas to 0.0.7
491
-
492
- ## 0.2.13 (2025-07-21)
493
-
494
- ### 🧱 Updated Dependencies
495
-
496
- - Updated style-base to 0.0.2
497
- - Updated nte-offcanvas to 0.0.6
498
-
499
- ## 0.2.12 (2025-07-21)
500
-
501
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
502
-
503
- ## 0.2.11 (2025-07-21)
504
-
505
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
506
-
507
- ## 0.2.10 (2025-07-21)
508
-
509
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
510
-
511
- ## 0.2.9 (2025-07-21)
512
-
513
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
514
-
515
- ## 0.2.8 (2025-07-21)
516
-
517
- ### 🧱 Updated Dependencies
518
-
519
- - Updated nte-offcanvas to 0.0.5
520
-
521
- ## 0.2.7 (2025-07-21)
522
-
523
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
524
-
525
- ## 0.2.6 (2025-07-21)
526
-
527
- ### 🧱 Updated Dependencies
528
-
529
- - Updated style-reset to 0.1.1
530
- - Updated nte-offcanvas to 0.0.4
531
-
532
- ## 0.2.5 (2025-07-16)
533
-
534
- ### 🧱 Updated Dependencies
535
-
536
- - Updated nte-offcanvas to 0.0.3
537
-
538
- ## 0.3.5 (2025-07-15)
539
-
540
- ### 🧱 Updated Dependencies
541
-
542
- - Updated nte-offcanvas to 0.2.2
543
-
544
- ## 0.3.4 (2025-07-15)
545
-
546
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
547
-
548
- ## 0.3.3 (2025-07-15)
549
-
550
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
551
-
552
- ## 0.3.2 (2025-07-15)
553
-
554
- ### 🧱 Updated Dependencies
555
-
556
- - Updated nte-offcanvas to 0.2.1
557
-
558
- ## 0.3.1 (2025-07-15)
559
-
560
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
561
-
562
- ## 0.3.0 (2025-07-15)
563
-
564
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
565
-
566
- ## 0.2.0 (2025-07-15)
567
-
568
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
569
-
570
- ## 0.1.1 (2025-07-15)
571
-
572
- ### 🧱 Updated Dependencies
573
-
574
- - Updated nte-burger to 0.1.0
575
-
576
- ## 0.1.0 (2025-07-15)
577
-
578
- This was a version bump only for nte-nav to align it with other projects, there were no code changes.
579
-
580
- ## 0.0.3 (2025-07-15)
581
-
582
- ### 🧱 Updated Dependencies
583
-
584
- - Updated nt-framework to 0.1.0
585
- - Updated nte-offcanvas to 0.0.2
586
- - Updated nte-burger to 0.0.2
3
+ This was a version bump only for nte-nav to align it with other projects, there were no code changes.
package/README.md CHANGED
@@ -1,3 +1,112 @@
1
- # nte-nav
1
+ # @nextrap/nte-nav
2
2
 
3
- A navigation element.
3
+ Working draft for the future Nextrap navigation component. The existing `@nextrap/nte-nav` package remains unchanged; a future navbar is explicitly out of scope.
4
+
5
+ ## Import
6
+
7
+ ```ts
8
+ import '@nextrap/nte-nav';
9
+ ```
10
+
11
+ ```scss
12
+ @use '@nextrap/nte-nav' as nav;
13
+
14
+ header nte-nav.style-default {
15
+ @include nav.default-style();
16
+ @include nav.horizontal();
17
+ @include nav.size-medium();
18
+ }
19
+
20
+ aside nte-nav.style-default {
21
+ @include nav.sub-navigation();
22
+ @include nav.vertical();
23
+ }
24
+ ```
25
+
26
+ `SetDefaultStyleMixin` adds `style-default` when no other `style-*` class is present. The component's Shadow DOM only contains functional layout, disclosure, positioning and transition CSS. Visual styling is supplied by the public mixins.
27
+
28
+ ## Basic API
29
+
30
+ ```html
31
+ <nte-nav aria-label="Hauptnavigation">
32
+ <nte-nav-item submenu-popover>
33
+ <svg slot="icon" aria-hidden="true"><!-- … --></svg>
34
+ Leistungen
35
+
36
+ <nte-nav-item href="/leistungen/beratung">Beratung</nte-nav-item>
37
+ <nte-nav-item href="/leistungen/entwicklung">Entwicklung</nte-nav-item>
38
+ </nte-nav-item>
39
+
40
+ <nte-nav-item href="/ueber-uns" current="page">Über uns</nte-nav-item>
41
+ </nte-nav>
42
+ ```
43
+
44
+ Direct nested `nte-nav-item` children are automatically assigned to the private `submenu` slot. Consumer markup no longer contains a `ul/li/ul` tree. Each item owns its anchor, disclosure control, submenu container and CSS positioning inside its Shadow DOM.
45
+
46
+ Parents with children are non-linking disclosures by default: omit `href` and the complete visible label toggles the submenu. Add `href` only when the parent page is a real destination of its own; the component then keeps the link and disclosure as two separate keyboard-focusable controls.
47
+
48
+ ## Attributes
49
+
50
+ ### `nte-nav`
51
+
52
+ | Attribute | Type | Purpose |
53
+ |---|---|---|
54
+ | `aria-label` | string | Accessible name forwarded to the internal `nav` landmark. Recommended whenever multiple navigation landmarks exist. |
55
+
56
+ ### `nte-nav-item`
57
+
58
+ | Attribute | Type | Purpose |
59
+ |---|---|---|
60
+ | `href` | string | Renders the item's internal anchor. If omitted on an item with children, the label itself becomes the disclosure button. |
61
+ | `target` | string | Forwarded to the internal anchor. |
62
+ | `rel` | string | Forwarded to the internal anchor. |
63
+ | `download` | string | Forwarded to the internal anchor. |
64
+ | `current` | ARIA current token | Forwarded as `aria-current` to the internal anchor. |
65
+ | `--order` | CSS custom property | Sets the host's Flexbox `order`. Use sparingly because visual order does not change DOM or keyboard order. |
66
+ | `submenu-popover` | boolean attribute | Manually renders nested items as declarative Popover markup for horizontal navigation. Omit for vertical inline `details`/`summary`. |
67
+ | `submenu-label` | string | Prefix for the submenu disclosure's accessible name. Default: `Untermenü`. |
68
+
69
+ ## Slots
70
+
71
+ | Component | Slot | Purpose |
72
+ |---|---|---|
73
+ | `nte-nav` | default | Top-level `nte-nav-item` elements. |
74
+ | `nte-nav-item` | default | Visible rich-text label. |
75
+ | `nte-nav-item` | `icon` | Optional icon rendered in the dedicated `icon` part. Decorative SVGs should use `aria-hidden="true"`. |
76
+ | `nte-nav-item` | `submenu` | Internal target slot for nested items. Direct nested `nte-nav-item` elements are assigned automatically. |
77
+
78
+ ## Parts
79
+
80
+ - `nte-nav`: `nav`, `list`
81
+ - `nte-nav-item`: `item`, `details`, `link`, `text`, `disclosure`, `toggle`, `icon`, `label`, `indicator`, `submenu`, `submenu-inner`
82
+
83
+ ## Public mixins
84
+
85
+ - `default-style()` – full default visual baseline
86
+ - `main-navigation()` – complete, large main-navigation variant
87
+ - `sub-navigation()` – complete, compact sub-navigation variant
88
+ - `horizontal($justify, $gap)` – horizontal functional orientation
89
+ - `vertical($gap)` – vertical functional orientation
90
+ - `responsive($breakpoint, $horizontal-justify)` – vertical below and horizontal above a breakpoint
91
+ - `size-small()`, `size-medium()`, `size-large()` – size presets that only set component variables
92
+
93
+ ## Orientation and native disclosure
94
+
95
+ This is ordinary website navigation, not an application menu. It intentionally uses a `nav` landmark, list/listitem semantics, links and disclosure buttons rather than ARIA `menu`/`menubar` roles.
96
+
97
+ Submenus are selected manually per item. The Shadow DOM CSS consumes orientation variables from the mixins; the markup variant is controlled by the public `submenu-popover` attribute:
98
+
99
+ - For `horizontal()`, add `submenu-popover` to parent items with nested items. The component renders a native `<button popovertarget="submenu">` and `<div id="submenu" popover="auto">`, so the browser handles the Popover declaratively.
100
+ - For `vertical()`, omit `submenu-popover`. The component renders native `details` / `summary`; the submenu stays in normal document flow, animates downwards and is indented as part of the navigation path.
101
+ - `responsive()` changes only CSS orientation. With nested submenus and no JavaScript, the integration must manually add/remove `submenu-popover` or choose one authored variant.
102
+
103
+ The optional icon slot is observed by `nextrap_element({ slotVisibility: true })`. Empty icon slots receive `.slot-empty` and are hidden entirely by the component CSS.
104
+
105
+ ## Deliberately deferred
106
+
107
+ - Navbar, sticky header and brand layout
108
+ - Burger/offcanvas content transfer from the legacy package
109
+ - Optional arrow-key navigation beyond normal Tab/Shift+Tab behavior
110
+ - Public imperative `showSubmenu()` / `hideSubmenu()` methods
111
+ - SPA-router adapters and prefetch behavior
112
+ - Public imperative `showSubmenu()` / `hideSubmenu()` methods beyond the internal Popover synchronization
package/index.d.ts CHANGED
@@ -1,4 +1,2 @@
1
- export * from './lib/nte-nav';
2
- export * from './lib/nte-navbar';
3
- export * from './lib/nte-navbar-line';
4
- export * from './components/nte-nav-brand-relocator/nte-nav-brand-relocator';
1
+ export * from './src/components/nte-nav/nte-nav';
2
+ export * from './src/components/nte-nav-item/nte-nav-item';