@brightlocal/ui-components 2.24.1 → 2.26.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/README.md +3 -2
- package/component-meta.json +331 -91
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.js +2 -2
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.js +17 -17
- package/dist/alert.cjs +1 -1
- package/dist/alert.d.ts +23 -9
- package/dist/alert.d.ts.map +1 -1
- package/dist/alert.js +95 -87
- package/dist/badge.cjs +1 -1
- package/dist/badge.js +9 -9
- package/dist/blocks/input-list.cjs +2 -2
- package/dist/blocks/input-list.d.ts.map +1 -1
- package/dist/blocks/input-list.js +43 -46
- package/dist/blocks/sidebar.cjs +1 -1
- package/dist/blocks/sidebar.js +14 -14
- package/dist/brand-illustration-motif.cjs +1 -1
- package/dist/brand-illustration-motif.js +11 -11
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.js +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +10 -10
- package/dist/card.cjs +1 -1
- package/dist/card.js +1 -1
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.js +12 -12
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +7 -7
- package/dist/chip.cjs +1 -1
- package/dist/chip.js +7 -7
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.js +1 -1
- package/dist/data-table.cjs +1 -1
- package/dist/data-table.d.ts +46 -1
- package/dist/data-table.d.ts.map +1 -1
- package/dist/data-table.js +8 -1
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +61 -61
- package/dist/field.cjs +1 -1
- package/dist/field.js +1 -1
- package/dist/height-transition.cjs +1 -0
- package/dist/height-transition.d.ts +44 -0
- package/dist/height-transition.d.ts.map +1 -0
- package/dist/height-transition.js +63 -0
- 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 +326 -324
- package/dist/input-chip.cjs +1 -1
- package/dist/input-chip.js +2 -2
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.js +15 -15
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.js +1 -1
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/lib/motion.cjs +1 -0
- package/dist/lib/motion.d.ts +70 -0
- package/dist/lib/motion.d.ts.map +1 -0
- package/dist/lib/motion.js +25 -0
- package/dist/lib/utils.cjs +1 -1
- package/dist/lib/utils.d.ts +1 -1
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +12 -4
- package/dist/link.cjs +1 -1
- package/dist/link.d.ts +6 -5
- package/dist/link.d.ts.map +1 -1
- package/dist/link.js +69 -94
- package/dist/list.cjs +1 -1
- package/dist/list.js +10 -10
- package/dist/loading.cjs +1 -1
- package/dist/loading.d.ts.map +1 -1
- package/dist/loading.js +45 -47
- package/dist/map.cjs +1 -1
- package/dist/map.d.ts.map +1 -1
- package/dist/map.js +2 -2
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.js +5 -5
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.js +13 -13
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.js +1 -1
- package/dist/progress.cjs +1 -1
- package/dist/progress.d.ts.map +1 -1
- package/dist/progress.js +21 -25
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.js +12 -12
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.js +11 -11
- package/dist/select.cjs +1 -1
- package/dist/select.js +12 -12
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.d.ts.map +1 -1
- package/dist/sheet.js +54 -50
- package/dist/slider.cjs +1 -1
- package/dist/slider.js +13 -13
- package/dist/stepper.cjs +1 -1
- package/dist/stepper.js +4 -4
- package/dist/switch.cjs +1 -1
- package/dist/switch.js +5 -5
- package/dist/table.cjs +1 -1
- package/dist/table.js +2 -2
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/text-reveal-motion.cjs +1 -1
- package/dist/text-reveal-motion.d.ts.map +1 -1
- package/dist/text-reveal-motion.js +77 -79
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +11 -11
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.js +5 -5
- package/package.json +10 -4
- package/src/blocks/input-list.tsx +3 -6
- package/src/blocks/sidebar.tsx +14 -14
- package/src/components/accordion.tsx +2 -2
- package/src/components/alert-dialog.tsx +2 -2
- package/src/components/alert.tsx +68 -33
- package/src/components/badge.tsx +1 -1
- package/src/components/brand-illustration-motif.tsx +1 -1
- package/src/components/breadcrumb.tsx +1 -1
- package/src/components/button.tsx +2 -2
- package/src/components/card.tsx +1 -1
- package/src/components/carousel.tsx +1 -1
- package/src/components/checkbox.tsx +1 -1
- package/src/components/chip.tsx +2 -2
- package/src/components/combobox.tsx +1 -1
- package/src/components/data-table.tsx +54 -2
- package/src/components/dialog.tsx +3 -3
- package/src/components/field.tsx +1 -1
- package/src/components/height-transition.tsx +164 -0
- package/src/components/input-chip.tsx +2 -2
- package/src/components/input-group.tsx +2 -2
- package/src/components/input-otp.tsx +1 -1
- package/src/components/input.tsx +1 -1
- package/src/components/link.tsx +59 -67
- package/src/components/list.tsx +1 -1
- package/src/components/loading.tsx +2 -15
- package/src/components/map.tsx +3 -2
- package/src/components/menubar.tsx +5 -5
- package/src/components/navigation-menu.tsx +6 -6
- package/src/components/pagination.tsx +1 -1
- package/src/components/progress.tsx +2 -10
- package/src/components/radio-group.tsx +1 -1
- package/src/components/scroll-area.tsx +2 -2
- package/src/components/select.tsx +1 -1
- package/src/components/sheet.tsx +9 -5
- package/src/components/slider.tsx +1 -1
- package/src/components/stepper.tsx +4 -4
- package/src/components/switch.tsx +2 -2
- package/src/components/table.tsx +2 -2
- package/src/components/tabs.tsx +1 -1
- package/src/components/text-reveal-motion.tsx +3 -8
- package/src/components/textarea.tsx +1 -1
- package/src/components/toggle.tsx +1 -1
- package/src/index.ts +1 -0
- package/src/lib/motion.ts +75 -0
- package/src/lib/utils.ts +14 -2
- package/dist/browser-entry.d.ts +0 -19
- package/dist/browser-entry.d.ts.map +0 -1
- package/src/browser-entry.ts +0 -99
- package/src/browser-tokens.css +0 -1
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 69 components and 2 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
|
|
|
@@ -32,6 +32,7 @@ This package includes 67 components and 3 blocks built on Radix UI primitives an
|
|
|
32
32
|
- **Card** - Container for content with consistent styling
|
|
33
33
|
- **CentredLayout** - Centers content horizontally
|
|
34
34
|
- **GlobalLayout** - Full-page layout wrapper
|
|
35
|
+
- **HeightTransition** - Smoothly transitions its height when children's natural height changes
|
|
35
36
|
- **ResizablePanel** - Panels that can be resized by users
|
|
36
37
|
- **ScrollArea** - Custom scrollable areas with styled scrollbars
|
|
37
38
|
- **Separator** - Visual divider between content with configurable spacing
|
|
@@ -41,7 +42,7 @@ This package includes 67 components and 3 blocks built on Radix UI primitives an
|
|
|
41
42
|
### Navigation Components
|
|
42
43
|
|
|
43
44
|
- **Breadcrumb** - Hierarchical navigation trail
|
|
44
|
-
- **Link** - Styled anchor links with inline, button-styled and icon-only variants
|
|
45
|
+
- **Link** - Styled anchor links with inline, button-styled (incl. primary brand CTA) and icon-only variants
|
|
45
46
|
- **NavigationMenu** - Complex navigation menus
|
|
46
47
|
- **Menubar** - Application menu bars
|
|
47
48
|
- **Pagination** - Page navigation controls
|
package/component-meta.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightlocal/ui-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.26.0",
|
|
4
4
|
"description": "Machine-readable registry of all components in the BrightLocal Design System",
|
|
5
5
|
"components": [
|
|
6
6
|
{
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
"dataHookRequired": true,
|
|
186
186
|
"variants": {
|
|
187
187
|
"variant": [
|
|
188
|
-
"
|
|
188
|
+
"primary",
|
|
189
189
|
"secondary",
|
|
190
190
|
"destructive",
|
|
191
191
|
"outline"
|
|
@@ -298,7 +298,7 @@
|
|
|
298
298
|
"dataHookRequired": true,
|
|
299
299
|
"variants": {
|
|
300
300
|
"variant": [
|
|
301
|
-
"
|
|
301
|
+
"primary",
|
|
302
302
|
"destructive",
|
|
303
303
|
"outline",
|
|
304
304
|
"secondary",
|
|
@@ -374,6 +374,40 @@
|
|
|
374
374
|
"Enter",
|
|
375
375
|
"Space"
|
|
376
376
|
]
|
|
377
|
+
},
|
|
378
|
+
"figma": {
|
|
379
|
+
"fileKey": "p3krmC8DBUgqpbq6cLzaal",
|
|
380
|
+
"nodes": [
|
|
381
|
+
{
|
|
382
|
+
"nodeId": "37:931",
|
|
383
|
+
"figmaName": "Button",
|
|
384
|
+
"kind": "componentSet",
|
|
385
|
+
"export": "Button",
|
|
386
|
+
"axes": [
|
|
387
|
+
{
|
|
388
|
+
"figma": "Variant",
|
|
389
|
+
"code": "variant"
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"figma": "Size",
|
|
393
|
+
"code": "size",
|
|
394
|
+
"valueToProp": {
|
|
395
|
+
"icon": "iconOnly"
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"figma": "State",
|
|
400
|
+
"exempt": "interaction-state",
|
|
401
|
+
"valueToProp": {
|
|
402
|
+
"Loading": "loading",
|
|
403
|
+
"Disabled": "disabled"
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
]
|
|
407
|
+
}
|
|
408
|
+
],
|
|
409
|
+
"unmappedExports": [],
|
|
410
|
+
"figmaOnly": []
|
|
377
411
|
}
|
|
378
412
|
},
|
|
379
413
|
{
|
|
@@ -488,6 +522,91 @@
|
|
|
488
522
|
"role": "region",
|
|
489
523
|
"requiresLabel": false,
|
|
490
524
|
"keyboardInteraction": []
|
|
525
|
+
},
|
|
526
|
+
"figma": {
|
|
527
|
+
"fileKey": "p3krmC8DBUgqpbq6cLzaal",
|
|
528
|
+
"nodes": [
|
|
529
|
+
{
|
|
530
|
+
"nodeId": "22519:1849",
|
|
531
|
+
"figmaName": "Card",
|
|
532
|
+
"kind": "componentSet",
|
|
533
|
+
"export": "Card",
|
|
534
|
+
"axes": [
|
|
535
|
+
{
|
|
536
|
+
"figma": "Variant",
|
|
537
|
+
"code": "variant"
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"figma": "Density",
|
|
541
|
+
"code": "density"
|
|
542
|
+
}
|
|
543
|
+
]
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
"nodeId": "29376:4497",
|
|
547
|
+
"figmaName": "Card Header",
|
|
548
|
+
"kind": "componentSet",
|
|
549
|
+
"export": "CardHeader",
|
|
550
|
+
"axes": [
|
|
551
|
+
{
|
|
552
|
+
"figma": "Align",
|
|
553
|
+
"code": "align",
|
|
554
|
+
"valueAliases": {
|
|
555
|
+
"Default": "left"
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
]
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
"nodeId": "29027:338",
|
|
562
|
+
"figmaName": "Card Title",
|
|
563
|
+
"kind": "componentSet",
|
|
564
|
+
"export": "CardTitle",
|
|
565
|
+
"axes": [
|
|
566
|
+
{
|
|
567
|
+
"figma": "Font Size",
|
|
568
|
+
"code": "size",
|
|
569
|
+
"note": "CardTitle's size prop is not registered in component-meta variants (sub-part variants are flat on the parent today); watchdog treats a missing registry axis as info, not drift — revisit at rollout with DS-828"
|
|
570
|
+
}
|
|
571
|
+
]
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
"nodeId": "29397:4670",
|
|
575
|
+
"figmaName": "Card Description",
|
|
576
|
+
"kind": "component",
|
|
577
|
+
"export": "CardDescription"
|
|
578
|
+
}
|
|
579
|
+
],
|
|
580
|
+
"unmappedExports": [
|
|
581
|
+
{
|
|
582
|
+
"export": "CardContent",
|
|
583
|
+
"reason": "Represented as BOOLEAN toggle 'Card Content' on the Card set, not a standalone Figma component"
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
"export": "CardFooter",
|
|
587
|
+
"reason": "Represented as BOOLEAN toggle 'Card Footer' on the Card set"
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
"export": "CardMedia",
|
|
591
|
+
"reason": "Represented as BOOLEAN toggle 'Show Media' on the Card set"
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
"export": "CardAction",
|
|
595
|
+
"reason": "No Figma representation found (2026-08-13) — candidate designer task at rollout"
|
|
596
|
+
}
|
|
597
|
+
],
|
|
598
|
+
"figmaOnly": [
|
|
599
|
+
{
|
|
600
|
+
"nodeId": "17845:14104",
|
|
601
|
+
"figmaName": "Card / Example Content",
|
|
602
|
+
"reason": "Figma demo helper"
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
"nodeId": "17845:14105",
|
|
606
|
+
"figmaName": "Card / Example Footer",
|
|
607
|
+
"reason": "Figma demo helper"
|
|
608
|
+
}
|
|
609
|
+
]
|
|
491
610
|
}
|
|
492
611
|
},
|
|
493
612
|
{
|
|
@@ -857,6 +976,85 @@
|
|
|
857
976
|
"props": [],
|
|
858
977
|
"description": "Right-click context menu"
|
|
859
978
|
},
|
|
979
|
+
{
|
|
980
|
+
"name": "DataTable",
|
|
981
|
+
"import": "@brightlocal/ui-components/data-table",
|
|
982
|
+
"category": "display",
|
|
983
|
+
"exports": [
|
|
984
|
+
"DataTable",
|
|
985
|
+
"DataTableBulkActions",
|
|
986
|
+
"DataTableBulkActionsActions",
|
|
987
|
+
"DataTableBulkActionsSummary",
|
|
988
|
+
"DataTableColumnHeader",
|
|
989
|
+
"DataTablePagination",
|
|
990
|
+
"DataTablePaginationNav",
|
|
991
|
+
"DataTablePaginationRowCount",
|
|
992
|
+
"DataTableSearch",
|
|
993
|
+
"DataTableSelectAllCheckbox",
|
|
994
|
+
"DataTableSelectRowCheckbox",
|
|
995
|
+
"DataTableToolbar",
|
|
996
|
+
"DataTableToolbarLeft",
|
|
997
|
+
"DataTableToolbarRight",
|
|
998
|
+
"VirtualizedDataTable",
|
|
999
|
+
"useDataTable",
|
|
1000
|
+
"useDataTableBulkActionsContext"
|
|
1001
|
+
],
|
|
1002
|
+
"compound": true,
|
|
1003
|
+
"dataHookRequired": true,
|
|
1004
|
+
"variants": {},
|
|
1005
|
+
"props": [
|
|
1006
|
+
"columns",
|
|
1007
|
+
"data",
|
|
1008
|
+
"enableSorting",
|
|
1009
|
+
"enableGlobalFiltering",
|
|
1010
|
+
"enableRowSelection",
|
|
1011
|
+
"enablePagination",
|
|
1012
|
+
"pageSize",
|
|
1013
|
+
"isLoading",
|
|
1014
|
+
"skeletonRowCount",
|
|
1015
|
+
"noResultsMessage",
|
|
1016
|
+
"layout",
|
|
1017
|
+
"minWidth",
|
|
1018
|
+
"scrollRegionLabel",
|
|
1019
|
+
"stickyHeader",
|
|
1020
|
+
"footer",
|
|
1021
|
+
"className"
|
|
1022
|
+
],
|
|
1023
|
+
"i18nProps": {
|
|
1024
|
+
"DataTable": {
|
|
1025
|
+
"scrollRegionLabel": "string — default: \"Scrollable table\"",
|
|
1026
|
+
"noResultsMessage": "string — default: \"No results.\""
|
|
1027
|
+
},
|
|
1028
|
+
"DataTableColumnHeader": {
|
|
1029
|
+
"getSortLabel": "(title: string, direction: \"asc\" | \"desc\" | false) => string"
|
|
1030
|
+
},
|
|
1031
|
+
"DataTableSearch": {
|
|
1032
|
+
"ariaLabel": "string — default: \"Search table\"",
|
|
1033
|
+
"placeholder": "string — default: \"Search...\"",
|
|
1034
|
+
"clearSearchAriaLabel": "string — default: \"Clear search\""
|
|
1035
|
+
},
|
|
1036
|
+
"DataTablePaginationNav": {
|
|
1037
|
+
"ariaLabel": "string — default: \"Table pagination\""
|
|
1038
|
+
},
|
|
1039
|
+
"DataTablePagination": {
|
|
1040
|
+
"ariaLabel": "string — default: \"Table pagination\"",
|
|
1041
|
+
"renderRowCount": "(info: RowCountRenderInfo) => React.ReactNode — default: renders \"{startRow}-{endRow} of {totalRows}\""
|
|
1042
|
+
},
|
|
1043
|
+
"DataTablePaginationRowCount": {
|
|
1044
|
+
"renderText": "(info: RowCountRenderInfo) => React.ReactNode — default: renders \"{startRow}-{endRow} of {totalRows}\""
|
|
1045
|
+
},
|
|
1046
|
+
"DataTableSelectAllCheckbox": {
|
|
1047
|
+
"selectAllAriaLabel": "string — default: \"Select all\""
|
|
1048
|
+
},
|
|
1049
|
+
"DataTableSelectRowCheckbox": {
|
|
1050
|
+
"selectRowAriaLabel": "string — default: \"Select row\""
|
|
1051
|
+
},
|
|
1052
|
+
"DataTableBulkActionsSummary": {
|
|
1053
|
+
"children": "React.ReactNode | ((info: { selectedCount: number; totalCount: number }) => React.ReactNode) — default: \"{selectedCount} of {totalCount} row(s) selected.\""
|
|
1054
|
+
}
|
|
1055
|
+
},
|
|
1056
|
+
"description": "Composable data table built on TanStack Table. Exposes `useDataTable` hook + `DataTable` / `VirtualizedDataTable` renderers + toolbar layout + pagination and search helpers. Compose the table and its companions (DataTableToolbar rows, bulk actions) as ONE slot — a single flex-column wrapper — inside gapped parents like DialogContent or Card, so the parent's gap applies around the table block, not between the toolbars and the table; the toolbars' built-in padding provides the internal spacing."
|
|
1057
|
+
},
|
|
860
1058
|
{
|
|
861
1059
|
"name": "DatePicker",
|
|
862
1060
|
"import": "@brightlocal/ui-components/date-picker",
|
|
@@ -1074,6 +1272,110 @@
|
|
|
1074
1272
|
"Enter",
|
|
1075
1273
|
"Escape"
|
|
1076
1274
|
]
|
|
1275
|
+
},
|
|
1276
|
+
"figma": {
|
|
1277
|
+
"fileKey": "p3krmC8DBUgqpbq6cLzaal",
|
|
1278
|
+
"nodes": [
|
|
1279
|
+
{
|
|
1280
|
+
"nodeId": "336:5077",
|
|
1281
|
+
"figmaName": "DropdownMenu",
|
|
1282
|
+
"kind": "component",
|
|
1283
|
+
"export": "DropdownMenu",
|
|
1284
|
+
"note": "Figma node is a demo composition; 'Open' (BOOLEAN) and 'Instance' (INSTANCE_SWAP) are composition props, exempt by convention"
|
|
1285
|
+
},
|
|
1286
|
+
{
|
|
1287
|
+
"nodeId": "105:55",
|
|
1288
|
+
"figmaName": "DropdownMenu / Menu",
|
|
1289
|
+
"kind": "component",
|
|
1290
|
+
"export": "DropdownMenuContent"
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
"nodeId": "330:8549",
|
|
1294
|
+
"figmaName": "DropdownMenu / Item / Default",
|
|
1295
|
+
"kind": "componentSet",
|
|
1296
|
+
"export": "DropdownMenuItem",
|
|
1297
|
+
"alsoRepresents": [
|
|
1298
|
+
"DropdownMenuCheckboxItem",
|
|
1299
|
+
"DropdownMenuRadioGroup"
|
|
1300
|
+
],
|
|
1301
|
+
"axes": [
|
|
1302
|
+
{
|
|
1303
|
+
"figma": "Variant",
|
|
1304
|
+
"exempt": "export-discriminator",
|
|
1305
|
+
"note": "Default/Checkbox/Radio/Icon select between DropdownMenuItem, DropdownMenuCheckboxItem and DropdownMenuRadioGroup"
|
|
1306
|
+
},
|
|
1307
|
+
{
|
|
1308
|
+
"figma": "State",
|
|
1309
|
+
"exempt": "interaction-state"
|
|
1310
|
+
}
|
|
1311
|
+
]
|
|
1312
|
+
},
|
|
1313
|
+
{
|
|
1314
|
+
"nodeId": "17398:40525",
|
|
1315
|
+
"figmaName": "DropdownMenu / Item / Label",
|
|
1316
|
+
"kind": "componentSet",
|
|
1317
|
+
"export": "DropdownMenuLabel",
|
|
1318
|
+
"axes": [
|
|
1319
|
+
{
|
|
1320
|
+
"figma": "Level",
|
|
1321
|
+
"exempt": "figma-only-style",
|
|
1322
|
+
"note": "Level 1/2 has no code counterpart; candidate code-side gap at rollout"
|
|
1323
|
+
}
|
|
1324
|
+
]
|
|
1325
|
+
},
|
|
1326
|
+
{
|
|
1327
|
+
"nodeId": "91:272",
|
|
1328
|
+
"figmaName": "DropdownMenu / Item / Separator",
|
|
1329
|
+
"kind": "component",
|
|
1330
|
+
"export": "DropdownMenuSeparator"
|
|
1331
|
+
},
|
|
1332
|
+
{
|
|
1333
|
+
"nodeId": "330:24002",
|
|
1334
|
+
"figmaName": "DropdownMenu / Item / SubTrigger",
|
|
1335
|
+
"kind": "componentSet",
|
|
1336
|
+
"export": "DropdownMenuSubTrigger",
|
|
1337
|
+
"axes": [
|
|
1338
|
+
{
|
|
1339
|
+
"figma": "Active",
|
|
1340
|
+
"exempt": "interaction-state"
|
|
1341
|
+
}
|
|
1342
|
+
]
|
|
1343
|
+
}
|
|
1344
|
+
],
|
|
1345
|
+
"unmappedExports": [
|
|
1346
|
+
{
|
|
1347
|
+
"export": "DropdownMenuTrigger",
|
|
1348
|
+
"reason": "Unstyled asChild wrapper in code; Figma shows concrete trigger examples instead (see figmaOnly)"
|
|
1349
|
+
},
|
|
1350
|
+
{
|
|
1351
|
+
"export": "DropdownMenuGroup",
|
|
1352
|
+
"reason": "Structural wrapper with no visual representation in Figma"
|
|
1353
|
+
},
|
|
1354
|
+
{
|
|
1355
|
+
"export": "DropdownMenuShortcut",
|
|
1356
|
+
"reason": "Represented as 'Shortcut Text' TEXT prop on the Item set"
|
|
1357
|
+
},
|
|
1358
|
+
{
|
|
1359
|
+
"export": "DropdownMenuSub",
|
|
1360
|
+
"reason": "Structural wrapper with no visual representation in Figma"
|
|
1361
|
+
},
|
|
1362
|
+
{
|
|
1363
|
+
"export": "DropdownMenuSubContent",
|
|
1364
|
+
"reason": "Composed in Figma from Menu component instances"
|
|
1365
|
+
}
|
|
1366
|
+
],
|
|
1367
|
+
"figmaOnly": [
|
|
1368
|
+
{
|
|
1369
|
+
"nodeId": "17402:8153",
|
|
1370
|
+
"figmaName": "DropdownMenu / Item / User",
|
|
1371
|
+
"reason": "Figma-only composition example"
|
|
1372
|
+
},
|
|
1373
|
+
{
|
|
1374
|
+
"nodeId": "17402:26397",
|
|
1375
|
+
"figmaName": "DropdownMenu Trigger / Avatar",
|
|
1376
|
+
"reason": "Trigger styling example; code Trigger is an unstyled asChild wrapper"
|
|
1377
|
+
}
|
|
1378
|
+
]
|
|
1077
1379
|
}
|
|
1078
1380
|
},
|
|
1079
1381
|
{
|
|
@@ -1199,6 +1501,19 @@
|
|
|
1199
1501
|
],
|
|
1200
1502
|
"description": "Top-level page header container"
|
|
1201
1503
|
},
|
|
1504
|
+
{
|
|
1505
|
+
"name": "HeightTransition",
|
|
1506
|
+
"import": "@brightlocal/ui-components/height-transition",
|
|
1507
|
+
"category": "layout",
|
|
1508
|
+
"exports": [
|
|
1509
|
+
"HeightTransition"
|
|
1510
|
+
],
|
|
1511
|
+
"compound": false,
|
|
1512
|
+
"dataHookRequired": true,
|
|
1513
|
+
"variants": {},
|
|
1514
|
+
"props": [],
|
|
1515
|
+
"description": "Wrapper that smoothly transitions its height (fixed 200ms) when children's natural height changes (content swaps, filtering); reduced motion handled by the DS global kill-switch"
|
|
1516
|
+
},
|
|
1202
1517
|
{
|
|
1203
1518
|
"name": "HoverCard",
|
|
1204
1519
|
"import": "@brightlocal/ui-components/hover-card",
|
|
@@ -1336,7 +1651,10 @@
|
|
|
1336
1651
|
"import": "@brightlocal/ui-components/input-password",
|
|
1337
1652
|
"category": "form",
|
|
1338
1653
|
"exports": [
|
|
1339
|
-
"
|
|
1654
|
+
"InputPasswordRoot",
|
|
1655
|
+
"InputPasswordField",
|
|
1656
|
+
"InputPasswordToggle",
|
|
1657
|
+
"InputPasswordStrength"
|
|
1340
1658
|
],
|
|
1341
1659
|
"compound": false,
|
|
1342
1660
|
"dataHookRequired": true,
|
|
@@ -1401,6 +1719,7 @@
|
|
|
1401
1719
|
"variants": {
|
|
1402
1720
|
"variant": [
|
|
1403
1721
|
"inline",
|
|
1722
|
+
"primary",
|
|
1404
1723
|
"filled",
|
|
1405
1724
|
"outline",
|
|
1406
1725
|
"ghost",
|
|
@@ -1413,10 +1732,11 @@
|
|
|
1413
1732
|
"showExternalIcon",
|
|
1414
1733
|
"asChild"
|
|
1415
1734
|
],
|
|
1416
|
-
"description": "Styled hyperlink with inline, button-styled and icon-only variants and external link support",
|
|
1735
|
+
"description": "Styled hyperlink with inline, button-styled (incl. primary brand CTA) and icon-only variants and external link support",
|
|
1417
1736
|
"whenToUse": [
|
|
1418
1737
|
"Inline text links within paragraphs or sentences (inline variant)",
|
|
1419
1738
|
"Navigation to internal or external URLs",
|
|
1739
|
+
"Primary brand CTA that navigates (primary variant — visually identical to Button primary)",
|
|
1420
1740
|
"Button-styled navigation or inline actions that need a button appearance (filled, outline, ghost variants)",
|
|
1421
1741
|
"Icon-only navigation links such as back buttons (icon variant — provide an aria-label)",
|
|
1422
1742
|
"Links inside i18n <Trans> blocks — use Link as a component in the components map"
|
|
@@ -1427,7 +1747,7 @@
|
|
|
1427
1747
|
"alternatives": [
|
|
1428
1748
|
{
|
|
1429
1749
|
"component": "Button",
|
|
1430
|
-
"rule": "Use Button for actions (submit, delete, open). Use a button-styled Link (variant filled/outline/ghost) for navigation that needs a button appearance"
|
|
1750
|
+
"rule": "Use Button for actions (submit, delete, open). Use a button-styled Link (variant primary/filled/outline/ghost) for navigation that needs a button appearance"
|
|
1431
1751
|
}
|
|
1432
1752
|
]
|
|
1433
1753
|
},
|
|
@@ -1621,7 +1941,6 @@
|
|
|
1621
1941
|
"MenubarMenu",
|
|
1622
1942
|
"MenubarTrigger",
|
|
1623
1943
|
"MenubarContent",
|
|
1624
|
-
"MenubarGroup",
|
|
1625
1944
|
"MenubarItem",
|
|
1626
1945
|
"MenubarCheckboxItem",
|
|
1627
1946
|
"MenubarRadioGroup",
|
|
@@ -1781,15 +2100,13 @@
|
|
|
1781
2100
|
"category": "form",
|
|
1782
2101
|
"exports": [
|
|
1783
2102
|
"RadioGroup",
|
|
1784
|
-
"RadioGroupItem"
|
|
1785
|
-
"RadioGroupLabel",
|
|
1786
|
-
"RadioGroupItemWithLabel"
|
|
2103
|
+
"RadioGroupItem"
|
|
1787
2104
|
],
|
|
1788
2105
|
"compound": true,
|
|
1789
2106
|
"dataHookRequired": true,
|
|
1790
2107
|
"variants": {
|
|
1791
2108
|
"variant": [
|
|
1792
|
-
"
|
|
2109
|
+
"simple",
|
|
1793
2110
|
"box",
|
|
1794
2111
|
"boxIconVertical",
|
|
1795
2112
|
"boxIconHorizontal"
|
|
@@ -2429,7 +2746,7 @@
|
|
|
2429
2746
|
"dataHookRequired": true,
|
|
2430
2747
|
"variants": {
|
|
2431
2748
|
"variant": [
|
|
2432
|
-
"
|
|
2749
|
+
"simple",
|
|
2433
2750
|
"outline"
|
|
2434
2751
|
],
|
|
2435
2752
|
"size": [
|
|
@@ -2572,84 +2889,6 @@
|
|
|
2572
2889
|
}
|
|
2573
2890
|
],
|
|
2574
2891
|
"blocks": [
|
|
2575
|
-
{
|
|
2576
|
-
"name": "DataTable",
|
|
2577
|
-
"import": "@brightlocal/ui-components/data-table",
|
|
2578
|
-
"category": "block",
|
|
2579
|
-
"exports": [
|
|
2580
|
-
"DataTable",
|
|
2581
|
-
"VirtualizedDataTable",
|
|
2582
|
-
"useDataTable",
|
|
2583
|
-
"useDataTableBulkActionsContext",
|
|
2584
|
-
"DataTableColumnHeader",
|
|
2585
|
-
"DataTableSearch",
|
|
2586
|
-
"DataTablePagination",
|
|
2587
|
-
"DataTablePaginationRowCount",
|
|
2588
|
-
"DataTablePaginationNav",
|
|
2589
|
-
"DataTableSelectAllCheckbox",
|
|
2590
|
-
"DataTableSelectRowCheckbox",
|
|
2591
|
-
"DataTableBulkActions",
|
|
2592
|
-
"DataTableBulkActionsSummary",
|
|
2593
|
-
"DataTableBulkActionsActions",
|
|
2594
|
-
"DataTableToolbar",
|
|
2595
|
-
"DataTableToolbarLeft",
|
|
2596
|
-
"DataTableToolbarRight"
|
|
2597
|
-
],
|
|
2598
|
-
"compound": true,
|
|
2599
|
-
"dataHookRequired": true,
|
|
2600
|
-
"variants": {},
|
|
2601
|
-
"props": [
|
|
2602
|
-
"columns",
|
|
2603
|
-
"data",
|
|
2604
|
-
"enableSorting",
|
|
2605
|
-
"enableGlobalFiltering",
|
|
2606
|
-
"enableRowSelection",
|
|
2607
|
-
"enablePagination",
|
|
2608
|
-
"pageSize",
|
|
2609
|
-
"isLoading",
|
|
2610
|
-
"noResultsMessage",
|
|
2611
|
-
"layout",
|
|
2612
|
-
"minWidth",
|
|
2613
|
-
"scrollRegionLabel",
|
|
2614
|
-
"stickyHeader",
|
|
2615
|
-
"footer",
|
|
2616
|
-
"className"
|
|
2617
|
-
],
|
|
2618
|
-
"i18nProps": {
|
|
2619
|
-
"DataTable": {
|
|
2620
|
-
"scrollRegionLabel": "string — default: \"Scrollable table\"",
|
|
2621
|
-
"noResultsMessage": "string — default: \"No results.\""
|
|
2622
|
-
},
|
|
2623
|
-
"DataTableColumnHeader": {
|
|
2624
|
-
"getSortLabel": "(title: string, direction: \"asc\" | \"desc\" | false) => string"
|
|
2625
|
-
},
|
|
2626
|
-
"DataTableSearch": {
|
|
2627
|
-
"ariaLabel": "string — default: \"Search table\"",
|
|
2628
|
-
"placeholder": "string — default: \"Search...\"",
|
|
2629
|
-
"clearSearchAriaLabel": "string — default: \"Clear search\""
|
|
2630
|
-
},
|
|
2631
|
-
"DataTablePaginationNav": {
|
|
2632
|
-
"ariaLabel": "string — default: \"Table pagination\""
|
|
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
|
-
},
|
|
2641
|
-
"DataTableSelectAllCheckbox": {
|
|
2642
|
-
"selectAllAriaLabel": "string — default: \"Select all\""
|
|
2643
|
-
},
|
|
2644
|
-
"DataTableSelectRowCheckbox": {
|
|
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.\""
|
|
2649
|
-
}
|
|
2650
|
-
},
|
|
2651
|
-
"description": "Composable data table built on TanStack Table. Exposes `useDataTable` hook + `DataTable` / `VirtualizedDataTable` renderers + toolbar layout + pagination and search helpers."
|
|
2652
|
-
},
|
|
2653
2892
|
{
|
|
2654
2893
|
"name": "InputList",
|
|
2655
2894
|
"import": "@brightlocal/ui-components/input-list",
|
|
@@ -2783,6 +3022,7 @@
|
|
|
2783
3022
|
"styling": "Prefer semantic color tokens (primary, secondary, muted, etc.). Fall back to Tailwind color utilities (e.g., text-blue-600) when no token fits. Never use raw hex/rgb values.",
|
|
2784
3023
|
"transitions": "Always specify property (transition-colors, transition-opacity). Never use transition-all.",
|
|
2785
3024
|
"focus": "Use focus-visible: prefix. Never use bare focus: prefix.",
|
|
2786
|
-
"icons": "@brightlocal/icons package. Default 16px, no size/strokeWidth override needed."
|
|
3025
|
+
"icons": "@brightlocal/icons package. Default 16px, no size/strokeWidth override needed.",
|
|
3026
|
+
"figmaMapping": "Some components carry an optional figma entry (fileKey + node IDs + axis rules) mapping code exports to the Figma library for the DS-824 drift watchdog (scripts/figma-sync/). Note for DS engineers: this file ships in the public npm tarball, so those Figma file keys and node IDs are public metadata. That is intentional and harmless — Figma permissions still gate all file access — but do not add anything sensitive to figma entries (no tokens, no internal URLs). Rules: docs/figma-sync/conventions.md in the design-system repo."
|
|
2787
3027
|
}
|
|
2788
3028
|
}
|
package/dist/accordion.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),y=require("react"),j=require("@radix-ui/react-accordion"),A=require("@brightlocal/icons"),c=require("@brightlocal/ui-components/lib/utils");function g(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const i=g(y),r=g(j),b=i.forwardRef((e,a)=>{const{dataHook:t,trackingEl:o,trackingLabel:d,disabled:l,dir:s,orientation:u,className:m,children:f}=e;return e.type==="single"?n.jsx(r.Root,{ref:a,className:m,collapsible:e.collapsible,"data-hook":t,"data-slot":"accordion","data-tracking-el":o,"data-tracking-label":d,defaultValue:e.defaultValue,dir:s,disabled:l,orientation:u,type:"single",value:e.value,onValueChange:e.onValueChange,children:f}):n.jsx(r.Root,{ref:a,className:m,"data-hook":t,"data-slot":"accordion","data-tracking-el":o,"data-tracking-label":d,defaultValue:e.defaultValue,dir:s,disabled:l,orientation:u,type:"multiple",value:e.value,onValueChange:e.onValueChange,children:f})});b.displayName="Accordion";const v=i.forwardRef(({className:e,...a},t)=>n.jsx(r.Item,{ref:t,className:c.cn("border-b last:border-b-0",e),"data-slot":"accordion-item",...a}));v.displayName="AccordionItem";const h=i.forwardRef(({className:e,children:a,...t},o)=>n.jsx(r.Header,{className:"flex",children:n.jsxs(r.Trigger,{ref:o,className:c.cn("focus-visible:border-ring focus-visible:shadow-default flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-shadow outline-none hover:underline disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",e),"data-slot":"accordion-trigger",...t,children:[a,n.jsx(A.ChevronDown,{className:"text-muted-foreground pointer-events-none shrink-0 translate-y-0.5 transition-transform
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),y=require("react"),j=require("@radix-ui/react-accordion"),A=require("@brightlocal/icons"),c=require("@brightlocal/ui-components/lib/utils");function g(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const i=g(y),r=g(j),b=i.forwardRef((e,a)=>{const{dataHook:t,trackingEl:o,trackingLabel:d,disabled:l,dir:s,orientation:u,className:m,children:f}=e;return e.type==="single"?n.jsx(r.Root,{ref:a,className:m,collapsible:e.collapsible,"data-hook":t,"data-slot":"accordion","data-tracking-el":o,"data-tracking-label":d,defaultValue:e.defaultValue,dir:s,disabled:l,orientation:u,type:"single",value:e.value,onValueChange:e.onValueChange,children:f}):n.jsx(r.Root,{ref:a,className:m,"data-hook":t,"data-slot":"accordion","data-tracking-el":o,"data-tracking-label":d,defaultValue:e.defaultValue,dir:s,disabled:l,orientation:u,type:"multiple",value:e.value,onValueChange:e.onValueChange,children:f})});b.displayName="Accordion";const v=i.forwardRef(({className:e,...a},t)=>n.jsx(r.Item,{ref:t,className:c.cn("border-b last:border-b-0",e),"data-slot":"accordion-item",...a}));v.displayName="AccordionItem";const h=i.forwardRef(({className:e,children:a,...t},o)=>n.jsx(r.Header,{className:"flex",children:n.jsxs(r.Trigger,{ref:o,className:c.cn("focus-visible:border-ring focus-visible:shadow-default duration-fast flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-shadow ease-out outline-none hover:underline disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",e),"data-slot":"accordion-trigger",...t,children:[a,n.jsx(A.ChevronDown,{className:"text-muted-foreground duration-base pointer-events-none shrink-0 translate-y-0.5 transition-transform ease-in-out"})]})}));h.displayName="AccordionTrigger";const x=i.forwardRef(({className:e,children:a,...t},o)=>n.jsx(r.Content,{ref:o,className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm","data-slot":"accordion-content",...t,children:n.jsx("div",{className:c.cn("pt-0 pb-4",e),children:a})}));x.displayName="AccordionContent";exports.Accordion=b;exports.AccordionContent=x;exports.AccordionItem=v;exports.AccordionTrigger=h;
|
package/dist/accordion.js
CHANGED
|
@@ -71,14 +71,14 @@ const y = r.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__
|
|
|
71
71
|
{
|
|
72
72
|
ref: n,
|
|
73
73
|
className: d(
|
|
74
|
-
"focus-visible:border-ring focus-visible:shadow-default flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-shadow outline-none hover:underline disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
|
|
74
|
+
"focus-visible:border-ring focus-visible:shadow-default duration-fast flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-shadow ease-out outline-none hover:underline disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
|
|
75
75
|
a
|
|
76
76
|
),
|
|
77
77
|
"data-slot": "accordion-trigger",
|
|
78
78
|
...t,
|
|
79
79
|
children: [
|
|
80
80
|
e,
|
|
81
|
-
/* @__PURE__ */ o(b, { className: "text-muted-foreground pointer-events-none shrink-0 translate-y-0.5 transition-transform
|
|
81
|
+
/* @__PURE__ */ o(b, { className: "text-muted-foreground duration-base pointer-events-none shrink-0 translate-y-0.5 transition-transform ease-in-out" })
|
|
82
82
|
]
|
|
83
83
|
}
|
|
84
84
|
) }));
|
package/dist/alert-dialog.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),N=require("react"),b=require("@radix-ui/react-alert-dialog"),s=require("@brightlocal/ui-components/lib/utils"),w=require("@brightlocal/ui-components/hooks/use-overlay-pointer-lock"),c=require("@brightlocal/ui-components/button");function g(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const i=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>t[a]})}}return e.default=t,Object.freeze(e)}const l=g(N),r=g(b);function u({dataHook:t,trackingEl:e,trackingLabel:a,...i}){return o.jsx(r.Root,{"data-hook":t,"data-slot":"alert-dialog","data-tracking-el":e,"data-tracking-label":a,...i})}u.displayName="AlertDialog";const f=l.forwardRef((t,e)=>o.jsx(r.Trigger,{ref:e,"data-slot":"alert-dialog-trigger",...t}));f.displayName="AlertDialogTrigger";function n({...t}){return o.jsx(r.Portal,{...t})}n.displayName="AlertDialogPortal";const d=l.forwardRef(({className:t,...e},a)=>o.jsx(r.Overlay,{ref:a,className:s.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=open]:duration-slow fixed inset-0 z-50 bg-black/50 ease-out data-[state=closed]:duration-250 data-[state=closed]:ease-in",t),"data-slot":"alert-dialog-overlay",...e}));d.displayName="AlertDialogOverlay";const m=l.forwardRef(({className:t,...e},a)=>(w.useOverlayPointerLock(),o.jsxs(n,{children:[o.jsx(d,{}),o.jsx(r.Content,{ref:a,className:s.cn("border-border bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=open]:duration-slow fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg ease-out data-[state=closed]:duration-250 data-[state=closed]:ease-in sm:max-w-lg",t),"data-slot":"alert-dialog-content",...e})]})));m.displayName="AlertDialogContent";const D=l.forwardRef(({className:t,...e},a)=>o.jsx("div",{ref:a,className:s.cn("flex flex-col gap-2 text-center sm:text-left",t),"data-slot":"alert-dialog-header",...e}));D.displayName="AlertDialogHeader";const A=l.forwardRef(({className:t,...e},a)=>o.jsx("div",{ref:a,className:s.cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),"data-slot":"alert-dialog-footer",...e}));A.displayName="AlertDialogFooter";const p=l.forwardRef(({className:t,dataHook:e,...a},i)=>o.jsx(r.Title,{ref:i,className:s.cn("text-lg font-semibold",t),"data-hook":e,"data-slot":"alert-dialog-title",...a}));p.displayName="AlertDialogTitle";const x=l.forwardRef(({className:t,dataHook:e,...a},i)=>o.jsx(r.Description,{ref:i,className:s.cn("text-muted-foreground text-sm",t),"data-hook":e,"data-slot":"alert-dialog-description",...a}));x.displayName="AlertDialogDescription";const y=l.forwardRef(({className:t,...e},a)=>o.jsx(r.Action,{ref:a,className:s.cn(c.ButtonVariants(),t),"data-slot":"alert-dialog-action",...e}));y.displayName="AlertDialogAction";const j=l.forwardRef(({className:t,...e},a)=>o.jsx(r.Cancel,{ref:a,className:s.cn(c.ButtonVariants({variant:"outline"}),t),"data-slot":"alert-dialog-cancel",...e}));j.displayName="AlertDialogCancel";exports.AlertDialog=u;exports.AlertDialogAction=y;exports.AlertDialogCancel=j;exports.AlertDialogContent=m;exports.AlertDialogDescription=x;exports.AlertDialogFooter=A;exports.AlertDialogHeader=D;exports.AlertDialogOverlay=d;exports.AlertDialogPortal=n;exports.AlertDialogTitle=p;exports.AlertDialogTrigger=f;
|