@brightlocal/ui-components 2.2.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AI_USAGE.md +1 -1
- package/README.md +6 -5
- package/component-meta.json +531 -32
- package/dist/blocks/data-table.cjs +1 -1
- package/dist/blocks/data-table.d.ts +380 -196
- package/dist/blocks/data-table.d.ts.map +1 -1
- package/dist/blocks/data-table.js +452 -449
- package/dist/callout.cjs +1 -0
- package/dist/callout.d.ts +51 -0
- package/dist/callout.d.ts.map +1 -0
- package/dist/callout.js +114 -0
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.d.ts +40 -4
- package/dist/carousel.d.ts.map +1 -1
- package/dist/carousel.js +156 -101
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.js +2 -2
- package/dist/command.cjs +1 -1
- package/dist/command.js +27 -27
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +436 -426
- package/dist/input-chip.cjs +1 -1
- package/dist/input-chip.js +1 -1
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.js +1 -1
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.js +9 -9
- package/dist/input.cjs +1 -1
- package/dist/input.d.ts.map +1 -1
- package/dist/input.js +6 -7
- package/dist/sheet.d.ts +1 -1
- package/dist/split-layout.cjs +1 -1
- package/dist/split-layout.d.ts +17 -3
- package/dist/split-layout.d.ts.map +1 -1
- package/dist/split-layout.js +86 -114
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +6 -6
- package/package.json +34 -10
- package/src/blocks/data-table.tsx +865 -679
- package/src/components/callout.tsx +182 -0
- package/src/components/carousel.tsx +121 -3
- package/src/components/combobox.tsx +2 -2
- package/src/components/command.tsx +1 -1
- package/src/components/input-chip.tsx +1 -1
- package/src/components/input-group.tsx +1 -1
- package/src/components/input-otp.tsx +1 -1
- package/src/components/input.tsx +2 -3
- package/src/components/split-layout.tsx +27 -65
- package/src/components/textarea.tsx +1 -1
- package/src/index.ts +1 -0
package/component-meta.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightlocal/ui-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "Machine-readable registry of all components in the BrightLocal Design System",
|
|
5
5
|
"components": [
|
|
6
6
|
{
|
|
@@ -57,7 +57,28 @@
|
|
|
57
57
|
"description",
|
|
58
58
|
"action"
|
|
59
59
|
],
|
|
60
|
-
"description": "Status alert messages with semantic variants"
|
|
60
|
+
"description": "Status alert messages with semantic variants",
|
|
61
|
+
"aliases": [
|
|
62
|
+
"notification",
|
|
63
|
+
"banner",
|
|
64
|
+
"message",
|
|
65
|
+
"status message"
|
|
66
|
+
],
|
|
67
|
+
"doNotUseFor": [
|
|
68
|
+
"toast notifications (use Sonner)",
|
|
69
|
+
"inline validation (use FieldError)"
|
|
70
|
+
],
|
|
71
|
+
"replaces": [],
|
|
72
|
+
"states": [
|
|
73
|
+
"default"
|
|
74
|
+
],
|
|
75
|
+
"a11yContract": {
|
|
76
|
+
"role": "alert",
|
|
77
|
+
"requiresLabel": false,
|
|
78
|
+
"keyboardInteraction": [
|
|
79
|
+
"Tab"
|
|
80
|
+
]
|
|
81
|
+
}
|
|
61
82
|
},
|
|
62
83
|
{
|
|
63
84
|
"name": "AlertDialog",
|
|
@@ -81,7 +102,29 @@
|
|
|
81
102
|
"open",
|
|
82
103
|
"onOpenChange"
|
|
83
104
|
],
|
|
84
|
-
"description": "Modal confirmation dialogs"
|
|
105
|
+
"description": "Modal confirmation dialogs",
|
|
106
|
+
"aliases": [
|
|
107
|
+
"confirmation dialog",
|
|
108
|
+
"confirm modal",
|
|
109
|
+
"destructive action dialog"
|
|
110
|
+
],
|
|
111
|
+
"doNotUseFor": [
|
|
112
|
+
"informational dialogs (use Dialog)",
|
|
113
|
+
"toast messages (use Sonner)"
|
|
114
|
+
],
|
|
115
|
+
"replaces": [],
|
|
116
|
+
"states": [
|
|
117
|
+
"open",
|
|
118
|
+
"closed"
|
|
119
|
+
],
|
|
120
|
+
"a11yContract": {
|
|
121
|
+
"role": "alertdialog",
|
|
122
|
+
"requiresLabel": true,
|
|
123
|
+
"keyboardInteraction": [
|
|
124
|
+
"Escape",
|
|
125
|
+
"Tab"
|
|
126
|
+
]
|
|
127
|
+
}
|
|
85
128
|
},
|
|
86
129
|
{
|
|
87
130
|
"name": "AspectRatio",
|
|
@@ -136,7 +179,27 @@
|
|
|
136
179
|
"props": [
|
|
137
180
|
"asChild"
|
|
138
181
|
],
|
|
139
|
-
"description": "Status badges and labels"
|
|
182
|
+
"description": "Status badges and labels",
|
|
183
|
+
"aliases": [
|
|
184
|
+
"tag",
|
|
185
|
+
"chip",
|
|
186
|
+
"pill",
|
|
187
|
+
"label",
|
|
188
|
+
"status indicator"
|
|
189
|
+
],
|
|
190
|
+
"doNotUseFor": [
|
|
191
|
+
"removable tags (use Chip)",
|
|
192
|
+
"interactive elements (use Button)"
|
|
193
|
+
],
|
|
194
|
+
"replaces": [],
|
|
195
|
+
"states": [
|
|
196
|
+
"default"
|
|
197
|
+
],
|
|
198
|
+
"a11yContract": {
|
|
199
|
+
"role": "status",
|
|
200
|
+
"requiresLabel": false,
|
|
201
|
+
"keyboardInteraction": []
|
|
202
|
+
}
|
|
140
203
|
},
|
|
141
204
|
{
|
|
142
205
|
"name": "Breadcrumb",
|
|
@@ -189,7 +252,36 @@
|
|
|
189
252
|
"type",
|
|
190
253
|
"ariaLabel"
|
|
191
254
|
],
|
|
192
|
-
"description": "Primary interactive button with variants"
|
|
255
|
+
"description": "Primary interactive button with variants",
|
|
256
|
+
"aliases": [
|
|
257
|
+
"btn",
|
|
258
|
+
"cta",
|
|
259
|
+
"action button",
|
|
260
|
+
"submit button",
|
|
261
|
+
"confirm button"
|
|
262
|
+
],
|
|
263
|
+
"doNotUseFor": [
|
|
264
|
+
"navigation links (use Link)",
|
|
265
|
+
"toggle state (use Toggle or Switch)"
|
|
266
|
+
],
|
|
267
|
+
"replaces": [
|
|
268
|
+
"native <button>"
|
|
269
|
+
],
|
|
270
|
+
"states": [
|
|
271
|
+
"default",
|
|
272
|
+
"hover",
|
|
273
|
+
"focus",
|
|
274
|
+
"disabled",
|
|
275
|
+
"loading"
|
|
276
|
+
],
|
|
277
|
+
"a11yContract": {
|
|
278
|
+
"role": "button",
|
|
279
|
+
"requiresLabel": false,
|
|
280
|
+
"keyboardInteraction": [
|
|
281
|
+
"Enter",
|
|
282
|
+
"Space"
|
|
283
|
+
]
|
|
284
|
+
}
|
|
193
285
|
},
|
|
194
286
|
{
|
|
195
287
|
"name": "Calendar",
|
|
@@ -210,6 +302,35 @@
|
|
|
210
302
|
],
|
|
211
303
|
"description": "Date selection calendar (wraps react-day-picker)"
|
|
212
304
|
},
|
|
305
|
+
{
|
|
306
|
+
"name": "Callout",
|
|
307
|
+
"import": "@brightlocal/ui-components/callout",
|
|
308
|
+
"category": "display",
|
|
309
|
+
"exports": [
|
|
310
|
+
"Callout",
|
|
311
|
+
"CalloutHeading",
|
|
312
|
+
"CalloutCitation"
|
|
313
|
+
],
|
|
314
|
+
"compound": true,
|
|
315
|
+
"dataHookRequired": true,
|
|
316
|
+
"variants": {
|
|
317
|
+
"variant": [
|
|
318
|
+
"primary",
|
|
319
|
+
"purple",
|
|
320
|
+
"blue",
|
|
321
|
+
"green"
|
|
322
|
+
],
|
|
323
|
+
"pointer": [
|
|
324
|
+
"top",
|
|
325
|
+
"bottom",
|
|
326
|
+
"left",
|
|
327
|
+
"right",
|
|
328
|
+
"none"
|
|
329
|
+
]
|
|
330
|
+
},
|
|
331
|
+
"props": [],
|
|
332
|
+
"description": "Speech bubble callout for highlighting key statements or quotes"
|
|
333
|
+
},
|
|
213
334
|
{
|
|
214
335
|
"name": "Card",
|
|
215
336
|
"import": "@brightlocal/ui-components/card",
|
|
@@ -236,7 +357,29 @@
|
|
|
236
357
|
"props": [
|
|
237
358
|
"maxWidth"
|
|
238
359
|
],
|
|
239
|
-
"description": "Content container with consistent styling"
|
|
360
|
+
"description": "Content container with consistent styling",
|
|
361
|
+
"aliases": [
|
|
362
|
+
"container",
|
|
363
|
+
"panel",
|
|
364
|
+
"box",
|
|
365
|
+
"wrapper",
|
|
366
|
+
"content card"
|
|
367
|
+
],
|
|
368
|
+
"doNotUseFor": [
|
|
369
|
+
"clickable list items (use List)",
|
|
370
|
+
"modal content (use Dialog)"
|
|
371
|
+
],
|
|
372
|
+
"replaces": [
|
|
373
|
+
"raw div containers"
|
|
374
|
+
],
|
|
375
|
+
"states": [
|
|
376
|
+
"default"
|
|
377
|
+
],
|
|
378
|
+
"a11yContract": {
|
|
379
|
+
"role": "region",
|
|
380
|
+
"requiresLabel": false,
|
|
381
|
+
"keyboardInteraction": []
|
|
382
|
+
}
|
|
240
383
|
},
|
|
241
384
|
{
|
|
242
385
|
"name": "Carousel",
|
|
@@ -247,7 +390,8 @@
|
|
|
247
390
|
"CarouselContent",
|
|
248
391
|
"CarouselItem",
|
|
249
392
|
"CarouselPrevious",
|
|
250
|
-
"CarouselNext"
|
|
393
|
+
"CarouselNext",
|
|
394
|
+
"CarouselDots"
|
|
251
395
|
],
|
|
252
396
|
"compound": true,
|
|
253
397
|
"dataHookRequired": true,
|
|
@@ -319,7 +463,32 @@
|
|
|
319
463
|
"checked",
|
|
320
464
|
"onCheckedChange"
|
|
321
465
|
],
|
|
322
|
-
"description": "Checkbox input"
|
|
466
|
+
"description": "Checkbox input",
|
|
467
|
+
"aliases": [
|
|
468
|
+
"check",
|
|
469
|
+
"checkmark",
|
|
470
|
+
"tick box"
|
|
471
|
+
],
|
|
472
|
+
"doNotUseFor": [
|
|
473
|
+
"on/off toggle (use Switch)",
|
|
474
|
+
"radio selection (use RadioGroup)"
|
|
475
|
+
],
|
|
476
|
+
"replaces": [
|
|
477
|
+
"native <input type='checkbox'>"
|
|
478
|
+
],
|
|
479
|
+
"states": [
|
|
480
|
+
"checked",
|
|
481
|
+
"unchecked",
|
|
482
|
+
"indeterminate",
|
|
483
|
+
"disabled"
|
|
484
|
+
],
|
|
485
|
+
"a11yContract": {
|
|
486
|
+
"role": "checkbox",
|
|
487
|
+
"requiresLabel": true,
|
|
488
|
+
"keyboardInteraction": [
|
|
489
|
+
"Space"
|
|
490
|
+
]
|
|
491
|
+
}
|
|
323
492
|
},
|
|
324
493
|
{
|
|
325
494
|
"name": "Chip",
|
|
@@ -395,7 +564,33 @@
|
|
|
395
564
|
"sideOffset",
|
|
396
565
|
"avoidCollisions"
|
|
397
566
|
],
|
|
398
|
-
"description": "Searchable select dropdown with filtering"
|
|
567
|
+
"description": "Searchable select dropdown with filtering",
|
|
568
|
+
"aliases": [
|
|
569
|
+
"autocomplete",
|
|
570
|
+
"searchable select",
|
|
571
|
+
"typeahead",
|
|
572
|
+
"filterable dropdown"
|
|
573
|
+
],
|
|
574
|
+
"doNotUseFor": [
|
|
575
|
+
"simple select without search (use Select)",
|
|
576
|
+
"command palette (use Command)"
|
|
577
|
+
],
|
|
578
|
+
"replaces": [],
|
|
579
|
+
"states": [
|
|
580
|
+
"open",
|
|
581
|
+
"closed",
|
|
582
|
+
"loading",
|
|
583
|
+
"disabled"
|
|
584
|
+
],
|
|
585
|
+
"a11yContract": {
|
|
586
|
+
"role": "combobox",
|
|
587
|
+
"requiresLabel": true,
|
|
588
|
+
"keyboardInteraction": [
|
|
589
|
+
"Arrow keys",
|
|
590
|
+
"Enter",
|
|
591
|
+
"Escape"
|
|
592
|
+
]
|
|
593
|
+
}
|
|
399
594
|
},
|
|
400
595
|
{
|
|
401
596
|
"name": "Command",
|
|
@@ -513,7 +708,31 @@
|
|
|
513
708
|
"onOpenChange",
|
|
514
709
|
"modal"
|
|
515
710
|
],
|
|
516
|
-
"description": "Modal dialog overlay"
|
|
711
|
+
"description": "Modal dialog overlay",
|
|
712
|
+
"aliases": [
|
|
713
|
+
"modal",
|
|
714
|
+
"popup",
|
|
715
|
+
"lightbox"
|
|
716
|
+
],
|
|
717
|
+
"doNotUseFor": [
|
|
718
|
+
"confirmation actions (use AlertDialog)",
|
|
719
|
+
"side panels (use Sheet or Drawer)"
|
|
720
|
+
],
|
|
721
|
+
"replaces": [
|
|
722
|
+
"native <dialog>"
|
|
723
|
+
],
|
|
724
|
+
"states": [
|
|
725
|
+
"open",
|
|
726
|
+
"closed"
|
|
727
|
+
],
|
|
728
|
+
"a11yContract": {
|
|
729
|
+
"role": "dialog",
|
|
730
|
+
"requiresLabel": true,
|
|
731
|
+
"keyboardInteraction": [
|
|
732
|
+
"Escape",
|
|
733
|
+
"Tab"
|
|
734
|
+
]
|
|
735
|
+
}
|
|
517
736
|
},
|
|
518
737
|
{
|
|
519
738
|
"name": "Drawer",
|
|
@@ -564,7 +783,32 @@
|
|
|
564
783
|
"dataHookRequired": false,
|
|
565
784
|
"variants": {},
|
|
566
785
|
"props": [],
|
|
567
|
-
"description": "Dropdown menu triggered by a button"
|
|
786
|
+
"description": "Dropdown menu triggered by a button",
|
|
787
|
+
"aliases": [
|
|
788
|
+
"context menu",
|
|
789
|
+
"action menu",
|
|
790
|
+
"kebab menu",
|
|
791
|
+
"more menu",
|
|
792
|
+
"three-dot menu"
|
|
793
|
+
],
|
|
794
|
+
"doNotUseFor": [
|
|
795
|
+
"navigation (use NavigationMenu)",
|
|
796
|
+
"form selection (use Select)"
|
|
797
|
+
],
|
|
798
|
+
"replaces": [],
|
|
799
|
+
"states": [
|
|
800
|
+
"open",
|
|
801
|
+
"closed"
|
|
802
|
+
],
|
|
803
|
+
"a11yContract": {
|
|
804
|
+
"role": "menu",
|
|
805
|
+
"requiresLabel": false,
|
|
806
|
+
"keyboardInteraction": [
|
|
807
|
+
"Arrow keys",
|
|
808
|
+
"Enter",
|
|
809
|
+
"Escape"
|
|
810
|
+
]
|
|
811
|
+
}
|
|
568
812
|
},
|
|
569
813
|
{
|
|
570
814
|
"name": "Field",
|
|
@@ -597,7 +841,26 @@
|
|
|
597
841
|
"props": [
|
|
598
842
|
"align"
|
|
599
843
|
],
|
|
600
|
-
"description": "Form field wrapper with label, description, and error handling"
|
|
844
|
+
"description": "Form field wrapper with label, description, and error handling",
|
|
845
|
+
"aliases": [
|
|
846
|
+
"form field",
|
|
847
|
+
"input group",
|
|
848
|
+
"field wrapper"
|
|
849
|
+
],
|
|
850
|
+
"doNotUseFor": [
|
|
851
|
+
"standalone labels (use Label)",
|
|
852
|
+
"inline text (use Typography)"
|
|
853
|
+
],
|
|
854
|
+
"replaces": [],
|
|
855
|
+
"states": [
|
|
856
|
+
"default",
|
|
857
|
+
"invalid"
|
|
858
|
+
],
|
|
859
|
+
"a11yContract": {
|
|
860
|
+
"role": "group",
|
|
861
|
+
"requiresLabel": false,
|
|
862
|
+
"keyboardInteraction": []
|
|
863
|
+
}
|
|
601
864
|
},
|
|
602
865
|
{
|
|
603
866
|
"name": "GlobalLayout",
|
|
@@ -678,7 +941,32 @@
|
|
|
678
941
|
"hasIcon",
|
|
679
942
|
"hasSecondaryIcon"
|
|
680
943
|
],
|
|
681
|
-
"description": "Text input field"
|
|
944
|
+
"description": "Text input field",
|
|
945
|
+
"aliases": [
|
|
946
|
+
"text field",
|
|
947
|
+
"textbox",
|
|
948
|
+
"text input"
|
|
949
|
+
],
|
|
950
|
+
"doNotUseFor": [
|
|
951
|
+
"multi-line text (use Textarea)",
|
|
952
|
+
"search with dropdown (use Combobox)"
|
|
953
|
+
],
|
|
954
|
+
"replaces": [
|
|
955
|
+
"native <input>"
|
|
956
|
+
],
|
|
957
|
+
"states": [
|
|
958
|
+
"default",
|
|
959
|
+
"focus",
|
|
960
|
+
"disabled",
|
|
961
|
+
"invalid"
|
|
962
|
+
],
|
|
963
|
+
"a11yContract": {
|
|
964
|
+
"role": "textbox",
|
|
965
|
+
"requiresLabel": true,
|
|
966
|
+
"keyboardInteraction": [
|
|
967
|
+
"Tab"
|
|
968
|
+
]
|
|
969
|
+
}
|
|
682
970
|
},
|
|
683
971
|
{
|
|
684
972
|
"name": "InputChip",
|
|
@@ -777,7 +1065,25 @@
|
|
|
777
1065
|
"optional",
|
|
778
1066
|
"htmlFor"
|
|
779
1067
|
],
|
|
780
|
-
"description": "Form label element"
|
|
1068
|
+
"description": "Form label element",
|
|
1069
|
+
"aliases": [
|
|
1070
|
+
"form label",
|
|
1071
|
+
"input label"
|
|
1072
|
+
],
|
|
1073
|
+
"doNotUseFor": [
|
|
1074
|
+
"standalone text (use Typography)"
|
|
1075
|
+
],
|
|
1076
|
+
"replaces": [
|
|
1077
|
+
"native <label>"
|
|
1078
|
+
],
|
|
1079
|
+
"states": [
|
|
1080
|
+
"default"
|
|
1081
|
+
],
|
|
1082
|
+
"a11yContract": {
|
|
1083
|
+
"role": "none",
|
|
1084
|
+
"requiresLabel": false,
|
|
1085
|
+
"keyboardInteraction": []
|
|
1086
|
+
}
|
|
781
1087
|
},
|
|
782
1088
|
{
|
|
783
1089
|
"name": "Link",
|
|
@@ -929,7 +1235,29 @@
|
|
|
929
1235
|
"side",
|
|
930
1236
|
"sideOffset"
|
|
931
1237
|
],
|
|
932
|
-
"description": "Floating popover panel"
|
|
1238
|
+
"description": "Floating popover panel",
|
|
1239
|
+
"aliases": [
|
|
1240
|
+
"floating panel",
|
|
1241
|
+
"popup panel",
|
|
1242
|
+
"info popup"
|
|
1243
|
+
],
|
|
1244
|
+
"doNotUseFor": [
|
|
1245
|
+
"tooltips (use Tooltip)",
|
|
1246
|
+
"menus (use DropdownMenu)"
|
|
1247
|
+
],
|
|
1248
|
+
"replaces": [],
|
|
1249
|
+
"states": [
|
|
1250
|
+
"open",
|
|
1251
|
+
"closed"
|
|
1252
|
+
],
|
|
1253
|
+
"a11yContract": {
|
|
1254
|
+
"role": "dialog",
|
|
1255
|
+
"requiresLabel": false,
|
|
1256
|
+
"keyboardInteraction": [
|
|
1257
|
+
"Escape",
|
|
1258
|
+
"Tab"
|
|
1259
|
+
]
|
|
1260
|
+
}
|
|
933
1261
|
},
|
|
934
1262
|
{
|
|
935
1263
|
"name": "Progress",
|
|
@@ -1060,7 +1388,33 @@
|
|
|
1060
1388
|
"onOpenChange",
|
|
1061
1389
|
"disabled"
|
|
1062
1390
|
],
|
|
1063
|
-
"description": "Dropdown select input"
|
|
1391
|
+
"description": "Dropdown select input",
|
|
1392
|
+
"aliases": [
|
|
1393
|
+
"dropdown",
|
|
1394
|
+
"picker",
|
|
1395
|
+
"select menu"
|
|
1396
|
+
],
|
|
1397
|
+
"doNotUseFor": [
|
|
1398
|
+
"searchable lists (use Combobox)",
|
|
1399
|
+
"multi-select (use Combobox)"
|
|
1400
|
+
],
|
|
1401
|
+
"replaces": [
|
|
1402
|
+
"native <select>"
|
|
1403
|
+
],
|
|
1404
|
+
"states": [
|
|
1405
|
+
"default",
|
|
1406
|
+
"open",
|
|
1407
|
+
"disabled"
|
|
1408
|
+
],
|
|
1409
|
+
"a11yContract": {
|
|
1410
|
+
"role": "listbox",
|
|
1411
|
+
"requiresLabel": true,
|
|
1412
|
+
"keyboardInteraction": [
|
|
1413
|
+
"Space",
|
|
1414
|
+
"Enter",
|
|
1415
|
+
"Arrow keys"
|
|
1416
|
+
]
|
|
1417
|
+
}
|
|
1064
1418
|
},
|
|
1065
1419
|
{
|
|
1066
1420
|
"name": "Separator",
|
|
@@ -1113,7 +1467,31 @@
|
|
|
1113
1467
|
"open",
|
|
1114
1468
|
"onOpenChange"
|
|
1115
1469
|
],
|
|
1116
|
-
"description": "Side panel overlay"
|
|
1470
|
+
"description": "Side panel overlay",
|
|
1471
|
+
"aliases": [
|
|
1472
|
+
"side panel",
|
|
1473
|
+
"drawer",
|
|
1474
|
+
"flyout",
|
|
1475
|
+
"tray",
|
|
1476
|
+
"slide-out"
|
|
1477
|
+
],
|
|
1478
|
+
"doNotUseFor": [
|
|
1479
|
+
"centered dialogs (use Dialog)",
|
|
1480
|
+
"confirmations (use AlertDialog)"
|
|
1481
|
+
],
|
|
1482
|
+
"replaces": [],
|
|
1483
|
+
"states": [
|
|
1484
|
+
"open",
|
|
1485
|
+
"closed"
|
|
1486
|
+
],
|
|
1487
|
+
"a11yContract": {
|
|
1488
|
+
"role": "dialog",
|
|
1489
|
+
"requiresLabel": true,
|
|
1490
|
+
"keyboardInteraction": [
|
|
1491
|
+
"Escape",
|
|
1492
|
+
"Tab"
|
|
1493
|
+
]
|
|
1494
|
+
}
|
|
1117
1495
|
},
|
|
1118
1496
|
{
|
|
1119
1497
|
"name": "Skeleton",
|
|
@@ -1173,7 +1551,27 @@
|
|
|
1173
1551
|
"button",
|
|
1174
1552
|
"duration"
|
|
1175
1553
|
],
|
|
1176
|
-
"description": "Toast notification system. Accepts a `duration` option (ms) to control auto-dismiss timing. Set to `Infinity` to keep the toast visible until the user closes it or you call `sonner.dismiss(id)`."
|
|
1554
|
+
"description": "Toast notification system. Accepts a `duration` option (ms) to control auto-dismiss timing. Set to `Infinity` to keep the toast visible until the user closes it or you call `sonner.dismiss(id)`.",
|
|
1555
|
+
"aliases": [
|
|
1556
|
+
"toast",
|
|
1557
|
+
"notification",
|
|
1558
|
+
"snackbar",
|
|
1559
|
+
"flash message"
|
|
1560
|
+
],
|
|
1561
|
+
"doNotUseFor": [
|
|
1562
|
+
"persistent alerts (use Alert)",
|
|
1563
|
+
"confirmation dialogs (use AlertDialog)"
|
|
1564
|
+
],
|
|
1565
|
+
"replaces": [],
|
|
1566
|
+
"states": [
|
|
1567
|
+
"visible",
|
|
1568
|
+
"dismissed"
|
|
1569
|
+
],
|
|
1570
|
+
"a11yContract": {
|
|
1571
|
+
"role": "status",
|
|
1572
|
+
"requiresLabel": false,
|
|
1573
|
+
"keyboardInteraction": []
|
|
1574
|
+
}
|
|
1177
1575
|
},
|
|
1178
1576
|
{
|
|
1179
1577
|
"name": "SplitLayout",
|
|
@@ -1209,7 +1607,28 @@
|
|
|
1209
1607
|
"checked",
|
|
1210
1608
|
"onCheckedChange"
|
|
1211
1609
|
],
|
|
1212
|
-
"description": "Toggle switch input"
|
|
1610
|
+
"description": "Toggle switch input",
|
|
1611
|
+
"aliases": [
|
|
1612
|
+
"toggle switch",
|
|
1613
|
+
"on/off toggle"
|
|
1614
|
+
],
|
|
1615
|
+
"doNotUseFor": [
|
|
1616
|
+
"multi-option selection (use Checkbox or RadioGroup)",
|
|
1617
|
+
"button toggle (use Toggle)"
|
|
1618
|
+
],
|
|
1619
|
+
"replaces": [],
|
|
1620
|
+
"states": [
|
|
1621
|
+
"checked",
|
|
1622
|
+
"unchecked",
|
|
1623
|
+
"disabled"
|
|
1624
|
+
],
|
|
1625
|
+
"a11yContract": {
|
|
1626
|
+
"role": "switch",
|
|
1627
|
+
"requiresLabel": true,
|
|
1628
|
+
"keyboardInteraction": [
|
|
1629
|
+
"Space"
|
|
1630
|
+
]
|
|
1631
|
+
}
|
|
1213
1632
|
},
|
|
1214
1633
|
{
|
|
1215
1634
|
"name": "Table",
|
|
@@ -1238,7 +1657,29 @@
|
|
|
1238
1657
|
]
|
|
1239
1658
|
},
|
|
1240
1659
|
"props": [],
|
|
1241
|
-
"description": "Styled HTML table"
|
|
1660
|
+
"description": "Styled HTML table",
|
|
1661
|
+
"aliases": [
|
|
1662
|
+
"data grid",
|
|
1663
|
+
"grid",
|
|
1664
|
+
"list table"
|
|
1665
|
+
],
|
|
1666
|
+
"doNotUseFor": [
|
|
1667
|
+
"complex filtering and sorting (use DataTable block)",
|
|
1668
|
+
"layout grids (use CSS grid)"
|
|
1669
|
+
],
|
|
1670
|
+
"replaces": [
|
|
1671
|
+
"native <table>"
|
|
1672
|
+
],
|
|
1673
|
+
"states": [
|
|
1674
|
+
"default"
|
|
1675
|
+
],
|
|
1676
|
+
"a11yContract": {
|
|
1677
|
+
"role": "table",
|
|
1678
|
+
"requiresLabel": false,
|
|
1679
|
+
"keyboardInteraction": [
|
|
1680
|
+
"Tab"
|
|
1681
|
+
]
|
|
1682
|
+
}
|
|
1242
1683
|
},
|
|
1243
1684
|
{
|
|
1244
1685
|
"name": "Tabs",
|
|
@@ -1258,7 +1699,28 @@
|
|
|
1258
1699
|
"defaultValue",
|
|
1259
1700
|
"onValueChange"
|
|
1260
1701
|
],
|
|
1261
|
-
"description": "Tabbed interface for switching between views"
|
|
1702
|
+
"description": "Tabbed interface for switching between views",
|
|
1703
|
+
"aliases": [
|
|
1704
|
+
"tab bar",
|
|
1705
|
+
"tab group",
|
|
1706
|
+
"tabbed interface"
|
|
1707
|
+
],
|
|
1708
|
+
"doNotUseFor": [
|
|
1709
|
+
"page navigation (use NavigationMenu)",
|
|
1710
|
+
"step-by-step wizards"
|
|
1711
|
+
],
|
|
1712
|
+
"replaces": [],
|
|
1713
|
+
"states": [
|
|
1714
|
+
"default"
|
|
1715
|
+
],
|
|
1716
|
+
"a11yContract": {
|
|
1717
|
+
"role": "tablist",
|
|
1718
|
+
"requiresLabel": false,
|
|
1719
|
+
"keyboardInteraction": [
|
|
1720
|
+
"Arrow keys",
|
|
1721
|
+
"Tab"
|
|
1722
|
+
]
|
|
1723
|
+
}
|
|
1262
1724
|
},
|
|
1263
1725
|
{
|
|
1264
1726
|
"name": "Textarea",
|
|
@@ -1372,7 +1834,30 @@
|
|
|
1372
1834
|
"align",
|
|
1373
1835
|
"sideOffset"
|
|
1374
1836
|
],
|
|
1375
|
-
"description": "Hover tooltip with configurable positioning"
|
|
1837
|
+
"description": "Hover tooltip with configurable positioning",
|
|
1838
|
+
"aliases": [
|
|
1839
|
+
"hover tip",
|
|
1840
|
+
"info tip",
|
|
1841
|
+
"help text"
|
|
1842
|
+
],
|
|
1843
|
+
"doNotUseFor": [
|
|
1844
|
+
"interactive content (use Popover)",
|
|
1845
|
+
"complex content (use HoverCard)"
|
|
1846
|
+
],
|
|
1847
|
+
"replaces": [
|
|
1848
|
+
"title attribute"
|
|
1849
|
+
],
|
|
1850
|
+
"states": [
|
|
1851
|
+
"visible",
|
|
1852
|
+
"hidden"
|
|
1853
|
+
],
|
|
1854
|
+
"a11yContract": {
|
|
1855
|
+
"role": "tooltip",
|
|
1856
|
+
"requiresLabel": false,
|
|
1857
|
+
"keyboardInteraction": [
|
|
1858
|
+
"Escape"
|
|
1859
|
+
]
|
|
1860
|
+
}
|
|
1376
1861
|
},
|
|
1377
1862
|
{
|
|
1378
1863
|
"name": "Typography",
|
|
@@ -1404,27 +1889,41 @@
|
|
|
1404
1889
|
"blocks": [
|
|
1405
1890
|
{
|
|
1406
1891
|
"name": "DataTable",
|
|
1407
|
-
"import": "@brightlocal/ui-components/
|
|
1892
|
+
"import": "@brightlocal/ui-components/data-table",
|
|
1408
1893
|
"category": "block",
|
|
1409
1894
|
"exports": [
|
|
1410
|
-
"DataTable"
|
|
1895
|
+
"DataTable",
|
|
1896
|
+
"VirtualizedDataTable",
|
|
1897
|
+
"useDataTable",
|
|
1898
|
+
"DataTableColumnHeader",
|
|
1899
|
+
"DataTableRowActions",
|
|
1900
|
+
"DataTableToolbar",
|
|
1901
|
+
"DataTableToolbarLeft",
|
|
1902
|
+
"DataTableToolbarRight",
|
|
1903
|
+
"DataTableSearch",
|
|
1904
|
+
"DataTablePagination",
|
|
1905
|
+
"DataTableSelectAllCheckbox",
|
|
1906
|
+
"DataTableSelectRowCheckbox"
|
|
1411
1907
|
],
|
|
1412
|
-
"compound":
|
|
1908
|
+
"compound": true,
|
|
1413
1909
|
"dataHookRequired": true,
|
|
1414
1910
|
"variants": {},
|
|
1415
1911
|
"props": [
|
|
1416
1912
|
"columns",
|
|
1417
1913
|
"data",
|
|
1418
|
-
"
|
|
1419
|
-
"
|
|
1420
|
-
"
|
|
1421
|
-
"
|
|
1914
|
+
"enableSorting",
|
|
1915
|
+
"enableGlobalFiltering",
|
|
1916
|
+
"enableRowSelection",
|
|
1917
|
+
"enablePagination",
|
|
1918
|
+
"pageSize",
|
|
1919
|
+
"isLoading",
|
|
1920
|
+
"noResultsMessage"
|
|
1422
1921
|
],
|
|
1423
|
-
"description": "
|
|
1922
|
+
"description": "Composable data table built on TanStack Table. Exposes `useDataTable` hook + `DataTable` / `VirtualizedDataTable` renderers + toolbar, pagination, and search helpers."
|
|
1424
1923
|
},
|
|
1425
1924
|
{
|
|
1426
1925
|
"name": "InputList",
|
|
1427
|
-
"import": "@brightlocal/ui-components/
|
|
1926
|
+
"import": "@brightlocal/ui-components/input-list",
|
|
1428
1927
|
"category": "block",
|
|
1429
1928
|
"exports": [
|
|
1430
1929
|
"InputList",
|
|
@@ -1446,7 +1945,7 @@
|
|
|
1446
1945
|
},
|
|
1447
1946
|
{
|
|
1448
1947
|
"name": "Sidebar",
|
|
1449
|
-
"import": "@brightlocal/ui-components/
|
|
1948
|
+
"import": "@brightlocal/ui-components/sidebar",
|
|
1450
1949
|
"category": "block",
|
|
1451
1950
|
"exports": [
|
|
1452
1951
|
"Sidebar",
|