@brightlocal/ui-components 2.8.0 → 2.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/component-meta.json +1 -1
- package/dist/alert.cjs +1 -1
- package/dist/alert.js +1 -1
- package/dist/blocks/sidebar.cjs +1 -1
- package/dist/blocks/sidebar.d.ts +39 -21
- package/dist/blocks/sidebar.d.ts.map +1 -1
- package/dist/blocks/sidebar.js +379 -425
- package/dist/callout.cjs +1 -1
- package/dist/callout.js +1 -1
- package/dist/card.cjs +1 -1
- package/dist/card.js +11 -11
- package/dist/combobox.cjs +3 -3
- package/dist/combobox.d.ts +24 -3
- package/dist/combobox.d.ts.map +1 -1
- package/dist/combobox.js +327 -302
- package/dist/global-layout.cjs +1 -1
- package/dist/global-layout.d.ts +3 -7
- package/dist/global-layout.d.ts.map +1 -1
- package/dist/global-layout.js +85 -81
- package/dist/hooks/use-breakpoint.cjs +1 -0
- package/dist/hooks/use-breakpoint.d.ts +15 -0
- package/dist/hooks/use-breakpoint.d.ts.map +1 -0
- package/dist/hooks/use-breakpoint.js +30 -0
- package/dist/hooks/use-mobile.d.ts +13 -3
- package/dist/hooks/use-mobile.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +124 -121
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.d.ts +5 -0
- package/dist/scroll-area.d.ts.map +1 -1
- package/dist/scroll-area.js +34 -25
- package/package.json +1 -1
- package/src/blocks/sidebar.tsx +134 -148
- package/src/components/alert.tsx +1 -1
- package/src/components/callout.tsx +1 -1
- package/src/components/card.tsx +1 -1
- package/src/components/combobox.tsx +72 -11
- package/src/components/global-layout.tsx +46 -45
- package/src/components/scroll-area.tsx +15 -1
- package/src/hooks/use-breakpoint.ts +58 -0
- package/src/hooks/use-mobile.ts +20 -40
- package/src/index.ts +1 -0
- package/dist/hooks/use-mobile.cjs +0 -1
- package/dist/hooks/use-mobile.js +0 -26
package/dist/index.js
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import { Accordion as r, AccordionContent as t, AccordionItem as a, AccordionTrigger as n } from "./accordion.js";
|
|
2
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
|
|
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
|
|
6
|
-
import { Badge as
|
|
7
|
-
import { Breadcrumb as
|
|
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
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
12
|
import { Carousel as ue, CarouselContent as be, CarouselDots as de, CarouselItem as Ce, CarouselNext as me, CarouselPrevious as ge } from "./carousel.js";
|
|
13
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
|
|
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
|
|
17
|
-
import { Collapsible as
|
|
18
|
-
import { Combobox as
|
|
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
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
|
|
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
|
|
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
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
|
|
27
|
-
import { GlobalLayout as yr, GlobalLayoutContent as Ar, GlobalLayoutContentBody as
|
|
28
|
-
import { Header as
|
|
29
|
-
import { HoverCard as
|
|
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
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 Dt, ItemDescription as ct, ItemMedia as ft, ItemTitle as
|
|
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
|
|
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
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
43
|
import { Progress as ca } from "./progress.js";
|
|
44
|
-
import { RadioGroup as
|
|
44
|
+
import { RadioGroup as Ia, RadioGroupItem as Ma } from "./radio-group.js";
|
|
45
45
|
import { Rating as La } from "./rating.js";
|
|
46
|
-
import { ResizableHandle as ya, ResizablePanel as Aa, ResizablePanelGroup as
|
|
47
|
-
import { ScrollArea as
|
|
48
|
-
import { Select as
|
|
46
|
+
import { ResizableHandle as ya, ResizablePanel as Aa, ResizablePanelGroup as wa } from "./resizable.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";
|
|
@@ -53,23 +53,23 @@ import { Slider as pn } from "./slider.js";
|
|
|
53
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
55
|
import { Switch as Dn } from "./switch.js";
|
|
56
|
-
import { Table as fn, TableBody as
|
|
57
|
-
import { Tabs as
|
|
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
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
|
|
65
|
-
import { InputList as Li, InputListAddButton as Pi, InputListInput as yi, InputListItems as Ai, useInputListContext as
|
|
66
|
-
import { Sidebar as
|
|
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
67
|
import { useDebounce as xl } from "./hooks/use-debounce.js";
|
|
68
|
-
import {
|
|
69
|
-
import { usePrefersReducedMotion as
|
|
70
|
-
import { cn as
|
|
71
|
-
import { Area as
|
|
72
|
-
import { REGEXP_ONLY_CHARS as
|
|
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,
|
|
@@ -84,8 +84,8 @@ export {
|
|
|
84
84
|
D as AlertDialogContent,
|
|
85
85
|
c as AlertDialogDescription,
|
|
86
86
|
f as AlertDialogFooter,
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
I as AlertDialogHeader,
|
|
88
|
+
M as AlertDialogOverlay,
|
|
89
89
|
h as AlertDialogPortal,
|
|
90
90
|
L as AlertDialogTitle,
|
|
91
91
|
P as AlertDialogTrigger,
|
|
@@ -93,16 +93,16 @@ export {
|
|
|
93
93
|
d as AlertSuccess,
|
|
94
94
|
C as AlertTitle,
|
|
95
95
|
m as AlertWarning,
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
Bl as Area,
|
|
97
|
+
Gl as AreaChart,
|
|
98
98
|
A as AspectRatio,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
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,
|
|
@@ -129,26 +129,26 @@ export {
|
|
|
129
129
|
Ce as CarouselItem,
|
|
130
130
|
me as CarouselNext,
|
|
131
131
|
ge as CarouselPrevious,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
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
|
-
|
|
138
|
+
Hl as ChartLabel,
|
|
139
139
|
xe as ChartLegend,
|
|
140
140
|
Te as ChartLegendContent,
|
|
141
141
|
De as ChartStyle,
|
|
142
142
|
ce as ChartTooltip,
|
|
143
143
|
fe as ChartTooltipContent,
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
El as ChartsLegend,
|
|
145
|
+
Fl as ChartsTooltip,
|
|
146
146
|
ye as Checkbox,
|
|
147
|
-
|
|
148
|
-
|
|
147
|
+
we as Chip,
|
|
148
|
+
Re as Collapsible,
|
|
149
149
|
ve as CollapsibleContent,
|
|
150
|
-
|
|
151
|
-
|
|
150
|
+
ke as CollapsibleTrigger,
|
|
151
|
+
He as Combobox,
|
|
152
152
|
Ee as ComboboxContent,
|
|
153
153
|
Fe as ComboboxEmpty,
|
|
154
154
|
Ne as ComboboxGroup,
|
|
@@ -178,12 +178,12 @@ export {
|
|
|
178
178
|
Do as ContextMenuRadioGroup,
|
|
179
179
|
co as ContextMenuRadioItem,
|
|
180
180
|
fo as ContextMenuSeparator,
|
|
181
|
-
|
|
182
|
-
|
|
181
|
+
Io as ContextMenuShortcut,
|
|
182
|
+
Mo as ContextMenuSub,
|
|
183
183
|
ho as ContextMenuSubContent,
|
|
184
184
|
Lo as ContextMenuSubTrigger,
|
|
185
185
|
Po as ContextMenuTrigger,
|
|
186
|
-
|
|
186
|
+
Nl as Customized,
|
|
187
187
|
ao as DEFAULT_DATE_PRESETS,
|
|
188
188
|
pa as DEFAULT_STRENGTH_LEVELS,
|
|
189
189
|
di as DataTable,
|
|
@@ -203,13 +203,13 @@ export {
|
|
|
203
203
|
po as DatePickerRoot,
|
|
204
204
|
uo as DatePickerTrigger,
|
|
205
205
|
Ao as Description,
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
206
|
+
Bo as Dialog,
|
|
207
|
+
Go as DialogClose,
|
|
208
|
+
Ro as DialogContent,
|
|
209
209
|
vo as DialogDescription,
|
|
210
|
-
|
|
210
|
+
ko as DialogFooter,
|
|
211
211
|
Vo as DialogHeader,
|
|
212
|
-
|
|
212
|
+
Ho as DialogOverlay,
|
|
213
213
|
Eo as DialogPortal,
|
|
214
214
|
Fo as DialogTitle,
|
|
215
215
|
No as DialogTrigger,
|
|
@@ -246,17 +246,17 @@ export {
|
|
|
246
246
|
Dr as FieldError,
|
|
247
247
|
cr as FieldErrorIcon,
|
|
248
248
|
fr as FieldGroup,
|
|
249
|
-
|
|
250
|
-
|
|
249
|
+
Ir as FieldLabel,
|
|
250
|
+
Mr as FieldLegend,
|
|
251
251
|
hr as FieldSet,
|
|
252
252
|
yr as GlobalLayout,
|
|
253
253
|
Ar as GlobalLayoutContent,
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
254
|
+
wr as GlobalLayoutContentBody,
|
|
255
|
+
Br as GlobalLayoutContentHeader,
|
|
256
|
+
Gr as GlobalLayoutMobileHeader,
|
|
257
|
+
Rr as GlobalLayoutSidebar,
|
|
258
|
+
kr as Header,
|
|
259
|
+
Hr as HoverCard,
|
|
260
260
|
Er as HoverCardContent,
|
|
261
261
|
Fr as HoverCardTrigger,
|
|
262
262
|
Or as Input,
|
|
@@ -288,23 +288,23 @@ export {
|
|
|
288
288
|
Dt as ItemContent,
|
|
289
289
|
ct as ItemDescription,
|
|
290
290
|
ft as ItemMedia,
|
|
291
|
-
|
|
291
|
+
It as ItemTitle,
|
|
292
292
|
Ct as Label,
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
293
|
+
Ol as LabelList,
|
|
294
|
+
_l as Line,
|
|
295
|
+
zl as LineChart,
|
|
296
296
|
St as Link,
|
|
297
|
-
|
|
297
|
+
Mt as List,
|
|
298
298
|
Pt as Logo,
|
|
299
299
|
At as Menubar,
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
300
|
+
wt as MenubarCheckboxItem,
|
|
301
|
+
Bt as MenubarContent,
|
|
302
|
+
Gt as MenubarItem,
|
|
303
|
+
Rt as MenubarLabel,
|
|
304
304
|
vt as MenubarMenu,
|
|
305
|
-
|
|
305
|
+
kt as MenubarRadioGroup,
|
|
306
306
|
Vt as MenubarRadioItem,
|
|
307
|
-
|
|
307
|
+
Ht as MenubarSeparator,
|
|
308
308
|
Et as MenubarShortcut,
|
|
309
309
|
Ft as MenubarSub,
|
|
310
310
|
Nt as MenubarSubContent,
|
|
@@ -326,38 +326,38 @@ export {
|
|
|
326
326
|
ta as PaginationLink,
|
|
327
327
|
aa as PaginationNext,
|
|
328
328
|
na as PaginationPrevious,
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
329
|
+
Wl as Pie,
|
|
330
|
+
Xl as PieChart,
|
|
331
|
+
Yl as PolarAngleAxis,
|
|
332
|
+
Ul as PolarGrid,
|
|
333
|
+
ql as PolarRadiusAxis,
|
|
334
334
|
Sa as Popover,
|
|
335
335
|
sa as PopoverAnchor,
|
|
336
336
|
xa as PopoverContent,
|
|
337
337
|
Ta as PopoverTrigger,
|
|
338
338
|
ca as Progress,
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
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,
|
|
348
348
|
La as Rating,
|
|
349
|
-
|
|
350
|
-
|
|
349
|
+
Zl as Rectangle,
|
|
350
|
+
$l as ReferenceLine,
|
|
351
351
|
ya as ResizableHandle,
|
|
352
352
|
Aa as ResizablePanel,
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
353
|
+
wa as ResizablePanelGroup,
|
|
354
|
+
ep as ResponsiveContainer,
|
|
355
|
+
Ga as ScrollArea,
|
|
356
|
+
Ra as ScrollBar,
|
|
357
|
+
op as Sector,
|
|
358
|
+
ka as Select,
|
|
359
359
|
Va as SelectContent,
|
|
360
|
-
|
|
360
|
+
Ha as SelectGroup,
|
|
361
361
|
Ea as SelectItem,
|
|
362
362
|
Fa as SelectLabel,
|
|
363
363
|
Na as SelectScrollDownButton,
|
|
@@ -377,12 +377,12 @@ export {
|
|
|
377
377
|
on as SheetPortal,
|
|
378
378
|
rn as SheetTitle,
|
|
379
379
|
tn as SheetTrigger,
|
|
380
|
-
|
|
381
|
-
|
|
380
|
+
Gi as Sidebar,
|
|
381
|
+
Ri as SidebarCollapseIcon,
|
|
382
382
|
vi as SidebarCollapseIconType,
|
|
383
|
-
|
|
383
|
+
ki as SidebarCollapsible,
|
|
384
384
|
Vi as SidebarContent,
|
|
385
|
-
|
|
385
|
+
Hi as SidebarDrawer,
|
|
386
386
|
Ei as SidebarFooter,
|
|
387
387
|
Fi as SidebarGroup,
|
|
388
388
|
Ni as SidebarGroupAction,
|
|
@@ -425,16 +425,16 @@ export {
|
|
|
425
425
|
xn as SplitLayoutImage,
|
|
426
426
|
Dn as Switch,
|
|
427
427
|
fn as Table,
|
|
428
|
-
|
|
429
|
-
|
|
428
|
+
In as TableBody,
|
|
429
|
+
Mn as TableCaption,
|
|
430
430
|
hn as TableCell,
|
|
431
431
|
Ln as TableFooter,
|
|
432
432
|
Pn as TableHead,
|
|
433
433
|
yn as TableHeader,
|
|
434
434
|
An as TableRow,
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
435
|
+
Bn as Tabs,
|
|
436
|
+
Gn as TabsContent,
|
|
437
|
+
Rn as TabsList,
|
|
438
438
|
vn as TabsTrigger,
|
|
439
439
|
Vn as TextRevealMotion,
|
|
440
440
|
En as Textarea,
|
|
@@ -458,33 +458,36 @@ export {
|
|
|
458
458
|
ii as TypographyMuted,
|
|
459
459
|
li as TypographyP,
|
|
460
460
|
pi as TypographySmall,
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
461
|
+
Ii as VirtualizedDataTable,
|
|
462
|
+
rp as XAxis,
|
|
463
|
+
tp as YAxis,
|
|
464
464
|
g as alertVariants,
|
|
465
465
|
ui as blockquoteVariants,
|
|
466
466
|
ma as calculatePasswordStrength,
|
|
467
467
|
$ as calloutVariants,
|
|
468
|
-
|
|
469
|
-
|
|
468
|
+
Be as chipVariants,
|
|
469
|
+
Al as cn,
|
|
470
470
|
Lr as fieldLegendVariants,
|
|
471
|
-
Dl as
|
|
471
|
+
Dl as getBreakpointValue,
|
|
472
|
+
cl as getMobileBreakpoint,
|
|
472
473
|
Ur as inputChipInputVariants,
|
|
473
474
|
qr as inputChipVariants,
|
|
474
475
|
et as inputGroupButtonVariants,
|
|
475
476
|
ot as inputGroupVariants,
|
|
476
477
|
_r as inputVariants,
|
|
477
|
-
|
|
478
|
+
fl as isBelowBreakpoint,
|
|
479
|
+
Il as isMobileViewport,
|
|
478
480
|
ht as itemVariants,
|
|
479
481
|
mt as labelVariants,
|
|
480
482
|
dn as sonner,
|
|
481
483
|
On as toggleVariants,
|
|
482
|
-
|
|
484
|
+
Mi as useDataTable,
|
|
483
485
|
xl as useDebounce,
|
|
484
486
|
jr as useInputChipContext,
|
|
485
|
-
|
|
486
|
-
|
|
487
|
+
wi as useInputListContext,
|
|
488
|
+
Ml as useIsBelowBreakpoint,
|
|
489
|
+
hl as useIsMobile,
|
|
487
490
|
ia as usePagination,
|
|
488
|
-
|
|
491
|
+
Pl as usePrefersReducedMotion,
|
|
489
492
|
Sl as useSidebar
|
|
490
493
|
};
|
package/dist/scroll-area.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),
|
|
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;
|
package/dist/scroll-area.d.ts
CHANGED
|
@@ -16,6 +16,11 @@ interface ScrollAreaProps extends React.ComponentProps<typeof ScrollAreaPrimitiv
|
|
|
16
16
|
* Tracking label for analytics context
|
|
17
17
|
*/
|
|
18
18
|
trackingLabel?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Scrollbar orientation. "vertical" shows only vertical, "both" adds horizontal.
|
|
21
|
+
* @default "vertical"
|
|
22
|
+
*/
|
|
23
|
+
scrollOrientation?: "vertical" | "both";
|
|
19
24
|
}
|
|
20
25
|
/**
|
|
21
26
|
* ScrollArea provides a styled scrollable viewport with custom scrollbars.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scroll-area.d.ts","sourceRoot":"","sources":["../../src/components/scroll-area.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAC;AAGnE;;GAEG;AACH,UAAU,eAAgB,SAAQ,KAAK,CAAC,cAAc,CACpD,OAAO,mBAAmB,CAAC,IAAI,CAChC;IACC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"scroll-area.d.ts","sourceRoot":"","sources":["../../src/components/scroll-area.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAC;AAGnE;;GAEG;AACH,UAAU,eAAgB,SAAQ,KAAK,CAAC,cAAc,CACpD,OAAO,mBAAmB,CAAC,IAAI,CAChC;IACC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;CACzC;AAED;;;GAGG;AACH,QAAA,MAAM,UAAU,qGAuCf,CAAC;AAIF;;GAEG;AACH,UAAU,cAAe,SAAQ,KAAK,CAAC,cAAc,CACnD,OAAO,mBAAmB,CAAC,mBAAmB,CAC/C;IACC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,WAAW,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;CACzC;AAED;;GAEG;AACH,QAAA,MAAM,SAAS,oGAwCd,CAAC;AAIF,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC;AAEjC,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,CAAC"}
|
package/dist/scroll-area.js
CHANGED
|
@@ -1,60 +1,69 @@
|
|
|
1
|
-
import { jsxs as f, jsx as
|
|
2
|
-
import * as
|
|
1
|
+
import { jsxs as f, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import * as d from "react";
|
|
3
3
|
import * as l from "@radix-ui/react-scroll-area";
|
|
4
|
-
import { cn as
|
|
5
|
-
const
|
|
6
|
-
({
|
|
4
|
+
import { cn as m } from "@brightlocal/ui-components/lib/utils";
|
|
5
|
+
const h = d.forwardRef(
|
|
6
|
+
({
|
|
7
|
+
className: o,
|
|
8
|
+
children: a,
|
|
9
|
+
dataHook: e,
|
|
10
|
+
trackingEl: t,
|
|
11
|
+
trackingLabel: s,
|
|
12
|
+
scrollOrientation: c = "vertical",
|
|
13
|
+
...i
|
|
14
|
+
}, b) => /* @__PURE__ */ f(
|
|
7
15
|
l.Root,
|
|
8
16
|
{
|
|
9
|
-
ref:
|
|
10
|
-
className:
|
|
17
|
+
ref: b,
|
|
18
|
+
className: m("relative", o),
|
|
11
19
|
"data-hook": e,
|
|
12
20
|
"data-slot": "scroll-area",
|
|
13
21
|
"data-tracking-el": t,
|
|
14
22
|
"data-tracking-label": s,
|
|
15
|
-
...
|
|
23
|
+
...i,
|
|
16
24
|
children: [
|
|
17
|
-
/* @__PURE__ */
|
|
25
|
+
/* @__PURE__ */ r(
|
|
18
26
|
l.Viewport,
|
|
19
27
|
{
|
|
20
28
|
className: "focus-visible:shadow-default size-full rounded-[inherit] p-1 transition-[color,box-shadow] outline-none",
|
|
21
29
|
"data-slot": "scroll-area-viewport",
|
|
22
30
|
tabIndex: 0,
|
|
23
|
-
children:
|
|
31
|
+
children: a
|
|
24
32
|
}
|
|
25
33
|
),
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */
|
|
34
|
+
/* @__PURE__ */ r(n, {}),
|
|
35
|
+
c === "both" && /* @__PURE__ */ r(n, { orientation: "horizontal" }),
|
|
36
|
+
/* @__PURE__ */ r(l.Corner, {})
|
|
28
37
|
]
|
|
29
38
|
}
|
|
30
39
|
)
|
|
31
40
|
);
|
|
32
|
-
|
|
33
|
-
const
|
|
41
|
+
h.displayName = "ScrollArea";
|
|
42
|
+
const n = d.forwardRef(
|
|
34
43
|
({
|
|
35
44
|
className: o,
|
|
36
|
-
orientation:
|
|
45
|
+
orientation: a = "vertical",
|
|
37
46
|
dataHook: e,
|
|
38
47
|
trackingEl: t,
|
|
39
48
|
trackingLabel: s,
|
|
40
49
|
...c
|
|
41
|
-
},
|
|
50
|
+
}, i) => /* @__PURE__ */ r(
|
|
42
51
|
l.ScrollAreaScrollbar,
|
|
43
52
|
{
|
|
44
|
-
ref:
|
|
45
|
-
className:
|
|
53
|
+
ref: i,
|
|
54
|
+
className: m(
|
|
46
55
|
"flex touch-none p-px transition-colors select-none",
|
|
47
|
-
|
|
48
|
-
|
|
56
|
+
a === "vertical" && "h-full w-2.5 border-l border-l-transparent",
|
|
57
|
+
a === "horizontal" && "h-2.5 flex-col border-t border-t-transparent",
|
|
49
58
|
o
|
|
50
59
|
),
|
|
51
60
|
"data-hook": e,
|
|
52
61
|
"data-slot": "scroll-area-scrollbar",
|
|
53
62
|
"data-tracking-el": t,
|
|
54
63
|
"data-tracking-label": s,
|
|
55
|
-
orientation:
|
|
64
|
+
orientation: a,
|
|
56
65
|
...c,
|
|
57
|
-
children: /* @__PURE__ */
|
|
66
|
+
children: /* @__PURE__ */ r(
|
|
58
67
|
l.ScrollAreaThumb,
|
|
59
68
|
{
|
|
60
69
|
className: "bg-border relative flex-1 rounded-full",
|
|
@@ -64,8 +73,8 @@ const m = i.forwardRef(
|
|
|
64
73
|
}
|
|
65
74
|
)
|
|
66
75
|
);
|
|
67
|
-
|
|
76
|
+
n.displayName = "ScrollBar";
|
|
68
77
|
export {
|
|
69
|
-
|
|
70
|
-
|
|
78
|
+
h as ScrollArea,
|
|
79
|
+
n as ScrollBar
|
|
71
80
|
};
|