@wizeworks/silicaui-mcp 0.10.1 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -118,5 +118,9 @@
118
118
  {
119
119
  "type": "phone-input",
120
120
  "description": "`phone-input` — a `country` `<select>` (options carry `data-dial`) joined with a digits `input`; a hidden input carries the combined `+{dial}{digits}` value for form submission. No React-only mechanism was involved in the original — the country list is plain static data, ported verbatim into the `PhoneInput` macro's expansion (see `component.ts`)."
121
+ },
122
+ {
123
+ "type": "reveal",
124
+ "description": "`reveal` — the ON SCROLL trigger for @wizeworks/silicaui's assignable entrance animations. Sets `data-sui-inview` on the root once it enters the viewport, which a `.sui-reveal-*` preset class (packages/silicaui/src/components/ animations.js) reads to transition from its hidden to visible state. `params.once` (default `true`) stops observing after the first reveal; `params.threshold` is passed straight to `IntersectionObserver`. Suppressed (reveals immediately, no observer) in preview, under reduced motion, or without `IntersectionObserver` — same guard shape as `counter`."
121
125
  }
122
126
  ]
@@ -1,6 +1,11 @@
1
1
  {
2
2
  "accordion": [
3
- "primary"
3
+ "accordion",
4
+ "accordion-content",
5
+ "accordion-header",
6
+ "accordion-item",
7
+ "accordion-panel",
8
+ "accordion-trigger"
4
9
  ],
5
10
  "alert": [
6
11
  "alert",
@@ -29,8 +34,37 @@
29
34
  "alert-xl",
30
35
  "alert-xs"
31
36
  ],
37
+ "animations": [
38
+ "sui-animate-fade-in",
39
+ "sui-animate-scale-in",
40
+ "sui-animate-slide-down",
41
+ "sui-animate-slide-left",
42
+ "sui-animate-slide-right",
43
+ "sui-animate-slide-up",
44
+ "sui-animate-zoom-in",
45
+ "sui-delay-1",
46
+ "sui-delay-2",
47
+ "sui-delay-3",
48
+ "sui-duration-fast",
49
+ "sui-duration-normal",
50
+ "sui-duration-slow",
51
+ "sui-hover-glow",
52
+ "sui-hover-lift",
53
+ "sui-hover-scale",
54
+ "sui-reveal-fade-in",
55
+ "sui-reveal-scale-in",
56
+ "sui-reveal-slide-down",
57
+ "sui-reveal-slide-left",
58
+ "sui-reveal-slide-right",
59
+ "sui-reveal-slide-up",
60
+ "sui-reveal-zoom-in"
61
+ ],
32
62
  "app-shell": [
33
- "primary"
63
+ "app-shell",
64
+ "app-shell-footer",
65
+ "app-shell-header",
66
+ "app-shell-main",
67
+ "app-shell-sidebar"
34
68
  ],
35
69
  "avatar": [
36
70
  "avatar",
@@ -74,7 +108,7 @@
74
108
  "badge-xs"
75
109
  ],
76
110
  "breadcrumb": [
77
- "primary"
111
+ "breadcrumb"
78
112
  ],
79
113
  "button": [
80
114
  "btn",
@@ -127,16 +161,48 @@
127
161
  "date-field-value"
128
162
  ],
129
163
  "card": [
130
- "primary"
164
+ "card",
165
+ "card-actions",
166
+ "card-body",
167
+ "card-clickable",
168
+ "card-selectable",
169
+ "card-selectable-indicator",
170
+ "card-title",
171
+ "checkbox",
172
+ "radio"
131
173
  ],
132
174
  "carousel": [
133
- "primary"
175
+ "carousel",
176
+ "carousel-center",
177
+ "carousel-control",
178
+ "carousel-dot",
179
+ "carousel-dot-active",
180
+ "carousel-end",
181
+ "carousel-indicators",
182
+ "carousel-item",
183
+ "carousel-next",
184
+ "carousel-number",
185
+ "carousel-number-active",
186
+ "carousel-prev",
187
+ "carousel-root",
188
+ "carousel-vertical"
134
189
  ],
135
190
  "chart": [
136
- "primary"
191
+ "chart"
137
192
  ],
138
193
  "chat-suite": [
139
- "primary"
194
+ "chat-composer",
195
+ "chat-composer-actions",
196
+ "chat-composer-field",
197
+ "chat-layout",
198
+ "chat-layout-messages",
199
+ "chat-message-metadata",
200
+ "chat-system-message",
201
+ "chat-tool-calls",
202
+ "chat-typing",
203
+ "chat-typing-dot",
204
+ "collapsible-content",
205
+ "collapsible-trigger"
140
206
  ],
141
207
  "chat": [
142
208
  "chat",
@@ -155,7 +221,8 @@
155
221
  "chat-image"
156
222
  ],
157
223
  "checkbox-group": [
158
- "primary"
224
+ "checkbox-group",
225
+ "checkbox-option"
159
226
  ],
160
227
  "checkbox": [
161
228
  "checkbox",
@@ -174,22 +241,70 @@
174
241
  "checkbox-xs"
175
242
  ],
176
243
  "collapse": [
177
- "primary"
244
+ "details",
245
+ "details-content",
246
+ "details-ghost",
247
+ "details-title"
178
248
  ],
179
249
  "collapsible": [
180
- "primary"
250
+ "collapsible",
251
+ "collapsible-content",
252
+ "collapsible-panel",
253
+ "collapsible-trigger",
254
+ "collapsible-trigger-icon"
181
255
  ],
182
256
  "color-picker": [
183
- "primary"
257
+ "color-picker",
258
+ "color-picker-hex",
259
+ "color-picker-hex-input",
260
+ "color-picker-hex-label",
261
+ "color-picker-popover",
262
+ "color-picker-preview",
263
+ "color-picker-slider",
264
+ "color-picker-slider-label",
265
+ "color-picker-slider-value",
266
+ "color-picker-sliders",
267
+ "color-picker-swatch",
268
+ "color-picker-swatch-trigger",
269
+ "color-picker-swatch-trigger-chip",
270
+ "color-picker-swatch-trigger-label",
271
+ "color-picker-thumb",
272
+ "color-picker-track",
273
+ "color-picker-value-hex",
274
+ "color-picker-value-oklch",
275
+ "color-picker-values"
184
276
  ],
185
277
  "combobox": [
186
- "primary"
278
+ "combobox-clear",
279
+ "combobox-control",
280
+ "combobox-empty",
281
+ "combobox-input",
282
+ "combobox-item",
283
+ "combobox-trigger"
187
284
  ],
188
285
  "command-palette": [
189
- "primary"
286
+ "command-palette-backdrop",
287
+ "command-palette-empty",
288
+ "command-palette-group",
289
+ "command-palette-group-label",
290
+ "command-palette-input",
291
+ "command-palette-item",
292
+ "command-palette-item-body",
293
+ "command-palette-item-desc",
294
+ "command-palette-item-icon",
295
+ "command-palette-item-label",
296
+ "command-palette-item-shortcut",
297
+ "command-palette-list",
298
+ "command-palette-popup",
299
+ "command-palette-search",
300
+ "command-palette-search-icon"
190
301
  ],
191
302
  "countdown": [
192
- "primary"
303
+ "countdown",
304
+ "countdown-label",
305
+ "countdown-plain",
306
+ "countdown-unit",
307
+ "countdown-value"
193
308
  ],
194
309
  "data-table": [
195
310
  "data-table",
@@ -212,13 +327,25 @@
212
327
  "data-table-warning"
213
328
  ],
214
329
  "dialog": [
215
- "primary"
330
+ "dialog-backdrop",
331
+ "dialog-description",
332
+ "dialog-footer",
333
+ "dialog-footer-sticky",
334
+ "dialog-header",
335
+ "dialog-header-sticky",
336
+ "dialog-popup",
337
+ "dialog-title"
216
338
  ],
217
339
  "diff": [
218
- "primary"
340
+ "diff",
341
+ "diff-grip",
342
+ "diff-item-1",
343
+ "diff-item-2",
344
+ "diff-resizer"
219
345
  ],
220
346
  "divider": [
221
- "primary"
347
+ "divider",
348
+ "divider-vertical"
222
349
  ],
223
350
  "dock": [
224
351
  "dock",
@@ -235,28 +362,72 @@
235
362
  "dock-warning"
236
363
  ],
237
364
  "drawer": [
238
- "primary"
365
+ "drawer-backdrop",
366
+ "drawer-description",
367
+ "drawer-footer",
368
+ "drawer-footer-sticky",
369
+ "drawer-header",
370
+ "drawer-header-sticky",
371
+ "drawer-popup",
372
+ "drawer-title"
239
373
  ],
240
374
  "dropdown": [
241
- "primary"
375
+ "dropdown",
376
+ "dropdown-item",
377
+ "dropdown-item-arrow",
378
+ "dropdown-label",
379
+ "dropdown-separator"
242
380
  ],
243
381
  "dropzone": [
244
- "primary"
382
+ "dropzone",
383
+ "dropzone-hint",
384
+ "dropzone-icon",
385
+ "dropzone-input",
386
+ "dropzone-title"
245
387
  ],
246
388
  "empty-state": [
247
- "primary"
389
+ "empty-state",
390
+ "empty-state-actions",
391
+ "empty-state-description",
392
+ "empty-state-icon",
393
+ "empty-state-sm",
394
+ "empty-state-title"
248
395
  ],
249
396
  "field": [
250
- "primary"
397
+ "field",
398
+ "field-description",
399
+ "field-error",
400
+ "field-label",
401
+ "field-status",
402
+ "field-status-attached",
403
+ "field-status-error",
404
+ "field-status-success",
405
+ "field-status-warning",
406
+ "input",
407
+ "select",
408
+ "textarea"
251
409
  ],
252
410
  "fieldset": [
253
- "primary"
411
+ "fieldset",
412
+ "fieldset-label",
413
+ "fieldset-legend"
254
414
  ],
255
415
  "file-input": [
256
- "primary"
416
+ "file-input",
417
+ "file-input-lg",
418
+ "file-input-sm"
257
419
  ],
258
420
  "file-upload": [
259
- "primary"
421
+ "file-upload",
422
+ "file-upload-item",
423
+ "file-upload-item-icon",
424
+ "file-upload-item-meta",
425
+ "file-upload-item-name",
426
+ "file-upload-item-remove",
427
+ "file-upload-item-size",
428
+ "file-upload-item-thumb",
429
+ "file-upload-list",
430
+ "file-upload-rejections"
260
431
  ],
261
432
  "filter": [
262
433
  "filter",
@@ -272,16 +443,26 @@
272
443
  "filter-warning"
273
444
  ],
274
445
  "footer": [
275
- "primary"
446
+ "footer",
447
+ "footer-center",
448
+ "footer-title"
276
449
  ],
277
450
  "hero": [
278
- "primary"
451
+ "hero",
452
+ "hero-content",
453
+ "hero-overlay"
279
454
  ],
280
455
  "indicator": [
281
- "primary"
456
+ "indicator",
457
+ "indicator-bottom",
458
+ "indicator-item",
459
+ "indicator-start"
282
460
  ],
283
461
  "input-group": [
284
- "primary"
462
+ "input-group",
463
+ "input-group-btn",
464
+ "input-group-end",
465
+ "input-group-start"
285
466
  ],
286
467
  "input": [
287
468
  "input",
@@ -302,16 +483,32 @@
302
483
  "input-xs"
303
484
  ],
304
485
  "join": [
305
- "primary"
486
+ "join",
487
+ "join-vertical"
306
488
  ],
307
489
  "kbd": [
308
- "primary"
490
+ "kbd",
491
+ "kbd-lg",
492
+ "kbd-md",
493
+ "kbd-sm",
494
+ "kbd-xl",
495
+ "kbd-xs"
309
496
  ],
310
497
  "label": [
311
- "primary"
498
+ "floating-label",
499
+ "label",
500
+ "label-required"
312
501
  ],
313
502
  "lightbox": [
314
- "primary"
503
+ "lightbox-backdrop",
504
+ "lightbox-caption",
505
+ "lightbox-close",
506
+ "lightbox-counter",
507
+ "lightbox-image",
508
+ "lightbox-nav",
509
+ "lightbox-nav-next",
510
+ "lightbox-nav-prev",
511
+ "lightbox-popup"
315
512
  ],
316
513
  "link": [
317
514
  "link",
@@ -326,22 +523,50 @@
326
523
  "link-warning"
327
524
  ],
328
525
  "list": [
329
- "primary"
526
+ "list",
527
+ "list-col-grow",
528
+ "list-hover",
529
+ "list-row",
530
+ "list-title"
330
531
  ],
331
532
  "loading": [
332
- "primary"
533
+ "loading",
534
+ "loading-lg",
535
+ "loading-md",
536
+ "loading-sm",
537
+ "loading-xl",
538
+ "loading-xs"
333
539
  ],
334
540
  "mask": [
335
- "primary"
541
+ "mask",
542
+ "mask-circle",
543
+ "mask-decagon",
544
+ "mask-diamond",
545
+ "mask-heart",
546
+ "mask-hexagon",
547
+ "mask-hexagon-2",
548
+ "mask-parallelogram",
549
+ "mask-pentagon",
550
+ "mask-squircle",
551
+ "mask-star",
552
+ "mask-star-2",
553
+ "mask-triangle",
554
+ "mask-triangle-2",
555
+ "mask-triangle-3",
556
+ "mask-triangle-4"
336
557
  ],
337
558
  "menu": [
338
- "primary"
559
+ "menu",
560
+ "menu-title"
339
561
  ],
340
562
  "menubar": [
341
- "primary"
563
+ "menubar",
564
+ "menubar-trigger"
342
565
  ],
343
566
  "metadata-list": [
344
- "primary"
567
+ "metadata-list",
568
+ "metadata-list-label",
569
+ "metadata-list-value"
345
570
  ],
346
571
  "meter": [
347
572
  "meter",
@@ -364,7 +589,13 @@
364
589
  "meter-xs"
365
590
  ],
366
591
  "mockup": [
367
- "primary"
592
+ "mockup-browser",
593
+ "mockup-browser-input",
594
+ "mockup-browser-toolbar",
595
+ "mockup-code",
596
+ "mockup-phone",
597
+ "mockup-phone-display",
598
+ "mockup-window"
368
599
  ],
369
600
  "multi-select": [
370
601
  "multi-select",
@@ -386,22 +617,44 @@
386
617
  "multi-select-warning"
387
618
  ],
388
619
  "navbar": [
389
- "primary"
620
+ "navbar",
621
+ "navbar-center",
622
+ "navbar-end",
623
+ "navbar-start"
390
624
  ],
391
625
  "navigation-menu": [
392
- "primary"
626
+ "navigation-menu",
627
+ "navigation-menu-content",
628
+ "navigation-menu-icon",
629
+ "navigation-menu-link",
630
+ "navigation-menu-list",
631
+ "navigation-menu-popup",
632
+ "navigation-menu-positioner",
633
+ "navigation-menu-trigger",
634
+ "navigation-menu-viewport"
393
635
  ],
394
636
  "number-field": [
395
- "primary"
637
+ "number-field",
638
+ "number-field-button",
639
+ "number-field-decrement",
640
+ "number-field-group",
641
+ "number-field-increment",
642
+ "number-field-input"
396
643
  ],
397
644
  "outline": [
398
- "primary"
645
+ "outline",
646
+ "outline-link",
647
+ "outline-list"
399
648
  ],
400
649
  "overflow-list": [
401
- "primary"
650
+ "overflow-list",
651
+ "overflow-list-badge",
652
+ "overflow-list-measure",
653
+ "overflow-list-popup"
402
654
  ],
403
655
  "overlay": [
404
- "primary"
656
+ "overlay",
657
+ "overlay-scrim"
405
658
  ],
406
659
  "pagination": [
407
660
  "pagination",
@@ -422,7 +675,7 @@
422
675
  "pagination-xs"
423
676
  ],
424
677
  "phone-input": [
425
- "primary"
678
+ "phone-input-country"
426
679
  ],
427
680
  "pin-input": [
428
681
  "pin-input",
@@ -442,13 +695,30 @@
442
695
  "pin-input-cell-xs"
443
696
  ],
444
697
  "popover": [
445
- "primary"
698
+ "popover",
699
+ "popover-arrow",
700
+ "popover-description",
701
+ "popover-title"
446
702
  ],
447
703
  "power-search": [
448
- "primary"
704
+ "power-search",
705
+ "power-search-add",
706
+ "power-search-chip",
707
+ "power-search-chip-field",
708
+ "power-search-chip-remove",
709
+ "power-search-chip-trigger",
710
+ "power-search-field-item",
711
+ "power-search-field-list",
712
+ "power-search-input",
713
+ "power-search-option-list",
714
+ "power-search-value-form",
715
+ "power-search-value-picker",
716
+ "power-search-value-picker-back",
717
+ "power-search-value-picker-label"
449
718
  ],
450
719
  "preview-card": [
451
- "primary"
720
+ "preview-card",
721
+ "preview-card-arrow"
452
722
  ],
453
723
  "progress": [
454
724
  "progress",
@@ -473,13 +743,17 @@
473
743
  "progress-xs"
474
744
  ],
475
745
  "prose": [
476
- "primary"
746
+ "prose",
747
+ "prose-lg",
748
+ "prose-sm",
749
+ "prose-xl"
477
750
  ],
478
751
  "radial-progress": [
479
- "primary"
752
+ "radial-progress"
480
753
  ],
481
754
  "radio-group": [
482
- "primary"
755
+ "radio-group",
756
+ "radio-option"
483
757
  ],
484
758
  "radio": [
485
759
  "radio",
@@ -531,15 +805,27 @@
531
805
  "rating-xs"
532
806
  ],
533
807
  "resizable-panels": [
534
- "primary"
808
+ "resizable-group",
809
+ "resizable-handle",
810
+ "resizable-handle-grip",
811
+ "resizable-panel"
535
812
  ],
536
813
  "rich-text-editor": [
537
814
  "ProseMirror",
538
815
  "is-editor-empty",
539
- "primary"
816
+ "rich-text-editor",
817
+ "rich-text-editor-btn",
818
+ "rich-text-editor-content",
819
+ "rich-text-editor-sep",
820
+ "rich-text-editor-toolbar"
540
821
  ],
541
822
  "scroll-area": [
542
- "primary"
823
+ "scroll-area",
824
+ "scroll-area-content",
825
+ "scroll-area-corner",
826
+ "scroll-area-scrollbar",
827
+ "scroll-area-thumb",
828
+ "scroll-area-viewport"
543
829
  ],
544
830
  "segment-field": [
545
831
  "date-range-input",
@@ -559,7 +845,16 @@
559
845
  "segment-field-warning"
560
846
  ],
561
847
  "select-menu": [
562
- "primary"
848
+ "select-group-label",
849
+ "select-icon",
850
+ "select-item",
851
+ "select-item-indicator",
852
+ "select-placeholder",
853
+ "select-popup",
854
+ "select-scroll-arrow",
855
+ "select-separator",
856
+ "select-trigger",
857
+ "select-value"
563
858
  ],
564
859
  "select": [
565
860
  "select",
@@ -578,7 +873,12 @@
578
873
  "select-xs"
579
874
  ],
580
875
  "selection-list": [
581
- "primary"
876
+ "selection-list",
877
+ "selection-list-item",
878
+ "selection-list-item-body",
879
+ "selection-list-item-description",
880
+ "selection-list-item-icon",
881
+ "selection-list-item-label"
582
882
  ],
583
883
  "sidebar": [
584
884
  "sidebar",
@@ -603,7 +903,9 @@
603
903
  "sidebar-warning"
604
904
  ],
605
905
  "skeleton": [
606
- "primary"
906
+ "skeleton",
907
+ "skeleton-circle",
908
+ "skeleton-text"
607
909
  ],
608
910
  "slider": [
609
911
  "slider",
@@ -624,13 +926,24 @@
624
926
  "slider-warning"
625
927
  ],
626
928
  "sortable-list": [
627
- "primary"
929
+ "sortable-handle",
930
+ "sortable-item",
931
+ "sortable-list"
628
932
  ],
629
933
  "stack": [
630
- "primary"
934
+ "stack",
935
+ "stack-bottom",
936
+ "stack-end",
937
+ "stack-start"
631
938
  ],
632
939
  "stat": [
633
- "primary"
940
+ "stat",
941
+ "stat-desc",
942
+ "stat-figure",
943
+ "stat-title",
944
+ "stat-value",
945
+ "stats",
946
+ "stats-vertical"
634
947
  ],
635
948
  "status": [
636
949
  "status",
@@ -662,7 +975,11 @@
662
975
  "steps"
663
976
  ],
664
977
  "swap": [
665
- "primary"
978
+ "swap",
979
+ "swap-flip",
980
+ "swap-off",
981
+ "swap-on",
982
+ "swap-rotate"
666
983
  ],
667
984
  "switch": [
668
985
  "switch",
@@ -682,7 +999,14 @@
682
999
  "switch-xs"
683
1000
  ],
684
1001
  "table": [
685
- "primary"
1002
+ "table",
1003
+ "table-hover",
1004
+ "table-lg",
1005
+ "table-md",
1006
+ "table-sm",
1007
+ "table-xl",
1008
+ "table-xs",
1009
+ "table-zebra"
686
1010
  ],
687
1011
  "tabs": [
688
1012
  "tabs",
@@ -735,10 +1059,16 @@
735
1059
  "textarea-xs"
736
1060
  ],
737
1061
  "timeline": [
738
- "primary"
1062
+ "timeline",
1063
+ "timeline-box",
1064
+ "timeline-dot",
1065
+ "timeline-end",
1066
+ "timeline-horizontal",
1067
+ "timeline-middle",
1068
+ "timeline-start"
739
1069
  ],
740
1070
  "timestamp": [
741
- "primary"
1071
+ "timestamp"
742
1072
  ],
743
1073
  "toast": [
744
1074
  "toast",
@@ -749,7 +1079,14 @@
749
1079
  "toast-viewport"
750
1080
  ],
751
1081
  "toggle-group": [
752
- "primary"
1082
+ "toggle-group",
1083
+ "toggle-group-accent",
1084
+ "toggle-group-item",
1085
+ "toggle-group-lg",
1086
+ "toggle-group-primary",
1087
+ "toggle-group-secondary",
1088
+ "toggle-group-sm",
1089
+ "toggle-group-xs"
753
1090
  ],
754
1091
  "toggle": [
755
1092
  "toggle",
@@ -768,19 +1105,43 @@
768
1105
  "toggle-xs"
769
1106
  ],
770
1107
  "toolbar": [
771
- "primary"
1108
+ "toolbar",
1109
+ "toolbar-button",
1110
+ "toolbar-center",
1111
+ "toolbar-group",
1112
+ "toolbar-link",
1113
+ "toolbar-separator"
772
1114
  ],
773
1115
  "tooltip": [
774
- "primary"
1116
+ "tooltip",
1117
+ "tooltip-arrow"
775
1118
  ],
776
1119
  "tree-view": [
777
- "primary"
1120
+ "tree",
1121
+ "tree-group",
1122
+ "tree-item",
1123
+ "tree-node",
1124
+ "tree-node-icon",
1125
+ "tree-node-label",
1126
+ "tree-toggle",
1127
+ "tree-toggle-spacer"
778
1128
  ],
779
1129
  "typography": [
780
- "primary"
1130
+ "blockquote",
1131
+ "blockquote-cite",
1132
+ "caption",
1133
+ "display",
1134
+ "h1",
1135
+ "h2",
1136
+ "h3",
1137
+ "h4",
1138
+ "h5",
1139
+ "h6",
1140
+ "lead"
781
1141
  ],
782
1142
  "validator": [
783
- "primary"
1143
+ "validator",
1144
+ "validator-hint"
784
1145
  ],
785
1146
  "wizard": [
786
1147
  "wizard",
@@ -6869,11 +6869,17 @@
6869
6869
  "optional": true,
6870
6870
  "type": "(node: TreeNode) => void",
6871
6871
  "doc": "Fires with the full node when one is selected."
6872
+ },
6873
+ {
6874
+ "name": "onMove",
6875
+ "optional": true,
6876
+ "type": "(id: string, targetId: string, edge: TreeDropEdge) => void",
6877
+ "doc": "Enables row drag-to-reorder/-reparent (rows become `draggable`) and fires once a drag is released over a valid row: `edge` is \"before\"/\"after\" a sibling or \"inside\" (append as a child). TreeView only guards against dropping a node onto itself or its own descendant (which the geometry already knows); it does NOT know which nodes are valid containers, so the consumer's own move logic is the source of truth for the rest — an \"inside\" drop onto something that can't hold children should just no-op."
6872
6878
  }
6873
6879
  ]
6874
6880
  }
6875
6881
  ],
6876
- "usageExample": "import { useState } from \"react\";\nimport { TreeView } from \"@wizeworks/silicaui-react\";\nimport type { TreeNode } from \"@wizeworks/silicaui-react\";\nimport { Section } from \"../lib/Section\";\n\nconst FolderIcon = (\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n <path d=\"M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z\" />\n </svg>\n);\nconst FileIcon = (\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n <path d=\"M14 3v4a1 1 0 0 0 1 1h4\" />\n <path d=\"M5 3h9l5 5v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z\" />\n </svg>\n);\n\nconst TREE_ITEMS: TreeNode[] = [\n {\n id: \"pages\",\n label: \"Pages\",\n icon: FolderIcon,\n children: [\n { id: \"home\", label: \"Home\", icon: FileIcon },\n { id: \"about\", label: \"About\", icon: FileIcon },\n { id: \"pricing\", label: \"Pricing\", icon: FileIcon },\n ],\n },\n {\n id: \"shop\",\n label: \"Shop\",\n icon: FolderIcon,\n children: [\n {\n id: \"products\",\n label: \"Products\",\n icon: FolderIcon,\n children: [\n { id: \"product-list\", label: \"All products\", icon: FileIcon },\n { id: \"product-new\", label: \"New product\", icon: FileIcon },\n ],\n },\n { id: \"collections\", label: \"Collections\", icon: FileIcon },\n { id: \"checkout\", label: \"Checkout (locked)\", icon: FileIcon, disabled: true },\n ],\n },\n { id: \"blog\", label: \"Blog\", icon: FileIcon },\n { id: \"settings\", label: \"Settings\", icon: FileIcon },\n];\n\nexport function TreeViewDemo() {\n const [selected, setSelected] = useState(\"about\");\n const [expanded, setExpanded] = useState<string[]>([\"pages\", \"shop\"]);\n\n return (\n <Section title=\"Real use · site page tree\">\n <TreeView\n items={TREE_ITEMS}\n selected={selected}\n onSelectedChange={setSelected}\n expanded={expanded}\n onExpandedChange={setExpanded}\n className=\"max-w-xs\"\n />\n </Section>\n );\n}"
6882
+ "usageExample": "import { useState } from \"react\";\nimport { TreeView } from \"@wizeworks/silicaui-react\";\nimport type { TreeDropEdge, TreeNode } from \"@wizeworks/silicaui-react\";\nimport { Section } from \"../lib/Section\";\n\nconst FolderIcon = (\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n <path d=\"M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z\" />\n </svg>\n);\nconst FileIcon = (\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n <path d=\"M14 3v4a1 1 0 0 0 1 1h4\" />\n <path d=\"M5 3h9l5 5v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z\" />\n </svg>\n);\n\nconst TREE_ITEMS: TreeNode[] = [\n {\n id: \"pages\",\n label: \"Pages\",\n icon: FolderIcon,\n children: [\n { id: \"home\", label: \"Home\", icon: FileIcon },\n { id: \"about\", label: \"About\", icon: FileIcon },\n { id: \"pricing\", label: \"Pricing\", icon: FileIcon },\n ],\n },\n {\n id: \"shop\",\n label: \"Shop\",\n icon: FolderIcon,\n children: [\n {\n id: \"products\",\n label: \"Products\",\n icon: FolderIcon,\n children: [\n { id: \"product-list\", label: \"All products\", icon: FileIcon },\n { id: \"product-new\", label: \"New product\", icon: FileIcon },\n ],\n },\n { id: \"collections\", label: \"Collections\", icon: FileIcon },\n { id: \"checkout\", label: \"Checkout (locked)\", icon: FileIcon, disabled: true },\n ],\n },\n { id: \"blog\", label: \"Blog\", icon: FileIcon },\n { id: \"settings\", label: \"Settings\", icon: FileIcon },\n];\n\n/** Remove `id` from the forest, returning the pruned tree + the removed node. */\nfunction removeById(nodes: TreeNode[], id: string): [TreeNode[], TreeNode | undefined] {\n let removed: TreeNode | undefined;\n const next = nodes.flatMap((n) => {\n if (n.id === id) {\n removed = n;\n return [];\n }\n if (!n.children) return [n];\n const [children, found] = removeById(n.children, id);\n if (found) removed = found;\n return [{ ...n, children }];\n });\n return [next, removed];\n}\n\n/** Insert `node` before/after/inside `targetId`, wherever it lives in the forest. */\nfunction insertRelative(nodes: TreeNode[], targetId: string, edge: TreeDropEdge, node: TreeNode): TreeNode[] {\n const idx = nodes.findIndex((n) => n.id === targetId);\n if (idx === -1) {\n return nodes.map((n) => (n.children ? { ...n, children: insertRelative(n.children, targetId, edge, node) } : n));\n }\n if (edge === \"inside\") {\n const target = nodes[idx]!;\n const updated = { ...target, children: [...(target.children ?? []), node] };\n return [...nodes.slice(0, idx), updated, ...nodes.slice(idx + 1)];\n }\n const at = edge === \"before\" ? idx : idx + 1;\n return [...nodes.slice(0, at), node, ...nodes.slice(at)];\n}\n\nfunction moveNode(nodes: TreeNode[], id: string, targetId: string, edge: TreeDropEdge): TreeNode[] {\n const [without, removed] = removeById(nodes, id);\n return removed ? insertRelative(without, targetId, edge, removed) : nodes;\n}\n\nexport function TreeViewDemo() {\n const [selected, setSelected] = useState(\"about\");\n const [expanded, setExpanded] = useState<string[]>([\"pages\", \"shop\"]);\n const [items, setItems] = useState(TREE_ITEMS);\n\n return (\n <Section title=\"Real use · site page tree — drag a row to reorder or reparent it\">\n <TreeView\n items={items}\n selected={selected}\n onSelectedChange={setSelected}\n expanded={expanded}\n onExpandedChange={setExpanded}\n onMove={(id, targetId, edge) => setItems((prev) => moveNode(prev, id, targetId, edge))}\n className=\"max-w-xs\"\n />\n </Section>\n );\n}"
6877
6883
  },
6878
6884
  {
6879
6885
  "name": "Wizard",
@@ -3,60 +3,60 @@
3
3
  "name": "@wizeworks/silicaui",
4
4
  "purpose": "Tailwind v4 plugin — design tokens + component CSS classes (the vocabulary every other package builds on).",
5
5
  "install": "pnpm add -D @wizeworks/silicaui tailwindcss",
6
- "version": "0.8.0"
6
+ "version": "0.10.1"
7
7
  },
8
8
  {
9
9
  "name": "@wizeworks/silicaui-react",
10
10
  "purpose": "Typed React components over the @wizeworks/silicaui classes, built on Base UI.",
11
11
  "install": "pnpm add @wizeworks/silicaui-react",
12
- "version": "0.8.0"
12
+ "version": "0.10.1"
13
13
  },
14
14
  {
15
15
  "name": "@wizeworks/silicaui-html",
16
16
  "purpose": "Framework-neutral node-tree schema + HTML projection + composed blocks (for non-React output).",
17
17
  "install": "pnpm add @wizeworks/silicaui-html",
18
- "version": "0.8.0"
18
+ "version": "0.10.1"
19
19
  },
20
20
  {
21
21
  "name": "@wizeworks/silicaui-behaviors",
22
22
  "purpose": "Zero-dependency runtime that hydrates data-sui-* markers with interactivity (the vanilla-JS counterpart to @wizeworks/silicaui-react's Base UI behavior).",
23
23
  "install": "pnpm add @wizeworks/silicaui-behaviors",
24
- "version": "0.8.0"
24
+ "version": "0.10.1"
25
25
  },
26
26
  {
27
27
  "name": "@wizeworks/silicaui-builder",
28
28
  "purpose": "The visual document editor/engine that powers the SilicaUI sitebuilder — also consumable directly: the framework-neutral engine at the root import, the `Builder` React component + `BuilderHost` interface (catalog/inspectorPanels/pickAsset) at `/react`, and the email editor at `/email` and `/email/react`.",
29
29
  "install": "pnpm add @wizeworks/silicaui-builder @wizeworks/silicaui-react",
30
- "version": "0.10.0"
30
+ "version": "0.10.1"
31
31
  },
32
32
  {
33
33
  "name": "@wizeworks/silicaui-charts",
34
34
  "purpose": "Apache ECharts wrapped and auto-themed to Silica's design tokens.",
35
35
  "install": "pnpm add @wizeworks/silicaui-charts @wizeworks/silicaui-react",
36
- "version": "0.8.0"
36
+ "version": "0.10.1"
37
37
  },
38
38
  {
39
39
  "name": "@wizeworks/silicaui-table",
40
40
  "purpose": "TanStack Table wrapped in Silica's table CSS.",
41
41
  "install": "pnpm add @wizeworks/silicaui-table @wizeworks/silicaui-react",
42
- "version": "0.8.0"
42
+ "version": "0.10.1"
43
43
  },
44
44
  {
45
45
  "name": "@wizeworks/silicaui-editor",
46
46
  "purpose": "TipTap rich-text editor with a Silica-styled toolbar.",
47
47
  "install": "pnpm add @wizeworks/silicaui-editor @wizeworks/silicaui-react",
48
- "version": "0.8.0"
48
+ "version": "0.10.1"
49
49
  },
50
50
  {
51
51
  "name": "@wizeworks/silicaui-dnd",
52
52
  "purpose": "dnd-kit wrapped — SortableList + drag primitives.",
53
53
  "install": "pnpm add @wizeworks/silicaui-dnd @wizeworks/silicaui-react",
54
- "version": "0.8.0"
54
+ "version": "0.10.1"
55
55
  },
56
56
  {
57
57
  "name": "@wizeworks/silicaui-panels",
58
58
  "purpose": "react-resizable-panels wrapped in Silica styling.",
59
59
  "install": "pnpm add @wizeworks/silicaui-panels @wizeworks/silicaui-react",
60
- "version": "0.8.0"
60
+ "version": "0.10.1"
61
61
  }
62
62
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wizeworks/silicaui-mcp",
3
- "version": "0.10.1",
3
+ "version": "0.12.0",
4
4
  "description": "A local MCP server that lets AI coding assistants query the Silica UI design system — real class names, component props, blocks, and behaviors — instead of guessing.",
5
5
  "type": "module",
6
6
  "license": "MIT",