@brightlocal/ui-components 2.7.0 → 2.9.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 (56) hide show
  1. package/component-meta.json +6 -4
  2. package/dist/alert.cjs +1 -1
  3. package/dist/alert.js +1 -1
  4. package/dist/blocks/data-table.cjs +1 -1
  5. package/dist/blocks/data-table.d.ts +74 -26
  6. package/dist/blocks/data-table.d.ts.map +1 -1
  7. package/dist/blocks/data-table.js +318 -296
  8. package/dist/blocks/sidebar.cjs +1 -1
  9. package/dist/blocks/sidebar.d.ts +39 -21
  10. package/dist/blocks/sidebar.d.ts.map +1 -1
  11. package/dist/blocks/sidebar.js +379 -425
  12. package/dist/callout.cjs +1 -1
  13. package/dist/callout.js +1 -1
  14. package/dist/card.cjs +1 -1
  15. package/dist/card.js +11 -11
  16. package/dist/combobox.cjs +3 -3
  17. package/dist/combobox.d.ts +24 -3
  18. package/dist/combobox.d.ts.map +1 -1
  19. package/dist/combobox.js +327 -302
  20. package/dist/global-layout.cjs +1 -1
  21. package/dist/global-layout.d.ts +3 -3
  22. package/dist/global-layout.d.ts.map +1 -1
  23. package/dist/global-layout.js +90 -82
  24. package/dist/hooks/use-breakpoint.cjs +1 -0
  25. package/dist/hooks/use-breakpoint.d.ts +15 -0
  26. package/dist/hooks/use-breakpoint.d.ts.map +1 -0
  27. package/dist/hooks/use-breakpoint.js +30 -0
  28. package/dist/hooks/use-mobile.d.ts +13 -3
  29. package/dist/hooks/use-mobile.d.ts.map +1 -1
  30. package/dist/index.cjs +1 -1
  31. package/dist/index.d.ts +1 -0
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/index.js +220 -215
  34. package/dist/scroll-area.cjs +1 -1
  35. package/dist/scroll-area.d.ts +5 -0
  36. package/dist/scroll-area.d.ts.map +1 -1
  37. package/dist/scroll-area.js +34 -25
  38. package/dist/split-layout.cjs +1 -1
  39. package/dist/split-layout.d.ts +15 -0
  40. package/dist/split-layout.d.ts.map +1 -1
  41. package/dist/split-layout.js +40 -38
  42. package/package.json +3 -3
  43. package/src/blocks/data-table.tsx +139 -76
  44. package/src/blocks/sidebar.tsx +134 -148
  45. package/src/components/alert.tsx +1 -1
  46. package/src/components/callout.tsx +1 -1
  47. package/src/components/card.tsx +1 -1
  48. package/src/components/combobox.tsx +72 -11
  49. package/src/components/global-layout.tsx +49 -40
  50. package/src/components/scroll-area.tsx +15 -1
  51. package/src/components/split-layout.tsx +19 -2
  52. package/src/hooks/use-breakpoint.ts +58 -0
  53. package/src/hooks/use-mobile.ts +20 -40
  54. package/src/index.ts +1 -0
  55. package/dist/hooks/use-mobile.cjs +0 -1
  56. package/dist/hooks/use-mobile.js +0 -26
package/dist/index.js CHANGED
@@ -1,108 +1,108 @@
1
1
  import { Accordion as r, AccordionContent as t, AccordionItem as a, AccordionTrigger as n } from "./accordion.js";
2
- import { Alert as p, AlertDescription as l, AlertDestructive as u, AlertInfo as d, AlertSuccess as b, AlertTitle as C, AlertWarning as m, alertVariants as g } from "./alert.js";
3
- import { AlertDialog as s, AlertDialogAction as x, AlertDialogCancel as T, AlertDialogContent as c, AlertDialogDescription as D, AlertDialogFooter as M, AlertDialogHeader as f, AlertDialogOverlay as I, AlertDialogPortal as h, AlertDialogTitle as L, AlertDialogTrigger as P } from "./alert-dialog.js";
2
+ import { Alert as l, AlertDescription as p, AlertDestructive as u, AlertInfo as b, AlertSuccess as d, AlertTitle as C, AlertWarning as m, alertVariants as g } from "./alert.js";
3
+ import { AlertDialog as s, AlertDialogAction as x, AlertDialogCancel as T, AlertDialogContent as D, AlertDialogDescription as c, AlertDialogFooter as f, AlertDialogHeader as I, AlertDialogOverlay as M, AlertDialogPortal as h, AlertDialogTitle as L, AlertDialogTrigger as P } from "./alert-dialog.js";
4
4
  import { AspectRatio as A } from "./aspect-ratio.js";
5
- import { Avatar as G, AvatarFallback as R, AvatarImage as B } from "./avatar.js";
6
- import { Badge as H } from "./badge.js";
7
- import { Breadcrumb as k, BreadcrumbEllipsis as E, BreadcrumbItem as F, BreadcrumbLink as N, BreadcrumbList as O, BreadcrumbPage as _, BreadcrumbSeparator as z } from "./breadcrumb.js";
5
+ import { Avatar as B, AvatarFallback as G, AvatarImage as R } from "./avatar.js";
6
+ import { Badge as k } from "./badge.js";
7
+ import { Breadcrumb as H, BreadcrumbEllipsis as E, BreadcrumbItem as F, BreadcrumbLink as N, BreadcrumbList as O, BreadcrumbPage as _, BreadcrumbSeparator as z } from "./breadcrumb.js";
8
8
  import { Button as X, ButtonVariants as Y } 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";
11
- import { Card as oe, CardAction as re, CardContent as te, CardDescription as ae, CardFooter as ne, CardHeader as ie, CardTitle as pe } from "./card.js";
12
- import { Carousel as ue, CarouselContent as de, CarouselDots as be, CarouselItem as Ce, CarouselNext as me, CarouselPrevious as ge } from "./carousel.js";
13
- import { ChartContainer as se, ChartLegend as xe, ChartLegendContent as Te, ChartStyle as ce, ChartTooltip as De, ChartTooltipContent as Me } from "./chart.js";
14
- import { CentredLayout as Ie, CentredLayoutContent as he, CentredLayoutHeader as Le } from "./centred-layout.js";
11
+ import { Card as oe, CardAction as re, CardContent as te, CardDescription as ae, CardFooter as ne, CardHeader as ie, CardTitle as le } from "./card.js";
12
+ import { Carousel as ue, CarouselContent as be, CarouselDots as de, CarouselItem as Ce, CarouselNext as me, CarouselPrevious as ge } from "./carousel.js";
13
+ import { ChartContainer as se, ChartLegend as xe, ChartLegendContent as Te, ChartStyle as De, ChartTooltip as ce, ChartTooltipContent as fe } from "./chart.js";
14
+ import { CentredLayout as Me, CentredLayoutContent as he, CentredLayoutHeader as Le } from "./centred-layout.js";
15
15
  import { Checkbox as ye } from "./checkbox.js";
16
- import { Chip as we, chipVariants as Ge } from "./chip.js";
17
- import { Collapsible as Be, CollapsibleContent as ve, CollapsibleTrigger as He } from "./collapsible.js";
18
- import { Combobox as ke, ComboboxContent as Ee, ComboboxEmpty as Fe, ComboboxGroup as Ne, ComboboxInput as Oe, ComboboxItem as _e, ComboboxList as ze, ComboboxLoading as We, ComboboxSeparator as Xe, ComboboxTrigger as Ye, ComboboxValue as Ue, ComboboxVirtualList as qe } from "./combobox.js";
16
+ import { Chip as we, chipVariants as Be } from "./chip.js";
17
+ import { Collapsible as Re, CollapsibleContent as ve, CollapsibleTrigger as ke } from "./collapsible.js";
18
+ import { Combobox as He, ComboboxContent as Ee, ComboboxEmpty as Fe, ComboboxGroup as Ne, ComboboxInput as Oe, ComboboxItem as _e, ComboboxList as ze, ComboboxLoading as We, ComboboxSeparator as Xe, ComboboxTrigger as Ye, ComboboxValue as Ue, ComboboxVirtualList as qe } from "./combobox.js";
19
19
  import { Command as Je, CommandEmpty as Ke, CommandGroup as Qe, CommandInput as Ze, CommandItem as $e, CommandList as eo, CommandSeparator as oo, CommandShortcut as ro } from "./command.js";
20
- import { DEFAULT_DATE_PRESETS as ao, DatePickerCalendar as no, DatePickerContent as io, DatePickerPresets as po, DatePickerRoot as lo, DatePickerTrigger as uo } from "./date-picker.js";
21
- import { ContextMenu as Co, ContextMenuCheckboxItem as mo, ContextMenuContent as go, ContextMenuGroup as So, ContextMenuItem as so, ContextMenuLabel as xo, ContextMenuPortal as To, ContextMenuRadioGroup as co, ContextMenuRadioItem as Do, ContextMenuSeparator as Mo, ContextMenuShortcut as fo, ContextMenuSub as Io, ContextMenuSubContent as ho, ContextMenuSubTrigger as Lo, ContextMenuTrigger as Po } from "./context-menu.js";
20
+ import { DEFAULT_DATE_PRESETS as ao, DatePickerCalendar as no, DatePickerContent as io, DatePickerPresets as lo, DatePickerRoot as po, DatePickerTrigger as uo } from "./date-picker.js";
21
+ import { ContextMenu as Co, ContextMenuCheckboxItem as mo, ContextMenuContent as go, ContextMenuGroup as So, ContextMenuItem as so, ContextMenuLabel as xo, ContextMenuPortal as To, ContextMenuRadioGroup as Do, ContextMenuRadioItem as co, ContextMenuSeparator as fo, ContextMenuShortcut as Io, ContextMenuSub as Mo, ContextMenuSubContent as ho, ContextMenuSubTrigger as Lo, ContextMenuTrigger as Po } from "./context-menu.js";
22
22
  import { Description as Ao } from "./description.js";
23
- import { Dialog as Go, DialogClose as Ro, DialogContent as Bo, DialogDescription as vo, DialogFooter as Ho, DialogHeader as Vo, DialogOverlay as ko, DialogPortal as Eo, DialogTitle as Fo, DialogTrigger as No } from "./dialog.js";
23
+ import { Dialog as Bo, DialogClose as Go, DialogContent as Ro, DialogDescription as vo, DialogFooter as ko, DialogHeader as Vo, DialogOverlay as Ho, DialogPortal as Eo, DialogTitle as Fo, DialogTrigger as No } from "./dialog.js";
24
24
  import { Drawer as _o, DrawerBody as zo, DrawerClose as Wo, DrawerContent as Xo, DrawerDescription as Yo, DrawerFooter as Uo, DrawerHeader as qo, DrawerOverlay as jo, DrawerPortal as Jo, DrawerTitle as Ko, DrawerTrigger as Qo } from "./drawer.js";
25
- import { DropdownMenu as $o, DropdownMenuCheckboxItem as er, DropdownMenuContent as or, DropdownMenuGroup as rr, DropdownMenuItem as tr, DropdownMenuLabel as ar, DropdownMenuPortal as nr, DropdownMenuRadioGroup as ir, DropdownMenuRadioItem as pr, DropdownMenuSeparator as lr, DropdownMenuShortcut as ur, DropdownMenuSub as dr, DropdownMenuSubContent as br, DropdownMenuSubTrigger as Cr, DropdownMenuTrigger as mr, DropdownMenuTriggerAvatar as gr } from "./dropdown-menu.js";
26
- import { Field as sr, FieldContent as xr, FieldDescription as Tr, FieldError as cr, FieldErrorIcon as Dr, FieldGroup as Mr, FieldLabel as fr, FieldLegend as Ir, FieldSet as hr, fieldLegendVariants as Lr } from "./field.js";
27
- import { GlobalLayout as yr, GlobalLayoutContent as Ar, GlobalLayoutContentBody as wr, GlobalLayoutContentHeader as Gr, GlobalLayoutMobileHeader as Rr, GlobalLayoutSidebar as Br } from "./global-layout.js";
28
- import { Header as Hr } from "./header.js";
29
- import { HoverCard as kr, HoverCardContent as Er, HoverCardTrigger as Fr } from "./hover-card.js";
25
+ import { DropdownMenu as $o, DropdownMenuCheckboxItem as er, DropdownMenuContent as or, DropdownMenuGroup as rr, DropdownMenuItem as tr, DropdownMenuLabel as ar, DropdownMenuPortal as nr, DropdownMenuRadioGroup as ir, DropdownMenuRadioItem as lr, DropdownMenuSeparator as pr, DropdownMenuShortcut as ur, DropdownMenuSub as br, DropdownMenuSubContent as dr, DropdownMenuSubTrigger as Cr, DropdownMenuTrigger as mr, DropdownMenuTriggerAvatar as gr } from "./dropdown-menu.js";
26
+ import { Field as sr, FieldContent as xr, FieldDescription as Tr, FieldError as Dr, FieldErrorIcon as cr, FieldGroup as fr, FieldLabel as Ir, FieldLegend as Mr, FieldSet as hr, fieldLegendVariants as Lr } from "./field.js";
27
+ import { GlobalLayout as yr, GlobalLayoutContent as Ar, GlobalLayoutContentBody as wr, GlobalLayoutContentHeader as Br, GlobalLayoutMobileHeader as Gr, GlobalLayoutSidebar as Rr } from "./global-layout.js";
28
+ import { Header as kr } from "./header.js";
29
+ import { HoverCard as Hr, HoverCardContent as Er, HoverCardTrigger as Fr } from "./hover-card.js";
30
30
  import { Input as Or, inputVariants as _r } from "./input.js";
31
31
  import { InputChip as Wr, InputChipInput as Xr, InputChipItems as Yr, inputChipInputVariants as Ur, inputChipVariants as qr, useInputChipContext as jr } from "./input-chip.js";
32
32
  import { InputGroup as Kr, InputGroupAddon as Qr, InputGroupButton as Zr, InputGroupInput as $r, inputGroupButtonVariants as et, inputGroupVariants as ot } from "./input-group.js";
33
- import { InputOTP as tt, InputOTPDigitsOnly as at, InputOTPGroup as nt, InputOTPSeparator as it, InputOTPSimple as pt, InputOTPSlot as lt, InputOTPWithSeparator as ut, InputOTPWithSpacing as dt } from "./input-otp.js";
33
+ import { InputOTP as tt, InputOTPDigitsOnly as at, InputOTPGroup as nt, InputOTPSeparator as it, InputOTPSimple as lt, InputOTPSlot as pt, InputOTPWithSeparator as ut, InputOTPWithSpacing as bt } from "./input-otp.js";
34
34
  import { Label as Ct, labelVariants as mt } from "./label.js";
35
35
  import { Link as St } from "./link.js";
36
- import { Item as xt, ItemActions as Tt, ItemContent as ct, ItemDescription as Dt, ItemMedia as Mt, ItemTitle as ft, List as It, itemVariants as ht } from "./list.js";
36
+ import { Item as xt, ItemActions as Tt, ItemContent as Dt, ItemDescription as ct, ItemMedia as ft, ItemTitle as It, List as Mt, itemVariants as ht } from "./list.js";
37
37
  import { Logo as Pt } from "./logo.js";
38
- import { Menubar as At, MenubarCheckboxItem as wt, MenubarContent as Gt, MenubarItem as Rt, MenubarLabel as Bt, MenubarMenu as vt, MenubarRadioGroup as Ht, MenubarRadioItem as Vt, MenubarSeparator as kt, MenubarShortcut as Et, MenubarSub as Ft, MenubarSubContent as Nt, MenubarSubTrigger as Ot, MenubarTrigger as _t } from "./menubar.js";
38
+ import { Menubar as At, MenubarCheckboxItem as wt, MenubarContent as Bt, MenubarItem as Gt, MenubarLabel as Rt, MenubarMenu as vt, MenubarRadioGroup as kt, MenubarRadioItem as Vt, MenubarSeparator as Ht, MenubarShortcut as Et, MenubarSub as Ft, MenubarSubContent as Nt, MenubarSubTrigger as Ot, MenubarTrigger as _t } from "./menubar.js";
39
39
  import { NavigationMenu as Wt, NavigationMenuContent as Xt, NavigationMenuIndicator as Yt, NavigationMenuItem as Ut, NavigationMenuLink as qt, NavigationMenuList as jt, NavigationMenuTrigger as Jt, NavigationMenuViewport as Kt } from "./navigation-menu.js";
40
40
  import { Pagination as Zt, PaginationButton as $t, PaginationContent as ea, PaginationEllipsis as oa, PaginationItem as ra, PaginationLink as ta, PaginationNext as aa, PaginationPrevious as na, usePagination as ia } from "./pagination.js";
41
- import { DEFAULT_STRENGTH_LEVELS as la, InputPasswordField as ua, InputPasswordRoot as da, InputPasswordStrength as ba, InputPasswordToggle as Ca, calculatePasswordStrength as ma } from "./input-password.js";
41
+ import { DEFAULT_STRENGTH_LEVELS as pa, InputPasswordField as ua, InputPasswordRoot as ba, InputPasswordStrength as da, InputPasswordToggle as Ca, calculatePasswordStrength as ma } from "./input-password.js";
42
42
  import { Popover as Sa, PopoverAnchor as sa, PopoverContent as xa, PopoverTrigger as Ta } from "./popover.js";
43
- import { Progress as Da } from "./progress.js";
44
- import { RadioGroup as fa, RadioGroupItem as Ia } from "./radio-group.js";
43
+ import { Progress as ca } from "./progress.js";
44
+ import { RadioGroup as Ia, RadioGroupItem as Ma } from "./radio-group.js";
45
45
  import { Rating as La } from "./rating.js";
46
46
  import { ResizableHandle as ya, ResizablePanel as Aa, ResizablePanelGroup as wa } from "./resizable.js";
47
- import { ScrollArea as Ra, ScrollBar as Ba } from "./scroll-area.js";
48
- import { Select as Ha, SelectContent as Va, SelectGroup as ka, SelectItem as Ea, SelectLabel as Fa, SelectScrollDownButton as Na, SelectScrollUpButton as Oa, SelectSeparator as _a, SelectTrigger as za, SelectValue as Wa } from "./select.js";
47
+ import { ScrollArea as Ga, ScrollBar as Ra } from "./scroll-area.js";
48
+ import { Select as ka, SelectContent as Va, SelectGroup as Ha, SelectItem as Ea, SelectLabel as Fa, SelectScrollDownButton as Na, SelectScrollUpButton as Oa, SelectSeparator as _a, SelectTrigger as za, SelectValue as Wa } from "./select.js";
49
49
  import { Separator as Ya, SeparatorWithText as Ua } from "./separator.js";
50
50
  import { Sheet as ja, SheetClose as Ja, SheetContent as Ka, SheetDescription as Qa, SheetFooter as Za, SheetHeader as $a, SheetOverlay as en, SheetPortal as on, SheetTitle as rn, SheetTrigger as tn } from "./sheet.js";
51
51
  import { Skeleton as nn } from "./skeleton.js";
52
- import { Slider as ln } from "./slider.js";
53
- import { Sonner as dn, sonner as bn } from "./sonner.js";
52
+ import { Slider as pn } from "./slider.js";
53
+ import { Sonner as bn, sonner as dn } from "./sonner.js";
54
54
  import { SplitLayout as mn, SplitLayoutContentLeft as gn, SplitLayoutContentRight as Sn, SplitLayoutHeader as sn, SplitLayoutImage as xn } from "./split-layout.js";
55
- import { Switch as cn } from "./switch.js";
56
- import { Table as Mn, TableBody as fn, TableCaption as In, TableCell as hn, TableFooter as Ln, TableHead as Pn, TableHeader as yn, TableRow as An } from "./table.js";
57
- import { Tabs as Gn, TabsContent as Rn, TabsList as Bn, TabsTrigger as vn } from "./tabs.js";
55
+ import { Switch as Dn } from "./switch.js";
56
+ import { Table as fn, TableBody as In, TableCaption as Mn, TableCell as hn, TableFooter as Ln, TableHead as Pn, TableHeader as yn, TableRow as An } from "./table.js";
57
+ import { Tabs as Bn, TabsContent as Gn, TabsList as Rn, TabsTrigger as vn } from "./tabs.js";
58
58
  import { TextRevealMotion as Vn } from "./text-reveal-motion.js";
59
59
  import { Textarea as En } from "./textarea.js";
60
60
  import { Toggle as Nn, toggleVariants as On } from "./toggle.js";
61
61
  import { ToggleGroup as zn, ToggleGroupItem as Wn } from "./toggle-group.js";
62
62
  import { Tooltip as Yn, TooltipContent as Un, TooltipProvider as qn, TooltipTrigger as jn } from "./tooltip.js";
63
- import { TypographyBlockquote as Kn, TypographyCode as Qn, TypographyH1 as Zn, TypographyH2 as $n, TypographyH3 as ei, TypographyH4 as oi, TypographyInlineCode as ri, TypographyLarge as ti, TypographyLead as ai, TypographyList as ni, TypographyMuted as ii, TypographyP as pi, TypographySmall as li, blockquoteVariants as ui } from "./typography.js";
64
- import { DataTable as bi, DataTableColumnHeader as Ci, DataTablePagination as mi, DataTablePaginationNav as gi, DataTablePaginationRowCount as Si, DataTableRowActions as si, DataTableSearch as xi, DataTableSelectAllCheckbox as Ti, DataTableSelectRowCheckbox as ci, VirtualizedDataTable as Di, useDataTable as Mi } from "./blocks/data-table.js";
65
- import { InputList as Ii, InputListAddButton as hi, InputListInput as Li, InputListItems as Pi, useInputListContext as yi } from "./blocks/input-list.js";
66
- import { Sidebar as wi, SidebarCollapseIcon as Gi, SidebarCollapseIconType as Ri, SidebarCollapsible as Bi, SidebarContent as vi, SidebarDrawer as Hi, SidebarFooter as Vi, SidebarGroup as ki, SidebarGroupAction as Ei, SidebarGroupContent as Fi, SidebarGroupLabel as Ni, SidebarGroupLabelSize as Oi, SidebarGroupLabelVariant as _i, SidebarHeader as zi, SidebarInput as Wi, SidebarInset as Xi, SidebarMenu as Yi, SidebarMenuAction as Ui, SidebarMenuBadge as qi, SidebarMenuButton as ji, SidebarMenuButtonSize as Ji, SidebarMenuButtonVariant as Ki, SidebarMenuCollapsible as Qi, SidebarMenuCollapsibleContent as Zi, SidebarMenuCollapsibleTrigger as $i, SidebarMenuItem as ep, SidebarMenuSkeleton as op, SidebarMenuSub as rp, SidebarMenuSubButton as tp, SidebarMenuSubButtonSize as ap, SidebarMenuSubItem as np, SidebarMenuSubVariant as ip, SidebarProvider as pp, SidebarRail as lp, SidebarSeparator as up, SidebarSide as dp, SidebarTrigger as bp, SidebarVariant as Cp, useSidebar as mp } from "./blocks/sidebar.js";
67
- import { useDebounce as Sp } from "./hooks/use-debounce.js";
68
- import { getMobileBreakpoint as xp, isMobileViewport as Tp, useIsMobile as cp } from "./hooks/use-mobile.js";
69
- import { usePrefersReducedMotion as Mp } from "./hooks/use-prefers-reduced-motion.js";
70
- import { cn as Ip } from "./lib/utils.js";
71
- import { Area as Lp, AreaChart as Pp, Bar as yp, BarChart as Ap, CartesianGrid as wp, Cell as Gp, Label as Rp, Legend as Bp, Tooltip as vp, Customized as Hp, LabelList as Vp, Line as kp, LineChart as Ep, Pie as Fp, PieChart as Np, PolarAngleAxis as Op, PolarGrid as _p, PolarRadiusAxis as zp, Radar as Wp, RadarChart as Xp, RadialBar as Yp, RadialBarChart as Up, Rectangle as qp, ReferenceLine as jp, ResponsiveContainer as Jp, Sector as Kp, XAxis as Qp, YAxis as Zp } from "recharts";
72
- import { REGEXP_ONLY_CHARS as el, REGEXP_ONLY_DIGITS as ol, REGEXP_ONLY_DIGITS_AND_CHARS as rl } from "input-otp";
63
+ import { TypographyBlockquote as Kn, TypographyCode as Qn, TypographyH1 as Zn, TypographyH2 as $n, TypographyH3 as ei, TypographyH4 as oi, TypographyInlineCode as ri, TypographyLarge as ti, TypographyLead as ai, TypographyList as ni, TypographyMuted as ii, TypographyP as li, TypographySmall as pi, blockquoteVariants as ui } from "./typography.js";
64
+ import { DataTable as di, DataTableColumnHeader as Ci, DataTablePagination as mi, DataTablePaginationNav as gi, DataTablePaginationRowCount as Si, DataTableSearch as si, DataTableSelectAllCheckbox as xi, DataTableSelectRowCheckbox as Ti, DataTableToolbar as Di, DataTableToolbarLeft as ci, DataTableToolbarRight as fi, VirtualizedDataTable as Ii, useDataTable as Mi } from "./blocks/data-table.js";
65
+ import { InputList as Li, InputListAddButton as Pi, InputListInput as yi, InputListItems as Ai, useInputListContext as wi } from "./blocks/input-list.js";
66
+ import { Sidebar as Gi, SidebarCollapseIcon as Ri, SidebarCollapseIconType as vi, SidebarCollapsible as ki, SidebarContent as Vi, SidebarDrawer as Hi, SidebarFooter as Ei, SidebarGroup as Fi, SidebarGroupAction as Ni, SidebarGroupContent as Oi, SidebarGroupLabel as _i, SidebarGroupLabelSize as zi, SidebarGroupLabelVariant as Wi, SidebarHeader as Xi, SidebarInput as Yi, SidebarInset as Ui, SidebarMenu as qi, SidebarMenuAction as ji, SidebarMenuBadge as Ji, SidebarMenuButton as Ki, SidebarMenuButtonSize as Qi, SidebarMenuButtonVariant as Zi, SidebarMenuCollapsible as $i, SidebarMenuCollapsibleContent as el, SidebarMenuCollapsibleTrigger as ol, SidebarMenuItem as rl, SidebarMenuSkeleton as tl, SidebarMenuSub as al, SidebarMenuSubButton as nl, SidebarMenuSubButtonSize as il, SidebarMenuSubItem as ll, SidebarMenuSubVariant as pl, SidebarProvider as ul, SidebarRail as bl, SidebarSeparator as dl, SidebarSide as Cl, SidebarTrigger as ml, SidebarVariant as gl, useSidebar as Sl } from "./blocks/sidebar.js";
67
+ import { useDebounce as xl } from "./hooks/use-debounce.js";
68
+ import { getBreakpointValue as Dl, getBreakpointValue as cl, isBelowBreakpoint as fl, isBelowBreakpoint as Il, useIsBelowBreakpoint as Ml, useIsBelowBreakpoint as hl } from "./hooks/use-breakpoint.js";
69
+ import { usePrefersReducedMotion as Pl } from "./hooks/use-prefers-reduced-motion.js";
70
+ import { cn as Al } from "./lib/utils.js";
71
+ import { Area as Bl, AreaChart as Gl, Bar as Rl, BarChart as vl, CartesianGrid as kl, Cell as Vl, Label as Hl, Legend as El, Tooltip as Fl, Customized as Nl, LabelList as Ol, Line as _l, LineChart as zl, Pie as Wl, PieChart as Xl, PolarAngleAxis as Yl, PolarGrid as Ul, PolarRadiusAxis as ql, Radar as jl, RadarChart as Jl, RadialBar as Kl, RadialBarChart as Ql, Rectangle as Zl, ReferenceLine as $l, ResponsiveContainer as ep, Sector as op, XAxis as rp, YAxis as tp } from "recharts";
72
+ import { REGEXP_ONLY_CHARS as np, REGEXP_ONLY_DIGITS as ip, REGEXP_ONLY_DIGITS_AND_CHARS as lp } from "input-otp";
73
73
  export {
74
74
  r as Accordion,
75
75
  t as AccordionContent,
76
76
  a as AccordionItem,
77
77
  n as AccordionTrigger,
78
- p as Alert,
79
- l as AlertDescription,
78
+ l as Alert,
79
+ p as AlertDescription,
80
80
  u as AlertDestructive,
81
81
  s as AlertDialog,
82
82
  x as AlertDialogAction,
83
83
  T as AlertDialogCancel,
84
- c as AlertDialogContent,
85
- D as AlertDialogDescription,
86
- M as AlertDialogFooter,
87
- f as AlertDialogHeader,
88
- I as AlertDialogOverlay,
84
+ D as AlertDialogContent,
85
+ c as AlertDialogDescription,
86
+ f as AlertDialogFooter,
87
+ I as AlertDialogHeader,
88
+ M as AlertDialogOverlay,
89
89
  h as AlertDialogPortal,
90
90
  L as AlertDialogTitle,
91
91
  P as AlertDialogTrigger,
92
- d as AlertInfo,
93
- b as AlertSuccess,
92
+ b as AlertInfo,
93
+ d as AlertSuccess,
94
94
  C as AlertTitle,
95
95
  m as AlertWarning,
96
- Lp as Area,
97
- Pp as AreaChart,
96
+ Bl as Area,
97
+ Gl as AreaChart,
98
98
  A as AspectRatio,
99
- G as Avatar,
100
- R as AvatarFallback,
101
- B as AvatarImage,
102
- H as Badge,
103
- yp as Bar,
104
- Ap as BarChart,
105
- k as Breadcrumb,
99
+ B as Avatar,
100
+ G as AvatarFallback,
101
+ R as AvatarImage,
102
+ k as Badge,
103
+ Rl as Bar,
104
+ vl as BarChart,
105
+ H as Breadcrumb,
106
106
  E as BreadcrumbEllipsis,
107
107
  F as BreadcrumbItem,
108
108
  N as BreadcrumbLink,
@@ -122,33 +122,33 @@ export {
122
122
  ae as CardDescription,
123
123
  ne as CardFooter,
124
124
  ie as CardHeader,
125
- pe as CardTitle,
125
+ le as CardTitle,
126
126
  ue as Carousel,
127
- de as CarouselContent,
128
- be as CarouselDots,
127
+ be as CarouselContent,
128
+ de as CarouselDots,
129
129
  Ce as CarouselItem,
130
130
  me as CarouselNext,
131
131
  ge as CarouselPrevious,
132
- wp as CartesianGrid,
133
- Gp as Cell,
134
- Ie as CentredLayout,
132
+ kl as CartesianGrid,
133
+ Vl as Cell,
134
+ Me as CentredLayout,
135
135
  he as CentredLayoutContent,
136
136
  Le as CentredLayoutHeader,
137
137
  se as ChartContainer,
138
- Rp as ChartLabel,
138
+ Hl as ChartLabel,
139
139
  xe as ChartLegend,
140
140
  Te as ChartLegendContent,
141
- ce as ChartStyle,
142
- De as ChartTooltip,
143
- Me as ChartTooltipContent,
144
- Bp as ChartsLegend,
145
- vp as ChartsTooltip,
141
+ De as ChartStyle,
142
+ ce as ChartTooltip,
143
+ fe as ChartTooltipContent,
144
+ El as ChartsLegend,
145
+ Fl as ChartsTooltip,
146
146
  ye as Checkbox,
147
147
  we as Chip,
148
- Be as Collapsible,
148
+ Re as Collapsible,
149
149
  ve as CollapsibleContent,
150
- He as CollapsibleTrigger,
151
- ke as Combobox,
150
+ ke as CollapsibleTrigger,
151
+ He as Combobox,
152
152
  Ee as ComboboxContent,
153
153
  Fe as ComboboxEmpty,
154
154
  Ne as ComboboxGroup,
@@ -175,39 +175,41 @@ export {
175
175
  so as ContextMenuItem,
176
176
  xo as ContextMenuLabel,
177
177
  To as ContextMenuPortal,
178
- co as ContextMenuRadioGroup,
179
- Do as ContextMenuRadioItem,
180
- Mo as ContextMenuSeparator,
181
- fo as ContextMenuShortcut,
182
- Io as ContextMenuSub,
178
+ Do as ContextMenuRadioGroup,
179
+ co as ContextMenuRadioItem,
180
+ fo as ContextMenuSeparator,
181
+ Io as ContextMenuShortcut,
182
+ Mo as ContextMenuSub,
183
183
  ho as ContextMenuSubContent,
184
184
  Lo as ContextMenuSubTrigger,
185
185
  Po as ContextMenuTrigger,
186
- Hp as Customized,
186
+ Nl as Customized,
187
187
  ao as DEFAULT_DATE_PRESETS,
188
- la as DEFAULT_STRENGTH_LEVELS,
189
- bi as DataTable,
188
+ pa as DEFAULT_STRENGTH_LEVELS,
189
+ di as DataTable,
190
190
  Ci as DataTableColumnHeader,
191
191
  mi as DataTablePagination,
192
192
  gi as DataTablePaginationNav,
193
193
  Si as DataTablePaginationRowCount,
194
- si as DataTableRowActions,
195
- xi as DataTableSearch,
196
- Ti as DataTableSelectAllCheckbox,
197
- ci as DataTableSelectRowCheckbox,
194
+ si as DataTableSearch,
195
+ xi as DataTableSelectAllCheckbox,
196
+ Ti as DataTableSelectRowCheckbox,
197
+ Di as DataTableToolbar,
198
+ ci as DataTableToolbarLeft,
199
+ fi as DataTableToolbarRight,
198
200
  no as DatePickerCalendar,
199
201
  io as DatePickerContent,
200
- po as DatePickerPresets,
201
- lo as DatePickerRoot,
202
+ lo as DatePickerPresets,
203
+ po as DatePickerRoot,
202
204
  uo as DatePickerTrigger,
203
205
  Ao as Description,
204
- Go as Dialog,
205
- Ro as DialogClose,
206
- Bo as DialogContent,
206
+ Bo as Dialog,
207
+ Go as DialogClose,
208
+ Ro as DialogContent,
207
209
  vo as DialogDescription,
208
- Ho as DialogFooter,
210
+ ko as DialogFooter,
209
211
  Vo as DialogHeader,
210
- ko as DialogOverlay,
212
+ Ho as DialogOverlay,
211
213
  Eo as DialogPortal,
212
214
  Fo as DialogTitle,
213
215
  No as DialogTrigger,
@@ -230,31 +232,31 @@ export {
230
232
  ar as DropdownMenuLabel,
231
233
  nr as DropdownMenuPortal,
232
234
  ir as DropdownMenuRadioGroup,
233
- pr as DropdownMenuRadioItem,
234
- lr as DropdownMenuSeparator,
235
+ lr as DropdownMenuRadioItem,
236
+ pr as DropdownMenuSeparator,
235
237
  ur as DropdownMenuShortcut,
236
- dr as DropdownMenuSub,
237
- br as DropdownMenuSubContent,
238
+ br as DropdownMenuSub,
239
+ dr as DropdownMenuSubContent,
238
240
  Cr as DropdownMenuSubTrigger,
239
241
  mr as DropdownMenuTrigger,
240
242
  gr as DropdownMenuTriggerAvatar,
241
243
  sr as Field,
242
244
  xr as FieldContent,
243
245
  Tr as FieldDescription,
244
- cr as FieldError,
245
- Dr as FieldErrorIcon,
246
- Mr as FieldGroup,
247
- fr as FieldLabel,
248
- Ir as FieldLegend,
246
+ Dr as FieldError,
247
+ cr as FieldErrorIcon,
248
+ fr as FieldGroup,
249
+ Ir as FieldLabel,
250
+ Mr as FieldLegend,
249
251
  hr as FieldSet,
250
252
  yr as GlobalLayout,
251
253
  Ar as GlobalLayoutContent,
252
254
  wr as GlobalLayoutContentBody,
253
- Gr as GlobalLayoutContentHeader,
254
- Rr as GlobalLayoutMobileHeader,
255
- Br as GlobalLayoutSidebar,
256
- Hr as Header,
257
- kr as HoverCard,
255
+ Br as GlobalLayoutContentHeader,
256
+ Gr as GlobalLayoutMobileHeader,
257
+ Rr as GlobalLayoutSidebar,
258
+ kr as Header,
259
+ Hr as HoverCard,
258
260
  Er as HoverCardContent,
259
261
  Fr as HoverCardTrigger,
260
262
  Or as Input,
@@ -265,44 +267,44 @@ export {
265
267
  Qr as InputGroupAddon,
266
268
  Zr as InputGroupButton,
267
269
  $r as InputGroupInput,
268
- Ii as InputList,
269
- hi as InputListAddButton,
270
- Li as InputListInput,
271
- Pi as InputListItems,
270
+ Li as InputList,
271
+ Pi as InputListAddButton,
272
+ yi as InputListInput,
273
+ Ai as InputListItems,
272
274
  tt as InputOTP,
273
275
  at as InputOTPDigitsOnly,
274
276
  nt as InputOTPGroup,
275
277
  it as InputOTPSeparator,
276
- pt as InputOTPSimple,
277
- lt as InputOTPSlot,
278
+ lt as InputOTPSimple,
279
+ pt as InputOTPSlot,
278
280
  ut as InputOTPWithSeparator,
279
- dt as InputOTPWithSpacing,
281
+ bt as InputOTPWithSpacing,
280
282
  ua as InputPasswordField,
281
- da as InputPasswordRoot,
282
- ba as InputPasswordStrength,
283
+ ba as InputPasswordRoot,
284
+ da as InputPasswordStrength,
283
285
  Ca as InputPasswordToggle,
284
286
  xt as Item,
285
287
  Tt as ItemActions,
286
- ct as ItemContent,
287
- Dt as ItemDescription,
288
- Mt as ItemMedia,
289
- ft as ItemTitle,
288
+ Dt as ItemContent,
289
+ ct as ItemDescription,
290
+ ft as ItemMedia,
291
+ It as ItemTitle,
290
292
  Ct as Label,
291
- Vp as LabelList,
292
- kp as Line,
293
- Ep as LineChart,
293
+ Ol as LabelList,
294
+ _l as Line,
295
+ zl as LineChart,
294
296
  St as Link,
295
- It as List,
297
+ Mt as List,
296
298
  Pt as Logo,
297
299
  At as Menubar,
298
300
  wt as MenubarCheckboxItem,
299
- Gt as MenubarContent,
300
- Rt as MenubarItem,
301
- Bt as MenubarLabel,
301
+ Bt as MenubarContent,
302
+ Gt as MenubarItem,
303
+ Rt as MenubarLabel,
302
304
  vt as MenubarMenu,
303
- Ht as MenubarRadioGroup,
305
+ kt as MenubarRadioGroup,
304
306
  Vt as MenubarRadioItem,
305
- kt as MenubarSeparator,
307
+ Ht as MenubarSeparator,
306
308
  Et as MenubarShortcut,
307
309
  Ft as MenubarSub,
308
310
  Nt as MenubarSubContent,
@@ -324,38 +326,38 @@ export {
324
326
  ta as PaginationLink,
325
327
  aa as PaginationNext,
326
328
  na as PaginationPrevious,
327
- Fp as Pie,
328
- Np as PieChart,
329
- Op as PolarAngleAxis,
330
- _p as PolarGrid,
331
- zp as PolarRadiusAxis,
329
+ Wl as Pie,
330
+ Xl as PieChart,
331
+ Yl as PolarAngleAxis,
332
+ Ul as PolarGrid,
333
+ ql as PolarRadiusAxis,
332
334
  Sa as Popover,
333
335
  sa as PopoverAnchor,
334
336
  xa as PopoverContent,
335
337
  Ta as PopoverTrigger,
336
- Da as Progress,
337
- el as REGEXP_ONLY_CHARS,
338
- ol as REGEXP_ONLY_DIGITS,
339
- rl as REGEXP_ONLY_DIGITS_AND_CHARS,
340
- Wp as Radar,
341
- Xp as RadarChart,
342
- Yp as RadialBar,
343
- Up as RadialBarChart,
344
- fa as RadioGroup,
345
- Ia as RadioGroupItem,
338
+ ca as Progress,
339
+ np as REGEXP_ONLY_CHARS,
340
+ ip as REGEXP_ONLY_DIGITS,
341
+ lp as REGEXP_ONLY_DIGITS_AND_CHARS,
342
+ jl as Radar,
343
+ Jl as RadarChart,
344
+ Kl as RadialBar,
345
+ Ql as RadialBarChart,
346
+ Ia as RadioGroup,
347
+ Ma as RadioGroupItem,
346
348
  La as Rating,
347
- qp as Rectangle,
348
- jp as ReferenceLine,
349
+ Zl as Rectangle,
350
+ $l as ReferenceLine,
349
351
  ya as ResizableHandle,
350
352
  Aa as ResizablePanel,
351
353
  wa as ResizablePanelGroup,
352
- Jp as ResponsiveContainer,
353
- Ra as ScrollArea,
354
- Ba as ScrollBar,
355
- Kp as Sector,
356
- Ha as Select,
354
+ ep as ResponsiveContainer,
355
+ Ga as ScrollArea,
356
+ Ra as ScrollBar,
357
+ op as Sector,
358
+ ka as Select,
357
359
  Va as SelectContent,
358
- ka as SelectGroup,
360
+ Ha as SelectGroup,
359
361
  Ea as SelectItem,
360
362
  Fa as SelectLabel,
361
363
  Na as SelectScrollDownButton,
@@ -375,64 +377,64 @@ export {
375
377
  on as SheetPortal,
376
378
  rn as SheetTitle,
377
379
  tn as SheetTrigger,
378
- wi as Sidebar,
379
- Gi as SidebarCollapseIcon,
380
- Ri as SidebarCollapseIconType,
381
- Bi as SidebarCollapsible,
382
- vi as SidebarContent,
380
+ Gi as Sidebar,
381
+ Ri as SidebarCollapseIcon,
382
+ vi as SidebarCollapseIconType,
383
+ ki as SidebarCollapsible,
384
+ Vi as SidebarContent,
383
385
  Hi as SidebarDrawer,
384
- Vi as SidebarFooter,
385
- ki as SidebarGroup,
386
- Ei as SidebarGroupAction,
387
- Fi as SidebarGroupContent,
388
- Ni as SidebarGroupLabel,
389
- Oi as SidebarGroupLabelSize,
390
- _i as SidebarGroupLabelVariant,
391
- zi as SidebarHeader,
392
- Wi as SidebarInput,
393
- Xi as SidebarInset,
394
- Yi as SidebarMenu,
395
- Ui as SidebarMenuAction,
396
- qi as SidebarMenuBadge,
397
- ji as SidebarMenuButton,
398
- Ji as SidebarMenuButtonSize,
399
- Ki as SidebarMenuButtonVariant,
400
- Qi as SidebarMenuCollapsible,
401
- Zi as SidebarMenuCollapsibleContent,
402
- $i as SidebarMenuCollapsibleTrigger,
403
- ep as SidebarMenuItem,
404
- op as SidebarMenuSkeleton,
405
- rp as SidebarMenuSub,
406
- tp as SidebarMenuSubButton,
407
- ap as SidebarMenuSubButtonSize,
408
- np as SidebarMenuSubItem,
409
- ip as SidebarMenuSubVariant,
410
- pp as SidebarProvider,
411
- lp as SidebarRail,
412
- up as SidebarSeparator,
413
- dp as SidebarSide,
414
- bp as SidebarTrigger,
415
- Cp as SidebarVariant,
386
+ Ei as SidebarFooter,
387
+ Fi as SidebarGroup,
388
+ Ni as SidebarGroupAction,
389
+ Oi as SidebarGroupContent,
390
+ _i as SidebarGroupLabel,
391
+ zi as SidebarGroupLabelSize,
392
+ Wi as SidebarGroupLabelVariant,
393
+ Xi as SidebarHeader,
394
+ Yi as SidebarInput,
395
+ Ui as SidebarInset,
396
+ qi as SidebarMenu,
397
+ ji as SidebarMenuAction,
398
+ Ji as SidebarMenuBadge,
399
+ Ki as SidebarMenuButton,
400
+ Qi as SidebarMenuButtonSize,
401
+ Zi as SidebarMenuButtonVariant,
402
+ $i as SidebarMenuCollapsible,
403
+ el as SidebarMenuCollapsibleContent,
404
+ ol as SidebarMenuCollapsibleTrigger,
405
+ rl as SidebarMenuItem,
406
+ tl as SidebarMenuSkeleton,
407
+ al as SidebarMenuSub,
408
+ nl as SidebarMenuSubButton,
409
+ il as SidebarMenuSubButtonSize,
410
+ ll as SidebarMenuSubItem,
411
+ pl as SidebarMenuSubVariant,
412
+ ul as SidebarProvider,
413
+ bl as SidebarRail,
414
+ dl as SidebarSeparator,
415
+ Cl as SidebarSide,
416
+ ml as SidebarTrigger,
417
+ gl as SidebarVariant,
416
418
  nn as Skeleton,
417
- ln as Slider,
418
- dn as Sonner,
419
+ pn as Slider,
420
+ bn as Sonner,
419
421
  mn as SplitLayout,
420
422
  gn as SplitLayoutContentLeft,
421
423
  Sn as SplitLayoutContentRight,
422
424
  sn as SplitLayoutHeader,
423
425
  xn as SplitLayoutImage,
424
- cn as Switch,
425
- Mn as Table,
426
- fn as TableBody,
427
- In as TableCaption,
426
+ Dn as Switch,
427
+ fn as Table,
428
+ In as TableBody,
429
+ Mn as TableCaption,
428
430
  hn as TableCell,
429
431
  Ln as TableFooter,
430
432
  Pn as TableHead,
431
433
  yn as TableHeader,
432
434
  An as TableRow,
433
- Gn as Tabs,
434
- Rn as TabsContent,
435
- Bn as TabsList,
435
+ Bn as Tabs,
436
+ Gn as TabsContent,
437
+ Rn as TabsList,
436
438
  vn as TabsTrigger,
437
439
  Vn as TextRevealMotion,
438
440
  En as Textarea,
@@ -454,35 +456,38 @@ export {
454
456
  ai as TypographyLead,
455
457
  ni as TypographyList,
456
458
  ii as TypographyMuted,
457
- pi as TypographyP,
458
- li as TypographySmall,
459
- Di as VirtualizedDataTable,
460
- Qp as XAxis,
461
- Zp as YAxis,
459
+ li as TypographyP,
460
+ pi as TypographySmall,
461
+ Ii as VirtualizedDataTable,
462
+ rp as XAxis,
463
+ tp as YAxis,
462
464
  g as alertVariants,
463
465
  ui as blockquoteVariants,
464
466
  ma as calculatePasswordStrength,
465
467
  $ as calloutVariants,
466
- Ge as chipVariants,
467
- Ip as cn,
468
+ Be as chipVariants,
469
+ Al as cn,
468
470
  Lr as fieldLegendVariants,
469
- xp as getMobileBreakpoint,
471
+ Dl as getBreakpointValue,
472
+ cl as getMobileBreakpoint,
470
473
  Ur as inputChipInputVariants,
471
474
  qr as inputChipVariants,
472
475
  et as inputGroupButtonVariants,
473
476
  ot as inputGroupVariants,
474
477
  _r as inputVariants,
475
- Tp as isMobileViewport,
478
+ fl as isBelowBreakpoint,
479
+ Il as isMobileViewport,
476
480
  ht as itemVariants,
477
481
  mt as labelVariants,
478
- bn as sonner,
482
+ dn as sonner,
479
483
  On as toggleVariants,
480
484
  Mi as useDataTable,
481
- Sp as useDebounce,
485
+ xl as useDebounce,
482
486
  jr as useInputChipContext,
483
- yi as useInputListContext,
484
- cp as useIsMobile,
487
+ wi as useInputListContext,
488
+ Ml as useIsBelowBreakpoint,
489
+ hl as useIsMobile,
485
490
  ia as usePagination,
486
- Mp as usePrefersReducedMotion,
487
- mp as useSidebar
491
+ Pl as usePrefersReducedMotion,
492
+ Sl as useSidebar
488
493
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),m=require("react"),p=require("@radix-ui/react-scroll-area"),d=require("@brightlocal/ui-components/lib/utils");function u(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,l.get?l:{enumerable:!0,get:()=>e[a]})}}return r.default=e,Object.freeze(r)}const b=u(m),o=u(p),f=b.forwardRef(({className:e,children:r,dataHook:a,trackingEl:l,trackingLabel:c,...s},n)=>t.jsxs(o.Root,{ref:n,className:d.cn("relative",e),"data-hook":a,"data-slot":"scroll-area","data-tracking-el":l,"data-tracking-label":c,...s,children:[t.jsx(o.Viewport,{className:"focus-visible:shadow-default size-full rounded-[inherit] p-1 transition-[color,box-shadow] outline-none","data-slot":"scroll-area-viewport",tabIndex:0,children:r}),t.jsx(i,{}),t.jsx(o.Corner,{})]}));f.displayName="ScrollArea";const i=b.forwardRef(({className:e,orientation:r="vertical",dataHook:a,trackingEl:l,trackingLabel:c,...s},n)=>t.jsx(o.ScrollAreaScrollbar,{ref:n,className:d.cn("flex touch-none p-px transition-colors select-none",r==="vertical"&&"h-full w-2.5 border-l border-l-transparent",r==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),"data-hook":a,"data-slot":"scroll-area-scrollbar","data-tracking-el":l,"data-tracking-label":c,orientation:r,...s,children:t.jsx(o.ScrollAreaThumb,{className:"bg-border relative flex-1 rounded-full","data-slot":"scroll-area-thumb"})}));i.displayName="ScrollBar";exports.ScrollArea=f;exports.ScrollBar=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),p=require("react"),h=require("@radix-ui/react-scroll-area"),d=require("@brightlocal/ui-components/lib/utils");function u(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,l.get?l:{enumerable:!0,get:()=>e[a]})}}return r.default=e,Object.freeze(r)}const b=u(p),o=u(h),f=b.forwardRef(({className:e,children:r,dataHook:a,trackingEl:l,trackingLabel:n,scrollOrientation:s="vertical",...i},m)=>t.jsxs(o.Root,{ref:m,className:d.cn("relative",e),"data-hook":a,"data-slot":"scroll-area","data-tracking-el":l,"data-tracking-label":n,...i,children:[t.jsx(o.Viewport,{className:"focus-visible:shadow-default size-full rounded-[inherit] p-1 transition-[color,box-shadow] outline-none","data-slot":"scroll-area-viewport",tabIndex:0,children:r}),t.jsx(c,{}),s==="both"&&t.jsx(c,{orientation:"horizontal"}),t.jsx(o.Corner,{})]}));f.displayName="ScrollArea";const c=b.forwardRef(({className:e,orientation:r="vertical",dataHook:a,trackingEl:l,trackingLabel:n,...s},i)=>t.jsx(o.ScrollAreaScrollbar,{ref:i,className:d.cn("flex touch-none p-px transition-colors select-none",r==="vertical"&&"h-full w-2.5 border-l border-l-transparent",r==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),"data-hook":a,"data-slot":"scroll-area-scrollbar","data-tracking-el":l,"data-tracking-label":n,orientation:r,...s,children:t.jsx(o.ScrollAreaThumb,{className:"bg-border relative flex-1 rounded-full","data-slot":"scroll-area-thumb"})}));c.displayName="ScrollBar";exports.ScrollArea=f;exports.ScrollBar=c;