@wireweave/core 3.1.0-beta.1 → 3.1.0-beta.11

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