@wireweave/core 4.0.0-beta.0 → 4.0.0-beta.13

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 (50) hide show
  1. package/README.md +17 -462
  2. package/dist/app.cjs +50 -0
  3. package/dist/app.d.cts +488 -0
  4. package/dist/app.d.ts +488 -0
  5. package/dist/app.js +1 -0
  6. package/dist/chunk-3RWGG5EC.js +18042 -0
  7. package/dist/chunk-4TMDPWPR.cjs +186 -0
  8. package/dist/chunk-4UZBGIGJ.cjs +4359 -0
  9. package/dist/chunk-5DGRIQDU.cjs +824 -0
  10. package/dist/chunk-ETV4XYOV.cjs +5 -0
  11. package/dist/chunk-FS6A6EJ4.js +4345 -0
  12. package/dist/chunk-IMUVIIJR.cjs +18051 -0
  13. package/dist/chunk-JJWAFHSV.js +821 -0
  14. package/dist/chunk-MD6MNOEQ.cjs +2884 -0
  15. package/dist/chunk-PKBMQBKP.js +5 -0
  16. package/dist/chunk-R5WBZWBC.js +180 -0
  17. package/dist/chunk-V3HVWC7C.js +2874 -0
  18. package/dist/chunk-XYACLXXF.js +51484 -0
  19. package/dist/chunk-ZPHNXJRY.cjs +51590 -0
  20. package/dist/index-BGU_4N4W.d.ts +240 -0
  21. package/dist/index-BlNYFaZd.d.cts +337 -0
  22. package/dist/index-Cx4-VXVS.d.ts +337 -0
  23. package/dist/index-DyXaMSgd.d.cts +240 -0
  24. package/dist/index.cjs +1844 -58238
  25. package/dist/index.d.cts +556 -102
  26. package/dist/index.d.ts +556 -102
  27. package/dist/index.js +1163 -58104
  28. package/dist/interaction.cjs +26 -0
  29. package/dist/interaction.d.cts +3 -0
  30. package/dist/interaction.d.ts +3 -0
  31. package/dist/interaction.js +1 -0
  32. package/dist/parser.cjs +34 -6611
  33. package/dist/parser.d.cts +11 -2
  34. package/dist/parser.d.ts +11 -2
  35. package/dist/parser.js +1 -6585
  36. package/dist/renderer.cjs +119 -50537
  37. package/dist/renderer.d.cts +348 -123
  38. package/dist/renderer.d.ts +348 -123
  39. package/dist/renderer.js +3 -50499
  40. package/dist/spec.cjs +94 -0
  41. package/dist/spec.d.cts +301 -0
  42. package/dist/spec.d.ts +301 -0
  43. package/dist/spec.js +1 -0
  44. package/dist/{types-hEr_afgw.d.cts → types-CGRi1k2N.d.cts} +307 -27
  45. package/dist/{types-hEr_afgw.d.ts → types-CGRi1k2N.d.ts} +307 -27
  46. package/dist/types-Dkgr0Wyc.d.cts +75 -0
  47. package/dist/types-Dkgr0Wyc.d.ts +75 -0
  48. package/dist/v4-types-2ORUg6To.d.cts +137 -0
  49. package/dist/v4-types-2ORUg6To.d.ts +137 -0
  50. package/package.json +112 -35
@@ -0,0 +1,2884 @@
1
+ 'use strict';
2
+
3
+ // src/spec/grammar-elements.generated.ts
4
+ exports.GRAMMAR_ELEMENTS = {
5
+ page: "Page",
6
+ layout: "Layout",
7
+ component: "Component",
8
+ use: "ComponentUse",
9
+ slot: "Slot",
10
+ repeat: "Repeat",
11
+ header: "Header",
12
+ main: "Main",
13
+ footer: "Footer",
14
+ sidebar: "Sidebar",
15
+ row: "Row",
16
+ col: "Col",
17
+ stack: "Stack",
18
+ relative: "Relative",
19
+ card: "Card",
20
+ modal: "Modal",
21
+ drawer: "Drawer",
22
+ accordion: "Accordion",
23
+ section: "Section",
24
+ text: "Text",
25
+ title: "Title",
26
+ link: "Link",
27
+ button: "Button",
28
+ input: "Input",
29
+ textarea: "Textarea",
30
+ select: "Select",
31
+ checkbox: "Checkbox",
32
+ radio: "Radio",
33
+ switch: "Switch",
34
+ slider: "Slider",
35
+ image: "Image",
36
+ placeholder: "Placeholder",
37
+ avatar: "Avatar",
38
+ badge: "Badge",
39
+ icon: "Icon",
40
+ table: "Table",
41
+ list: "List",
42
+ alert: "Alert",
43
+ toast: "Toast",
44
+ progress: "Progress",
45
+ spinner: "Spinner",
46
+ tooltip: "Tooltip",
47
+ popover: "Popover",
48
+ dropdown: "Dropdown",
49
+ nav: "Nav",
50
+ tabs: "Tabs",
51
+ breadcrumb: "Breadcrumb",
52
+ divider: "Divider",
53
+ marker: "Marker",
54
+ annotations: "Annotations",
55
+ item: "AnnotationItem"
56
+ };
57
+ exports.GRAMMAR_BLOCK_NODE_TYPES = ["ListItem", "DropdownItem", "NavGroup", "NavItem"];
58
+ exports.GRAMMAR_CHILD_KEYWORDS = [
59
+ "page",
60
+ "header",
61
+ "main",
62
+ "footer",
63
+ "sidebar",
64
+ "row",
65
+ "col",
66
+ "stack",
67
+ "relative",
68
+ "card",
69
+ "modal",
70
+ "drawer",
71
+ "accordion",
72
+ "section",
73
+ "text",
74
+ "link",
75
+ "button",
76
+ "input",
77
+ "textarea",
78
+ "select",
79
+ "checkbox",
80
+ "radio",
81
+ "switch",
82
+ "slider",
83
+ "image",
84
+ "avatar",
85
+ "badge",
86
+ "table",
87
+ "columns",
88
+ "list",
89
+ "item",
90
+ "alert",
91
+ "toast",
92
+ "progress",
93
+ "spinner",
94
+ "tooltip",
95
+ "popover",
96
+ "dropdown",
97
+ "divider",
98
+ "nav",
99
+ "tabs",
100
+ "tab",
101
+ "breadcrumb",
102
+ "group",
103
+ "marker",
104
+ "annotations",
105
+ "repeat",
106
+ "layout",
107
+ "component",
108
+ "use",
109
+ "fill",
110
+ "slot"
111
+ ];
112
+
113
+ // src/spec/icon-names.generated.ts
114
+ exports.LUCIDE_ICON_NAMES = [
115
+ "a-arrow-down",
116
+ "a-arrow-up",
117
+ "a-large-small",
118
+ "accessibility",
119
+ "activity",
120
+ "air-vent",
121
+ "airplay",
122
+ "alarm-clock",
123
+ "alarm-clock-check",
124
+ "alarm-clock-minus",
125
+ "alarm-clock-off",
126
+ "alarm-clock-plus",
127
+ "alarm-smoke",
128
+ "album",
129
+ "align-center-horizontal",
130
+ "align-center-vertical",
131
+ "align-end-horizontal",
132
+ "align-end-vertical",
133
+ "align-horizontal-distribute-center",
134
+ "align-horizontal-distribute-end",
135
+ "align-horizontal-distribute-start",
136
+ "align-horizontal-justify-center",
137
+ "align-horizontal-justify-end",
138
+ "align-horizontal-justify-start",
139
+ "align-horizontal-space-around",
140
+ "align-horizontal-space-between",
141
+ "align-start-horizontal",
142
+ "align-start-vertical",
143
+ "align-vertical-distribute-center",
144
+ "align-vertical-distribute-end",
145
+ "align-vertical-distribute-start",
146
+ "align-vertical-justify-center",
147
+ "align-vertical-justify-end",
148
+ "align-vertical-justify-start",
149
+ "align-vertical-space-around",
150
+ "align-vertical-space-between",
151
+ "ambulance",
152
+ "ampersand",
153
+ "ampersands",
154
+ "amphora",
155
+ "anchor",
156
+ "angry",
157
+ "annoyed",
158
+ "antenna",
159
+ "anvil",
160
+ "aperture",
161
+ "app-window",
162
+ "app-window-mac",
163
+ "apple",
164
+ "archive",
165
+ "archive-restore",
166
+ "archive-x",
167
+ "armchair",
168
+ "arrow-big-down",
169
+ "arrow-big-down-dash",
170
+ "arrow-big-left",
171
+ "arrow-big-left-dash",
172
+ "arrow-big-right",
173
+ "arrow-big-right-dash",
174
+ "arrow-big-up",
175
+ "arrow-big-up-dash",
176
+ "arrow-down",
177
+ "arrow-down-0-1",
178
+ "arrow-down-1-0",
179
+ "arrow-down-a-z",
180
+ "arrow-down-from-line",
181
+ "arrow-down-left",
182
+ "arrow-down-narrow-wide",
183
+ "arrow-down-right",
184
+ "arrow-down-to-dot",
185
+ "arrow-down-to-line",
186
+ "arrow-down-up",
187
+ "arrow-down-wide-narrow",
188
+ "arrow-down-z-a",
189
+ "arrow-left",
190
+ "arrow-left-from-line",
191
+ "arrow-left-right",
192
+ "arrow-left-to-line",
193
+ "arrow-right",
194
+ "arrow-right-from-line",
195
+ "arrow-right-left",
196
+ "arrow-right-to-line",
197
+ "arrow-up",
198
+ "arrow-up-0-1",
199
+ "arrow-up-1-0",
200
+ "arrow-up-a-z",
201
+ "arrow-up-down",
202
+ "arrow-up-from-dot",
203
+ "arrow-up-from-line",
204
+ "arrow-up-left",
205
+ "arrow-up-narrow-wide",
206
+ "arrow-up-right",
207
+ "arrow-up-to-line",
208
+ "arrow-up-wide-narrow",
209
+ "arrow-up-z-a",
210
+ "arrows-up-from-line",
211
+ "asterisk",
212
+ "at-sign",
213
+ "atom",
214
+ "audio-lines",
215
+ "audio-waveform",
216
+ "award",
217
+ "axe",
218
+ "axis-3d",
219
+ "baby",
220
+ "backpack",
221
+ "badge",
222
+ "badge-alert",
223
+ "badge-cent",
224
+ "badge-check",
225
+ "badge-dollar-sign",
226
+ "badge-euro",
227
+ "badge-indian-rupee",
228
+ "badge-info",
229
+ "badge-japanese-yen",
230
+ "badge-minus",
231
+ "badge-percent",
232
+ "badge-plus",
233
+ "badge-pound-sterling",
234
+ "badge-question-mark",
235
+ "badge-russian-ruble",
236
+ "badge-swiss-franc",
237
+ "badge-turkish-lira",
238
+ "badge-x",
239
+ "baggage-claim",
240
+ "balloon",
241
+ "ban",
242
+ "banana",
243
+ "bandage",
244
+ "banknote",
245
+ "banknote-arrow-down",
246
+ "banknote-arrow-up",
247
+ "banknote-x",
248
+ "barcode",
249
+ "barrel",
250
+ "baseline",
251
+ "bath",
252
+ "battery",
253
+ "battery-charging",
254
+ "battery-full",
255
+ "battery-low",
256
+ "battery-medium",
257
+ "battery-plus",
258
+ "battery-warning",
259
+ "beaker",
260
+ "bean",
261
+ "bean-off",
262
+ "bed",
263
+ "bed-double",
264
+ "bed-single",
265
+ "beef",
266
+ "beer",
267
+ "beer-off",
268
+ "bell",
269
+ "bell-dot",
270
+ "bell-electric",
271
+ "bell-minus",
272
+ "bell-off",
273
+ "bell-plus",
274
+ "bell-ring",
275
+ "between-horizontal-end",
276
+ "between-horizontal-start",
277
+ "between-vertical-end",
278
+ "between-vertical-start",
279
+ "biceps-flexed",
280
+ "bike",
281
+ "binary",
282
+ "binoculars",
283
+ "biohazard",
284
+ "bird",
285
+ "birdhouse",
286
+ "bitcoin",
287
+ "blend",
288
+ "blinds",
289
+ "blocks",
290
+ "bluetooth",
291
+ "bluetooth-connected",
292
+ "bluetooth-off",
293
+ "bluetooth-searching",
294
+ "bold",
295
+ "bolt",
296
+ "bomb",
297
+ "bone",
298
+ "book",
299
+ "book-a",
300
+ "book-alert",
301
+ "book-audio",
302
+ "book-check",
303
+ "book-copy",
304
+ "book-dashed",
305
+ "book-down",
306
+ "book-headphones",
307
+ "book-heart",
308
+ "book-image",
309
+ "book-key",
310
+ "book-lock",
311
+ "book-marked",
312
+ "book-minus",
313
+ "book-open",
314
+ "book-open-check",
315
+ "book-open-text",
316
+ "book-plus",
317
+ "book-search",
318
+ "book-text",
319
+ "book-type",
320
+ "book-up",
321
+ "book-up-2",
322
+ "book-user",
323
+ "book-x",
324
+ "bookmark",
325
+ "bookmark-check",
326
+ "bookmark-minus",
327
+ "bookmark-plus",
328
+ "bookmark-x",
329
+ "boom-box",
330
+ "bot",
331
+ "bot-message-square",
332
+ "bot-off",
333
+ "bottle-wine",
334
+ "bow-arrow",
335
+ "box",
336
+ "boxes",
337
+ "braces",
338
+ "brackets",
339
+ "brain",
340
+ "brain-circuit",
341
+ "brain-cog",
342
+ "brick-wall",
343
+ "brick-wall-fire",
344
+ "brick-wall-shield",
345
+ "briefcase",
346
+ "briefcase-business",
347
+ "briefcase-conveyor-belt",
348
+ "briefcase-medical",
349
+ "bring-to-front",
350
+ "brush",
351
+ "brush-cleaning",
352
+ "bubbles",
353
+ "bug",
354
+ "bug-off",
355
+ "bug-play",
356
+ "building",
357
+ "building-2",
358
+ "bus",
359
+ "bus-front",
360
+ "cable",
361
+ "cable-car",
362
+ "cake",
363
+ "cake-slice",
364
+ "calculator",
365
+ "calendar",
366
+ "calendar-1",
367
+ "calendar-arrow-down",
368
+ "calendar-arrow-up",
369
+ "calendar-check",
370
+ "calendar-check-2",
371
+ "calendar-clock",
372
+ "calendar-cog",
373
+ "calendar-days",
374
+ "calendar-fold",
375
+ "calendar-heart",
376
+ "calendar-minus",
377
+ "calendar-minus-2",
378
+ "calendar-off",
379
+ "calendar-plus",
380
+ "calendar-plus-2",
381
+ "calendar-range",
382
+ "calendar-search",
383
+ "calendar-sync",
384
+ "calendar-x",
385
+ "calendar-x-2",
386
+ "calendars",
387
+ "camera",
388
+ "camera-off",
389
+ "candy",
390
+ "candy-cane",
391
+ "candy-off",
392
+ "cannabis",
393
+ "cannabis-off",
394
+ "captions",
395
+ "captions-off",
396
+ "car",
397
+ "car-front",
398
+ "car-taxi-front",
399
+ "caravan",
400
+ "card-sim",
401
+ "carrot",
402
+ "case-lower",
403
+ "case-sensitive",
404
+ "case-upper",
405
+ "cassette-tape",
406
+ "cast",
407
+ "castle",
408
+ "cat",
409
+ "cctv",
410
+ "chart-area",
411
+ "chart-bar",
412
+ "chart-bar-big",
413
+ "chart-bar-decreasing",
414
+ "chart-bar-increasing",
415
+ "chart-bar-stacked",
416
+ "chart-candlestick",
417
+ "chart-column",
418
+ "chart-column-big",
419
+ "chart-column-decreasing",
420
+ "chart-column-increasing",
421
+ "chart-column-stacked",
422
+ "chart-gantt",
423
+ "chart-line",
424
+ "chart-network",
425
+ "chart-no-axes-column",
426
+ "chart-no-axes-column-decreasing",
427
+ "chart-no-axes-column-increasing",
428
+ "chart-no-axes-combined",
429
+ "chart-no-axes-gantt",
430
+ "chart-pie",
431
+ "chart-scatter",
432
+ "chart-spline",
433
+ "check",
434
+ "check-check",
435
+ "check-line",
436
+ "chef-hat",
437
+ "cherry",
438
+ "chess-bishop",
439
+ "chess-king",
440
+ "chess-knight",
441
+ "chess-pawn",
442
+ "chess-queen",
443
+ "chess-rook",
444
+ "chevron-down",
445
+ "chevron-first",
446
+ "chevron-last",
447
+ "chevron-left",
448
+ "chevron-right",
449
+ "chevron-up",
450
+ "chevrons-down",
451
+ "chevrons-down-up",
452
+ "chevrons-left",
453
+ "chevrons-left-right",
454
+ "chevrons-left-right-ellipsis",
455
+ "chevrons-right",
456
+ "chevrons-right-left",
457
+ "chevrons-up",
458
+ "chevrons-up-down",
459
+ "chromium",
460
+ "church",
461
+ "cigarette",
462
+ "cigarette-off",
463
+ "circle",
464
+ "circle-alert",
465
+ "circle-arrow-down",
466
+ "circle-arrow-left",
467
+ "circle-arrow-out-down-left",
468
+ "circle-arrow-out-down-right",
469
+ "circle-arrow-out-up-left",
470
+ "circle-arrow-out-up-right",
471
+ "circle-arrow-right",
472
+ "circle-arrow-up",
473
+ "circle-check",
474
+ "circle-check-big",
475
+ "circle-chevron-down",
476
+ "circle-chevron-left",
477
+ "circle-chevron-right",
478
+ "circle-chevron-up",
479
+ "circle-dashed",
480
+ "circle-divide",
481
+ "circle-dollar-sign",
482
+ "circle-dot",
483
+ "circle-dot-dashed",
484
+ "circle-ellipsis",
485
+ "circle-equal",
486
+ "circle-fading-arrow-up",
487
+ "circle-fading-plus",
488
+ "circle-gauge",
489
+ "circle-help",
490
+ "circle-minus",
491
+ "circle-off",
492
+ "circle-parking",
493
+ "circle-parking-off",
494
+ "circle-pause",
495
+ "circle-percent",
496
+ "circle-pile",
497
+ "circle-play",
498
+ "circle-plus",
499
+ "circle-pound-sterling",
500
+ "circle-power",
501
+ "circle-question-mark",
502
+ "circle-slash",
503
+ "circle-slash-2",
504
+ "circle-small",
505
+ "circle-star",
506
+ "circle-stop",
507
+ "circle-user",
508
+ "circle-user-round",
509
+ "circle-x",
510
+ "circuit-board",
511
+ "citrus",
512
+ "clapperboard",
513
+ "clipboard",
514
+ "clipboard-check",
515
+ "clipboard-clock",
516
+ "clipboard-copy",
517
+ "clipboard-list",
518
+ "clipboard-minus",
519
+ "clipboard-paste",
520
+ "clipboard-pen",
521
+ "clipboard-pen-line",
522
+ "clipboard-plus",
523
+ "clipboard-type",
524
+ "clipboard-x",
525
+ "clock",
526
+ "clock-1",
527
+ "clock-10",
528
+ "clock-11",
529
+ "clock-12",
530
+ "clock-2",
531
+ "clock-3",
532
+ "clock-4",
533
+ "clock-5",
534
+ "clock-6",
535
+ "clock-7",
536
+ "clock-8",
537
+ "clock-9",
538
+ "clock-alert",
539
+ "clock-arrow-down",
540
+ "clock-arrow-up",
541
+ "clock-check",
542
+ "clock-fading",
543
+ "clock-plus",
544
+ "closed-caption",
545
+ "cloud",
546
+ "cloud-alert",
547
+ "cloud-backup",
548
+ "cloud-check",
549
+ "cloud-cog",
550
+ "cloud-download",
551
+ "cloud-drizzle",
552
+ "cloud-fog",
553
+ "cloud-hail",
554
+ "cloud-lightning",
555
+ "cloud-moon",
556
+ "cloud-moon-rain",
557
+ "cloud-off",
558
+ "cloud-rain",
559
+ "cloud-rain-wind",
560
+ "cloud-snow",
561
+ "cloud-sun",
562
+ "cloud-sun-rain",
563
+ "cloud-sync",
564
+ "cloud-upload",
565
+ "cloudy",
566
+ "clover",
567
+ "club",
568
+ "code",
569
+ "code-xml",
570
+ "codepen",
571
+ "codesandbox",
572
+ "coffee",
573
+ "cog",
574
+ "coins",
575
+ "columns-2",
576
+ "columns-3",
577
+ "columns-3-cog",
578
+ "columns-4",
579
+ "combine",
580
+ "command",
581
+ "compass",
582
+ "component",
583
+ "computer",
584
+ "concierge-bell",
585
+ "cone",
586
+ "construction",
587
+ "contact",
588
+ "contact-round",
589
+ "container",
590
+ "contrast",
591
+ "cookie",
592
+ "cooking-pot",
593
+ "copy",
594
+ "copy-check",
595
+ "copy-minus",
596
+ "copy-plus",
597
+ "copy-slash",
598
+ "copy-x",
599
+ "copyleft",
600
+ "copyright",
601
+ "corner-down-left",
602
+ "corner-down-right",
603
+ "corner-left-down",
604
+ "corner-left-up",
605
+ "corner-right-down",
606
+ "corner-right-up",
607
+ "corner-up-left",
608
+ "corner-up-right",
609
+ "cpu",
610
+ "creative-commons",
611
+ "credit-card",
612
+ "croissant",
613
+ "crop",
614
+ "cross",
615
+ "crosshair",
616
+ "crown",
617
+ "cuboid",
618
+ "cup-soda",
619
+ "currency",
620
+ "cylinder",
621
+ "dam",
622
+ "database",
623
+ "database-backup",
624
+ "database-zap",
625
+ "decimals-arrow-left",
626
+ "decimals-arrow-right",
627
+ "delete",
628
+ "dessert",
629
+ "diameter",
630
+ "diamond",
631
+ "diamond-minus",
632
+ "diamond-percent",
633
+ "diamond-plus",
634
+ "dice-1",
635
+ "dice-2",
636
+ "dice-3",
637
+ "dice-4",
638
+ "dice-5",
639
+ "dice-6",
640
+ "dices",
641
+ "diff",
642
+ "disc",
643
+ "disc-2",
644
+ "disc-3",
645
+ "disc-album",
646
+ "divide",
647
+ "dna",
648
+ "dna-off",
649
+ "dock",
650
+ "dog",
651
+ "dollar-sign",
652
+ "donut",
653
+ "door-closed",
654
+ "door-closed-locked",
655
+ "door-open",
656
+ "dot",
657
+ "download",
658
+ "drafting-compass",
659
+ "drama",
660
+ "dribbble",
661
+ "drill",
662
+ "drone",
663
+ "droplet",
664
+ "droplet-off",
665
+ "droplets",
666
+ "drum",
667
+ "drumstick",
668
+ "dumbbell",
669
+ "ear",
670
+ "ear-off",
671
+ "earth",
672
+ "earth-lock",
673
+ "eclipse",
674
+ "egg",
675
+ "egg-fried",
676
+ "egg-off",
677
+ "ellipsis",
678
+ "ellipsis-vertical",
679
+ "equal",
680
+ "equal-approximately",
681
+ "equal-not",
682
+ "eraser",
683
+ "ethernet-port",
684
+ "euro",
685
+ "ev-charger",
686
+ "expand",
687
+ "external-link",
688
+ "eye",
689
+ "eye-closed",
690
+ "eye-off",
691
+ "facebook",
692
+ "factory",
693
+ "fan",
694
+ "fast-forward",
695
+ "feather",
696
+ "fence",
697
+ "ferris-wheel",
698
+ "figma",
699
+ "file",
700
+ "file-archive",
701
+ "file-axis-3d",
702
+ "file-badge",
703
+ "file-box",
704
+ "file-braces",
705
+ "file-braces-corner",
706
+ "file-chart-column",
707
+ "file-chart-column-increasing",
708
+ "file-chart-line",
709
+ "file-chart-pie",
710
+ "file-check",
711
+ "file-check-corner",
712
+ "file-clock",
713
+ "file-code",
714
+ "file-code-corner",
715
+ "file-cog",
716
+ "file-diff",
717
+ "file-digit",
718
+ "file-down",
719
+ "file-exclamation-point",
720
+ "file-headphone",
721
+ "file-heart",
722
+ "file-image",
723
+ "file-input",
724
+ "file-key",
725
+ "file-lock",
726
+ "file-minus",
727
+ "file-minus-corner",
728
+ "file-music",
729
+ "file-output",
730
+ "file-pen",
731
+ "file-pen-line",
732
+ "file-play",
733
+ "file-plus",
734
+ "file-plus-corner",
735
+ "file-question-mark",
736
+ "file-scan",
737
+ "file-search",
738
+ "file-search-corner",
739
+ "file-signal",
740
+ "file-sliders",
741
+ "file-spreadsheet",
742
+ "file-stack",
743
+ "file-symlink",
744
+ "file-terminal",
745
+ "file-text",
746
+ "file-type",
747
+ "file-type-corner",
748
+ "file-up",
749
+ "file-user",
750
+ "file-video-camera",
751
+ "file-volume",
752
+ "file-x",
753
+ "file-x-corner",
754
+ "files",
755
+ "film",
756
+ "fingerprint-pattern",
757
+ "fire-extinguisher",
758
+ "fish",
759
+ "fish-off",
760
+ "fish-symbol",
761
+ "fishing-hook",
762
+ "flag",
763
+ "flag-off",
764
+ "flag-triangle-left",
765
+ "flag-triangle-right",
766
+ "flame",
767
+ "flame-kindling",
768
+ "flashlight",
769
+ "flashlight-off",
770
+ "flask-conical",
771
+ "flask-conical-off",
772
+ "flask-round",
773
+ "flip-horizontal",
774
+ "flip-horizontal-2",
775
+ "flip-vertical",
776
+ "flip-vertical-2",
777
+ "flower",
778
+ "flower-2",
779
+ "focus",
780
+ "fold-horizontal",
781
+ "fold-vertical",
782
+ "folder",
783
+ "folder-archive",
784
+ "folder-check",
785
+ "folder-clock",
786
+ "folder-closed",
787
+ "folder-code",
788
+ "folder-cog",
789
+ "folder-dot",
790
+ "folder-down",
791
+ "folder-git",
792
+ "folder-git-2",
793
+ "folder-heart",
794
+ "folder-input",
795
+ "folder-kanban",
796
+ "folder-key",
797
+ "folder-lock",
798
+ "folder-minus",
799
+ "folder-open",
800
+ "folder-open-dot",
801
+ "folder-output",
802
+ "folder-pen",
803
+ "folder-plus",
804
+ "folder-root",
805
+ "folder-search",
806
+ "folder-search-2",
807
+ "folder-symlink",
808
+ "folder-sync",
809
+ "folder-tree",
810
+ "folder-up",
811
+ "folder-x",
812
+ "folders",
813
+ "footprints",
814
+ "forklift",
815
+ "form",
816
+ "forward",
817
+ "frame",
818
+ "framer",
819
+ "frown",
820
+ "fuel",
821
+ "fullscreen",
822
+ "funnel",
823
+ "funnel-plus",
824
+ "funnel-x",
825
+ "gallery-horizontal",
826
+ "gallery-horizontal-end",
827
+ "gallery-thumbnails",
828
+ "gallery-vertical",
829
+ "gallery-vertical-end",
830
+ "gamepad",
831
+ "gamepad-2",
832
+ "gamepad-directional",
833
+ "gauge",
834
+ "gavel",
835
+ "gem",
836
+ "georgian-lari",
837
+ "ghost",
838
+ "gift",
839
+ "git-branch",
840
+ "git-branch-minus",
841
+ "git-branch-plus",
842
+ "git-commit-horizontal",
843
+ "git-commit-vertical",
844
+ "git-compare",
845
+ "git-compare-arrows",
846
+ "git-fork",
847
+ "git-graph",
848
+ "git-merge",
849
+ "git-pull-request",
850
+ "git-pull-request-arrow",
851
+ "git-pull-request-closed",
852
+ "git-pull-request-create",
853
+ "git-pull-request-create-arrow",
854
+ "git-pull-request-draft",
855
+ "github",
856
+ "gitlab",
857
+ "glass-water",
858
+ "glasses",
859
+ "globe",
860
+ "globe-lock",
861
+ "goal",
862
+ "gpu",
863
+ "graduation-cap",
864
+ "grape",
865
+ "grid-2x2",
866
+ "grid-2x2-check",
867
+ "grid-2x2-plus",
868
+ "grid-2x2-x",
869
+ "grid-3x2",
870
+ "grid-3x3",
871
+ "grip",
872
+ "grip-horizontal",
873
+ "grip-vertical",
874
+ "group",
875
+ "guitar",
876
+ "ham",
877
+ "hamburger",
878
+ "hammer",
879
+ "hand",
880
+ "hand-coins",
881
+ "hand-fist",
882
+ "hand-grab",
883
+ "hand-heart",
884
+ "hand-helping",
885
+ "hand-metal",
886
+ "hand-platter",
887
+ "handbag",
888
+ "handshake",
889
+ "hard-drive",
890
+ "hard-drive-download",
891
+ "hard-drive-upload",
892
+ "hard-hat",
893
+ "hash",
894
+ "hat-glasses",
895
+ "haze",
896
+ "hd",
897
+ "hdmi-port",
898
+ "heading",
899
+ "heading-1",
900
+ "heading-2",
901
+ "heading-3",
902
+ "heading-4",
903
+ "heading-5",
904
+ "heading-6",
905
+ "headphone-off",
906
+ "headphones",
907
+ "headset",
908
+ "heart",
909
+ "heart-crack",
910
+ "heart-handshake",
911
+ "heart-minus",
912
+ "heart-off",
913
+ "heart-plus",
914
+ "heart-pulse",
915
+ "heater",
916
+ "helicopter",
917
+ "hexagon",
918
+ "highlighter",
919
+ "history",
920
+ "hop",
921
+ "hop-off",
922
+ "hospital",
923
+ "hotel",
924
+ "hourglass",
925
+ "house",
926
+ "house-heart",
927
+ "house-plug",
928
+ "house-plus",
929
+ "house-wifi",
930
+ "ice-cream-bowl",
931
+ "ice-cream-cone",
932
+ "id-card",
933
+ "id-card-lanyard",
934
+ "image",
935
+ "image-down",
936
+ "image-minus",
937
+ "image-off",
938
+ "image-play",
939
+ "image-plus",
940
+ "image-up",
941
+ "image-upscale",
942
+ "images",
943
+ "import",
944
+ "inbox",
945
+ "indian-rupee",
946
+ "infinity",
947
+ "info",
948
+ "inspection-panel",
949
+ "instagram",
950
+ "italic",
951
+ "iteration-ccw",
952
+ "iteration-cw",
953
+ "japanese-yen",
954
+ "joystick",
955
+ "kanban",
956
+ "kayak",
957
+ "key",
958
+ "key-round",
959
+ "key-square",
960
+ "keyboard",
961
+ "keyboard-music",
962
+ "keyboard-off",
963
+ "lamp",
964
+ "lamp-ceiling",
965
+ "lamp-desk",
966
+ "lamp-floor",
967
+ "lamp-wall-down",
968
+ "lamp-wall-up",
969
+ "land-plot",
970
+ "landmark",
971
+ "languages",
972
+ "laptop",
973
+ "laptop-minimal",
974
+ "laptop-minimal-check",
975
+ "lasso",
976
+ "lasso-select",
977
+ "laugh",
978
+ "layers",
979
+ "layers-2",
980
+ "layers-plus",
981
+ "layout-dashboard",
982
+ "layout-grid",
983
+ "layout-list",
984
+ "layout-panel-left",
985
+ "layout-panel-top",
986
+ "layout-template",
987
+ "leaf",
988
+ "leafy-green",
989
+ "lectern",
990
+ "library",
991
+ "library-big",
992
+ "life-buoy",
993
+ "ligature",
994
+ "lightbulb",
995
+ "lightbulb-off",
996
+ "line-squiggle",
997
+ "link",
998
+ "link-2",
999
+ "link-2-off",
1000
+ "linkedin",
1001
+ "list",
1002
+ "list-check",
1003
+ "list-checks",
1004
+ "list-chevrons-down-up",
1005
+ "list-chevrons-up-down",
1006
+ "list-collapse",
1007
+ "list-end",
1008
+ "list-filter",
1009
+ "list-filter-plus",
1010
+ "list-indent-decrease",
1011
+ "list-indent-increase",
1012
+ "list-minus",
1013
+ "list-music",
1014
+ "list-ordered",
1015
+ "list-plus",
1016
+ "list-restart",
1017
+ "list-start",
1018
+ "list-todo",
1019
+ "list-tree",
1020
+ "list-video",
1021
+ "list-x",
1022
+ "loader",
1023
+ "loader-circle",
1024
+ "loader-pinwheel",
1025
+ "locate",
1026
+ "locate-fixed",
1027
+ "locate-off",
1028
+ "lock",
1029
+ "lock-keyhole",
1030
+ "lock-keyhole-open",
1031
+ "lock-open",
1032
+ "log-in",
1033
+ "log-out",
1034
+ "logs",
1035
+ "lollipop",
1036
+ "luggage",
1037
+ "magnet",
1038
+ "mail",
1039
+ "mail-check",
1040
+ "mail-minus",
1041
+ "mail-open",
1042
+ "mail-plus",
1043
+ "mail-question-mark",
1044
+ "mail-search",
1045
+ "mail-warning",
1046
+ "mail-x",
1047
+ "mailbox",
1048
+ "mails",
1049
+ "map",
1050
+ "map-minus",
1051
+ "map-pin",
1052
+ "map-pin-check",
1053
+ "map-pin-check-inside",
1054
+ "map-pin-house",
1055
+ "map-pin-minus",
1056
+ "map-pin-minus-inside",
1057
+ "map-pin-off",
1058
+ "map-pin-pen",
1059
+ "map-pin-plus",
1060
+ "map-pin-plus-inside",
1061
+ "map-pin-x",
1062
+ "map-pin-x-inside",
1063
+ "map-pinned",
1064
+ "map-plus",
1065
+ "mars",
1066
+ "mars-stroke",
1067
+ "martini",
1068
+ "maximize",
1069
+ "maximize-2",
1070
+ "medal",
1071
+ "megaphone",
1072
+ "megaphone-off",
1073
+ "meh",
1074
+ "memory-stick",
1075
+ "menu",
1076
+ "merge",
1077
+ "message-circle",
1078
+ "message-circle-code",
1079
+ "message-circle-dashed",
1080
+ "message-circle-heart",
1081
+ "message-circle-more",
1082
+ "message-circle-off",
1083
+ "message-circle-plus",
1084
+ "message-circle-question-mark",
1085
+ "message-circle-reply",
1086
+ "message-circle-warning",
1087
+ "message-circle-x",
1088
+ "message-square",
1089
+ "message-square-code",
1090
+ "message-square-dashed",
1091
+ "message-square-diff",
1092
+ "message-square-dot",
1093
+ "message-square-heart",
1094
+ "message-square-lock",
1095
+ "message-square-more",
1096
+ "message-square-off",
1097
+ "message-square-plus",
1098
+ "message-square-quote",
1099
+ "message-square-reply",
1100
+ "message-square-share",
1101
+ "message-square-text",
1102
+ "message-square-warning",
1103
+ "message-square-x",
1104
+ "messages-square",
1105
+ "mic",
1106
+ "mic-off",
1107
+ "mic-vocal",
1108
+ "microchip",
1109
+ "microscope",
1110
+ "microwave",
1111
+ "milestone",
1112
+ "milk",
1113
+ "milk-off",
1114
+ "minimize",
1115
+ "minimize-2",
1116
+ "minus",
1117
+ "monitor",
1118
+ "monitor-check",
1119
+ "monitor-cloud",
1120
+ "monitor-cog",
1121
+ "monitor-dot",
1122
+ "monitor-down",
1123
+ "monitor-off",
1124
+ "monitor-pause",
1125
+ "monitor-play",
1126
+ "monitor-smartphone",
1127
+ "monitor-speaker",
1128
+ "monitor-stop",
1129
+ "monitor-up",
1130
+ "monitor-x",
1131
+ "moon",
1132
+ "moon-star",
1133
+ "motorbike",
1134
+ "mountain",
1135
+ "mountain-snow",
1136
+ "mouse",
1137
+ "mouse-off",
1138
+ "mouse-pointer",
1139
+ "mouse-pointer-2",
1140
+ "mouse-pointer-2-off",
1141
+ "mouse-pointer-ban",
1142
+ "mouse-pointer-click",
1143
+ "move",
1144
+ "move-3d",
1145
+ "move-diagonal",
1146
+ "move-diagonal-2",
1147
+ "move-down",
1148
+ "move-down-left",
1149
+ "move-down-right",
1150
+ "move-horizontal",
1151
+ "move-left",
1152
+ "move-right",
1153
+ "move-up",
1154
+ "move-up-left",
1155
+ "move-up-right",
1156
+ "move-vertical",
1157
+ "music",
1158
+ "music-2",
1159
+ "music-3",
1160
+ "music-4",
1161
+ "navigation",
1162
+ "navigation-2",
1163
+ "navigation-2-off",
1164
+ "navigation-off",
1165
+ "network",
1166
+ "newspaper",
1167
+ "nfc",
1168
+ "non-binary",
1169
+ "notebook",
1170
+ "notebook-pen",
1171
+ "notebook-tabs",
1172
+ "notebook-text",
1173
+ "notepad-text",
1174
+ "notepad-text-dashed",
1175
+ "nut",
1176
+ "nut-off",
1177
+ "octagon",
1178
+ "octagon-alert",
1179
+ "octagon-minus",
1180
+ "octagon-pause",
1181
+ "octagon-x",
1182
+ "omega",
1183
+ "option",
1184
+ "orbit",
1185
+ "origami",
1186
+ "package",
1187
+ "package-2",
1188
+ "package-check",
1189
+ "package-minus",
1190
+ "package-open",
1191
+ "package-plus",
1192
+ "package-search",
1193
+ "package-x",
1194
+ "paint-bucket",
1195
+ "paint-roller",
1196
+ "paintbrush",
1197
+ "paintbrush-vertical",
1198
+ "palette",
1199
+ "panda",
1200
+ "panel-bottom",
1201
+ "panel-bottom-close",
1202
+ "panel-bottom-dashed",
1203
+ "panel-bottom-open",
1204
+ "panel-left",
1205
+ "panel-left-close",
1206
+ "panel-left-dashed",
1207
+ "panel-left-open",
1208
+ "panel-left-right-dashed",
1209
+ "panel-right",
1210
+ "panel-right-close",
1211
+ "panel-right-dashed",
1212
+ "panel-right-open",
1213
+ "panel-top",
1214
+ "panel-top-bottom-dashed",
1215
+ "panel-top-close",
1216
+ "panel-top-dashed",
1217
+ "panel-top-open",
1218
+ "panels-left-bottom",
1219
+ "panels-right-bottom",
1220
+ "panels-top-left",
1221
+ "paperclip",
1222
+ "parentheses",
1223
+ "parking-meter",
1224
+ "party-popper",
1225
+ "pause",
1226
+ "paw-print",
1227
+ "pc-case",
1228
+ "pen",
1229
+ "pen-line",
1230
+ "pen-off",
1231
+ "pen-tool",
1232
+ "pencil",
1233
+ "pencil-line",
1234
+ "pencil-off",
1235
+ "pencil-ruler",
1236
+ "pentagon",
1237
+ "percent",
1238
+ "person-standing",
1239
+ "philippine-peso",
1240
+ "phone",
1241
+ "phone-call",
1242
+ "phone-forwarded",
1243
+ "phone-incoming",
1244
+ "phone-missed",
1245
+ "phone-off",
1246
+ "phone-outgoing",
1247
+ "pi",
1248
+ "piano",
1249
+ "pickaxe",
1250
+ "picture-in-picture",
1251
+ "picture-in-picture-2",
1252
+ "piggy-bank",
1253
+ "pilcrow",
1254
+ "pilcrow-left",
1255
+ "pilcrow-right",
1256
+ "pill",
1257
+ "pill-bottle",
1258
+ "pin",
1259
+ "pin-off",
1260
+ "pipette",
1261
+ "pizza",
1262
+ "plane",
1263
+ "plane-landing",
1264
+ "plane-takeoff",
1265
+ "play",
1266
+ "plug",
1267
+ "plug-2",
1268
+ "plug-zap",
1269
+ "plus",
1270
+ "pocket",
1271
+ "pocket-knife",
1272
+ "podcast",
1273
+ "pointer",
1274
+ "pointer-off",
1275
+ "popcorn",
1276
+ "popsicle",
1277
+ "pound-sterling",
1278
+ "power",
1279
+ "power-off",
1280
+ "presentation",
1281
+ "printer",
1282
+ "printer-check",
1283
+ "projector",
1284
+ "proportions",
1285
+ "puzzle",
1286
+ "pyramid",
1287
+ "qr-code",
1288
+ "quote",
1289
+ "rabbit",
1290
+ "radar",
1291
+ "radiation",
1292
+ "radical",
1293
+ "radio",
1294
+ "radio-receiver",
1295
+ "radio-tower",
1296
+ "radius",
1297
+ "rail-symbol",
1298
+ "rainbow",
1299
+ "rat",
1300
+ "ratio",
1301
+ "receipt",
1302
+ "receipt-cent",
1303
+ "receipt-euro",
1304
+ "receipt-indian-rupee",
1305
+ "receipt-japanese-yen",
1306
+ "receipt-pound-sterling",
1307
+ "receipt-russian-ruble",
1308
+ "receipt-swiss-franc",
1309
+ "receipt-text",
1310
+ "receipt-turkish-lira",
1311
+ "rectangle-circle",
1312
+ "rectangle-ellipsis",
1313
+ "rectangle-goggles",
1314
+ "rectangle-horizontal",
1315
+ "rectangle-vertical",
1316
+ "recycle",
1317
+ "redo",
1318
+ "redo-2",
1319
+ "redo-dot",
1320
+ "refresh-ccw",
1321
+ "refresh-ccw-dot",
1322
+ "refresh-cw",
1323
+ "refresh-cw-off",
1324
+ "refrigerator",
1325
+ "regex",
1326
+ "remove-formatting",
1327
+ "repeat",
1328
+ "repeat-1",
1329
+ "repeat-2",
1330
+ "replace",
1331
+ "replace-all",
1332
+ "reply",
1333
+ "reply-all",
1334
+ "rewind",
1335
+ "ribbon",
1336
+ "rocket",
1337
+ "rocking-chair",
1338
+ "roller-coaster",
1339
+ "rose",
1340
+ "rotate-3d",
1341
+ "rotate-ccw",
1342
+ "rotate-ccw-key",
1343
+ "rotate-ccw-square",
1344
+ "rotate-cw",
1345
+ "rotate-cw-square",
1346
+ "route",
1347
+ "route-off",
1348
+ "router",
1349
+ "rows-2",
1350
+ "rows-3",
1351
+ "rows-4",
1352
+ "rss",
1353
+ "ruler",
1354
+ "ruler-dimension-line",
1355
+ "russian-ruble",
1356
+ "sailboat",
1357
+ "salad",
1358
+ "sandwich",
1359
+ "satellite",
1360
+ "satellite-dish",
1361
+ "saudi-riyal",
1362
+ "save",
1363
+ "save-all",
1364
+ "save-off",
1365
+ "scale",
1366
+ "scale-3d",
1367
+ "scaling",
1368
+ "scan",
1369
+ "scan-barcode",
1370
+ "scan-eye",
1371
+ "scan-face",
1372
+ "scan-heart",
1373
+ "scan-line",
1374
+ "scan-qr-code",
1375
+ "scan-search",
1376
+ "scan-text",
1377
+ "school",
1378
+ "scissors",
1379
+ "scissors-line-dashed",
1380
+ "scooter",
1381
+ "screen-share",
1382
+ "screen-share-off",
1383
+ "scroll",
1384
+ "scroll-text",
1385
+ "search",
1386
+ "search-alert",
1387
+ "search-check",
1388
+ "search-code",
1389
+ "search-slash",
1390
+ "search-x",
1391
+ "section",
1392
+ "send",
1393
+ "send-horizontal",
1394
+ "send-to-back",
1395
+ "separator-horizontal",
1396
+ "separator-vertical",
1397
+ "server",
1398
+ "server-cog",
1399
+ "server-crash",
1400
+ "server-off",
1401
+ "settings",
1402
+ "settings-2",
1403
+ "shapes",
1404
+ "share",
1405
+ "share-2",
1406
+ "sheet",
1407
+ "shell",
1408
+ "shield",
1409
+ "shield-alert",
1410
+ "shield-ban",
1411
+ "shield-check",
1412
+ "shield-ellipsis",
1413
+ "shield-half",
1414
+ "shield-minus",
1415
+ "shield-off",
1416
+ "shield-plus",
1417
+ "shield-question-mark",
1418
+ "shield-user",
1419
+ "shield-x",
1420
+ "ship",
1421
+ "ship-wheel",
1422
+ "shirt",
1423
+ "shopping-bag",
1424
+ "shopping-basket",
1425
+ "shopping-cart",
1426
+ "shovel",
1427
+ "shower-head",
1428
+ "shredder",
1429
+ "shrimp",
1430
+ "shrink",
1431
+ "shrub",
1432
+ "shuffle",
1433
+ "sigma",
1434
+ "signal",
1435
+ "signal-high",
1436
+ "signal-low",
1437
+ "signal-medium",
1438
+ "signal-zero",
1439
+ "signature",
1440
+ "signpost",
1441
+ "signpost-big",
1442
+ "siren",
1443
+ "skip-back",
1444
+ "skip-forward",
1445
+ "skull",
1446
+ "slack",
1447
+ "slash",
1448
+ "slice",
1449
+ "sliders-horizontal",
1450
+ "sliders-vertical",
1451
+ "smartphone",
1452
+ "smartphone-charging",
1453
+ "smartphone-nfc",
1454
+ "smile",
1455
+ "smile-plus",
1456
+ "snail",
1457
+ "snowflake",
1458
+ "soap-dispenser-droplet",
1459
+ "sofa",
1460
+ "solar-panel",
1461
+ "soup",
1462
+ "space",
1463
+ "spade",
1464
+ "sparkle",
1465
+ "sparkles",
1466
+ "speaker",
1467
+ "speech",
1468
+ "spell-check",
1469
+ "spell-check-2",
1470
+ "spline",
1471
+ "spline-pointer",
1472
+ "split",
1473
+ "spool",
1474
+ "spotlight",
1475
+ "spray-can",
1476
+ "sprout",
1477
+ "square",
1478
+ "square-activity",
1479
+ "square-arrow-down",
1480
+ "square-arrow-down-left",
1481
+ "square-arrow-down-right",
1482
+ "square-arrow-left",
1483
+ "square-arrow-out-down-left",
1484
+ "square-arrow-out-down-right",
1485
+ "square-arrow-out-up-left",
1486
+ "square-arrow-out-up-right",
1487
+ "square-arrow-right",
1488
+ "square-arrow-up",
1489
+ "square-arrow-up-left",
1490
+ "square-arrow-up-right",
1491
+ "square-asterisk",
1492
+ "square-bottom-dashed-scissors",
1493
+ "square-chart-gantt",
1494
+ "square-check",
1495
+ "square-check-big",
1496
+ "square-chevron-down",
1497
+ "square-chevron-left",
1498
+ "square-chevron-right",
1499
+ "square-chevron-up",
1500
+ "square-code",
1501
+ "square-dashed",
1502
+ "square-dashed-bottom",
1503
+ "square-dashed-bottom-code",
1504
+ "square-dashed-kanban",
1505
+ "square-dashed-mouse-pointer",
1506
+ "square-dashed-top-solid",
1507
+ "square-divide",
1508
+ "square-dot",
1509
+ "square-equal",
1510
+ "square-function",
1511
+ "square-kanban",
1512
+ "square-library",
1513
+ "square-m",
1514
+ "square-menu",
1515
+ "square-minus",
1516
+ "square-mouse-pointer",
1517
+ "square-parking",
1518
+ "square-parking-off",
1519
+ "square-pause",
1520
+ "square-pen",
1521
+ "square-percent",
1522
+ "square-pi",
1523
+ "square-pilcrow",
1524
+ "square-play",
1525
+ "square-plus",
1526
+ "square-power",
1527
+ "square-radical",
1528
+ "square-round-corner",
1529
+ "square-scissors",
1530
+ "square-sigma",
1531
+ "square-slash",
1532
+ "square-split-horizontal",
1533
+ "square-split-vertical",
1534
+ "square-square",
1535
+ "square-stack",
1536
+ "square-star",
1537
+ "square-stop",
1538
+ "square-terminal",
1539
+ "square-user",
1540
+ "square-user-round",
1541
+ "square-x",
1542
+ "squares-exclude",
1543
+ "squares-intersect",
1544
+ "squares-subtract",
1545
+ "squares-unite",
1546
+ "squircle",
1547
+ "squircle-dashed",
1548
+ "squirrel",
1549
+ "stamp",
1550
+ "star",
1551
+ "star-half",
1552
+ "star-off",
1553
+ "step-back",
1554
+ "step-forward",
1555
+ "stethoscope",
1556
+ "sticker",
1557
+ "sticky-note",
1558
+ "stone",
1559
+ "store",
1560
+ "stretch-horizontal",
1561
+ "stretch-vertical",
1562
+ "strikethrough",
1563
+ "subscript",
1564
+ "sun",
1565
+ "sun-dim",
1566
+ "sun-medium",
1567
+ "sun-moon",
1568
+ "sun-snow",
1569
+ "sunrise",
1570
+ "sunset",
1571
+ "superscript",
1572
+ "swatch-book",
1573
+ "swiss-franc",
1574
+ "switch-camera",
1575
+ "sword",
1576
+ "swords",
1577
+ "syringe",
1578
+ "table",
1579
+ "table-2",
1580
+ "table-cells-merge",
1581
+ "table-cells-split",
1582
+ "table-columns-split",
1583
+ "table-of-contents",
1584
+ "table-properties",
1585
+ "table-rows-split",
1586
+ "tablet",
1587
+ "tablet-smartphone",
1588
+ "tablets",
1589
+ "tag",
1590
+ "tags",
1591
+ "tally-1",
1592
+ "tally-2",
1593
+ "tally-3",
1594
+ "tally-4",
1595
+ "tally-5",
1596
+ "tangent",
1597
+ "target",
1598
+ "telescope",
1599
+ "tent",
1600
+ "tent-tree",
1601
+ "terminal",
1602
+ "test-tube",
1603
+ "test-tube-diagonal",
1604
+ "test-tubes",
1605
+ "text-align-center",
1606
+ "text-align-end",
1607
+ "text-align-justify",
1608
+ "text-align-start",
1609
+ "text-cursor",
1610
+ "text-cursor-input",
1611
+ "text-initial",
1612
+ "text-quote",
1613
+ "text-search",
1614
+ "text-select",
1615
+ "text-wrap",
1616
+ "theater",
1617
+ "thermometer",
1618
+ "thermometer-snowflake",
1619
+ "thermometer-sun",
1620
+ "thumbs-down",
1621
+ "thumbs-up",
1622
+ "ticket",
1623
+ "ticket-check",
1624
+ "ticket-minus",
1625
+ "ticket-percent",
1626
+ "ticket-plus",
1627
+ "ticket-slash",
1628
+ "ticket-x",
1629
+ "tickets",
1630
+ "tickets-plane",
1631
+ "timer",
1632
+ "timer-off",
1633
+ "timer-reset",
1634
+ "toggle-left",
1635
+ "toggle-right",
1636
+ "toilet",
1637
+ "tool-case",
1638
+ "toolbox",
1639
+ "tornado",
1640
+ "torus",
1641
+ "touchpad",
1642
+ "touchpad-off",
1643
+ "tower-control",
1644
+ "toy-brick",
1645
+ "tractor",
1646
+ "traffic-cone",
1647
+ "train-front",
1648
+ "train-front-tunnel",
1649
+ "train-track",
1650
+ "tram-front",
1651
+ "transgender",
1652
+ "trash",
1653
+ "trash-2",
1654
+ "tree-deciduous",
1655
+ "tree-palm",
1656
+ "tree-pine",
1657
+ "trees",
1658
+ "trello",
1659
+ "trending-down",
1660
+ "trending-up",
1661
+ "trending-up-down",
1662
+ "triangle",
1663
+ "triangle-alert",
1664
+ "triangle-dashed",
1665
+ "triangle-right",
1666
+ "trophy",
1667
+ "truck",
1668
+ "truck-electric",
1669
+ "turkish-lira",
1670
+ "turntable",
1671
+ "turtle",
1672
+ "tv",
1673
+ "tv-minimal",
1674
+ "tv-minimal-play",
1675
+ "twitch",
1676
+ "twitter",
1677
+ "type",
1678
+ "type-outline",
1679
+ "umbrella",
1680
+ "umbrella-off",
1681
+ "underline",
1682
+ "undo",
1683
+ "undo-2",
1684
+ "undo-dot",
1685
+ "unfold-horizontal",
1686
+ "unfold-vertical",
1687
+ "ungroup",
1688
+ "university",
1689
+ "unlink",
1690
+ "unlink-2",
1691
+ "unplug",
1692
+ "upload",
1693
+ "usb",
1694
+ "user",
1695
+ "user-check",
1696
+ "user-cog",
1697
+ "user-lock",
1698
+ "user-minus",
1699
+ "user-pen",
1700
+ "user-plus",
1701
+ "user-round",
1702
+ "user-round-check",
1703
+ "user-round-cog",
1704
+ "user-round-minus",
1705
+ "user-round-pen",
1706
+ "user-round-plus",
1707
+ "user-round-search",
1708
+ "user-round-x",
1709
+ "user-search",
1710
+ "user-star",
1711
+ "user-x",
1712
+ "users",
1713
+ "users-round",
1714
+ "utensils",
1715
+ "utensils-crossed",
1716
+ "utility-pole",
1717
+ "van",
1718
+ "variable",
1719
+ "vault",
1720
+ "vector-square",
1721
+ "vegan",
1722
+ "venetian-mask",
1723
+ "venus",
1724
+ "venus-and-mars",
1725
+ "vibrate",
1726
+ "vibrate-off",
1727
+ "video",
1728
+ "video-off",
1729
+ "videotape",
1730
+ "view",
1731
+ "voicemail",
1732
+ "volleyball",
1733
+ "volume",
1734
+ "volume-1",
1735
+ "volume-2",
1736
+ "volume-off",
1737
+ "volume-x",
1738
+ "vote",
1739
+ "wallet",
1740
+ "wallet-cards",
1741
+ "wallet-minimal",
1742
+ "wallpaper",
1743
+ "wand",
1744
+ "wand-sparkles",
1745
+ "warehouse",
1746
+ "washing-machine",
1747
+ "watch",
1748
+ "waves",
1749
+ "waves-arrow-down",
1750
+ "waves-arrow-up",
1751
+ "waves-ladder",
1752
+ "waypoints",
1753
+ "webcam",
1754
+ "webhook",
1755
+ "webhook-off",
1756
+ "weight",
1757
+ "weight-tilde",
1758
+ "wheat",
1759
+ "wheat-off",
1760
+ "whole-word",
1761
+ "wifi",
1762
+ "wifi-cog",
1763
+ "wifi-high",
1764
+ "wifi-low",
1765
+ "wifi-off",
1766
+ "wifi-pen",
1767
+ "wifi-sync",
1768
+ "wifi-zero",
1769
+ "wind",
1770
+ "wind-arrow-down",
1771
+ "wine",
1772
+ "wine-off",
1773
+ "workflow",
1774
+ "worm",
1775
+ "wrench",
1776
+ "x",
1777
+ "youtube",
1778
+ "zap",
1779
+ "zap-off",
1780
+ "zoom-in",
1781
+ "zoom-out"
1782
+ ];
1783
+
1784
+ // src/viewport/presets.ts
1785
+ exports.DEVICE_PRESETS = {
1786
+ // Desktop
1787
+ "desktop-sm": { width: 1280, height: 800, label: "Small Laptop", category: "desktop" },
1788
+ desktop: { width: 1440, height: 900, label: "Desktop", category: "desktop" },
1789
+ "desktop-lg": { width: 1920, height: 1080, label: "Full HD", category: "desktop" },
1790
+ "desktop-xl": { width: 2560, height: 1440, label: "QHD", category: "desktop" },
1791
+ // Tablet
1792
+ ipad: { width: 1024, height: 768, label: "iPad (Landscape)", category: "tablet" },
1793
+ "ipad-portrait": { width: 768, height: 1024, label: "iPad (Portrait)", category: "tablet" },
1794
+ "ipad-pro": { width: 1366, height: 1024, label: 'iPad Pro 12.9"', category: "tablet" },
1795
+ "ipad-pro-portrait": {
1796
+ width: 1024,
1797
+ height: 1366,
1798
+ label: 'iPad Pro 12.9" (Portrait)',
1799
+ category: "tablet"
1800
+ },
1801
+ // Mobile
1802
+ "iphone-se": { width: 375, height: 667, label: "iPhone SE", category: "mobile" },
1803
+ iphone14: { width: 390, height: 844, label: "iPhone 14", category: "mobile" },
1804
+ "iphone14-pro": { width: 393, height: 852, label: "iPhone 14 Pro", category: "mobile" },
1805
+ "iphone14-pro-max": { width: 430, height: 932, label: "iPhone 14 Pro Max", category: "mobile" },
1806
+ android: { width: 360, height: 800, label: "Android", category: "mobile" },
1807
+ "android-lg": { width: 412, height: 915, label: "Android Large", category: "mobile" }
1808
+ };
1809
+ exports.DEFAULT_VIEWPORT = exports.DEVICE_PRESETS["desktop"];
1810
+ function parseViewportString(value) {
1811
+ if (typeof value === "number") {
1812
+ return { width: value };
1813
+ }
1814
+ const match = value.match(/^(\d+)(?:x(\d+))?$/);
1815
+ if (!match) return null;
1816
+ const width = parseInt(match[1], 10);
1817
+ const height = match[2] ? parseInt(match[2], 10) : void 0;
1818
+ return { width, height };
1819
+ }
1820
+ function resolveViewport(viewport, device) {
1821
+ if (device && exports.DEVICE_PRESETS[device]) {
1822
+ return exports.DEVICE_PRESETS[device];
1823
+ }
1824
+ if (viewport !== void 0) {
1825
+ const parsed = parseViewportString(viewport);
1826
+ if (parsed) {
1827
+ return {
1828
+ width: parsed.width,
1829
+ height: parsed.height || exports.DEFAULT_VIEWPORT.height,
1830
+ label: `${parsed.width}x${parsed.height || exports.DEFAULT_VIEWPORT.height}`,
1831
+ category: parsed.width <= 430 ? "mobile" : parsed.width <= 1024 ? "tablet" : "desktop"
1832
+ };
1833
+ }
1834
+ }
1835
+ return exports.DEFAULT_VIEWPORT;
1836
+ }
1837
+ function getDevicePresets() {
1838
+ return { ...exports.DEVICE_PRESETS };
1839
+ }
1840
+ function isValidDevicePreset(device) {
1841
+ return device in exports.DEVICE_PRESETS;
1842
+ }
1843
+ function calculateViewportScale(viewport, containerWidth, containerHeight, maxScale = 1) {
1844
+ const scaleX = containerWidth / viewport.width;
1845
+ const scaleY = containerHeight ? containerHeight / viewport.height : Infinity;
1846
+ const scale = Math.min(scaleX, scaleY, maxScale);
1847
+ return Math.round(scale * 1e3) / 1e3;
1848
+ }
1849
+ function wrapInPreviewContainer(html, viewport, options = {}) {
1850
+ const {
1851
+ prefix = "wf",
1852
+ darkMode = false,
1853
+ containerWidth,
1854
+ containerHeight,
1855
+ scale: customScale
1856
+ } = options;
1857
+ const scale = customScale != null ? customScale : containerWidth ? calculateViewportScale(viewport, containerWidth, containerHeight) : 1;
1858
+ const previewClass = `${prefix}-viewport-preview${darkMode ? " dark" : ""}`;
1859
+ const wrapperStyle = `transform: scale(${scale}); width: ${viewport.width}px; height: ${viewport.height}px;`;
1860
+ return `<div class="${previewClass}" style="width: 100%; min-height: ${Math.round(viewport.height * scale)}px;">
1861
+ <div class="${prefix}-viewport-wrapper" style="${wrapperStyle}">
1862
+ ${html}
1863
+ </div>
1864
+ </div>`;
1865
+ }
1866
+
1867
+ // src/spec/attributes.ts
1868
+ exports.ATTRIBUTE_SPECS = [
1869
+ // ============================================
1870
+ // Spacing Attributes
1871
+ // ============================================
1872
+ { name: "p", type: "number", description: "Padding (all sides)" },
1873
+ { name: "px", type: "number", description: "Horizontal padding" },
1874
+ { name: "py", type: "number", description: "Vertical padding" },
1875
+ { name: "pt", type: "number", description: "Top padding" },
1876
+ { name: "pr", type: "number", description: "Right padding" },
1877
+ { name: "pb", type: "number", description: "Bottom padding" },
1878
+ { name: "pl", type: "number", description: "Left padding" },
1879
+ { name: "m", type: "number", description: "Margin (all sides)" },
1880
+ { name: "mx", type: "string", description: 'Horizontal margin (number or "auto")' },
1881
+ { name: "my", type: "number", description: "Vertical margin" },
1882
+ { name: "mt", type: "number", description: "Top margin" },
1883
+ { name: "mr", type: "number", description: "Right margin" },
1884
+ { name: "mb", type: "number", description: "Bottom margin" },
1885
+ { name: "ml", type: "number", description: "Left margin" },
1886
+ { name: "gap", type: "number", description: "Gap between children" },
1887
+ // ============================================
1888
+ // Size Attributes
1889
+ // ============================================
1890
+ {
1891
+ name: "w",
1892
+ type: "string",
1893
+ values: ["full", "auto", "screen", "fit"],
1894
+ description: "Width \u2014 a number of pixels, or one of the size keywords"
1895
+ },
1896
+ {
1897
+ name: "h",
1898
+ type: "string",
1899
+ values: ["full", "auto", "screen"],
1900
+ description: "Height \u2014 a number of pixels, or one of the size keywords"
1901
+ },
1902
+ { name: "width", type: "number", description: "Width in pixels (page only)" },
1903
+ { name: "height", type: "number", description: "Height in pixels (page only)" },
1904
+ { name: "minW", type: "number", description: "Minimum width" },
1905
+ { name: "maxW", type: "number", description: "Maximum width" },
1906
+ { name: "minH", type: "number", description: "Minimum height" },
1907
+ { name: "maxH", type: "number", description: "Maximum height" },
1908
+ // ============================================
1909
+ // Flex/Grid Layout Attributes
1910
+ // ============================================
1911
+ { name: "flex", type: "boolean", description: "Enable flexbox" },
1912
+ {
1913
+ name: "direction",
1914
+ type: "enum",
1915
+ values: ["row", "column", "row-reverse", "column-reverse"],
1916
+ description: "Flex direction"
1917
+ },
1918
+ {
1919
+ name: "justify",
1920
+ type: "enum",
1921
+ values: ["start", "center", "end", "between", "around", "evenly"],
1922
+ description: "Main axis alignment"
1923
+ },
1924
+ {
1925
+ name: "align",
1926
+ type: "enum",
1927
+ values: ["start", "center", "end", "stretch", "baseline"],
1928
+ description: "Cross axis alignment"
1929
+ },
1930
+ {
1931
+ name: "wrap",
1932
+ type: "boolean",
1933
+ values: ["nowrap"],
1934
+ // `boolean | 'nowrap'` in the AST: bare `wrap` enables wrapping, and
1935
+ // `wrap=nowrap` opts a container out of it (`renderer/html/index.ts`
1936
+ // branches on the keyword). Both halves have to be stated or the keyword
1937
+ // reads as an unknown value to every editor downstream.
1938
+ description: "Enable flex wrap, or wrap=nowrap to force a single line"
1939
+ },
1940
+ { name: "span", type: "number", description: "Grid column span (1-12)" },
1941
+ { name: "sm", type: "number", description: "Responsive span at 576px+" },
1942
+ { name: "md", type: "number", description: "Responsive span at 768px+" },
1943
+ { name: "lg", type: "number", description: "Responsive span at 992px+" },
1944
+ { name: "xl", type: "number", description: "Responsive span at 1200px+" },
1945
+ { name: "order", type: "number", description: "Flex order" },
1946
+ // ============================================
1947
+ // Position Attributes
1948
+ // ============================================
1949
+ { name: "x", type: "number", description: "Horizontal position" },
1950
+ { name: "y", type: "number", description: "Vertical position" },
1951
+ {
1952
+ name: "position",
1953
+ type: "enum",
1954
+ values: [
1955
+ "left",
1956
+ "right",
1957
+ "top",
1958
+ "bottom",
1959
+ "top-left",
1960
+ "top-center",
1961
+ "top-right",
1962
+ "bottom-left",
1963
+ "bottom-center",
1964
+ "bottom-right"
1965
+ ],
1966
+ description: "Position preset"
1967
+ },
1968
+ // ============================================
1969
+ // Visual Attributes
1970
+ // ============================================
1971
+ { name: "border", type: "boolean", description: "Show border" },
1972
+ { name: "rounded", type: "boolean", description: "Apply border radius" },
1973
+ {
1974
+ name: "shadow",
1975
+ type: "enum",
1976
+ values: ["none", "sm", "md", "lg", "xl"],
1977
+ description: "Box shadow"
1978
+ },
1979
+ {
1980
+ name: "bg",
1981
+ type: "enum",
1982
+ values: ["muted", "primary", "secondary"],
1983
+ description: "Background variant"
1984
+ },
1985
+ // ============================================
1986
+ // Text Attributes
1987
+ // ============================================
1988
+ {
1989
+ name: "size",
1990
+ type: "enum",
1991
+ values: ["xs", "sm", "base", "md", "lg", "xl", "2xl", "3xl"],
1992
+ description: "Size preset"
1993
+ },
1994
+ {
1995
+ name: "weight",
1996
+ type: "enum",
1997
+ values: ["normal", "medium", "semibold", "bold"],
1998
+ description: "Font weight"
1999
+ },
2000
+ { name: "level", type: "number", description: "Heading level (1-6)" },
2001
+ { name: "muted", type: "boolean", description: "Muted/dimmed style" },
2002
+ { name: "bold", type: "boolean", description: "Bold text" },
2003
+ // ============================================
2004
+ // Button Variant Attributes
2005
+ // ============================================
2006
+ { name: "primary", type: "boolean", description: "Primary style" },
2007
+ { name: "secondary", type: "boolean", description: "Secondary style" },
2008
+ { name: "outline", type: "boolean", description: "Outline style" },
2009
+ { name: "ghost", type: "boolean", description: "Ghost/transparent style" },
2010
+ { name: "danger", type: "boolean", description: "Danger/destructive style" },
2011
+ // ============================================
2012
+ // Status Variant Attributes
2013
+ // ============================================
2014
+ {
2015
+ name: "variant",
2016
+ type: "enum",
2017
+ values: ["default", "primary", "secondary", "success", "warning", "danger", "info"],
2018
+ description: "Status variant"
2019
+ },
2020
+ // ============================================
2021
+ // Form Attributes
2022
+ // ============================================
2023
+ {
2024
+ name: "inputType",
2025
+ type: "enum",
2026
+ values: ["text", "email", "password", "number", "tel", "url", "search", "date"],
2027
+ description: "Input field type"
2028
+ },
2029
+ { name: "placeholder", type: "string", description: "Placeholder text" },
2030
+ { name: "value", type: "string", description: "Default value" },
2031
+ { name: "label", type: "string", description: "Field label" },
2032
+ /**
2033
+ * One row, three meanings, and the row states only what they share.
2034
+ *
2035
+ * This registry is a flat namespace: {@link ATTRIBUTE_MAP} and
2036
+ * {@link VALID_ATTRIBUTE_NAMES} are keyed by attribute name alone, with no
2037
+ * owning element, so a name can hold exactly one spec. `name` is written by
2038
+ * three unrelated elements — the group name on `radio`, the person's name an
2039
+ * `avatar` draws initials from, and the glyph an `icon` resolves — and a
2040
+ * second `name` row does not scope them apart, it silently shadows (last
2041
+ * write wins in the Map, while the count-based gates in
2042
+ * `packages/language-data` see a duplicate and go red). So this description
2043
+ * says what is true of all three and no more.
2044
+ *
2045
+ * What is true of only one of them goes in `attribute-overrides.ts`, keyed by
2046
+ * element, and is read through `attributeFor`. That is why the glyph domain is
2047
+ * not listed here: it holds on `icon` alone, and a `values` list on this row
2048
+ * would tell every element-blind consumer that a radio group must be called
2049
+ * `circle-alert`.
2050
+ *
2051
+ * Never add a second row for a name that already exists. Widen this one, and
2052
+ * put the narrow half in the override table.
2053
+ */
2054
+ {
2055
+ name: "name",
2056
+ type: "string",
2057
+ description: "Name \u2014 what the element is called, or the named thing it resolves"
2058
+ },
2059
+ { name: "required", type: "boolean", description: "Required field" },
2060
+ { name: "disabled", type: "boolean", description: "Disabled state" },
2061
+ { name: "readonly", type: "boolean", description: "Read-only state" },
2062
+ { name: "checked", type: "boolean", description: "Checked state" },
2063
+ { name: "loading", type: "boolean", description: "Loading state" },
2064
+ { name: "rows", type: "number", description: "Textarea rows" },
2065
+ { name: "min", type: "number", description: "Minimum value" },
2066
+ { name: "max", type: "number", description: "Maximum value" },
2067
+ { name: "step", type: "number", description: "Step increment" },
2068
+ // ============================================
2069
+ // Content Attributes
2070
+ // ============================================
2071
+ { name: "title", type: "string", description: "Title text" },
2072
+ { name: "src", type: "string", description: "Source URL" },
2073
+ { name: "alt", type: "string", description: "Alt text" },
2074
+ { name: "href", type: "string", description: "Link URL" },
2075
+ /**
2076
+ * Left open here on purpose. The glyph set is closed and known — see
2077
+ * `attribute-overrides.ts` — but a `values` list on this row is mirrored into
2078
+ * the editor's element-blind value vocabulary, which would colour 1,667 words
2079
+ * like `home` and `map` as language constants in every value position. Ask
2080
+ * `attributeFor(element, 'icon')` for the domain.
2081
+ */
2082
+ { name: "icon", type: "string", description: "Icon name" },
2083
+ { name: "external", type: "boolean", description: "External link" },
2084
+ // ============================================
2085
+ // Accessibility Attributes
2086
+ // ============================================
2087
+ {
2088
+ name: "aria",
2089
+ type: "string",
2090
+ description: "Accessible name, rendered as aria-label (e.g. icon-only button)"
2091
+ },
2092
+ {
2093
+ name: "aria-label",
2094
+ type: "string",
2095
+ description: "Accessible name (synonym for aria), rendered as aria-label"
2096
+ },
2097
+ // ============================================
2098
+ // State Attributes
2099
+ // ============================================
2100
+ { name: "active", type: "number", description: "Active index" },
2101
+ { name: "expanded", type: "boolean", description: "Expanded state" },
2102
+ { name: "centered", type: "boolean", description: "Center content" },
2103
+ { name: "vertical", type: "boolean", description: "Vertical orientation" },
2104
+ { name: "scroll", type: "boolean", description: "Enable scrolling" },
2105
+ // ============================================
2106
+ // Feedback Attributes
2107
+ // ============================================
2108
+ { name: "dismissible", type: "boolean", description: "Can be dismissed" },
2109
+ { name: "indeterminate", type: "boolean", description: "Indeterminate state" },
2110
+ { name: "pill", type: "boolean", description: "Pill/rounded style" },
2111
+ // ============================================
2112
+ // Data Attributes
2113
+ // ============================================
2114
+ { name: "striped", type: "boolean", description: "Striped rows" },
2115
+ { name: "bordered", type: "boolean", description: "Full borders" },
2116
+ { name: "hover", type: "boolean", description: "Hover effect" },
2117
+ { name: "ordered", type: "boolean", description: "Ordered list" },
2118
+ { name: "none", type: "boolean", description: "No list markers" },
2119
+ // ============================================
2120
+ // Page/Viewport Attributes
2121
+ // ============================================
2122
+ { name: "viewport", type: "string", description: 'Viewport size (e.g., "1440x900")' },
2123
+ {
2124
+ name: "device",
2125
+ type: "enum",
2126
+ // Derived, not transcribed: `resolveViewport` looks the value up in
2127
+ // `DEVICE_PRESETS` and silently falls back to the default when it misses, so
2128
+ // a hand-kept copy of the key list would turn every typo into a wireframe
2129
+ // rendered at the wrong width with no diagnostic.
2130
+ values: Object.keys(exports.DEVICE_PRESETS),
2131
+ description: "Device preset"
2132
+ },
2133
+ // ============================================
2134
+ // Interaction Attributes
2135
+ // ============================================
2136
+ // The wire between two screens, or between a screen and one of its overlays.
2137
+ // `navigate` / `opens` / `toggles` resolve against an `id` (see below); the
2138
+ // AST counterpart is `InteractiveProps` in `src/ast/types.ts`.
2139
+ {
2140
+ name: "navigate",
2141
+ type: "string",
2142
+ description: "Screen this element navigates to \u2014 a page id, a page title, or a URL"
2143
+ },
2144
+ { name: "opens", type: "string", description: "id of the modal or drawer this element opens" },
2145
+ {
2146
+ name: "toggles",
2147
+ type: "string",
2148
+ description: "id of the modal or drawer this element shows or hides"
2149
+ },
2150
+ {
2151
+ name: "action",
2152
+ type: "string",
2153
+ description: "Named interaction with no target, e.g. back, close, submit"
2154
+ },
2155
+ {
2156
+ name: "on",
2157
+ type: "object",
2158
+ description: "Typed click event with an optional equality guard and ordered effects"
2159
+ },
2160
+ {
2161
+ name: "visibleWhen",
2162
+ type: "object",
2163
+ description: "Equality guard controlling whether this branch is visible"
2164
+ },
2165
+ {
2166
+ name: "enabledWhen",
2167
+ type: "object",
2168
+ description: "Equality guard controlling whether this control is enabled"
2169
+ },
2170
+ {
2171
+ name: "states",
2172
+ type: "object[]",
2173
+ description: "Typed application state declarations owned by a page or shared layout"
2174
+ },
2175
+ {
2176
+ name: "variants",
2177
+ type: "string[]",
2178
+ description: "Named state variants of this page \u2014 each one renders the page again as a screen of its own"
2179
+ },
2180
+ {
2181
+ name: "when",
2182
+ type: "string[]",
2183
+ description: "Variant boards this element is drawn on \u2014 when=loading, or when=[loading, empty] for both"
2184
+ },
2185
+ {
2186
+ name: "id",
2187
+ type: "string",
2188
+ description: "Stable identifier this page or overlay is addressed by, as distinct from title"
2189
+ },
2190
+ // ============================================
2191
+ // Annotation Attributes
2192
+ // ============================================
2193
+ {
2194
+ name: "anchor",
2195
+ type: "enum",
2196
+ values: [
2197
+ "top-left",
2198
+ "top-center",
2199
+ "top-right",
2200
+ "center-left",
2201
+ "center",
2202
+ "center-right",
2203
+ "bottom-left",
2204
+ "bottom-center",
2205
+ "bottom-right"
2206
+ ],
2207
+ description: "Corner or edge of the parent this element is pinned to"
2208
+ },
2209
+ {
2210
+ name: "color",
2211
+ type: "enum",
2212
+ values: ["blue", "red", "green", "yellow", "purple", "orange"],
2213
+ description: "Marker color"
2214
+ },
2215
+ // ============================================
2216
+ // Reuse Attributes
2217
+ // ============================================
2218
+ { name: "uses", type: "string", description: "Name of the layout a page is drawn inside" }
2219
+ ];
2220
+ exports.VALID_ATTRIBUTE_NAMES = new Set(
2221
+ exports.ATTRIBUTE_SPECS.map((attr) => attr.name)
2222
+ );
2223
+ exports.ATTRIBUTE_MAP = new Map(
2224
+ exports.ATTRIBUTE_SPECS.map((attr) => [attr.name, attr])
2225
+ );
2226
+ exports.BOX_ATTRIBUTES = [
2227
+ // Guarded runtime outcomes
2228
+ "visibleWhen",
2229
+ "enabledWhen",
2230
+ // Build-time variant scope. Listed beside the guards because it reads like
2231
+ // them and is deliberately not one of them: a guard leaves the element in the
2232
+ // markup for the runtime to toggle, `when` decides whether the element is in
2233
+ // that board's markup at all. Every element takes it for the same reason
2234
+ // every element takes a guard — which boards a piece of a screen belongs to
2235
+ // is a property of the piece, not of what kind of piece it is.
2236
+ "when",
2237
+ // Spacing
2238
+ "p",
2239
+ "px",
2240
+ "py",
2241
+ "pt",
2242
+ "pr",
2243
+ "pb",
2244
+ "pl",
2245
+ "m",
2246
+ "mx",
2247
+ "my",
2248
+ "mt",
2249
+ "mr",
2250
+ "mb",
2251
+ "ml",
2252
+ "gap",
2253
+ // Size
2254
+ "w",
2255
+ "h",
2256
+ "minW",
2257
+ "maxW",
2258
+ "minH",
2259
+ "maxH",
2260
+ // Position
2261
+ "x",
2262
+ "y"
2263
+ ];
2264
+ exports.CONTAINER_ATTRIBUTES = [
2265
+ // Flex
2266
+ "flex",
2267
+ "direction",
2268
+ "justify",
2269
+ "align",
2270
+ "wrap",
2271
+ // Decoration
2272
+ "bg",
2273
+ "border",
2274
+ "rounded"
2275
+ ];
2276
+ exports.INTERACTIVE_ATTRIBUTES = [
2277
+ "navigate",
2278
+ "opens",
2279
+ "toggles",
2280
+ "action",
2281
+ "on"
2282
+ ];
2283
+
2284
+ // src/spec/components.ts
2285
+ var COMPONENT_METADATA = {
2286
+ // ============================================
2287
+ // Layout Components
2288
+ // ============================================
2289
+ page: {
2290
+ category: "layout",
2291
+ attributes: [
2292
+ // `visibleWhen` / `enabledWhen` are filtered out of the spread rather than
2293
+ // inherited. They are guarded *outcomes*: the renderer emits
2294
+ // `data-wf-visible-when` / `data-wf-enabled-when` from the component path,
2295
+ // and the site runtime toggles the element they land on. A page is the
2296
+ // board that path renders *into* — nothing emits the attribute for it and
2297
+ // nothing would toggle it, so declaring it would let an author write a
2298
+ // guard on a page, pass `validate()`, and have the value silently dropped.
2299
+ // `when` is filtered out alongside the guards, for a reason of its own: a
2300
+ // page *is* a board, so scoping one to a variant would be a board saying
2301
+ // which board it is drawn on. The axis a page declares is `variants`, and
2302
+ // `when` names positions along it — the two sit at different levels and a
2303
+ // page carrying both would be asking `expandVariants` to filter a page
2304
+ // against a name it is itself the source of.
2305
+ ...exports.BOX_ATTRIBUTES.filter(
2306
+ (name) => name !== "visibleWhen" && name !== "enabledWhen" && name !== "when"
2307
+ ),
2308
+ ...exports.CONTAINER_ATTRIBUTES,
2309
+ "id",
2310
+ "title",
2311
+ "width",
2312
+ "height",
2313
+ "viewport",
2314
+ "device",
2315
+ "centered",
2316
+ "uses",
2317
+ "states",
2318
+ "variants"
2319
+ ],
2320
+ hasChildren: true,
2321
+ description: "Root container for a wireframe page. Multiple pages in one .wf file lay out side-by-side on a canvas; use at(x, y) for explicit placement, or omit for auto-flow. Give it uses=<layout> to draw it inside a shared layout instead of restating the shell."
2322
+ },
2323
+ // ============================================
2324
+ // Structure Definitions
2325
+ // ============================================
2326
+ layout: {
2327
+ category: "structure",
2328
+ attributes: ["states"],
2329
+ hasChildren: true,
2330
+ description: "Define a page shell once, under a name, so pages can reference it with uses= instead of repeating it. Mark where a referencing page's own content goes with slot: `layout app { header { \u2026 } slot footer { \u2026 } }`."
2331
+ },
2332
+ component: {
2333
+ category: "structure",
2334
+ attributes: [],
2335
+ hasChildren: true,
2336
+ description: "Define a named, reusable fragment with typed parameters and named slots so screens can invoke it explicitly."
2337
+ },
2338
+ use: {
2339
+ category: "structure",
2340
+ attributes: [],
2341
+ hasChildren: true,
2342
+ description: "Invoke a reusable component with named typed inputs and optional named slot fills. This is distinct from page uses=, which continues to reference layouts."
2343
+ },
2344
+ slot: {
2345
+ category: "structure",
2346
+ attributes: [],
2347
+ hasChildren: false,
2348
+ description: "Mark content insertion: bare inside a layout, or named inside a reusable component."
2349
+ },
2350
+ repeat: {
2351
+ category: "structure",
2352
+ attributes: [],
2353
+ hasChildren: true,
2354
+ description: "Draw the same body a fixed number of times: `repeat 6 { use skeletonCard() }`. The count is positional, and there is deliberately no index variable \u2014 every copy is identical, because copies that differ are data binding rather than a wireframe."
2355
+ },
2356
+ header: {
2357
+ category: "layout",
2358
+ attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES],
2359
+ hasChildren: true,
2360
+ description: "Page header section"
2361
+ },
2362
+ main: {
2363
+ category: "layout",
2364
+ attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "scroll"],
2365
+ hasChildren: true,
2366
+ description: "Main content section"
2367
+ },
2368
+ footer: {
2369
+ category: "layout",
2370
+ attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES],
2371
+ hasChildren: true,
2372
+ description: "Page footer section"
2373
+ },
2374
+ sidebar: {
2375
+ category: "layout",
2376
+ attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "position"],
2377
+ hasChildren: true,
2378
+ description: "Side navigation or content area"
2379
+ },
2380
+ section: {
2381
+ category: "layout",
2382
+ attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "title", "expanded"],
2383
+ hasChildren: true,
2384
+ description: "Grouped content section"
2385
+ },
2386
+ // ============================================
2387
+ // Grid Components
2388
+ // ============================================
2389
+ row: {
2390
+ category: "grid",
2391
+ attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES],
2392
+ hasChildren: true,
2393
+ description: "Horizontal flex container"
2394
+ },
2395
+ col: {
2396
+ category: "grid",
2397
+ attributes: [
2398
+ ...exports.BOX_ATTRIBUTES,
2399
+ ...exports.CONTAINER_ATTRIBUTES,
2400
+ // `span` sizes a grid column and does nothing on any other element, so it
2401
+ // is declared on the one element that reads it rather than on every one.
2402
+ "span",
2403
+ "sm",
2404
+ "md",
2405
+ "lg",
2406
+ "xl",
2407
+ "order",
2408
+ "scroll"
2409
+ ],
2410
+ hasChildren: true,
2411
+ description: "Vertical flex container or grid column"
2412
+ },
2413
+ stack: {
2414
+ category: "grid",
2415
+ attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES],
2416
+ hasChildren: true,
2417
+ description: "Vertical stack that only takes content height (unlike col which fills)"
2418
+ },
2419
+ relative: {
2420
+ category: "grid",
2421
+ attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES],
2422
+ hasChildren: true,
2423
+ description: "Container for overlaying elements with absolute positioning"
2424
+ },
2425
+ // ============================================
2426
+ // Container Components
2427
+ // ============================================
2428
+ card: {
2429
+ category: "container",
2430
+ attributes: [
2431
+ ...exports.BOX_ATTRIBUTES,
2432
+ ...exports.CONTAINER_ATTRIBUTES,
2433
+ ...exports.INTERACTIVE_ATTRIBUTES,
2434
+ "title",
2435
+ "shadow"
2436
+ ],
2437
+ hasChildren: true,
2438
+ description: "Card container with optional title"
2439
+ },
2440
+ modal: {
2441
+ category: "container",
2442
+ attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "id", "title"],
2443
+ hasChildren: true,
2444
+ description: "Modal dialog overlay"
2445
+ },
2446
+ drawer: {
2447
+ category: "container",
2448
+ attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "id", "title", "position"],
2449
+ hasChildren: true,
2450
+ description: "Slide-in drawer panel"
2451
+ },
2452
+ accordion: {
2453
+ category: "container",
2454
+ attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "title"],
2455
+ hasChildren: true,
2456
+ description: "Collapsible sections container"
2457
+ },
2458
+ // ============================================
2459
+ // Text Components
2460
+ // ============================================
2461
+ text: {
2462
+ category: "text",
2463
+ attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "size", "weight", "muted", "bold"],
2464
+ hasChildren: false,
2465
+ description: "Text content"
2466
+ },
2467
+ title: {
2468
+ category: "text",
2469
+ attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "level", "size"],
2470
+ hasChildren: false,
2471
+ description: "Heading element (h1-h6)"
2472
+ },
2473
+ link: {
2474
+ category: "text",
2475
+ attributes: [
2476
+ ...exports.BOX_ATTRIBUTES,
2477
+ ...exports.CONTAINER_ATTRIBUTES,
2478
+ ...exports.INTERACTIVE_ATTRIBUTES,
2479
+ "href",
2480
+ "external"
2481
+ ],
2482
+ hasChildren: false,
2483
+ description: "Hyperlink text"
2484
+ },
2485
+ // ============================================
2486
+ // Input Components
2487
+ // ============================================
2488
+ input: {
2489
+ category: "input",
2490
+ attributes: [
2491
+ ...exports.BOX_ATTRIBUTES,
2492
+ ...exports.CONTAINER_ATTRIBUTES,
2493
+ "label",
2494
+ "inputType",
2495
+ "placeholder",
2496
+ "value",
2497
+ "disabled",
2498
+ "required",
2499
+ "readonly",
2500
+ "icon",
2501
+ "size"
2502
+ ],
2503
+ hasChildren: false,
2504
+ description: "Text input field"
2505
+ },
2506
+ textarea: {
2507
+ category: "input",
2508
+ attributes: [
2509
+ ...exports.BOX_ATTRIBUTES,
2510
+ ...exports.CONTAINER_ATTRIBUTES,
2511
+ "label",
2512
+ "placeholder",
2513
+ "value",
2514
+ "rows",
2515
+ "disabled",
2516
+ "required"
2517
+ ],
2518
+ hasChildren: false,
2519
+ description: "Multi-line text input"
2520
+ },
2521
+ select: {
2522
+ category: "input",
2523
+ attributes: [
2524
+ ...exports.BOX_ATTRIBUTES,
2525
+ ...exports.CONTAINER_ATTRIBUTES,
2526
+ "label",
2527
+ "placeholder",
2528
+ "value",
2529
+ "disabled",
2530
+ "required"
2531
+ ],
2532
+ hasChildren: false,
2533
+ description: "Dropdown select"
2534
+ },
2535
+ checkbox: {
2536
+ category: "input",
2537
+ attributes: [...exports.BOX_ATTRIBUTES, "label", "checked", "disabled"],
2538
+ hasChildren: false,
2539
+ description: "Checkbox input"
2540
+ },
2541
+ radio: {
2542
+ category: "input",
2543
+ attributes: [...exports.BOX_ATTRIBUTES, "label", "name", "checked", "disabled"],
2544
+ hasChildren: false,
2545
+ description: "Radio button input"
2546
+ },
2547
+ switch: {
2548
+ category: "input",
2549
+ attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "label", "checked", "disabled"],
2550
+ hasChildren: false,
2551
+ description: "Toggle switch"
2552
+ },
2553
+ slider: {
2554
+ category: "input",
2555
+ attributes: [
2556
+ ...exports.BOX_ATTRIBUTES,
2557
+ ...exports.CONTAINER_ATTRIBUTES,
2558
+ "label",
2559
+ "min",
2560
+ "max",
2561
+ "value",
2562
+ "step",
2563
+ "disabled"
2564
+ ],
2565
+ hasChildren: false,
2566
+ description: "Range slider"
2567
+ },
2568
+ button: {
2569
+ category: "input",
2570
+ attributes: [
2571
+ ...exports.BOX_ATTRIBUTES,
2572
+ ...exports.CONTAINER_ATTRIBUTES,
2573
+ ...exports.INTERACTIVE_ATTRIBUTES,
2574
+ "primary",
2575
+ "secondary",
2576
+ "outline",
2577
+ "ghost",
2578
+ "danger",
2579
+ "size",
2580
+ "icon",
2581
+ "disabled",
2582
+ "loading",
2583
+ // Accessibility: give icon-only buttons an accessible name / tooltip
2584
+ "aria",
2585
+ "aria-label",
2586
+ "title"
2587
+ ],
2588
+ hasChildren: false,
2589
+ description: "Clickable button"
2590
+ },
2591
+ // ============================================
2592
+ // Display Components
2593
+ // ============================================
2594
+ image: {
2595
+ category: "display",
2596
+ attributes: [
2597
+ ...exports.BOX_ATTRIBUTES,
2598
+ ...exports.CONTAINER_ATTRIBUTES,
2599
+ ...exports.INTERACTIVE_ATTRIBUTES,
2600
+ "src",
2601
+ "alt"
2602
+ ],
2603
+ hasChildren: false,
2604
+ description: "Image placeholder"
2605
+ },
2606
+ placeholder: {
2607
+ category: "display",
2608
+ attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "label"],
2609
+ hasChildren: true,
2610
+ description: "Generic placeholder"
2611
+ },
2612
+ avatar: {
2613
+ category: "display",
2614
+ attributes: [
2615
+ ...exports.BOX_ATTRIBUTES,
2616
+ ...exports.CONTAINER_ATTRIBUTES,
2617
+ ...exports.INTERACTIVE_ATTRIBUTES,
2618
+ "name",
2619
+ "size"
2620
+ ],
2621
+ hasChildren: false,
2622
+ description: "User avatar"
2623
+ },
2624
+ badge: {
2625
+ category: "display",
2626
+ attributes: [
2627
+ ...exports.BOX_ATTRIBUTES,
2628
+ ...exports.CONTAINER_ATTRIBUTES,
2629
+ ...exports.INTERACTIVE_ATTRIBUTES,
2630
+ "variant",
2631
+ "pill",
2632
+ "icon",
2633
+ "size",
2634
+ "anchor"
2635
+ ],
2636
+ hasChildren: false,
2637
+ description: "Status badge"
2638
+ },
2639
+ icon: {
2640
+ category: "display",
2641
+ attributes: [
2642
+ ...exports.BOX_ATTRIBUTES,
2643
+ ...exports.CONTAINER_ATTRIBUTES,
2644
+ ...exports.INTERACTIVE_ATTRIBUTES,
2645
+ "name",
2646
+ "size",
2647
+ "muted"
2648
+ ],
2649
+ hasChildren: false,
2650
+ description: "Lucide icon"
2651
+ },
2652
+ // ============================================
2653
+ // Data Components
2654
+ // ============================================
2655
+ table: {
2656
+ category: "data",
2657
+ attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "striped", "bordered", "hover"],
2658
+ hasChildren: false,
2659
+ description: "Data table"
2660
+ },
2661
+ list: {
2662
+ category: "data",
2663
+ attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "ordered", "none"],
2664
+ hasChildren: false,
2665
+ description: "List of items"
2666
+ },
2667
+ // ============================================
2668
+ // Feedback Components
2669
+ // ============================================
2670
+ alert: {
2671
+ category: "feedback",
2672
+ attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "variant", "dismissible", "icon"],
2673
+ hasChildren: false,
2674
+ description: "Alert message"
2675
+ },
2676
+ toast: {
2677
+ category: "feedback",
2678
+ attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "position", "variant"],
2679
+ hasChildren: false,
2680
+ description: "Toast notification"
2681
+ },
2682
+ progress: {
2683
+ category: "feedback",
2684
+ attributes: [
2685
+ ...exports.BOX_ATTRIBUTES,
2686
+ ...exports.CONTAINER_ATTRIBUTES,
2687
+ "value",
2688
+ "max",
2689
+ "label",
2690
+ "indeterminate"
2691
+ ],
2692
+ hasChildren: false,
2693
+ description: "Progress bar"
2694
+ },
2695
+ spinner: {
2696
+ category: "feedback",
2697
+ attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "label", "size"],
2698
+ hasChildren: false,
2699
+ description: "Loading spinner"
2700
+ },
2701
+ // ============================================
2702
+ // Overlay Components
2703
+ // ============================================
2704
+ tooltip: {
2705
+ category: "overlay",
2706
+ attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "position"],
2707
+ hasChildren: false,
2708
+ description: "Tooltip on hover"
2709
+ },
2710
+ popover: {
2711
+ category: "overlay",
2712
+ attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "title"],
2713
+ hasChildren: true,
2714
+ description: "Popover panel"
2715
+ },
2716
+ dropdown: {
2717
+ category: "overlay",
2718
+ attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES],
2719
+ hasChildren: false,
2720
+ description: "Dropdown menu"
2721
+ },
2722
+ // ============================================
2723
+ // Navigation Components
2724
+ // ============================================
2725
+ nav: {
2726
+ category: "navigation",
2727
+ attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "vertical"],
2728
+ hasChildren: false,
2729
+ description: "Navigation menu"
2730
+ },
2731
+ tabs: {
2732
+ category: "navigation",
2733
+ attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES, "active"],
2734
+ hasChildren: true,
2735
+ description: "Tab navigation"
2736
+ },
2737
+ breadcrumb: {
2738
+ category: "navigation",
2739
+ attributes: [...exports.BOX_ATTRIBUTES, ...exports.CONTAINER_ATTRIBUTES],
2740
+ hasChildren: false,
2741
+ description: "Breadcrumb navigation"
2742
+ },
2743
+ // ============================================
2744
+ // Divider Component
2745
+ // ============================================
2746
+ divider: {
2747
+ category: "layout",
2748
+ attributes: [...exports.BOX_ATTRIBUTES, "vertical"],
2749
+ hasChildren: false,
2750
+ description: "Horizontal separator"
2751
+ },
2752
+ // ============================================
2753
+ // Annotation Components
2754
+ // ============================================
2755
+ marker: {
2756
+ category: "annotation",
2757
+ attributes: [...exports.BOX_ATTRIBUTES, "color", "anchor"],
2758
+ hasChildren: false,
2759
+ description: "Number marker for referencing in annotations"
2760
+ },
2761
+ annotations: {
2762
+ category: "annotation",
2763
+ attributes: [...exports.BOX_ATTRIBUTES, "title"],
2764
+ hasChildren: true,
2765
+ description: "Documentation panel for screen specifications"
2766
+ },
2767
+ item: {
2768
+ category: "annotation",
2769
+ attributes: [],
2770
+ hasChildren: true,
2771
+ description: "Individual annotation entry with marker number and title"
2772
+ }
2773
+ };
2774
+ exports.COMPONENT_NAMES = Object.keys(COMPONENT_METADATA);
2775
+ exports.COMPONENT_SPECS = exports.COMPONENT_NAMES.map((name) => ({
2776
+ name,
2777
+ nodeType: exports.GRAMMAR_ELEMENTS[name],
2778
+ ...COMPONENT_METADATA[name]
2779
+ }));
2780
+ exports.VALID_COMPONENT_NAMES = new Set(exports.COMPONENT_NAMES);
2781
+ exports.COMPONENT_MAP = new Map(
2782
+ exports.COMPONENT_SPECS.map((comp) => [comp.name, comp])
2783
+ );
2784
+ var BLOCK_NODE_METADATA = {
2785
+ NavItem: {
2786
+ keyword: "item",
2787
+ category: "navigation",
2788
+ attributes: [...exports.INTERACTIVE_ATTRIBUTES, "icon", "href", "active", "disabled"],
2789
+ hasChildren: false,
2790
+ description: "Navigation entry inside a nav block"
2791
+ },
2792
+ NavGroup: {
2793
+ keyword: "group",
2794
+ category: "navigation",
2795
+ attributes: [],
2796
+ hasChildren: true,
2797
+ description: "Labelled group of navigation entries inside a nav block"
2798
+ },
2799
+ DropdownItem: {
2800
+ keyword: "item",
2801
+ category: "overlay",
2802
+ attributes: [...exports.INTERACTIVE_ATTRIBUTES, "icon", "href", "danger", "disabled"],
2803
+ hasChildren: false,
2804
+ description: "Menu entry inside a dropdown"
2805
+ },
2806
+ ListItem: {
2807
+ keyword: "item",
2808
+ category: "data",
2809
+ attributes: ["icon"],
2810
+ hasChildren: true,
2811
+ description: "Entry inside a list block, optionally nesting a further list"
2812
+ }
2813
+ };
2814
+ exports.BLOCK_NODE_SPECS = exports.GRAMMAR_BLOCK_NODE_TYPES.map(
2815
+ (nodeType) => {
2816
+ const { keyword, ...metadata } = BLOCK_NODE_METADATA[nodeType];
2817
+ return { name: keyword, nodeType, ...metadata };
2818
+ }
2819
+ );
2820
+ exports.NODE_TYPE_MAP = new Map(
2821
+ [...exports.COMPONENT_SPECS, ...exports.BLOCK_NODE_SPECS].map((comp) => [comp.nodeType, comp])
2822
+ );
2823
+ exports.ELEMENT_NODE_TYPE_MAP = new Map(
2824
+ exports.COMPONENT_SPECS.map((comp) => [comp.nodeType, comp])
2825
+ );
2826
+ exports.COMPONENT_SPEC_BY_NAME = Object.fromEntries(exports.COMPONENT_SPECS.map((comp) => [comp.name, comp]));
2827
+ function getValidAttributes(componentNameOrType) {
2828
+ var _a;
2829
+ const spec = (_a = exports.COMPONENT_MAP.get(componentNameOrType)) != null ? _a : exports.NODE_TYPE_MAP.get(componentNameOrType);
2830
+ return spec == null ? void 0 : spec.attributes;
2831
+ }
2832
+ function isValidAttribute(componentNameOrType, attributeName) {
2833
+ const validAttrs = getValidAttributes(componentNameOrType);
2834
+ if (!validAttrs) return false;
2835
+ return validAttrs.includes(attributeName);
2836
+ }
2837
+
2838
+ // src/spec/attribute-overrides.ts
2839
+ var GLYPH_NAME = {
2840
+ type: "enum",
2841
+ values: exports.LUCIDE_ICON_NAMES,
2842
+ description: "Icon name, from the Lucide set"
2843
+ };
2844
+ var GLYPH_VALUED_ATTRIBUTES = ["icon"];
2845
+ var GLYPH_VALUED_PAIRS = [
2846
+ ["Icon", "name"]
2847
+ ];
2848
+ function buildOverrides() {
2849
+ const overrides = {};
2850
+ const put = (nodeType, attribute, override) => {
2851
+ var _a;
2852
+ (_a = overrides[nodeType]) != null ? _a : overrides[nodeType] = {};
2853
+ overrides[nodeType][attribute] = override;
2854
+ };
2855
+ for (const spec of [...exports.COMPONENT_SPECS, ...exports.BLOCK_NODE_SPECS]) {
2856
+ for (const attribute of GLYPH_VALUED_ATTRIBUTES) {
2857
+ if (spec.attributes.includes(attribute)) put(spec.nodeType, attribute, GLYPH_NAME);
2858
+ }
2859
+ }
2860
+ for (const [nodeType, attribute] of GLYPH_VALUED_PAIRS) {
2861
+ put(nodeType, attribute, GLYPH_NAME);
2862
+ }
2863
+ return overrides;
2864
+ }
2865
+ exports.ATTRIBUTE_OVERRIDES = buildOverrides();
2866
+ function attributeFor(componentNameOrType, attributeName) {
2867
+ var _a, _b;
2868
+ const spec = (_a = exports.COMPONENT_MAP.get(componentNameOrType)) != null ? _a : exports.NODE_TYPE_MAP.get(componentNameOrType);
2869
+ if (!(spec == null ? void 0 : spec.attributes.includes(attributeName))) return void 0;
2870
+ const base = exports.ATTRIBUTE_MAP.get(attributeName);
2871
+ if (!base) return void 0;
2872
+ const override = (_b = exports.ATTRIBUTE_OVERRIDES[spec.nodeType]) == null ? void 0 : _b[attributeName];
2873
+ return override ? { ...base, ...override } : base;
2874
+ }
2875
+
2876
+ exports.attributeFor = attributeFor;
2877
+ exports.calculateViewportScale = calculateViewportScale;
2878
+ exports.getDevicePresets = getDevicePresets;
2879
+ exports.getValidAttributes = getValidAttributes;
2880
+ exports.isValidAttribute = isValidAttribute;
2881
+ exports.isValidDevicePreset = isValidDevicePreset;
2882
+ exports.parseViewportString = parseViewportString;
2883
+ exports.resolveViewport = resolveViewport;
2884
+ exports.wrapInPreviewContainer = wrapInPreviewContainer;