@brightlocal/ui-components 2.22.0 → 2.24.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 +4 -2
- package/component-meta.json +134 -25
- package/deprecations.json +22 -0
- package/dist/alert.cjs +1 -1
- package/dist/alert.d.ts.map +1 -1
- package/dist/alert.js +32 -35
- package/dist/blocks/sidebar.cjs +1 -1
- package/dist/blocks/sidebar.d.ts.map +1 -1
- package/dist/blocks/sidebar.js +151 -156
- package/dist/brand-illustration-motif.cjs +1 -0
- package/dist/brand-illustration-motif.d.ts +55 -0
- package/dist/brand-illustration-motif.d.ts.map +1 -0
- package/dist/brand-illustration-motif.js +67 -0
- package/dist/chart.cjs +7 -7
- package/dist/chart.d.ts +287 -2
- package/dist/chart.d.ts.map +1 -1
- package/dist/chart.js +408 -152
- package/dist/combobox.cjs +3 -3
- package/dist/combobox.d.ts +14 -1
- package/dist/combobox.d.ts.map +1 -1
- package/dist/combobox.js +387 -376
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.d.ts.map +1 -1
- package/dist/context-menu.js +111 -109
- package/dist/data-table.cjs +1 -0
- package/dist/{blocks/data-table.d.ts → data-table.d.ts} +159 -4
- package/dist/data-table.d.ts.map +1 -0
- package/dist/data-table.js +721 -0
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.d.ts.map +1 -1
- package/dist/dropdown-menu.js +109 -121
- package/dist/field.cjs +1 -1
- package/dist/field.d.ts +16 -1
- package/dist/field.d.ts.map +1 -1
- package/dist/field.js +23 -7
- package/dist/global-layout.cjs +1 -1
- package/dist/global-layout.d.ts +32 -2
- package/dist/global-layout.d.ts.map +1 -1
- package/dist/global-layout.js +179 -109
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +526 -509
- package/dist/label.cjs +1 -1
- package/dist/label.d.ts +9 -0
- package/dist/label.d.ts.map +1 -1
- package/dist/label.js +26 -22
- package/dist/lib/spring-settle.cjs +1 -0
- package/dist/lib/spring-settle.d.ts +20 -0
- package/dist/lib/spring-settle.d.ts.map +1 -0
- package/dist/lib/spring-settle.js +4 -0
- package/dist/link.cjs +1 -1
- package/dist/link.d.ts +3 -2
- package/dist/link.d.ts.map +1 -1
- package/dist/link.js +22 -11
- package/dist/loading.cjs +1 -0
- package/dist/loading.d.ts +47 -0
- package/dist/loading.d.ts.map +1 -0
- package/dist/loading.js +163 -0
- package/dist/map.cjs +1 -1
- package/dist/map.d.ts.map +1 -1
- package/dist/map.js +1 -1
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.d.ts.map +1 -1
- package/dist/menubar.js +97 -99
- package/dist/popover.cjs +1 -1
- package/dist/popover.d.ts.map +1 -1
- package/dist/popover.js +27 -26
- package/dist/select.cjs +2 -2
- package/dist/select.d.ts +16 -1
- package/dist/select.d.ts.map +1 -1
- package/dist/select.js +112 -85
- package/dist/table.cjs +1 -1
- package/dist/table.d.ts +29 -0
- package/dist/table.d.ts.map +1 -1
- package/dist/table.js +2 -2
- package/dist/text-reveal-motion.cjs +1 -1
- package/dist/text-reveal-motion.d.ts.map +1 -1
- package/dist/text-reveal-motion.js +236 -219
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.d.ts +21 -2
- package/dist/tooltip.d.ts.map +1 -1
- package/dist/tooltip.js +35 -32
- package/dist/typography.cjs +1 -1
- package/dist/typography.d.ts +20 -4
- package/dist/typography.d.ts.map +1 -1
- package/dist/typography.js +263 -228
- package/package.json +7 -7
- package/src/blocks/sidebar.tsx +11 -23
- package/src/components/alert.tsx +10 -17
- package/src/components/brand-illustration-motif.tsx +143 -0
- package/src/components/chart.tsx +632 -1
- package/src/components/combobox.tsx +47 -0
- package/src/components/context-menu.tsx +8 -3
- package/src/{blocks → components}/data-table.tsx +272 -18
- package/src/components/dropdown-menu.tsx +6 -15
- package/src/components/field.tsx +31 -0
- package/src/components/global-layout.tsx +144 -5
- package/src/components/label.tsx +13 -1
- package/src/components/link.tsx +13 -1
- package/src/components/loading.tsx +355 -0
- package/src/components/map.tsx +3 -1
- package/src/components/menubar.tsx +6 -5
- package/src/components/popover.tsx +6 -2
- package/src/components/select.tsx +87 -10
- package/src/components/table.tsx +31 -2
- package/src/components/text-reveal-motion.tsx +90 -64
- package/src/components/tooltip.tsx +28 -3
- package/src/components/typography.tsx +74 -18
- package/src/index.ts +3 -1
- package/src/lib/spring-settle.ts +19 -0
- package/dist/blocks/data-table.cjs +0 -1
- package/dist/blocks/data-table.d.ts.map +0 -1
- package/dist/blocks/data-table.js +0 -654
package/AI_USAGE.md
CHANGED
|
@@ -370,7 +370,7 @@ sonner.dismiss("redirect-toast");
|
|
|
370
370
|
|
|
371
371
|
When composing UI with these components:
|
|
372
372
|
|
|
373
|
-
1. Every form input has a
|
|
373
|
+
1. Every form input has a `<FieldLabel>` (use `srOnly` when the design hides the label — never `className="sr-only"`) or `aria-label`
|
|
374
374
|
2. Error states use `aria-invalid` (handled by the `error` prop on most inputs)
|
|
375
375
|
3. Dialogs have `DialogTitle` and `DialogDescription`
|
|
376
376
|
4. Icon-only buttons have `aria-label` or `ariaLabel` prop
|
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ pnpm add @brightlocal/tokens
|
|
|
24
24
|
|
|
25
25
|
## Components
|
|
26
26
|
|
|
27
|
-
This package includes
|
|
27
|
+
This package includes 67 components and 3 blocks built on Radix UI primitives and other React libraries. All components are fully typed with TypeScript and follow BrightLocal's design system patterns.
|
|
28
28
|
|
|
29
29
|
### Layout Components
|
|
30
30
|
|
|
@@ -41,7 +41,7 @@ This package includes 65 components and 3 blocks built on Radix UI primitives an
|
|
|
41
41
|
### Navigation Components
|
|
42
42
|
|
|
43
43
|
- **Breadcrumb** - Hierarchical navigation trail
|
|
44
|
-
- **Link** - Styled anchor links with inline
|
|
44
|
+
- **Link** - Styled anchor links with inline, button-styled and icon-only variants
|
|
45
45
|
- **NavigationMenu** - Complex navigation menus
|
|
46
46
|
- **Menubar** - Application menu bars
|
|
47
47
|
- **Pagination** - Page navigation controls
|
|
@@ -88,6 +88,7 @@ This package includes 65 components and 3 blocks built on Radix UI primitives an
|
|
|
88
88
|
|
|
89
89
|
- **Alert** - Alert messages
|
|
90
90
|
- **Badge** - Status badges and labels
|
|
91
|
+
- **Loading** - Brand loading animation that morphs between shapes while rotating
|
|
91
92
|
- **Progress** - Progress indicators
|
|
92
93
|
- **Sonner** - Toast notifications
|
|
93
94
|
|
|
@@ -101,6 +102,7 @@ This package includes 65 components and 3 blocks built on Radix UI primitives an
|
|
|
101
102
|
|
|
102
103
|
- **Accordion** - Expandable/collapsible sections
|
|
103
104
|
- **Avatar** - User avatar images
|
|
105
|
+
- **BrandIllustrationMotif** - Brand illustration over a decorative motif backdrop (sparkle, starburst, circle, sunrise)
|
|
104
106
|
- **Carousel** - Image/content carousels
|
|
105
107
|
- **Chart** - Data visualization charts
|
|
106
108
|
- **Collapsible** - Collapsible content sections
|
package/component-meta.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightlocal/ui-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.24.0",
|
|
4
4
|
"description": "Machine-readable registry of all components in the BrightLocal Design System",
|
|
5
5
|
"components": [
|
|
6
6
|
{
|
|
@@ -231,6 +231,35 @@
|
|
|
231
231
|
"keyboardInteraction": []
|
|
232
232
|
}
|
|
233
233
|
},
|
|
234
|
+
{
|
|
235
|
+
"name": "BrandIllustrationMotif",
|
|
236
|
+
"import": "@brightlocal/ui-components/brand-illustration-motif",
|
|
237
|
+
"category": "display",
|
|
238
|
+
"exports": [
|
|
239
|
+
"BrandIllustrationMotif"
|
|
240
|
+
],
|
|
241
|
+
"compound": false,
|
|
242
|
+
"dataHookRequired": true,
|
|
243
|
+
"variants": {
|
|
244
|
+
"motif": [
|
|
245
|
+
"sparkle",
|
|
246
|
+
"starburst",
|
|
247
|
+
"circle",
|
|
248
|
+
"sunrise"
|
|
249
|
+
],
|
|
250
|
+
"size": [
|
|
251
|
+
"sm",
|
|
252
|
+
"md",
|
|
253
|
+
"lg"
|
|
254
|
+
]
|
|
255
|
+
},
|
|
256
|
+
"props": [
|
|
257
|
+
"motif",
|
|
258
|
+
"size",
|
|
259
|
+
"children"
|
|
260
|
+
],
|
|
261
|
+
"description": "Brand illustration composed over a decorative motif backdrop (lg) or a standalone green motif mark (sm/md); sunrise + lg slowly rotates"
|
|
262
|
+
},
|
|
234
263
|
{
|
|
235
264
|
"name": "Breadcrumb",
|
|
236
265
|
"import": "@brightlocal/ui-components/breadcrumb",
|
|
@@ -545,9 +574,19 @@
|
|
|
545
574
|
"exports": [
|
|
546
575
|
"ChartContainer",
|
|
547
576
|
"ChartTooltip",
|
|
548
|
-
"ChartTooltipContent"
|
|
577
|
+
"ChartTooltipContent",
|
|
578
|
+
"ChartLegend",
|
|
579
|
+
"ChartLegendContent",
|
|
580
|
+
"ChartStyle",
|
|
581
|
+
"ChartDot",
|
|
582
|
+
"ChartDotOnStroke",
|
|
583
|
+
"ChartRadarGrid",
|
|
584
|
+
"ChartRadarLabelWrapper",
|
|
585
|
+
"ChartPieLabelList",
|
|
586
|
+
"ChartPieLabelWrapper",
|
|
587
|
+
"ChartCenterLabel"
|
|
549
588
|
],
|
|
550
|
-
"compound":
|
|
589
|
+
"compound": true,
|
|
551
590
|
"dataHookRequired": true,
|
|
552
591
|
"variants": {},
|
|
553
592
|
"props": [
|
|
@@ -696,6 +735,7 @@
|
|
|
696
735
|
"onValueChange",
|
|
697
736
|
"open",
|
|
698
737
|
"onOpenChange",
|
|
738
|
+
"onClose",
|
|
699
739
|
"shouldFilter",
|
|
700
740
|
"side",
|
|
701
741
|
"sideOffset",
|
|
@@ -1065,7 +1105,8 @@
|
|
|
1065
1105
|
]
|
|
1066
1106
|
},
|
|
1067
1107
|
"props": [
|
|
1068
|
-
"align"
|
|
1108
|
+
"align",
|
|
1109
|
+
"srOnly"
|
|
1069
1110
|
],
|
|
1070
1111
|
"description": "Form field wrapper with label, description, and error handling",
|
|
1071
1112
|
"aliases": [
|
|
@@ -1109,6 +1150,8 @@
|
|
|
1109
1150
|
"GlobalLayoutContent",
|
|
1110
1151
|
"GlobalLayoutContentActions",
|
|
1111
1152
|
"GlobalLayoutContentHeader",
|
|
1153
|
+
"GlobalLayoutBackLink",
|
|
1154
|
+
"GlobalLayoutSubtitle",
|
|
1112
1155
|
"GlobalLayoutContentBody",
|
|
1113
1156
|
"GlobalLayoutMobileHeader"
|
|
1114
1157
|
],
|
|
@@ -1128,6 +1171,9 @@
|
|
|
1128
1171
|
"i18nProps": {
|
|
1129
1172
|
"GlobalLayoutMobileHeader": {
|
|
1130
1173
|
"ariaLabel": "string — default: \"Mobile navigation\""
|
|
1174
|
+
},
|
|
1175
|
+
"GlobalLayoutBackLink": {
|
|
1176
|
+
"ariaLabel": "string — default: \"Go back\""
|
|
1131
1177
|
}
|
|
1132
1178
|
},
|
|
1133
1179
|
"description": "Full-page responsive layout with sidebar"
|
|
@@ -1320,6 +1366,7 @@
|
|
|
1320
1366
|
"variants": {},
|
|
1321
1367
|
"props": [
|
|
1322
1368
|
"optional",
|
|
1369
|
+
"srOnly",
|
|
1323
1370
|
"htmlFor"
|
|
1324
1371
|
],
|
|
1325
1372
|
"description": "Form label element",
|
|
@@ -1356,7 +1403,8 @@
|
|
|
1356
1403
|
"inline",
|
|
1357
1404
|
"filled",
|
|
1358
1405
|
"outline",
|
|
1359
|
-
"ghost"
|
|
1406
|
+
"ghost",
|
|
1407
|
+
"icon"
|
|
1360
1408
|
]
|
|
1361
1409
|
},
|
|
1362
1410
|
"props": [
|
|
@@ -1365,11 +1413,12 @@
|
|
|
1365
1413
|
"showExternalIcon",
|
|
1366
1414
|
"asChild"
|
|
1367
1415
|
],
|
|
1368
|
-
"description": "Styled hyperlink with inline
|
|
1416
|
+
"description": "Styled hyperlink with inline, button-styled and icon-only variants and external link support",
|
|
1369
1417
|
"whenToUse": [
|
|
1370
1418
|
"Inline text links within paragraphs or sentences (inline variant)",
|
|
1371
1419
|
"Navigation to internal or external URLs",
|
|
1372
1420
|
"Button-styled navigation or inline actions that need a button appearance (filled, outline, ghost variants)",
|
|
1421
|
+
"Icon-only navigation links such as back buttons (icon variant — provide an aria-label)",
|
|
1373
1422
|
"Links inside i18n <Trans> blocks — use Link as a component in the components map"
|
|
1374
1423
|
],
|
|
1375
1424
|
"doNotUseFor": [
|
|
@@ -1409,6 +1458,24 @@
|
|
|
1409
1458
|
"props": [],
|
|
1410
1459
|
"description": "Vertical item list with optional section headings"
|
|
1411
1460
|
},
|
|
1461
|
+
{
|
|
1462
|
+
"name": "Loading",
|
|
1463
|
+
"import": "@brightlocal/ui-components/loading",
|
|
1464
|
+
"category": "feedback",
|
|
1465
|
+
"exports": [
|
|
1466
|
+
"Loading"
|
|
1467
|
+
],
|
|
1468
|
+
"compound": false,
|
|
1469
|
+
"dataHookRequired": true,
|
|
1470
|
+
"variants": {},
|
|
1471
|
+
"props": [],
|
|
1472
|
+
"i18nProps": {
|
|
1473
|
+
"Loading": {
|
|
1474
|
+
"loadingLabel": "string — default: \"Loading\""
|
|
1475
|
+
}
|
|
1476
|
+
},
|
|
1477
|
+
"description": "Brand loading animation that morphs between shapes while rotating"
|
|
1478
|
+
},
|
|
1412
1479
|
{
|
|
1413
1480
|
"name": "Logo",
|
|
1414
1481
|
"import": "@brightlocal/ui-components/logo",
|
|
@@ -1821,6 +1888,7 @@
|
|
|
1821
1888
|
"onValueChange",
|
|
1822
1889
|
"open",
|
|
1823
1890
|
"onOpenChange",
|
|
1891
|
+
"onClose",
|
|
1824
1892
|
"disabled"
|
|
1825
1893
|
],
|
|
1826
1894
|
"description": "Dropdown select input",
|
|
@@ -2210,13 +2278,31 @@
|
|
|
2210
2278
|
"fixed"
|
|
2211
2279
|
]
|
|
2212
2280
|
},
|
|
2213
|
-
"props": [
|
|
2281
|
+
"props": [
|
|
2282
|
+
"dataHook",
|
|
2283
|
+
"trackingEl",
|
|
2284
|
+
"trackingLabel",
|
|
2285
|
+
"layout",
|
|
2286
|
+
"minWidth",
|
|
2287
|
+
"scrollRegionLabel"
|
|
2288
|
+
],
|
|
2214
2289
|
"i18nProps": {
|
|
2215
2290
|
"Table": {
|
|
2216
2291
|
"scrollRegionLabel": "string — default: \"Scrollable table\""
|
|
2217
2292
|
}
|
|
2218
2293
|
},
|
|
2219
|
-
"
|
|
2294
|
+
"knownGaps": [
|
|
2295
|
+
{
|
|
2296
|
+
"description": "TableCaption is deprecated since 2.24.0 and will be removed in the next major version",
|
|
2297
|
+
"ticket": "DS-779",
|
|
2298
|
+
"workaround": "Name the table with a heading (e.g. TypographyH3) and point Table at it with aria-labelledby"
|
|
2299
|
+
},
|
|
2300
|
+
{
|
|
2301
|
+
"description": "No built-in sorting API — TableHead has no sortable or sortDirection prop",
|
|
2302
|
+
"workaround": "Use DataTableColumnHeader from DataTable for sortable headers"
|
|
2303
|
+
}
|
|
2304
|
+
],
|
|
2305
|
+
"description": "Semantic HTML table with accessibility features. Text alignment is physical (left/right/center). Set layout=\"fixed\" with width on TableHead for stable columns.",
|
|
2220
2306
|
"aliases": [
|
|
2221
2307
|
"data grid",
|
|
2222
2308
|
"grid",
|
|
@@ -2228,7 +2314,7 @@
|
|
|
2228
2314
|
"When you control the exact columns and rows — no dynamic column configuration needed"
|
|
2229
2315
|
],
|
|
2230
2316
|
"doNotUseFor": [
|
|
2231
|
-
"complex filtering and sorting (use DataTable
|
|
2317
|
+
"complex filtering and sorting (use DataTable)",
|
|
2232
2318
|
"layout grids (use CSS grid)"
|
|
2233
2319
|
],
|
|
2234
2320
|
"alternatives": [
|
|
@@ -2440,24 +2526,32 @@
|
|
|
2440
2526
|
"import": "@brightlocal/ui-components/typography",
|
|
2441
2527
|
"category": "display",
|
|
2442
2528
|
"exports": [
|
|
2443
|
-
"
|
|
2444
|
-
"
|
|
2445
|
-
"
|
|
2446
|
-
"
|
|
2447
|
-
"
|
|
2448
|
-
"
|
|
2449
|
-
"
|
|
2450
|
-
"
|
|
2451
|
-
"
|
|
2452
|
-
"
|
|
2453
|
-
"
|
|
2454
|
-
"
|
|
2529
|
+
"TypographyH1",
|
|
2530
|
+
"TypographyH2",
|
|
2531
|
+
"TypographyH3",
|
|
2532
|
+
"TypographyH4",
|
|
2533
|
+
"TypographyP",
|
|
2534
|
+
"TypographyBlockquote",
|
|
2535
|
+
"TypographyList",
|
|
2536
|
+
"TypographyInlineCode",
|
|
2537
|
+
"TypographyCode",
|
|
2538
|
+
"TypographyLead",
|
|
2539
|
+
"TypographyLarge",
|
|
2540
|
+
"TypographySmall",
|
|
2541
|
+
"TypographyMuted"
|
|
2455
2542
|
],
|
|
2456
|
-
"compound":
|
|
2543
|
+
"compound": true,
|
|
2457
2544
|
"dataHookRequired": true,
|
|
2458
|
-
"variants": {
|
|
2545
|
+
"variants": {
|
|
2546
|
+
"align": [
|
|
2547
|
+
"left",
|
|
2548
|
+
"center",
|
|
2549
|
+
"right"
|
|
2550
|
+
]
|
|
2551
|
+
},
|
|
2459
2552
|
"props": [
|
|
2460
|
-
"asChild"
|
|
2553
|
+
"asChild",
|
|
2554
|
+
"align"
|
|
2461
2555
|
],
|
|
2462
2556
|
"description": "Semantic text components for headings, paragraphs, and inline styles",
|
|
2463
2557
|
"whenToUse": [
|
|
@@ -2486,6 +2580,7 @@
|
|
|
2486
2580
|
"DataTable",
|
|
2487
2581
|
"VirtualizedDataTable",
|
|
2488
2582
|
"useDataTable",
|
|
2583
|
+
"useDataTableBulkActionsContext",
|
|
2489
2584
|
"DataTableColumnHeader",
|
|
2490
2585
|
"DataTableSearch",
|
|
2491
2586
|
"DataTablePagination",
|
|
@@ -2493,6 +2588,9 @@
|
|
|
2493
2588
|
"DataTablePaginationNav",
|
|
2494
2589
|
"DataTableSelectAllCheckbox",
|
|
2495
2590
|
"DataTableSelectRowCheckbox",
|
|
2591
|
+
"DataTableBulkActions",
|
|
2592
|
+
"DataTableBulkActionsSummary",
|
|
2593
|
+
"DataTableBulkActionsActions",
|
|
2496
2594
|
"DataTableToolbar",
|
|
2497
2595
|
"DataTableToolbarLeft",
|
|
2498
2596
|
"DataTableToolbarRight"
|
|
@@ -2519,7 +2617,8 @@
|
|
|
2519
2617
|
],
|
|
2520
2618
|
"i18nProps": {
|
|
2521
2619
|
"DataTable": {
|
|
2522
|
-
"scrollRegionLabel": "string — default: \"Scrollable table\""
|
|
2620
|
+
"scrollRegionLabel": "string — default: \"Scrollable table\"",
|
|
2621
|
+
"noResultsMessage": "string — default: \"No results.\""
|
|
2523
2622
|
},
|
|
2524
2623
|
"DataTableColumnHeader": {
|
|
2525
2624
|
"getSortLabel": "(title: string, direction: \"asc\" | \"desc\" | false) => string"
|
|
@@ -2532,11 +2631,21 @@
|
|
|
2532
2631
|
"DataTablePaginationNav": {
|
|
2533
2632
|
"ariaLabel": "string — default: \"Table pagination\""
|
|
2534
2633
|
},
|
|
2634
|
+
"DataTablePagination": {
|
|
2635
|
+
"ariaLabel": "string — default: \"Table pagination\"",
|
|
2636
|
+
"renderRowCount": "(info: RowCountRenderInfo) => React.ReactNode — default: renders \"{startRow}-{endRow} of {totalRows}\""
|
|
2637
|
+
},
|
|
2638
|
+
"DataTablePaginationRowCount": {
|
|
2639
|
+
"renderText": "(info: RowCountRenderInfo) => React.ReactNode — default: renders \"{startRow}-{endRow} of {totalRows}\""
|
|
2640
|
+
},
|
|
2535
2641
|
"DataTableSelectAllCheckbox": {
|
|
2536
2642
|
"selectAllAriaLabel": "string — default: \"Select all\""
|
|
2537
2643
|
},
|
|
2538
2644
|
"DataTableSelectRowCheckbox": {
|
|
2539
2645
|
"selectRowAriaLabel": "string — default: \"Select row\""
|
|
2646
|
+
},
|
|
2647
|
+
"DataTableBulkActionsSummary": {
|
|
2648
|
+
"children": "React.ReactNode | ((info: { selectedCount: number; totalCount: number }) => React.ReactNode) — default: \"{selectedCount} of {totalCount} row(s) selected.\""
|
|
2540
2649
|
}
|
|
2541
2650
|
},
|
|
2542
2651
|
"description": "Composable data table built on TanStack Table. Exposes `useDataTable` hook + `DataTable` / `VirtualizedDataTable` renderers + toolbar layout + pagination and search helpers."
|
package/deprecations.json
CHANGED
|
@@ -175,6 +175,28 @@
|
|
|
175
175
|
"replacement": "MapGridPin (pulse no longer rendered)",
|
|
176
176
|
"ticket": "DS-563"
|
|
177
177
|
},
|
|
178
|
+
{
|
|
179
|
+
"id": "table-caption",
|
|
180
|
+
"component": "Table",
|
|
181
|
+
"file": "components/table.tsx",
|
|
182
|
+
"item": "TableCaption",
|
|
183
|
+
"type": "component",
|
|
184
|
+
"since": "2.24.0",
|
|
185
|
+
"reason": "A <caption> is placed by the CSS caption-side property, not by composition order; it names the table without adding to the document outline and scrolls horizontally with the table",
|
|
186
|
+
"replacement": "Heading (e.g. TypographyH3) with aria-labelledby on Table",
|
|
187
|
+
"ticket": "DS-779"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"id": "table-caption-props",
|
|
191
|
+
"component": "Table",
|
|
192
|
+
"file": "components/table.tsx",
|
|
193
|
+
"item": "TableCaptionProps",
|
|
194
|
+
"type": "type",
|
|
195
|
+
"since": "2.24.0",
|
|
196
|
+
"reason": "Paired with the deprecated TableCaption component",
|
|
197
|
+
"replacement": "None — remove the import",
|
|
198
|
+
"ticket": "DS-779"
|
|
199
|
+
},
|
|
178
200
|
{
|
|
179
201
|
"id": "card-max-width",
|
|
180
202
|
"component": "Card",
|
package/dist/alert.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("react"),j=require("class-variance-authority"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("react"),j=require("class-variance-authority"),u=require("@brightlocal/icons"),f=require("@brightlocal/ui-components/lib/utils");function h(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(a,r,s.get?s:{enumerable:!0,get:()=>t[r]})}}return a.default=t,Object.freeze(a)}const x=h(m),g=j.cva("relative w-full rounded-lg px-4 py-3 text-sm flex gap-3 items-start",{variants:{variant:{default:"bg-muted text-foreground",success:"bg-success-background text-success-foreground",info:"bg-info-background text-info-foreground",destructive:"bg-destructive text-destructive-foreground",warning:"bg-warning-background text-warning-foreground"}},defaultVariants:{variant:"default"}}),c=x.forwardRef(({className:t,variant:a,...r},s)=>e.jsx("div",{ref:s,className:f.cn(g({variant:a}),t),"data-slot":"alert","data-tracking-el":`alert-${a}`,role:"alert",...r}));c.displayName="Alert";const d=x.forwardRef(({className:t,...a},r)=>e.jsx("div",{ref:r,className:f.cn("leading-5 font-medium break-words",t),"data-slot":"alert-title",...a}));d.displayName="AlertTitle";const o=x.forwardRef(({className:t,...a},r)=>e.jsx("div",{ref:r,className:f.cn("text-sm leading-5 font-normal [&_p]:leading-5",t),"data-slot":"alert-description",...a}));o.displayName="AlertDescription";function v({title:t,description:a,action:r,className:s,dataHook:n,trackingEl:l,trackingLabel:i}){return e.jsxs(c,{className:s,"data-hook":n,"data-tracking-el":l,"data-tracking-label":i,variant:"success",children:[e.jsx(u.CircleCheck,{className:"text-success-foreground shrink-0 translate-y-0.5"}),e.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[t&&e.jsx(d,{children:t}),e.jsx(o,{children:a})]}),r&&e.jsx("div",{className:"self-center",children:r})]})}function k({title:t,description:a,action:r,className:s,dataHook:n,trackingEl:l,trackingLabel:i}){return e.jsxs(c,{className:s,"data-hook":n,"data-tracking-el":l,"data-tracking-label":i,variant:"info",children:[e.jsx(u.Info,{className:"text-info-foreground shrink-0 translate-y-0.5"}),e.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[t&&e.jsx(d,{children:t}),e.jsx(o,{children:a})]}),r&&e.jsx("div",{className:"self-center",children:r})]})}function p({title:t,description:a,action:r,className:s,dataHook:n,trackingEl:l,trackingLabel:i}){return e.jsxs(c,{className:s,"data-hook":n,"data-tracking-el":l,"data-tracking-label":i,variant:"destructive",children:[e.jsx(u.CircleX,{className:"text-destructive-foreground shrink-0 translate-y-0.5"}),e.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[t&&e.jsx(d,{children:t}),e.jsx(o,{children:a})]}),r&&e.jsx("div",{className:"self-center",children:r})]})}function b({title:t,description:a,action:r,className:s,dataHook:n,trackingEl:l,trackingLabel:i}){return e.jsxs(c,{className:s,"data-hook":n,"data-tracking-el":l,"data-tracking-label":i,variant:"warning",children:[e.jsx(u.TriangleAlert,{className:"text-warning-foreground shrink-0 translate-y-0.5"}),e.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[t&&e.jsx(d,{children:t}),e.jsx(o,{children:a})]}),r&&e.jsx("div",{className:"self-center",children:r})]})}exports.Alert=c;exports.AlertDescription=o;exports.AlertDestructive=p;exports.AlertInfo=k;exports.AlertSuccess=v;exports.AlertTitle=d;exports.AlertWarning=b;exports.alertVariants=g;
|
package/dist/alert.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../src/components/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAKlE,QAAA,MAAM,aAAa;;
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../src/components/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAKlE,QAAA,MAAM,aAAa;;8EAgBlB,CAAC;AAEF,QAAA,MAAM,KAAK;;sHAYT,CAAC;AAGH,QAAA,MAAM,UAAU,6GAUd,CAAC;AAGH,QAAA,MAAM,gBAAgB,6GAUpB,CAAC;AAGH,UAAU,iBAAiB;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,iBAAS,YAAY,CAAC,EACpB,KAAK,EACL,WAAW,EACX,MAAM,EACN,SAAS,EACT,QAAQ,EACR,UAAU,EACV,aAAa,GACd,EAAE,iBAAiB,2CAiBnB;AAED,iBAAS,SAAS,CAAC,EACjB,KAAK,EACL,WAAW,EACX,MAAM,EACN,SAAS,EACT,QAAQ,EACR,UAAU,EACV,aAAa,GACd,EAAE,iBAAiB,2CAiBnB;AAED,iBAAS,gBAAgB,CAAC,EACxB,KAAK,EACL,WAAW,EACX,MAAM,EACN,SAAS,EACT,QAAQ,EACR,UAAU,EACV,aAAa,GACd,EAAE,iBAAiB,2CAiBnB;AAED,iBAAS,YAAY,CAAC,EACpB,KAAK,EACL,WAAW,EACX,MAAM,EACN,SAAS,EACT,QAAQ,EACR,UAAU,EACV,aAAa,GACd,EAAE,iBAAiB,2CAiBnB;AAED,OAAO,EACL,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,YAAY,GACb,CAAC"}
|
package/dist/alert.js
CHANGED
|
@@ -1,44 +1,41 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import * as g from "react";
|
|
3
|
-
import { cva as
|
|
4
|
-
import { CircleX as
|
|
3
|
+
import { cva as u } from "class-variance-authority";
|
|
4
|
+
import { CircleX as h, Info as x, CircleCheck as v, TriangleAlert as k } from "@brightlocal/icons";
|
|
5
5
|
import { cn as m } from "@brightlocal/ui-components/lib/utils";
|
|
6
|
-
const
|
|
6
|
+
const p = u(
|
|
7
7
|
"relative w-full rounded-lg px-4 py-3 text-sm flex gap-3 items-start",
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
|
11
|
-
default: "bg-
|
|
12
|
-
success: "bg-
|
|
13
|
-
info: "bg-
|
|
14
|
-
destructive: "bg-
|
|
15
|
-
warning: "bg-
|
|
11
|
+
default: "bg-muted text-foreground",
|
|
12
|
+
success: "bg-success-background text-success-foreground",
|
|
13
|
+
info: "bg-info-background text-info-foreground",
|
|
14
|
+
destructive: "bg-destructive text-destructive-foreground",
|
|
15
|
+
warning: "bg-warning-background text-warning-foreground"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
defaultVariants: {
|
|
19
19
|
variant: "default"
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
),
|
|
22
|
+
), d = g.forwardRef(({ className: a, variant: t, ...r }, l) => /* @__PURE__ */ e(
|
|
23
23
|
"div",
|
|
24
24
|
{
|
|
25
25
|
ref: l,
|
|
26
|
-
className: m(
|
|
26
|
+
className: m(p({ variant: t }), a),
|
|
27
27
|
"data-slot": "alert",
|
|
28
28
|
"data-tracking-el": `alert-${t}`,
|
|
29
29
|
role: "alert",
|
|
30
30
|
...r
|
|
31
31
|
}
|
|
32
32
|
));
|
|
33
|
-
|
|
33
|
+
d.displayName = "Alert";
|
|
34
34
|
const o = g.forwardRef(({ className: a, ...t }, r) => /* @__PURE__ */ e(
|
|
35
35
|
"div",
|
|
36
36
|
{
|
|
37
37
|
ref: r,
|
|
38
|
-
className: m(
|
|
39
|
-
"overflow-hidden leading-5 font-medium text-ellipsis whitespace-nowrap",
|
|
40
|
-
a
|
|
41
|
-
),
|
|
38
|
+
className: m("leading-5 font-medium break-words", a),
|
|
42
39
|
"data-slot": "alert-title",
|
|
43
40
|
...t
|
|
44
41
|
}
|
|
@@ -54,25 +51,25 @@ const f = g.forwardRef(({ className: a, ...t }, r) => /* @__PURE__ */ e(
|
|
|
54
51
|
}
|
|
55
52
|
));
|
|
56
53
|
f.displayName = "AlertDescription";
|
|
57
|
-
function
|
|
54
|
+
function y({
|
|
58
55
|
title: a,
|
|
59
56
|
description: t,
|
|
60
57
|
action: r,
|
|
61
58
|
className: l,
|
|
62
59
|
dataHook: i,
|
|
63
|
-
trackingEl:
|
|
60
|
+
trackingEl: s,
|
|
64
61
|
trackingLabel: c
|
|
65
62
|
}) {
|
|
66
63
|
return /* @__PURE__ */ n(
|
|
67
|
-
|
|
64
|
+
d,
|
|
68
65
|
{
|
|
69
66
|
className: l,
|
|
70
67
|
"data-hook": i,
|
|
71
|
-
"data-tracking-el":
|
|
68
|
+
"data-tracking-el": s,
|
|
72
69
|
"data-tracking-label": c,
|
|
73
70
|
variant: "success",
|
|
74
71
|
children: [
|
|
75
|
-
/* @__PURE__ */ e(
|
|
72
|
+
/* @__PURE__ */ e(v, { className: "text-success-foreground shrink-0 translate-y-0.5" }),
|
|
76
73
|
/* @__PURE__ */ n("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
77
74
|
a && /* @__PURE__ */ e(o, { children: a }),
|
|
78
75
|
/* @__PURE__ */ e(f, { children: t })
|
|
@@ -88,19 +85,19 @@ function R({
|
|
|
88
85
|
action: r,
|
|
89
86
|
className: l,
|
|
90
87
|
dataHook: i,
|
|
91
|
-
trackingEl:
|
|
88
|
+
trackingEl: s,
|
|
92
89
|
trackingLabel: c
|
|
93
90
|
}) {
|
|
94
91
|
return /* @__PURE__ */ n(
|
|
95
|
-
|
|
92
|
+
d,
|
|
96
93
|
{
|
|
97
94
|
className: l,
|
|
98
95
|
"data-hook": i,
|
|
99
|
-
"data-tracking-el":
|
|
96
|
+
"data-tracking-el": s,
|
|
100
97
|
"data-tracking-label": c,
|
|
101
98
|
variant: "info",
|
|
102
99
|
children: [
|
|
103
|
-
/* @__PURE__ */ e(
|
|
100
|
+
/* @__PURE__ */ e(x, { className: "text-info-foreground shrink-0 translate-y-0.5" }),
|
|
104
101
|
/* @__PURE__ */ n("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
105
102
|
a && /* @__PURE__ */ e(o, { children: a }),
|
|
106
103
|
/* @__PURE__ */ e(f, { children: t })
|
|
@@ -116,19 +113,19 @@ function C({
|
|
|
116
113
|
action: r,
|
|
117
114
|
className: l,
|
|
118
115
|
dataHook: i,
|
|
119
|
-
trackingEl:
|
|
116
|
+
trackingEl: s,
|
|
120
117
|
trackingLabel: c
|
|
121
118
|
}) {
|
|
122
119
|
return /* @__PURE__ */ n(
|
|
123
|
-
|
|
120
|
+
d,
|
|
124
121
|
{
|
|
125
122
|
className: l,
|
|
126
123
|
"data-hook": i,
|
|
127
|
-
"data-tracking-el":
|
|
124
|
+
"data-tracking-el": s,
|
|
128
125
|
"data-tracking-label": c,
|
|
129
126
|
variant: "destructive",
|
|
130
127
|
children: [
|
|
131
|
-
/* @__PURE__ */ e(
|
|
128
|
+
/* @__PURE__ */ e(h, { className: "text-destructive-foreground shrink-0 translate-y-0.5" }),
|
|
132
129
|
/* @__PURE__ */ n("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
133
130
|
a && /* @__PURE__ */ e(o, { children: a }),
|
|
134
131
|
/* @__PURE__ */ e(f, { children: t })
|
|
@@ -144,19 +141,19 @@ function D({
|
|
|
144
141
|
action: r,
|
|
145
142
|
className: l,
|
|
146
143
|
dataHook: i,
|
|
147
|
-
trackingEl:
|
|
144
|
+
trackingEl: s,
|
|
148
145
|
trackingLabel: c
|
|
149
146
|
}) {
|
|
150
147
|
return /* @__PURE__ */ n(
|
|
151
|
-
|
|
148
|
+
d,
|
|
152
149
|
{
|
|
153
150
|
className: l,
|
|
154
151
|
"data-hook": i,
|
|
155
|
-
"data-tracking-el":
|
|
152
|
+
"data-tracking-el": s,
|
|
156
153
|
"data-tracking-label": c,
|
|
157
154
|
variant: "warning",
|
|
158
155
|
children: [
|
|
159
|
-
/* @__PURE__ */ e(
|
|
156
|
+
/* @__PURE__ */ e(k, { className: "text-warning-foreground shrink-0 translate-y-0.5" }),
|
|
160
157
|
/* @__PURE__ */ n("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
161
158
|
a && /* @__PURE__ */ e(o, { children: a }),
|
|
162
159
|
/* @__PURE__ */ e(f, { children: t })
|
|
@@ -167,12 +164,12 @@ function D({
|
|
|
167
164
|
);
|
|
168
165
|
}
|
|
169
166
|
export {
|
|
170
|
-
|
|
167
|
+
d as Alert,
|
|
171
168
|
f as AlertDescription,
|
|
172
169
|
C as AlertDestructive,
|
|
173
170
|
R as AlertInfo,
|
|
174
|
-
|
|
171
|
+
y as AlertSuccess,
|
|
175
172
|
o as AlertTitle,
|
|
176
173
|
D as AlertWarning,
|
|
177
|
-
|
|
174
|
+
p as alertVariants
|
|
178
175
|
};
|