@brightlocal/ui-components 2.19.0 → 2.21.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.
Files changed (92) hide show
  1. package/AI_USAGE.md +2 -0
  2. package/README.md +27 -14
  3. package/component-meta.json +27 -11
  4. package/dist/alert-dialog.cjs +1 -1
  5. package/dist/alert-dialog.d.ts.map +1 -1
  6. package/dist/alert-dialog.js +34 -33
  7. package/dist/blocks/data-table.cjs +1 -1
  8. package/dist/blocks/data-table.d.ts.map +1 -1
  9. package/dist/blocks/data-table.js +14 -16
  10. package/dist/blocks/sidebar.cjs +1 -1
  11. package/dist/blocks/sidebar.d.ts +20 -2
  12. package/dist/blocks/sidebar.d.ts.map +1 -1
  13. package/dist/blocks/sidebar.js +99 -89
  14. package/dist/breadcrumb.cjs +1 -1
  15. package/dist/breadcrumb.d.ts +1 -1
  16. package/dist/breadcrumb.d.ts.map +1 -1
  17. package/dist/breadcrumb.js +9 -6
  18. package/dist/browser-entry.d.ts +2 -0
  19. package/dist/browser-entry.d.ts.map +1 -1
  20. package/dist/button.cjs +1 -1
  21. package/dist/button.d.ts.map +1 -1
  22. package/dist/button.js +12 -12
  23. package/dist/context-menu.cjs +1 -1
  24. package/dist/context-menu.d.ts.map +1 -1
  25. package/dist/context-menu.js +47 -46
  26. package/dist/dialog.cjs +1 -1
  27. package/dist/dialog.d.ts.map +1 -1
  28. package/dist/dialog.js +35 -34
  29. package/dist/dropdown-menu.cjs +1 -1
  30. package/dist/dropdown-menu.d.ts.map +1 -1
  31. package/dist/dropdown-menu.js +48 -47
  32. package/dist/hooks/use-overlay-pointer-lock.cjs +1 -0
  33. package/dist/hooks/use-overlay-pointer-lock.d.ts +20 -0
  34. package/dist/hooks/use-overlay-pointer-lock.d.ts.map +1 -0
  35. package/dist/hooks/use-overlay-pointer-lock.js +39 -0
  36. package/dist/index.cjs +1 -1
  37. package/dist/index.d.ts +1 -0
  38. package/dist/index.d.ts.map +1 -1
  39. package/dist/index.js +88 -86
  40. package/dist/logo.cjs +1 -1
  41. package/dist/logo.d.ts +1 -1
  42. package/dist/logo.js +2 -2
  43. package/dist/navigation-menu.cjs +1 -1
  44. package/dist/navigation-menu.d.ts +19 -0
  45. package/dist/navigation-menu.d.ts.map +1 -1
  46. package/dist/navigation-menu.js +134 -96
  47. package/dist/pagination.cjs +1 -1
  48. package/dist/pagination.d.ts +12 -8
  49. package/dist/pagination.d.ts.map +1 -1
  50. package/dist/pagination.js +117 -113
  51. package/dist/popover.cjs +1 -1
  52. package/dist/popover.d.ts.map +1 -1
  53. package/dist/popover.js +21 -20
  54. package/dist/progress.cjs +1 -1
  55. package/dist/progress.d.ts +28 -2
  56. package/dist/progress.d.ts.map +1 -1
  57. package/dist/progress.js +90 -49
  58. package/dist/select.cjs +1 -1
  59. package/dist/select.d.ts.map +1 -1
  60. package/dist/select.js +25 -23
  61. package/dist/separator.cjs +1 -1
  62. package/dist/separator.d.ts +14 -0
  63. package/dist/separator.d.ts.map +1 -1
  64. package/dist/separator.js +90 -44
  65. package/dist/sheet.cjs +1 -1
  66. package/dist/sheet.d.ts.map +1 -1
  67. package/dist/sheet.js +29 -28
  68. package/dist/skeleton.cjs +1 -1
  69. package/dist/skeleton.js +1 -1
  70. package/dist/sonner.d.ts +1 -1
  71. package/package.json +5 -1
  72. package/src/blocks/data-table.tsx +0 -2
  73. package/src/blocks/sidebar.tsx +40 -13
  74. package/src/browser-entry.ts +10 -0
  75. package/src/components/alert-dialog.tsx +20 -14
  76. package/src/components/breadcrumb.tsx +6 -3
  77. package/src/components/button.tsx +7 -1
  78. package/src/components/context-menu.tsx +19 -13
  79. package/src/components/dialog.tsx +4 -0
  80. package/src/components/dropdown-menu.tsx +4 -0
  81. package/src/components/logo.tsx +3 -3
  82. package/src/components/navigation-menu.tsx +134 -32
  83. package/src/components/pagination.tsx +47 -67
  84. package/src/components/popover.tsx +22 -16
  85. package/src/components/progress.tsx +118 -14
  86. package/src/components/select.tsx +4 -0
  87. package/src/components/separator.tsx +91 -23
  88. package/src/components/sheet.tsx +4 -0
  89. package/src/components/skeleton.tsx +1 -1
  90. package/src/components/sonner.tsx +1 -1
  91. package/src/hooks/use-overlay-pointer-lock.ts +128 -0
  92. package/src/index.ts +1 -0
package/dist/index.js CHANGED
@@ -3,8 +3,8 @@ import { Alert as p, AlertDescription as l, AlertDestructive as u, AlertInfo as
3
3
  import { AlertDialog as s, AlertDialogAction as x, AlertDialogCancel as T, AlertDialogContent as c, AlertDialogDescription as M, AlertDialogFooter as D, AlertDialogHeader as I, AlertDialogOverlay as f, AlertDialogPortal as P, AlertDialogTitle as L, AlertDialogTrigger as h } from "./alert-dialog.js";
4
4
  import { AspectRatio as A } from "./aspect-ratio.js";
5
5
  import { Avatar as B, AvatarFallback as G, AvatarImage as v } from "./avatar.js";
6
- import { Badge as H } from "./badge.js";
7
- import { Breadcrumb as V, BreadcrumbEllipsis as E, BreadcrumbItem as F, BreadcrumbLink as N, BreadcrumbList as O, BreadcrumbPage as _, BreadcrumbSeparator as z } from "./breadcrumb.js";
6
+ import { Badge as k } from "./badge.js";
7
+ import { Breadcrumb as V, BreadcrumbEllipsis as E, BreadcrumbItem as F, BreadcrumbLink as O, BreadcrumbList as N, BreadcrumbPage as _, BreadcrumbSeparator as z } from "./breadcrumb.js";
8
8
  import { Button as W, ButtonVariants as X } from "./button.js";
9
9
  import { Calendar as q, CalendarDayButton as j } from "./calendar.js";
10
10
  import { Callout as K, CalloutCitation as Q, CalloutHeading as Z, calloutVariants as $ } from "./callout.js";
@@ -14,19 +14,19 @@ import { ChartContainer as xe, ChartLegend as Te, ChartLegendContent as ce, Char
14
14
  import { CentredLayout as Pe, CentredLayoutContent as Le, CentredLayoutHeader as he } from "./centred-layout.js";
15
15
  import { Checkbox as Ae } from "./checkbox.js";
16
16
  import { Chip as Be, chipVariants as Ge } from "./chip.js";
17
- import { Collapsible as Re, CollapsibleContent as He, CollapsibleTrigger as ke } from "./collapsible.js";
18
- import { Combobox as Ee, ComboboxContent as Fe, ComboboxEmpty as Ne, ComboboxGroup as Oe, ComboboxInput as _e, ComboboxItem as ze, ComboboxList as Ye, ComboboxLoading as We, ComboboxSeparator as Xe, ComboboxTrigger as Ue, ComboboxValue as qe, ComboboxVirtualList as je } from "./combobox.js";
17
+ import { Collapsible as Re, CollapsibleContent as ke, CollapsibleTrigger as He } from "./collapsible.js";
18
+ import { Combobox as Ee, ComboboxContent as Fe, ComboboxEmpty as Oe, ComboboxGroup as Ne, ComboboxInput as _e, ComboboxItem as ze, ComboboxList as Ye, ComboboxLoading as We, ComboboxSeparator as Xe, ComboboxTrigger as Ue, ComboboxValue as qe, ComboboxVirtualList as je } from "./combobox.js";
19
19
  import { Command as Ke, CommandEmpty as Qe, CommandGroup as Ze, CommandInput as $e, CommandItem as eo, CommandList as oo, CommandSeparator as ro, CommandShortcut as to, CommandVirtualItem as ao, CommandVirtualList as no } from "./command.js";
20
20
  import { DEFAULT_DATE_PRESETS as po, DatePickerCalendar as lo, DatePickerContent as uo, DatePickerPresets as bo, DatePickerRoot as Co, DatePickerTrigger as mo } from "./date-picker.js";
21
21
  import { ContextMenu as go, ContextMenuCheckboxItem as so, ContextMenuContent as xo, ContextMenuGroup as To, ContextMenuItem as co, ContextMenuLabel as Mo, ContextMenuPortal as Do, ContextMenuRadioGroup as Io, ContextMenuRadioItem as fo, ContextMenuSeparator as Po, ContextMenuShortcut as Lo, ContextMenuSub as ho, ContextMenuSubContent as yo, ContextMenuSubTrigger as Ao, ContextMenuTrigger as wo } from "./context-menu.js";
22
22
  import { Description as Go } from "./description.js";
23
- import { Dialog as Ro, DialogClose as Ho, DialogContent as ko, DialogDescription as Vo, DialogFooter as Eo, DialogHeader as Fo, DialogOverlay as No, DialogPortal as Oo, DialogTitle as _o, DialogTrigger as zo } from "./dialog.js";
23
+ import { Dialog as Ro, DialogClose as ko, DialogContent as Ho, DialogDescription as Vo, DialogFooter as Eo, DialogHeader as Fo, DialogOverlay as Oo, DialogPortal as No, DialogTitle as _o, DialogTrigger as zo } from "./dialog.js";
24
24
  import { Drawer as Wo, DrawerBody as Xo, DrawerClose as Uo, DrawerContent as qo, DrawerDescription as jo, DrawerFooter as Jo, DrawerHeader as Ko, DrawerOverlay as Qo, DrawerPortal as Zo, DrawerTitle as $o, DrawerTrigger as er } from "./drawer.js";
25
25
  import { DropdownMenu as rr, DropdownMenuCheckboxItem as tr, DropdownMenuContent as ar, DropdownMenuGroup as nr, DropdownMenuItem as ir, DropdownMenuLabel as pr, DropdownMenuPortal as lr, DropdownMenuRadioGroup as ur, DropdownMenuRadioItem as dr, DropdownMenuSeparator as br, DropdownMenuShortcut as Cr, DropdownMenuSub as mr, DropdownMenuSubContent as Sr, DropdownMenuSubTrigger as gr, DropdownMenuTrigger as sr, DropdownMenuTriggerAvatar as xr } from "./dropdown-menu.js";
26
26
  import { Field as cr, FieldContent as Mr, FieldDescription as Dr, FieldError as Ir, FieldErrorIcon as fr, FieldGroup as Pr, FieldLabel as Lr, FieldLegend as hr, FieldSet as yr, fieldLegendVariants as Ar } from "./field.js";
27
- import { GlobalLayout as Br, GlobalLayoutContent as Gr, GlobalLayoutContentActions as vr, GlobalLayoutContentBody as Rr, GlobalLayoutContentHeader as Hr, GlobalLayoutMobileHeader as kr, GlobalLayoutSidebar as Vr } from "./global-layout.js";
27
+ import { GlobalLayout as Br, GlobalLayoutContent as Gr, GlobalLayoutContentActions as vr, GlobalLayoutContentBody as Rr, GlobalLayoutContentHeader as kr, GlobalLayoutMobileHeader as Hr, GlobalLayoutSidebar as Vr } from "./global-layout.js";
28
28
  import { Header as Fr } from "./header.js";
29
- import { HoverCard as Or, HoverCardContent as _r, HoverCardTrigger as zr } from "./hover-card.js";
29
+ import { HoverCard as Nr, HoverCardContent as _r, HoverCardTrigger as zr } from "./hover-card.js";
30
30
  import { Input as Wr, inputVariants as Xr } from "./input.js";
31
31
  import { InputChip as qr, InputChipInput as jr, InputChipItems as Jr, useInputChipContext as Kr } from "./input-chip.js";
32
32
  import { InputGroup as Zr, InputGroupAddon as $r, InputGroupButton as et, InputGroupInput as ot, inputGroupButtonVariants as rt, inputGroupVariants as tt } from "./input-group.js";
@@ -35,12 +35,12 @@ import { Label as St, labelVariants as gt } from "./label.js";
35
35
  import { Link as xt } from "./link.js";
36
36
  import { Item as ct, ItemActions as Mt, ItemContent as Dt, ItemDescription as It, ItemMedia as ft, ItemSubheader as Pt, ItemTitle as Lt, List as ht, itemVariants as yt } from "./list.js";
37
37
  import { Logo as wt } from "./logo.js";
38
- import { MAP_STYLES as Gt, MapClusterPin as vt, MapControlButton as Rt, MapErrorState as Ht, MapGridPin as kt, MapLegend as Vt, MapLegendItem as Et, MapLoadingState as Ft, MapLocationPin as Nt, MapPopover as Ot, MapPopoverAnchor as _t, MapPopoverContent as zt, MapTypeId as Yt, clusterPinHexColors as Wt, createClusterPinElement as Xt, createClusterPinSvg as Ut, mapGridPinColorMap as qt, resolveClusterPinColors as jt, useMapPopoverClick as Jt, useMapStyles as Kt } from "./map.js";
38
+ import { MAP_STYLES as Gt, MapClusterPin as vt, MapControlButton as Rt, MapErrorState as kt, MapGridPin as Ht, MapLegend as Vt, MapLegendItem as Et, MapLoadingState as Ft, MapLocationPin as Ot, MapPopover as Nt, MapPopoverAnchor as _t, MapPopoverContent as zt, MapTypeId as Yt, clusterPinHexColors as Wt, createClusterPinElement as Xt, createClusterPinSvg as Ut, mapGridPinColorMap as qt, resolveClusterPinColors as jt, useMapPopoverClick as Jt, useMapStyles as Kt } from "./map.js";
39
39
  import { Menubar as Zt, MenubarCheckboxItem as $t, MenubarContent as ea, MenubarItem as oa, MenubarLabel as ra, MenubarMenu as ta, MenubarRadioGroup as aa, MenubarRadioItem as na, MenubarSeparator as ia, MenubarShortcut as pa, MenubarSub as la, MenubarSubContent as ua, MenubarSubTrigger as da, MenubarTrigger as ba } from "./menubar.js";
40
40
  import { NavigationMenu as ma, NavigationMenuContent as Sa, NavigationMenuIndicator as ga, NavigationMenuItem as sa, NavigationMenuLink as xa, NavigationMenuList as Ta, NavigationMenuTrigger as ca, NavigationMenuViewport as Ma } from "./navigation-menu.js";
41
41
  import { Pagination as Ia, PaginationButton as fa, PaginationContent as Pa, PaginationEllipsis as La, PaginationItem as ha, PaginationLink as ya, PaginationNext as Aa, PaginationPrevious as wa, usePagination as Ba } from "./pagination.js";
42
- import { DEFAULT_STRENGTH_LEVELS as va, InputPasswordField as Ra, InputPasswordRoot as Ha, InputPasswordStrength as ka, InputPasswordToggle as Va, calculatePasswordStrength as Ea } from "./input-password.js";
43
- import { Popover as Na, PopoverAnchor as Oa, PopoverContent as _a, PopoverTrigger as za } from "./popover.js";
42
+ import { DEFAULT_STRENGTH_LEVELS as va, InputPasswordField as Ra, InputPasswordRoot as ka, InputPasswordStrength as Ha, InputPasswordToggle as Va, calculatePasswordStrength as Ea } from "./input-password.js";
43
+ import { Popover as Oa, PopoverAnchor as Na, PopoverContent as _a, PopoverTrigger as za } from "./popover.js";
44
44
  import { Progress as Wa } from "./progress.js";
45
45
  import { RadioGroup as Ua, RadioGroupItem as qa } from "./radio-group.js";
46
46
  import { Rating as Ja } from "./rating.js";
@@ -51,8 +51,8 @@ import { Separator as sn, SeparatorWithText as xn } from "./separator.js";
51
51
  import { Sheet as cn, SheetClose as Mn, SheetContent as Dn, SheetDescription as In, SheetFooter as fn, SheetHeader as Pn, SheetOverlay as Ln, SheetPortal as hn, SheetTitle as yn, SheetTrigger as An } from "./sheet.js";
52
52
  import { Skeleton as Bn } from "./skeleton.js";
53
53
  import { Slider as vn } from "./slider.js";
54
- import { Sonner as Hn, sonner as kn } from "./sonner.js";
55
- import { SplitLayout as En, SplitLayoutContentLeft as Fn, SplitLayoutContentRight as Nn, SplitLayoutHeader as On, SplitLayoutImage as _n } from "./split-layout.js";
54
+ import { Sonner as kn, sonner as Hn } from "./sonner.js";
55
+ import { SplitLayout as En, SplitLayoutContentLeft as Fn, SplitLayoutContentRight as On, SplitLayoutHeader as Nn, SplitLayoutImage as _n } from "./split-layout.js";
56
56
  import { Stepper as Yn, StepperContent as Wn, StepperDescription as Xn, StepperIndicator as Un, StepperItem as qn, StepperNav as jn, StepperSeparator as Jn, StepperTitle as Kn, StepperTrigger as Qn } from "./stepper.js";
57
57
  import { Switch as $n } from "./switch.js";
58
58
  import { Table as oi, TableBody as ri, TableCaption as ti, TableCell as ai, TableFooter as ni, TableHead as ii, TableHeader as pi, TableRow as li } from "./table.js";
@@ -62,16 +62,17 @@ import { Textarea as xi } from "./textarea.js";
62
62
  import { Toggle as ci, toggleVariants as Mi } from "./toggle.js";
63
63
  import { ToggleGroup as Ii, ToggleGroupItem as fi } from "./toggle-group.js";
64
64
  import { Tooltip as Li, TooltipContent as hi, TooltipProvider as yi, TooltipTrigger as Ai } from "./tooltip.js";
65
- import { TypographyBlockquote as Bi, TypographyCode as Gi, TypographyH1 as vi, TypographyH2 as Ri, TypographyH3 as Hi, TypographyH4 as ki, TypographyInlineCode as Vi, TypographyLarge as Ei, TypographyLead as Fi, TypographyList as Ni, TypographyMuted as Oi, TypographyP as _i, TypographySmall as zi } from "./typography.js";
65
+ import { TypographyBlockquote as Bi, TypographyCode as Gi, TypographyH1 as vi, TypographyH2 as Ri, TypographyH3 as ki, TypographyH4 as Hi, TypographyInlineCode as Vi, TypographyLarge as Ei, TypographyLead as Fi, TypographyList as Oi, TypographyMuted as Ni, TypographyP as _i, TypographySmall as zi } from "./typography.js";
66
66
  import { DataTable as Wi, DataTableColumnHeader as Xi, DataTablePagination as Ui, DataTablePaginationNav as qi, DataTablePaginationRowCount as ji, DataTableSearch as Ji, DataTableSelectAllCheckbox as Ki, DataTableSelectRowCheckbox as Qi, DataTableToolbar as Zi, DataTableToolbarLeft as $i, DataTableToolbarRight as ep, VirtualizedDataTable as op, useDataTable as rp } from "./blocks/data-table.js";
67
67
  import { InputList as ap, InputListAddButton as np, InputListInput as ip, InputListItems as pp, useInputListContext as lp } from "./blocks/input-list.js";
68
- import { Sidebar as dp, SidebarAccountDropdown as bp, SidebarCollapseIcon as Cp, SidebarCollapseIconType as mp, SidebarCollapsible as Sp, SidebarContent as gp, SidebarDrawer as sp, SidebarFooter as xp, SidebarGroup as Tp, SidebarGroupAction as cp, SidebarGroupContent as Mp, SidebarGroupLabel as Dp, SidebarGroupLabelSize as Ip, SidebarGroupLabelVariant as fp, SidebarHeader as Pp, SidebarHeaderButton as Lp, SidebarInboxItem as hp, SidebarInput as yp, SidebarInset as Ap, SidebarMenu as wp, SidebarMenuAction as Bp, SidebarMenuBadge as Gp, SidebarMenuButton as vp, SidebarMenuButtonSize as Rp, SidebarMenuButtonVariant as Hp, SidebarMenuCollapsible as kp, SidebarMenuCollapsibleContent as Vp, SidebarMenuCollapsibleTrigger as Ep, SidebarMenuItem as Fp, SidebarMenuSkeleton as Np, SidebarMenuSub as Op, SidebarMenuSubButton as _p, SidebarMenuSubButtonSize as zp, SidebarMenuSubItem as Yp, SidebarMenuSubVariant as Wp, SidebarPopoverMenu as Xp, SidebarPopoverMenuItem as Up, SidebarPopoverTrigger as qp, SidebarProvider as jp, SidebarRail as Jp, SidebarSeparator as Kp, SidebarSide as Qp, SidebarSwitcher as Zp, SidebarTrigger as $p, SidebarVariant as el, useSidebar as ol } from "./blocks/sidebar.js";
68
+ import { Sidebar as dp, SidebarAccountDropdown as bp, SidebarCollapseIcon as Cp, SidebarCollapseIconType as mp, SidebarCollapsible as Sp, SidebarContent as gp, SidebarDrawer as sp, SidebarFooter as xp, SidebarGroup as Tp, SidebarGroupAction as cp, SidebarGroupContent as Mp, SidebarGroupLabel as Dp, SidebarGroupLabelSize as Ip, SidebarGroupLabelVariant as fp, SidebarHeader as Pp, SidebarHeaderButton as Lp, SidebarInboxItem as hp, SidebarInput as yp, SidebarInset as Ap, SidebarMenu as wp, SidebarMenuAction as Bp, SidebarMenuBadge as Gp, SidebarMenuButton as vp, SidebarMenuButtonSize as Rp, SidebarMenuButtonVariant as kp, SidebarMenuCollapsible as Hp, SidebarMenuCollapsibleContent as Vp, SidebarMenuCollapsibleTrigger as Ep, SidebarMenuItem as Fp, SidebarMenuSkeleton as Op, SidebarMenuSub as Np, SidebarMenuSubButton as _p, SidebarMenuSubButtonSize as zp, SidebarMenuSubItem as Yp, SidebarMenuSubVariant as Wp, SidebarPopoverMenu as Xp, SidebarPopoverMenuItem as Up, SidebarPopoverTrigger as qp, SidebarProvider as jp, SidebarRail as Jp, SidebarSeparator as Kp, SidebarSide as Qp, SidebarSwitcher as Zp, SidebarTrigger as $p, SidebarVariant as el, useSidebar as ol } from "./blocks/sidebar.js";
69
69
  import { useDebounce as tl } from "./hooks/use-debounce.js";
70
70
  import { getBreakpointValue as nl, getBreakpointValue as il, isBelowBreakpoint as pl, isBelowBreakpoint as ll, useIsBelowBreakpoint as ul, useIsBelowBreakpoint as dl } from "./hooks/use-breakpoint.js";
71
- import { ReducedMotionOverrideContext as Cl, usePrefersReducedMotion as ml } from "./hooks/use-prefers-reduced-motion.js";
72
- import { cn as gl } from "./lib/utils.js";
73
- import { Area as xl, AreaChart as Tl, Bar as cl, BarChart as Ml, CartesianGrid as Dl, Cell as Il, Label as fl, Legend as Pl, Tooltip as Ll, Customized as hl, LabelList as yl, Line as Al, LineChart as wl, Pie as Bl, PieChart as Gl, PolarAngleAxis as vl, PolarGrid as Rl, PolarRadiusAxis as Hl, Radar as kl, RadarChart as Vl, RadialBar as El, RadialBarChart as Fl, Rectangle as Nl, ReferenceLine as Ol, ResponsiveContainer as _l, Sector as zl, XAxis as Yl, YAxis as Wl } from "recharts";
74
- import { REGEXP_ONLY_CHARS as Ul, REGEXP_ONLY_DIGITS as ql, REGEXP_ONLY_DIGITS_AND_CHARS as jl } from "input-otp";
71
+ import { useOverlayPointerLock as Cl } from "./hooks/use-overlay-pointer-lock.js";
72
+ import { ReducedMotionOverrideContext as Sl, usePrefersReducedMotion as gl } from "./hooks/use-prefers-reduced-motion.js";
73
+ import { cn as xl } from "./lib/utils.js";
74
+ import { Area as cl, AreaChart as Ml, Bar as Dl, BarChart as Il, CartesianGrid as fl, Cell as Pl, Label as Ll, Legend as hl, Tooltip as yl, Customized as Al, LabelList as wl, Line as Bl, LineChart as Gl, Pie as vl, PieChart as Rl, PolarAngleAxis as kl, PolarGrid as Hl, PolarRadiusAxis as Vl, Radar as El, RadarChart as Fl, RadialBar as Ol, RadialBarChart as Nl, Rectangle as _l, ReferenceLine as zl, ResponsiveContainer as Yl, Sector as Wl, XAxis as Xl, YAxis as Ul } from "recharts";
75
+ import { REGEXP_ONLY_CHARS as jl, REGEXP_ONLY_DIGITS as Jl, REGEXP_ONLY_DIGITS_AND_CHARS as Kl } from "input-otp";
75
76
  export {
76
77
  r as Accordion,
77
78
  t as AccordionContent,
@@ -95,20 +96,20 @@ export {
95
96
  b as AlertSuccess,
96
97
  C as AlertTitle,
97
98
  m as AlertWarning,
98
- xl as Area,
99
- Tl as AreaChart,
99
+ cl as Area,
100
+ Ml as AreaChart,
100
101
  A as AspectRatio,
101
102
  B as Avatar,
102
103
  G as AvatarFallback,
103
104
  v as AvatarImage,
104
- H as Badge,
105
- cl as Bar,
106
- Ml as BarChart,
105
+ k as Badge,
106
+ Dl as Bar,
107
+ Il as BarChart,
107
108
  V as Breadcrumb,
108
109
  E as BreadcrumbEllipsis,
109
110
  F as BreadcrumbItem,
110
- N as BreadcrumbLink,
111
- O as BreadcrumbList,
111
+ O as BreadcrumbLink,
112
+ N as BreadcrumbList,
112
113
  _ as BreadcrumbPage,
113
114
  z as BreadcrumbSeparator,
114
115
  W as Button,
@@ -132,29 +133,29 @@ export {
132
133
  me as CarouselItem,
133
134
  Se as CarouselNext,
134
135
  ge as CarouselPrevious,
135
- Dl as CartesianGrid,
136
- Il as Cell,
136
+ fl as CartesianGrid,
137
+ Pl as Cell,
137
138
  Pe as CentredLayout,
138
139
  Le as CentredLayoutContent,
139
140
  he as CentredLayoutHeader,
140
141
  xe as ChartContainer,
141
- fl as ChartLabel,
142
+ Ll as ChartLabel,
142
143
  Te as ChartLegend,
143
144
  ce as ChartLegendContent,
144
145
  Me as ChartStyle,
145
146
  De as ChartTooltip,
146
147
  Ie as ChartTooltipContent,
147
- Pl as ChartsLegend,
148
- Ll as ChartsTooltip,
148
+ hl as ChartsLegend,
149
+ yl as ChartsTooltip,
149
150
  Ae as Checkbox,
150
151
  Be as Chip,
151
152
  Re as Collapsible,
152
- He as CollapsibleContent,
153
- ke as CollapsibleTrigger,
153
+ ke as CollapsibleContent,
154
+ He as CollapsibleTrigger,
154
155
  Ee as Combobox,
155
156
  Fe as ComboboxContent,
156
- Ne as ComboboxEmpty,
157
- Oe as ComboboxGroup,
157
+ Oe as ComboboxEmpty,
158
+ Ne as ComboboxGroup,
158
159
  _e as ComboboxInput,
159
160
  ze as ComboboxItem,
160
161
  Ye as ComboboxList,
@@ -188,7 +189,7 @@ export {
188
189
  yo as ContextMenuSubContent,
189
190
  Ao as ContextMenuSubTrigger,
190
191
  wo as ContextMenuTrigger,
191
- hl as Customized,
192
+ Al as Customized,
192
193
  po as DEFAULT_DATE_PRESETS,
193
194
  va as DEFAULT_STRENGTH_LEVELS,
194
195
  Wi as DataTable,
@@ -209,13 +210,13 @@ export {
209
210
  mo as DatePickerTrigger,
210
211
  Go as Description,
211
212
  Ro as Dialog,
212
- Ho as DialogClose,
213
- ko as DialogContent,
213
+ ko as DialogClose,
214
+ Ho as DialogContent,
214
215
  Vo as DialogDescription,
215
216
  Eo as DialogFooter,
216
217
  Fo as DialogHeader,
217
- No as DialogOverlay,
218
- Oo as DialogPortal,
218
+ Oo as DialogOverlay,
219
+ No as DialogPortal,
219
220
  _o as DialogTitle,
220
221
  zo as DialogTrigger,
221
222
  Wo as Drawer,
@@ -258,11 +259,11 @@ export {
258
259
  Gr as GlobalLayoutContent,
259
260
  vr as GlobalLayoutContentActions,
260
261
  Rr as GlobalLayoutContentBody,
261
- Hr as GlobalLayoutContentHeader,
262
- kr as GlobalLayoutMobileHeader,
262
+ kr as GlobalLayoutContentHeader,
263
+ Hr as GlobalLayoutMobileHeader,
263
264
  Vr as GlobalLayoutSidebar,
264
265
  Fr as Header,
265
- Or as HoverCard,
266
+ Nr as HoverCard,
266
267
  _r as HoverCardContent,
267
268
  zr as HoverCardTrigger,
268
269
  Wr as Input,
@@ -286,8 +287,8 @@ export {
286
287
  bt as InputOTPWithSeparator,
287
288
  Ct as InputOTPWithSpacing,
288
289
  Ra as InputPasswordField,
289
- Ha as InputPasswordRoot,
290
- ka as InputPasswordStrength,
290
+ ka as InputPasswordRoot,
291
+ Ha as InputPasswordStrength,
291
292
  Va as InputPasswordToggle,
292
293
  ct as Item,
293
294
  Mt as ItemActions,
@@ -297,22 +298,22 @@ export {
297
298
  Pt as ItemSubheader,
298
299
  Lt as ItemTitle,
299
300
  St as Label,
300
- yl as LabelList,
301
- Al as Line,
302
- wl as LineChart,
301
+ wl as LabelList,
302
+ Bl as Line,
303
+ Gl as LineChart,
303
304
  xt as Link,
304
305
  ht as List,
305
306
  wt as Logo,
306
307
  Gt as MAP_STYLES,
307
308
  vt as MapClusterPin,
308
309
  Rt as MapControlButton,
309
- Ht as MapErrorState,
310
- kt as MapGridPin,
310
+ kt as MapErrorState,
311
+ Ht as MapGridPin,
311
312
  Vt as MapLegend,
312
313
  Et as MapLegendItem,
313
314
  Ft as MapLoadingState,
314
- Nt as MapLocationPin,
315
- Ot as MapPopover,
315
+ Ot as MapLocationPin,
316
+ Nt as MapPopover,
316
317
  _t as MapPopoverAnchor,
317
318
  zt as MapPopoverContent,
318
319
  Yt as MapTypeId,
@@ -346,36 +347,36 @@ export {
346
347
  ya as PaginationLink,
347
348
  Aa as PaginationNext,
348
349
  wa as PaginationPrevious,
349
- Bl as Pie,
350
- Gl as PieChart,
351
- vl as PolarAngleAxis,
352
- Rl as PolarGrid,
353
- Hl as PolarRadiusAxis,
354
- Na as Popover,
355
- Oa as PopoverAnchor,
350
+ vl as Pie,
351
+ Rl as PieChart,
352
+ kl as PolarAngleAxis,
353
+ Hl as PolarGrid,
354
+ Vl as PolarRadiusAxis,
355
+ Oa as Popover,
356
+ Na as PopoverAnchor,
356
357
  _a as PopoverContent,
357
358
  za as PopoverTrigger,
358
359
  Wa as Progress,
359
- Ul as REGEXP_ONLY_CHARS,
360
- ql as REGEXP_ONLY_DIGITS,
361
- jl as REGEXP_ONLY_DIGITS_AND_CHARS,
362
- kl as Radar,
363
- Vl as RadarChart,
364
- El as RadialBar,
365
- Fl as RadialBarChart,
360
+ jl as REGEXP_ONLY_CHARS,
361
+ Jl as REGEXP_ONLY_DIGITS,
362
+ Kl as REGEXP_ONLY_DIGITS_AND_CHARS,
363
+ El as Radar,
364
+ Fl as RadarChart,
365
+ Ol as RadialBar,
366
+ Nl as RadialBarChart,
366
367
  Ua as RadioGroup,
367
368
  qa as RadioGroupItem,
368
369
  Ja as Rating,
369
- Nl as Rectangle,
370
- Cl as ReducedMotionOverrideContext,
371
- Ol as ReferenceLine,
370
+ _l as Rectangle,
371
+ Sl as ReducedMotionOverrideContext,
372
+ zl as ReferenceLine,
372
373
  Qa as ResizableHandle,
373
374
  Za as ResizablePanel,
374
375
  $a as ResizablePanelGroup,
375
- _l as ResponsiveContainer,
376
+ Yl as ResponsiveContainer,
376
377
  on as ScrollArea,
377
378
  rn as ScrollBar,
378
- zl as Sector,
379
+ Wl as Sector,
379
380
  an as Select,
380
381
  nn as SelectContent,
381
382
  pn as SelectGroup,
@@ -422,13 +423,13 @@ export {
422
423
  Gp as SidebarMenuBadge,
423
424
  vp as SidebarMenuButton,
424
425
  Rp as SidebarMenuButtonSize,
425
- Hp as SidebarMenuButtonVariant,
426
- kp as SidebarMenuCollapsible,
426
+ kp as SidebarMenuButtonVariant,
427
+ Hp as SidebarMenuCollapsible,
427
428
  Vp as SidebarMenuCollapsibleContent,
428
429
  Ep as SidebarMenuCollapsibleTrigger,
429
430
  Fp as SidebarMenuItem,
430
- Np as SidebarMenuSkeleton,
431
- Op as SidebarMenuSub,
431
+ Op as SidebarMenuSkeleton,
432
+ Np as SidebarMenuSub,
432
433
  _p as SidebarMenuSubButton,
433
434
  zp as SidebarMenuSubButtonSize,
434
435
  Yp as SidebarMenuSubItem,
@@ -445,11 +446,11 @@ export {
445
446
  el as SidebarVariant,
446
447
  Bn as Skeleton,
447
448
  vn as Slider,
448
- Hn as Sonner,
449
+ kn as Sonner,
449
450
  En as SplitLayout,
450
451
  Fn as SplitLayoutContentLeft,
451
- Nn as SplitLayoutContentRight,
452
- On as SplitLayoutHeader,
452
+ On as SplitLayoutContentRight,
453
+ Nn as SplitLayoutHeader,
453
454
  _n as SplitLayoutImage,
454
455
  Yn as Stepper,
455
456
  Wn as StepperContent,
@@ -486,24 +487,24 @@ export {
486
487
  Gi as TypographyCode,
487
488
  vi as TypographyH1,
488
489
  Ri as TypographyH2,
489
- Hi as TypographyH3,
490
- ki as TypographyH4,
490
+ ki as TypographyH3,
491
+ Hi as TypographyH4,
491
492
  Vi as TypographyInlineCode,
492
493
  Ei as TypographyLarge,
493
494
  Fi as TypographyLead,
494
- Ni as TypographyList,
495
- Oi as TypographyMuted,
495
+ Oi as TypographyList,
496
+ Ni as TypographyMuted,
496
497
  _i as TypographyP,
497
498
  zi as TypographySmall,
498
499
  op as VirtualizedDataTable,
499
- Yl as XAxis,
500
- Wl as YAxis,
500
+ Xl as XAxis,
501
+ Ul as YAxis,
501
502
  S as alertVariants,
502
503
  Ea as calculatePasswordStrength,
503
504
  $ as calloutVariants,
504
505
  Ge as chipVariants,
505
506
  Wt as clusterPinHexColors,
506
- gl as cn,
507
+ xl as cn,
507
508
  Xt as createClusterPinElement,
508
509
  Ut as createClusterPinSvg,
509
510
  Ar as fieldLegendVariants,
@@ -518,7 +519,7 @@ export {
518
519
  gt as labelVariants,
519
520
  qt as mapGridPinColorMap,
520
521
  jt as resolveClusterPinColors,
521
- kn as sonner,
522
+ Hn as sonner,
522
523
  Mi as toggleVariants,
523
524
  rp as useDataTable,
524
525
  tl as useDebounce,
@@ -528,7 +529,8 @@ export {
528
529
  dl as useIsMobile,
529
530
  Jt as useMapPopoverClick,
530
531
  Kt as useMapStyles,
532
+ Cl as useOverlayPointerLock,
531
533
  Ba as usePagination,
532
- ml as usePrefersReducedMotion,
534
+ gl as usePrefersReducedMotion,
533
535
  ol as useSidebar
534
536
  };
package/dist/logo.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react/jsx-runtime"),n=require("class-variance-authority"),H=require("@brightlocal/ui-components/lib/utils"),s=n.cva("inline-flex text-brand-primary-foreground",{variants:{variant:{logotype:"h-6",mark:"w-6 h-6"}},defaultVariants:{variant:"logotype"}});function l({className:t,variant:o="logotype",dataHook:r,ariaLabel:e,trackingEl:i,trackingLabel:a,...V}){return C.jsxs("div",{className:H.cn(s({variant:o}),t),"data-hook":r,"data-slot":"logo","data-tracking-el":i,"data-tracking-label":a,"data-variant":o,...V,children:[o==="logotype"&&C.jsx("svg",{"aria-label":e??"BrightLocal Logo",fill:"none",height:"24",role:"img",viewBox:"0 0 128 24",width:"128",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("path",{clipRule:"evenodd",d:"M45.283 4.22403C46.4897 4.22403 47.4227 3.29104 47.4227 2.1397C47.4227 0.988358 46.4907 0 45.283 0C44.186 0 43.1986 0.987313 43.1986 2.1397C43.1986 3.29209 44.1316 4.22403 45.283 4.22403ZM43.5821 6.19866V17.8824H47.0382V6.19866H43.5821ZM25.3163 7.62478C26.1939 6.52776 27.4006 5.97925 28.8821 5.97925C30.5276 5.97925 31.844 6.58209 32.8867 7.84418C33.9294 9.0509 34.4225 10.477 34.4225 12.0682C34.4225 13.6594 33.874 15.0855 32.8313 16.2922C31.7343 17.499 30.4179 18.1572 28.7724 18.1572C27.2366 18.1572 26.0298 17.6087 25.2066 16.5116H25.1512V17.9378H21.8048V0.357313H25.2055V7.62478H25.3163ZM26.0842 14.2069C26.6327 14.7554 27.3463 15.0302 28.1685 15.0302C28.9907 15.0302 29.7043 14.7554 30.2528 14.2069C30.8013 13.6584 31.0761 12.8904 31.0761 12.0128C31.0761 11.1352 30.8013 10.4216 30.1985 9.87314C29.65 9.32463 28.9364 9.04985 28.1142 9.04985C27.2919 9.04985 26.6327 9.32463 26.0842 9.87314C25.5357 10.4216 25.2619 11.1352 25.2619 12.0128C25.2066 12.8904 25.5357 13.604 26.0842 14.2069ZM42.6501 9.54508C42.6313 9.5409 42.6136 9.53776 42.5958 9.53463V6.19866C42.4307 6.08896 42.2113 6.08896 41.9376 6.08896C40.4018 6.08896 39.1397 6.91224 38.6466 8.00926V6.19866H35.2458V17.8824H38.6466V12.9458C38.6466 10.8615 39.6339 9.4897 41.8279 9.4897C42.0839 9.4897 42.3398 9.4897 42.5958 9.53463V9.54508H42.6501ZM51.0418 18.8143C51.7 20.1307 52.7427 20.789 54.1688 20.789C55.924 20.789 57.1307 19.856 57.1307 18.0464V16.2912H57.0754C56.2521 17.3328 55.1551 17.827 53.7289 17.827C52.0834 17.827 50.7116 17.2785 49.67 16.1261C48.6273 15.0291 48.0788 13.603 48.0788 11.9575C48.0788 10.4216 48.573 8.99552 49.6146 7.84313C50.6573 6.63642 51.9737 6.03254 53.6192 6.03254C55.1007 6.03254 56.2521 6.58105 57.1851 7.62373H57.2404V6.19761H60.5869V17.9357C60.5869 19.7463 59.984 21.1724 58.8316 22.214C57.6803 23.2567 56.1434 23.7499 54.2785 23.7499C51.3709 23.7499 49.3963 22.6528 48.3546 20.4034L51.0428 18.8122V18.8143H51.0418ZM54.3328 9.0509C52.7416 9.0509 51.4806 10.2576 51.4806 11.9031C51.4806 13.6584 52.6873 14.8107 54.3328 14.8107C55.9784 14.8107 57.1851 13.6594 57.1851 11.9031C57.1851 10.2576 55.9784 9.0509 54.3328 9.0509ZM69.3076 11.41V17.9378H72.654V10.6421C72.654 9.32567 72.2706 8.22866 71.557 7.35105C70.8434 6.41806 69.8018 5.97925 68.3757 5.97925C67.9369 5.97925 67.3884 6.08896 66.7301 6.30836C66.1273 6.52776 65.6331 6.96657 65.1943 7.57045V0.357313H61.7936V17.8824H65.1943V11.3546C65.1943 10.0925 65.9079 9.10522 67.2786 9.10522C68.6494 9.10522 69.3086 10.0925 69.3086 11.409L69.3076 11.41ZM81.5952 17.827C81.1021 17.991 80.5536 18.0464 80.004 18.0464C76.9324 18.0464 75.3422 16.4009 75.3422 13.6584V9.1606H73.2579V6.19866H75.3976V2.52313H78.7983V6.19866H81.706V9.1606H78.7983V13.2196C78.7983 14.536 79.5119 15.0845 80.8284 15.0845C81.1031 15.0845 81.3769 15.0845 81.5963 14.9748V17.827H81.5952ZM82.8009 17.8824H86.257V0.357313H82.8009V17.8824ZM89.1092 7.73448C90.3713 6.52776 91.9061 5.97925 93.6613 5.97925C95.4166 5.97925 96.9524 6.58314 98.1591 7.73448C99.3658 8.88582 100.024 10.313 100.024 12.0682C100.024 13.8234 99.4212 15.3049 98.1591 16.4563C96.8981 17.6076 95.4166 18.2115 93.607 18.2115C91.7975 18.2115 90.316 17.663 89.0539 16.4563C87.8472 15.3039 87.1889 13.8778 87.1889 12.1225C87.2433 10.3673 87.8472 8.88582 89.1082 7.73448H89.1092ZM91.5781 14.2069C92.1266 14.7554 92.8401 15.0302 93.6624 15.0302C95.3079 15.0302 96.5146 13.7681 96.5146 12.0128C96.5146 11.1352 96.2399 10.4216 95.6913 9.87314C95.1428 9.32463 94.4303 8.99552 93.607 8.99552C92.7837 8.99552 92.1266 9.2703 91.577 9.87314C91.0285 10.4216 90.7537 11.1352 90.7537 12.0128C90.6994 12.8904 91.0285 13.604 91.577 14.2069H91.5781ZM100.519 12.1225C100.519 13.8778 101.068 15.3039 102.274 16.4563C103.481 17.6076 104.962 18.1572 106.772 18.2115C109.405 18.2115 111.545 16.9494 112.422 14.5913L109.405 13.3293C108.912 14.536 108.033 15.0845 106.827 15.0845C105.181 15.0845 104.03 13.8778 104.03 12.1225C104.03 10.3673 105.236 9.1606 106.827 9.1606C107.979 9.1606 108.857 9.76448 109.35 10.9158L112.366 9.65373C111.598 7.35 109.458 6.03358 106.827 6.03358C105.126 6.03358 103.591 6.58209 102.383 7.78881C101.122 8.9412 100.518 10.3673 100.518 12.1225H100.519ZM113.957 17.1688C113.189 16.5106 112.805 15.6873 112.805 14.6457V14.5903C112.805 13.2185 113.463 12.1769 114.561 11.6827C115.658 11.1885 116.755 10.9691 118.016 10.9691H119.169C119.772 10.9691 120.101 10.6943 120.101 10.0915C120.101 9.26821 119.443 8.66537 118.237 8.66537C117.03 8.66537 116.207 9.21388 115.658 10.2566L113.025 8.72075C114.013 6.85582 115.822 5.92284 118.401 5.92284C121.472 5.92284 123.501 7.56836 123.501 10.64V17.8803H120.32V16.4542H120.266C119.498 17.5512 118.291 18.1551 116.755 18.1551C115.658 18.0997 114.725 17.826 113.957 17.1678V17.1688ZM120.101 13.3846V13.1099H118.017C117.03 13.1099 116.262 13.5487 116.262 14.4263C116.262 15.1942 116.865 15.633 117.743 15.633C119.224 15.633 120.101 14.6457 120.101 13.3836V13.3846ZM124.544 17.8824H128V0.357313H124.544V17.8824ZM4.85535 6.85582C5.51356 6.85582 6.04953 7.39179 6.04953 8.05C6.04953 8.70821 5.51356 9.24418 4.85535 9.24418C4.19714 9.24418 3.66118 8.70821 3.66118 8.05C3.66118 7.39179 4.19714 6.85582 4.85535 6.85582ZM4.85535 5.80269C3.61311 5.80269 2.60699 6.80881 2.60699 8.05105C2.60699 9.29328 3.61311 10.2994 4.85535 10.2994C6.09759 10.2994 7.10371 9.29328 7.10371 8.05105C7.10371 6.80881 6.09759 5.80269 4.85535 5.80269ZM14.7943 3.65358C12.5982 2.62761 10.1064 3.37776 8.78685 5.21134C7.87267 3.94403 6.40476 3.1897 4.85431 3.1897C4.18565 3.1897 3.50446 3.32866 2.84729 3.62433C0.781771 4.55627 -0.378975 6.88299 0.112069 9.09582C0.324159 10.0528 0.798487 10.8563 1.4264 11.4831L8.20804 18.2763C8.52983 18.5981 9.05222 18.5981 9.37506 18.2763L16.1567 11.4831C16.8609 10.781 17.3707 9.85537 17.5368 8.74164C17.8471 6.65 16.7115 4.54687 14.7964 3.65254L14.7943 3.65358ZM2.17237 10.734C1.77326 10.336 1.47446 9.87 1.28431 9.34866C0.937444 8.39582 0.982368 7.36358 1.41073 6.44314C1.83908 5.52373 2.60073 4.82687 3.55461 4.47896C3.97461 4.32642 4.41237 4.2491 4.85431 4.2491C6.27521 4.2491 7.60729 5.07761 8.24774 6.35955L8.26759 6.39925L8.25192 6.44105C8.01894 7.08881 7.93222 7.77 7.99282 8.46582L8.76177 17.3349L2.17132 10.734H2.17237ZM14.4454 8.05C14.4454 9.00075 13.6754 9.77075 12.7246 9.77075C11.7739 9.77075 11.0039 9.00075 11.0039 8.05C11.0039 7.09926 11.7739 6.32926 12.7246 6.32926C13.6754 6.32926 14.4454 7.09926 14.4454 8.05Z",fill:"currentColor",fillRule:"evenodd"})}),o==="mark"&&C.jsxs("svg",{"aria-label":e??"BrightLocal Logo",fill:"none",height:"21",role:"img",viewBox:"0 0 24 21",width:"24",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("path",{d:"M6.62559 5.00277C7.52378 5.00277 8.25516 5.73415 8.25516 6.63234C8.25516 7.53053 7.52378 8.26191 6.62559 8.26191C5.7274 8.26191 4.99602 7.53053 4.99602 6.63234C4.99602 5.73415 5.7274 5.00277 6.62559 5.00277ZM6.62559 3.56424C4.93044 3.56424 3.5575 4.93719 3.5575 6.63234C3.5575 8.32749 4.93044 9.70043 6.62559 9.70043C8.32074 9.70043 9.69369 8.32749 9.69369 6.63234C9.69369 4.93719 8.32074 3.56424 6.62559 3.56424Z",fill:"currentColor"}),C.jsx("path",{clipRule:"evenodd",d:"M20.1882 0.633009C17.1914 -0.767024 13.7911 0.256626 11.9905 2.75872C10.743 1.02935 8.73989 0 6.62416 0C5.71172 0 4.78216 0.189618 3.8854 0.593089C1.0668 1.86481 -0.517148 5.03983 0.152929 8.05946C0.442345 9.36539 1.08961 10.4618 1.94645 11.3172L11.2006 20.587C11.6398 21.0262 12.3526 21.0262 12.7931 20.587L22.0473 11.3172C23.0083 10.3591 23.704 9.09594 23.9307 7.57615C24.3541 4.7219 22.8044 1.85198 20.1911 0.631583L20.1882 0.633009ZM2.96583 10.2949C2.42121 9.75176 2.01346 9.1159 1.75399 8.40448C1.28065 7.10424 1.34196 5.69565 1.92649 4.43962C2.51103 3.185 3.55036 2.23407 4.85202 1.75931C5.42515 1.55116 6.02252 1.44566 6.62559 1.44566C8.56453 1.44566 10.3823 2.57623 11.2562 4.32556L11.2833 4.37974L11.262 4.43677C10.944 5.3207 10.8257 6.25025 10.9084 7.19976L11.9577 19.3025L2.9644 10.2949H2.96583ZM19.712 6.63091C19.712 7.92829 18.6613 8.97903 17.3639 8.97903C16.0665 8.97903 15.0158 7.92829 15.0158 6.63091C15.0158 5.33353 16.0665 4.28279 17.3639 4.28279C18.6613 4.28279 19.712 5.33353 19.712 6.63091Z",fill:"currentColor",fillRule:"evenodd"})]})]})}l.displayName="Logo";exports.Logo=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react/jsx-runtime"),n=require("class-variance-authority"),H=require("@brightlocal/ui-components/lib/utils"),s=n.cva("inline-flex text-brand-primary-foreground",{variants:{variant:{logotype:"h-6",mark:"w-6 h-6"}},defaultVariants:{variant:"logotype"}});function e({className:t,variant:l="logotype",dataHook:r,ariaLabel:o,trackingEl:i,trackingLabel:a,...V}){return C.jsxs("div",{className:H.cn(s({variant:l}),t),"data-hook":r,"data-slot":"logo","data-tracking-el":i,"data-tracking-label":a,"data-variant":l,...V,children:[l==="logotype"&&C.jsx("svg",{"aria-label":o??"BrightLocal logo",fill:"none",height:"24",role:"img",viewBox:"0 0 128 24",width:"128",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("path",{clipRule:"evenodd",d:"M45.283 4.22403C46.4897 4.22403 47.4227 3.29104 47.4227 2.1397C47.4227 0.988358 46.4907 0 45.283 0C44.186 0 43.1986 0.987313 43.1986 2.1397C43.1986 3.29209 44.1316 4.22403 45.283 4.22403ZM43.5821 6.19866V17.8824H47.0382V6.19866H43.5821ZM25.3163 7.62478C26.1939 6.52776 27.4006 5.97925 28.8821 5.97925C30.5276 5.97925 31.844 6.58209 32.8867 7.84418C33.9294 9.0509 34.4225 10.477 34.4225 12.0682C34.4225 13.6594 33.874 15.0855 32.8313 16.2922C31.7343 17.499 30.4179 18.1572 28.7724 18.1572C27.2366 18.1572 26.0298 17.6087 25.2066 16.5116H25.1512V17.9378H21.8048V0.357313H25.2055V7.62478H25.3163ZM26.0842 14.2069C26.6327 14.7554 27.3463 15.0302 28.1685 15.0302C28.9907 15.0302 29.7043 14.7554 30.2528 14.2069C30.8013 13.6584 31.0761 12.8904 31.0761 12.0128C31.0761 11.1352 30.8013 10.4216 30.1985 9.87314C29.65 9.32463 28.9364 9.04985 28.1142 9.04985C27.2919 9.04985 26.6327 9.32463 26.0842 9.87314C25.5357 10.4216 25.2619 11.1352 25.2619 12.0128C25.2066 12.8904 25.5357 13.604 26.0842 14.2069ZM42.6501 9.54508C42.6313 9.5409 42.6136 9.53776 42.5958 9.53463V6.19866C42.4307 6.08896 42.2113 6.08896 41.9376 6.08896C40.4018 6.08896 39.1397 6.91224 38.6466 8.00926V6.19866H35.2458V17.8824H38.6466V12.9458C38.6466 10.8615 39.6339 9.4897 41.8279 9.4897C42.0839 9.4897 42.3398 9.4897 42.5958 9.53463V9.54508H42.6501ZM51.0418 18.8143C51.7 20.1307 52.7427 20.789 54.1688 20.789C55.924 20.789 57.1307 19.856 57.1307 18.0464V16.2912H57.0754C56.2521 17.3328 55.1551 17.827 53.7289 17.827C52.0834 17.827 50.7116 17.2785 49.67 16.1261C48.6273 15.0291 48.0788 13.603 48.0788 11.9575C48.0788 10.4216 48.573 8.99552 49.6146 7.84313C50.6573 6.63642 51.9737 6.03254 53.6192 6.03254C55.1007 6.03254 56.2521 6.58105 57.1851 7.62373H57.2404V6.19761H60.5869V17.9357C60.5869 19.7463 59.984 21.1724 58.8316 22.214C57.6803 23.2567 56.1434 23.7499 54.2785 23.7499C51.3709 23.7499 49.3963 22.6528 48.3546 20.4034L51.0428 18.8122V18.8143H51.0418ZM54.3328 9.0509C52.7416 9.0509 51.4806 10.2576 51.4806 11.9031C51.4806 13.6584 52.6873 14.8107 54.3328 14.8107C55.9784 14.8107 57.1851 13.6594 57.1851 11.9031C57.1851 10.2576 55.9784 9.0509 54.3328 9.0509ZM69.3076 11.41V17.9378H72.654V10.6421C72.654 9.32567 72.2706 8.22866 71.557 7.35105C70.8434 6.41806 69.8018 5.97925 68.3757 5.97925C67.9369 5.97925 67.3884 6.08896 66.7301 6.30836C66.1273 6.52776 65.6331 6.96657 65.1943 7.57045V0.357313H61.7936V17.8824H65.1943V11.3546C65.1943 10.0925 65.9079 9.10522 67.2786 9.10522C68.6494 9.10522 69.3086 10.0925 69.3086 11.409L69.3076 11.41ZM81.5952 17.827C81.1021 17.991 80.5536 18.0464 80.004 18.0464C76.9324 18.0464 75.3422 16.4009 75.3422 13.6584V9.1606H73.2579V6.19866H75.3976V2.52313H78.7983V6.19866H81.706V9.1606H78.7983V13.2196C78.7983 14.536 79.5119 15.0845 80.8284 15.0845C81.1031 15.0845 81.3769 15.0845 81.5963 14.9748V17.827H81.5952ZM82.8009 17.8824H86.257V0.357313H82.8009V17.8824ZM89.1092 7.73448C90.3713 6.52776 91.9061 5.97925 93.6613 5.97925C95.4166 5.97925 96.9524 6.58314 98.1591 7.73448C99.3658 8.88582 100.024 10.313 100.024 12.0682C100.024 13.8234 99.4212 15.3049 98.1591 16.4563C96.8981 17.6076 95.4166 18.2115 93.607 18.2115C91.7975 18.2115 90.316 17.663 89.0539 16.4563C87.8472 15.3039 87.1889 13.8778 87.1889 12.1225C87.2433 10.3673 87.8472 8.88582 89.1082 7.73448H89.1092ZM91.5781 14.2069C92.1266 14.7554 92.8401 15.0302 93.6624 15.0302C95.3079 15.0302 96.5146 13.7681 96.5146 12.0128C96.5146 11.1352 96.2399 10.4216 95.6913 9.87314C95.1428 9.32463 94.4303 8.99552 93.607 8.99552C92.7837 8.99552 92.1266 9.2703 91.577 9.87314C91.0285 10.4216 90.7537 11.1352 90.7537 12.0128C90.6994 12.8904 91.0285 13.604 91.577 14.2069H91.5781ZM100.519 12.1225C100.519 13.8778 101.068 15.3039 102.274 16.4563C103.481 17.6076 104.962 18.1572 106.772 18.2115C109.405 18.2115 111.545 16.9494 112.422 14.5913L109.405 13.3293C108.912 14.536 108.033 15.0845 106.827 15.0845C105.181 15.0845 104.03 13.8778 104.03 12.1225C104.03 10.3673 105.236 9.1606 106.827 9.1606C107.979 9.1606 108.857 9.76448 109.35 10.9158L112.366 9.65373C111.598 7.35 109.458 6.03358 106.827 6.03358C105.126 6.03358 103.591 6.58209 102.383 7.78881C101.122 8.9412 100.518 10.3673 100.518 12.1225H100.519ZM113.957 17.1688C113.189 16.5106 112.805 15.6873 112.805 14.6457V14.5903C112.805 13.2185 113.463 12.1769 114.561 11.6827C115.658 11.1885 116.755 10.9691 118.016 10.9691H119.169C119.772 10.9691 120.101 10.6943 120.101 10.0915C120.101 9.26821 119.443 8.66537 118.237 8.66537C117.03 8.66537 116.207 9.21388 115.658 10.2566L113.025 8.72075C114.013 6.85582 115.822 5.92284 118.401 5.92284C121.472 5.92284 123.501 7.56836 123.501 10.64V17.8803H120.32V16.4542H120.266C119.498 17.5512 118.291 18.1551 116.755 18.1551C115.658 18.0997 114.725 17.826 113.957 17.1678V17.1688ZM120.101 13.3846V13.1099H118.017C117.03 13.1099 116.262 13.5487 116.262 14.4263C116.262 15.1942 116.865 15.633 117.743 15.633C119.224 15.633 120.101 14.6457 120.101 13.3836V13.3846ZM124.544 17.8824H128V0.357313H124.544V17.8824ZM4.85535 6.85582C5.51356 6.85582 6.04953 7.39179 6.04953 8.05C6.04953 8.70821 5.51356 9.24418 4.85535 9.24418C4.19714 9.24418 3.66118 8.70821 3.66118 8.05C3.66118 7.39179 4.19714 6.85582 4.85535 6.85582ZM4.85535 5.80269C3.61311 5.80269 2.60699 6.80881 2.60699 8.05105C2.60699 9.29328 3.61311 10.2994 4.85535 10.2994C6.09759 10.2994 7.10371 9.29328 7.10371 8.05105C7.10371 6.80881 6.09759 5.80269 4.85535 5.80269ZM14.7943 3.65358C12.5982 2.62761 10.1064 3.37776 8.78685 5.21134C7.87267 3.94403 6.40476 3.1897 4.85431 3.1897C4.18565 3.1897 3.50446 3.32866 2.84729 3.62433C0.781771 4.55627 -0.378975 6.88299 0.112069 9.09582C0.324159 10.0528 0.798487 10.8563 1.4264 11.4831L8.20804 18.2763C8.52983 18.5981 9.05222 18.5981 9.37506 18.2763L16.1567 11.4831C16.8609 10.781 17.3707 9.85537 17.5368 8.74164C17.8471 6.65 16.7115 4.54687 14.7964 3.65254L14.7943 3.65358ZM2.17237 10.734C1.77326 10.336 1.47446 9.87 1.28431 9.34866C0.937444 8.39582 0.982368 7.36358 1.41073 6.44314C1.83908 5.52373 2.60073 4.82687 3.55461 4.47896C3.97461 4.32642 4.41237 4.2491 4.85431 4.2491C6.27521 4.2491 7.60729 5.07761 8.24774 6.35955L8.26759 6.39925L8.25192 6.44105C8.01894 7.08881 7.93222 7.77 7.99282 8.46582L8.76177 17.3349L2.17132 10.734H2.17237ZM14.4454 8.05C14.4454 9.00075 13.6754 9.77075 12.7246 9.77075C11.7739 9.77075 11.0039 9.00075 11.0039 8.05C11.0039 7.09926 11.7739 6.32926 12.7246 6.32926C13.6754 6.32926 14.4454 7.09926 14.4454 8.05Z",fill:"currentColor",fillRule:"evenodd"})}),l==="mark"&&C.jsxs("svg",{"aria-label":o??"BrightLocal logo",fill:"none",height:"21",role:"img",viewBox:"0 0 24 21",width:"24",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("path",{d:"M6.62559 5.00277C7.52378 5.00277 8.25516 5.73415 8.25516 6.63234C8.25516 7.53053 7.52378 8.26191 6.62559 8.26191C5.7274 8.26191 4.99602 7.53053 4.99602 6.63234C4.99602 5.73415 5.7274 5.00277 6.62559 5.00277ZM6.62559 3.56424C4.93044 3.56424 3.5575 4.93719 3.5575 6.63234C3.5575 8.32749 4.93044 9.70043 6.62559 9.70043C8.32074 9.70043 9.69369 8.32749 9.69369 6.63234C9.69369 4.93719 8.32074 3.56424 6.62559 3.56424Z",fill:"currentColor"}),C.jsx("path",{clipRule:"evenodd",d:"M20.1882 0.633009C17.1914 -0.767024 13.7911 0.256626 11.9905 2.75872C10.743 1.02935 8.73989 0 6.62416 0C5.71172 0 4.78216 0.189618 3.8854 0.593089C1.0668 1.86481 -0.517148 5.03983 0.152929 8.05946C0.442345 9.36539 1.08961 10.4618 1.94645 11.3172L11.2006 20.587C11.6398 21.0262 12.3526 21.0262 12.7931 20.587L22.0473 11.3172C23.0083 10.3591 23.704 9.09594 23.9307 7.57615C24.3541 4.7219 22.8044 1.85198 20.1911 0.631583L20.1882 0.633009ZM2.96583 10.2949C2.42121 9.75176 2.01346 9.1159 1.75399 8.40448C1.28065 7.10424 1.34196 5.69565 1.92649 4.43962C2.51103 3.185 3.55036 2.23407 4.85202 1.75931C5.42515 1.55116 6.02252 1.44566 6.62559 1.44566C8.56453 1.44566 10.3823 2.57623 11.2562 4.32556L11.2833 4.37974L11.262 4.43677C10.944 5.3207 10.8257 6.25025 10.9084 7.19976L11.9577 19.3025L2.9644 10.2949H2.96583ZM19.712 6.63091C19.712 7.92829 18.6613 8.97903 17.3639 8.97903C16.0665 8.97903 15.0158 7.92829 15.0158 6.63091C15.0158 5.33353 16.0665 4.28279 17.3639 4.28279C18.6613 4.28279 19.712 5.33353 19.712 6.63091Z",fill:"currentColor",fillRule:"evenodd"})]})]})}e.displayName="Logo";exports.Logo=e;
package/dist/logo.d.ts CHANGED
@@ -15,7 +15,7 @@ interface LogoProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children
15
15
  dataHook: string;
16
16
  /**
17
17
  * Accessible label for the logo image.
18
- * @default "BrightLocal Logo"
18
+ * @default "BrightLocal logo"
19
19
  */
20
20
  ariaLabel?: string;
21
21
  /**
package/dist/logo.js CHANGED
@@ -35,7 +35,7 @@ function M({
35
35
  C === "logotype" && /* @__PURE__ */ o(
36
36
  "svg",
37
37
  {
38
- "aria-label": l ?? "BrightLocal Logo",
38
+ "aria-label": l ?? "BrightLocal logo",
39
39
  fill: "none",
40
40
  height: "24",
41
41
  role: "img",
@@ -56,7 +56,7 @@ function M({
56
56
  C === "mark" && /* @__PURE__ */ e(
57
57
  "svg",
58
58
  {
59
- "aria-label": l ?? "BrightLocal Logo",
59
+ "aria-label": l ?? "BrightLocal logo",
60
60
  fill: "none",
61
61
  height: "21",
62
62
  role: "img",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),b=require("react"),x=require("@radix-ui/react-navigation-menu"),w=require("@brightlocal/icons"),i=require("@brightlocal/ui-components/lib/utils");function c(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,s.get?s:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const o=c(b),r=c(x),u=o.forwardRef(({className:e,children:t,dataHook:a,...s},N)=>n.jsxs(r.Root,{ref:N,className:i.cn("relative z-10 flex max-w-max flex-1 items-center justify-center",e),"data-hook":a,"data-slot":"navigation-menu",...s,children:[t,n.jsx(d,{})]}));u.displayName="NavigationMenu";const l=o.forwardRef(({className:e,...t},a)=>n.jsx(r.List,{ref:a,className:i.cn("group flex flex-1 list-none items-center justify-center gap-1",e),"data-slot":"navigation-menu-list",...t}));l.displayName="NavigationMenuList";const g=o.forwardRef((e,t)=>n.jsx(r.Item,{ref:t,"data-slot":"navigation-menu-item",...e}));g.displayName="NavigationMenuItem";const m=o.forwardRef(({className:e,children:t,...a},s)=>n.jsxs(r.Trigger,{ref:s,className:i.cn(["group inline-flex h-9 w-max items-center justify-center gap-1","rounded-md px-4 py-2","text-sm font-medium","text-foreground","transition-colors","hover:bg-accent hover:text-accent-foreground","focus:bg-accent focus:text-accent-foreground","focus-visible:bg-accent focus-visible:ring-ring focus-visible:shadow-[0_0_0_4px_rgba(163,163,163,0.1)] focus-visible:ring-1 focus-visible:outline-none","disabled:pointer-events-none disabled:opacity-50","data-[state=open]:bg-accent/50"],e),"data-slot":"navigation-menu-trigger",...a,children:[t,n.jsx(w.ChevronDown,{"aria-hidden":"true",className:"relative top-[1px] ml-1 transition duration-300 group-data-[state=open]:rotate-180",size:12})]}));m.displayName="NavigationMenuTrigger";const f=o.forwardRef(({className:e,...t},a)=>n.jsx(r.Content,{ref:a,className:i.cn(["data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out top-0 left-0 w-full","data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out","data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52","data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52","md:absolute md:w-auto"],e),"data-slot":"navigation-menu-content",role:"group",...t}));f.displayName="NavigationMenuContent";const v=o.forwardRef(({className:e,...t},a)=>n.jsx(r.Link,{ref:a,className:i.cn(["block rounded-md p-3 leading-none no-underline select-none","transition-colors outline-none","hover:bg-accent hover:text-accent-foreground","focus:bg-accent focus:text-accent-foreground","focus-visible:bg-accent focus-visible:ring-ring focus-visible:shadow-[0_0_0_4px_rgba(163,163,163,0.1)] focus-visible:ring-1 focus-visible:outline-none"],e),"data-slot":"navigation-menu-link",...t}));v.displayName="NavigationMenuLink";const d=o.forwardRef(({className:e,...t},a)=>n.jsx("div",{className:i.cn("absolute top-full left-0 z-50 flex justify-center"),children:n.jsx(r.Viewport,{ref:a,className:i.cn(["origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)]","bg-popover text-popover-foreground w-full overflow-hidden rounded-md border shadow-sm","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90","md:w-[var(--radix-navigation-menu-viewport-width)]"],e),"data-slot":"navigation-menu-viewport",...t})}));d.displayName="NavigationMenuViewport";const p=o.forwardRef(({className:e,...t},a)=>n.jsx(r.Indicator,{ref:a,className:i.cn(["top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden","data-[state=visible]:animate-in data-[state=hidden]:animate-out","data-[state=hidden]:fade-out data-[state=visible]:fade-in"],e),"data-slot":"navigation-menu-indicator",...t,children:n.jsx("div",{className:"bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md"})}));p.displayName="NavigationMenuIndicator";exports.NavigationMenu=u;exports.NavigationMenuContent=f;exports.NavigationMenuIndicator=p;exports.NavigationMenuItem=g;exports.NavigationMenuLink=v;exports.NavigationMenuList=l;exports.NavigationMenuTrigger=m;exports.NavigationMenuViewport=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),_=require("react"),I=require("@radix-ui/react-navigation-menu"),T=require("@brightlocal/icons"),r=require("@brightlocal/ui-components/lib/utils");function p(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const u=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(e,a,u.get?u:{enumerable:!0,get:()=>t[a]})}}return e.default=t,Object.freeze(e)}const i=p(_),s=p(I),b=i.forwardRef(({className:t,children:e,dataHook:a,delayDuration:u=50,...l},c)=>o.jsxs(s.Root,{ref:c,className:r.cn("relative z-10 flex max-w-max flex-1 items-center justify-center",t),"data-hook":a,"data-slot":"navigation-menu",delayDuration:u,...l,children:[e,o.jsx(f,{})]}));b.displayName="NavigationMenu";const N=i.forwardRef(({className:t,...e},a)=>o.jsx(s.List,{ref:a,className:r.cn("group flex flex-1 list-none items-center justify-center gap-1",t),"data-slot":"navigation-menu-list",...e}));N.displayName="NavigationMenuList";const x=i.forwardRef((t,e)=>o.jsx(s.Item,{ref:e,"data-slot":"navigation-menu-item",...t}));x.displayName="NavigationMenuItem";const k=500,w=i.forwardRef(({className:t,children:e,onClick:a,onPointerDown:u,...l},c)=>{const g=i.useRef(""),m=i.useRef(-1/0),v=i.useRef(null),j=i.useCallback(n=>{if(typeof c=="function"?c(n):c&&(c.current=n),v.current?.disconnect(),n){const d=new MutationObserver(()=>{n.getAttribute("data-state")==="open"&&(m.current=performance.now())});d.observe(n,{attributes:!0,attributeFilter:["data-state"]}),v.current=d}},[c]);return o.jsxs(s.Trigger,{ref:j,className:r.cn(["group inline-flex h-9 w-max items-center justify-center gap-1","rounded-md px-4 py-2","text-sm font-medium","text-foreground","transition-colors","hover:bg-accent hover:text-accent-foreground","focus:bg-accent focus:text-accent-foreground","focus-visible:bg-accent focus-visible:ring-ring focus-visible:shadow-[0_0_0_4px_rgba(163,163,163,0.1)] focus-visible:ring-1 focus-visible:outline-none","disabled:pointer-events-none disabled:opacity-50","data-[state=open]:bg-accent/50"],t),"data-slot":"navigation-menu-trigger",onClick:n=>{const d=n.currentTarget.getAttribute("data-state")==="open",R=n.timeStamp-m.current<k;g.current==="mouse"&&n.detail>0&&d&&R&&n.preventDefault(),a?.(n)},onPointerDown:n=>{g.current=n.pointerType,u?.(n)},...l,children:[e,o.jsx(T.ChevronDown,{"aria-hidden":"true",className:"relative top-[1px] ml-1 transition duration-300 group-data-[state=open]:rotate-180",size:12})]})});w.displayName="NavigationMenuTrigger";const h=i.forwardRef(({className:t,...e},a)=>o.jsx(s.Content,{ref:a,className:r.cn(["data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out top-0 left-0 w-full","data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out","data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52","data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52","duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]","md:absolute md:w-auto"],t),"data-slot":"navigation-menu-content",role:"group",...e}));h.displayName="NavigationMenuContent";const M=i.forwardRef(({className:t,...e},a)=>o.jsx(s.Link,{ref:a,className:r.cn(["block rounded-md p-3 leading-none no-underline select-none","transition-colors outline-none","hover:bg-accent hover:text-accent-foreground","focus:bg-accent focus:text-accent-foreground","focus-visible:bg-accent focus-visible:ring-ring focus-visible:shadow-[0_0_0_4px_rgba(163,163,163,0.1)] focus-visible:ring-1 focus-visible:outline-none"],t),"data-slot":"navigation-menu-link",...e}));M.displayName="NavigationMenuLink";const f=i.forwardRef(({className:t,...e},a)=>o.jsx("div",{className:r.cn("absolute top-full left-0 z-50 flex justify-center"),children:o.jsx(s.Viewport,{ref:a,className:r.cn(["origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)]","bg-popover text-popover-foreground w-full overflow-hidden rounded-md border shadow-sm","transition-[width,height] duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]","data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:duration-150","md:w-[var(--radix-navigation-menu-viewport-width)]"],t),"data-slot":"navigation-menu-viewport",...e})}));f.displayName="NavigationMenuViewport";const y=i.forwardRef(({className:t,...e},a)=>o.jsx(s.Indicator,{ref:a,className:r.cn(["top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden","data-[state=visible]:animate-in data-[state=hidden]:animate-out","data-[state=hidden]:fade-out data-[state=visible]:fade-in"],t),"data-slot":"navigation-menu-indicator",...e,children:o.jsx("div",{className:"bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md"})}));y.displayName="NavigationMenuIndicator";exports.NavigationMenu=b;exports.NavigationMenuContent=h;exports.NavigationMenuIndicator=y;exports.NavigationMenuItem=x;exports.NavigationMenuLink=M;exports.NavigationMenuList=N;exports.NavigationMenuTrigger=w;exports.NavigationMenuViewport=f;
@@ -7,6 +7,12 @@ import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
7
7
  interface NavigationMenuProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root> {
8
8
  dataHook: string;
9
9
  className?: string;
10
+ /**
11
+ * Delay in ms before a hovered trigger opens its menu. Overrides Radix's
12
+ * laggy 200ms default with Base UI's snappier value.
13
+ * @default 50
14
+ */
15
+ delayDuration?: number;
10
16
  }
11
17
  declare const NavigationMenu: React.ForwardRefExoticComponent<NavigationMenuProps & React.RefAttributes<HTMLElement>>;
12
18
  /**
@@ -25,6 +31,19 @@ type NavigationMenuTriggerProps = React.ComponentPropsWithoutRef<typeof Navigati
25
31
  /**
26
32
  * Trigger button that opens a dropdown menu
27
33
  * Includes chevron icon that rotates when open
34
+ *
35
+ * Radix opens the menu on hover and then *toggles it closed* on the next click.
36
+ * Mouse users routinely click a trigger they have just hovered open, which
37
+ * closes it immediately (see radix-ui/primitives#1630).
38
+ *
39
+ * We port Base UI's "patient click" behaviour: an instinctive mouse click made
40
+ * within {@link PATIENT_CLICK_THRESHOLD_MS} of the menu opening keeps it open
41
+ * (calling `preventDefault()` makes Radix's internal `composeEventHandlers`
42
+ * skip its toggle). The window is measured from the `data-state` open
43
+ * transition — not the pointer enter — so it stays correct no matter how large
44
+ * `delayDuration` is. A deliberate click after that window still toggles the
45
+ * menu shut, and touch taps and keyboard activation are left untouched so they
46
+ * can toggle it too.
28
47
  */
29
48
  declare const NavigationMenuTrigger: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
30
49
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"navigation-menu.d.ts","sourceRoot":"","sources":["../../src/components/navigation-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,uBAAuB,MAAM,iCAAiC,CAAC;AAK3E;;;GAGG;AACH,UAAU,mBAAoB,SAAQ,KAAK,CAAC,wBAAwB,CAClE,OAAO,uBAAuB,CAAC,IAAI,CACpC;IACC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,cAAc,yFAiBlB,CAAC;AAIH;;;GAGG;AACH,QAAA,MAAM,kBAAkB,+KAatB,CAAC;AAIH;;GAEG;AACH,QAAA,MAAM,kBAAkB,yKAStB,CAAC;AAIH;;GAEG;AACH,KAAK,0BAA0B,GAAG,KAAK,CAAC,wBAAwB,CAC9D,OAAO,uBAAuB,CAAC,OAAO,CACvC,CAAC;AAEF;;;GAGG;AACH,QAAA,MAAM,qBAAqB,oLA+BzB,CAAC;AAIH;;GAEG;AACH,KAAK,0BAA0B,GAAG,KAAK,CAAC,wBAAwB,CAC9D,OAAO,uBAAuB,CAAC,OAAO,CACvC,CAAC;AAEF;;;GAGG;AACH,QAAA,MAAM,qBAAqB,8KAoBzB,CAAC;AAIH;;GAEG;AACH,KAAK,uBAAuB,GAAG,KAAK,CAAC,wBAAwB,CAC3D,OAAO,uBAAuB,CAAC,IAAI,CACpC,CAAC;AAEF;;;GAGG;AACH,QAAA,MAAM,kBAAkB,iLAmBtB,CAAC;AAIH;;;GAGG;AACH,QAAA,MAAM,sBAAsB,+KAqB1B,CAAC;AAIH;;;GAGG;AACH,QAAA,MAAM,uBAAuB,gLAmB3B,CAAC;AAIH,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,sBAAsB,EACtB,uBAAuB,GACxB,CAAC;AAEF,YAAY,EACV,0BAA0B,EAC1B,0BAA0B,EAC1B,uBAAuB,GACxB,CAAC"}
1
+ {"version":3,"file":"navigation-menu.d.ts","sourceRoot":"","sources":["../../src/components/navigation-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,uBAAuB,MAAM,iCAAiC,CAAC;AAK3E;;;GAGG;AACH,UAAU,mBAAoB,SAAQ,KAAK,CAAC,wBAAwB,CAClE,OAAO,uBAAuB,CAAC,IAAI,CACpC;IACC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,QAAA,MAAM,cAAc,yFAoBlB,CAAC;AAIH;;;GAGG;AACH,QAAA,MAAM,kBAAkB,+KAatB,CAAC;AAIH;;GAEG;AACH,QAAA,MAAM,kBAAkB,yKAStB,CAAC;AAIH;;GAEG;AACH,KAAK,0BAA0B,GAAG,KAAK,CAAC,wBAAwB,CAC9D,OAAO,uBAAuB,CAAC,OAAO,CACvC,CAAC;AASF;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,qBAAqB,oLA8FzB,CAAC;AAIH;;GAEG;AACH,KAAK,0BAA0B,GAAG,KAAK,CAAC,wBAAwB,CAC9D,OAAO,uBAAuB,CAAC,OAAO,CACvC,CAAC;AAEF;;;GAGG;AACH,QAAA,MAAM,qBAAqB,8KAwBzB,CAAC;AAIH;;GAEG;AACH,KAAK,uBAAuB,GAAG,KAAK,CAAC,wBAAwB,CAC3D,OAAO,uBAAuB,CAAC,IAAI,CACpC,CAAC;AAEF;;;GAGG;AACH,QAAA,MAAM,kBAAkB,iLAmBtB,CAAC;AAIH;;;GAGG;AACH,QAAA,MAAM,sBAAsB,+KA2B1B,CAAC;AAIH;;;GAGG;AACH,QAAA,MAAM,uBAAuB,gLAmB3B,CAAC;AAIH,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,sBAAsB,EACtB,uBAAuB,GACxB,CAAC;AAEF,YAAY,EACV,0BAA0B,EAC1B,0BAA0B,EAC1B,uBAAuB,GACxB,CAAC"}