@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.
- package/component-meta.json +6 -4
- package/dist/alert.cjs +1 -1
- package/dist/alert.js +1 -1
- package/dist/blocks/data-table.cjs +1 -1
- package/dist/blocks/data-table.d.ts +74 -26
- package/dist/blocks/data-table.d.ts.map +1 -1
- package/dist/blocks/data-table.js +318 -296
- 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 -3
- package/dist/global-layout.d.ts.map +1 -1
- package/dist/global-layout.js +90 -82
- 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 +220 -215
- 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/dist/split-layout.cjs +1 -1
- package/dist/split-layout.d.ts +15 -0
- package/dist/split-layout.d.ts.map +1 -1
- package/dist/split-layout.js +40 -38
- package/package.json +3 -3
- package/src/blocks/data-table.tsx +139 -76
- 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 +49 -40
- package/src/components/scroll-area.tsx +15 -1
- package/src/components/split-layout.tsx +19 -2
- 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,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
|
|
3
|
-
import { AlertDialog as s, AlertDialogAction as x, AlertDialogCancel as T, AlertDialogContent as
|
|
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
|
|
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
|
-
import { Card as oe, CardAction as re, CardContent as te, CardDescription as ae, CardFooter as ne, CardHeader as ie, CardTitle as
|
|
12
|
-
import { Carousel as ue, CarouselContent as
|
|
13
|
-
import { ChartContainer as se, ChartLegend as xe, ChartLegendContent as Te, ChartStyle as
|
|
14
|
-
import { CentredLayout as
|
|
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
|
|
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
|
-
import { DEFAULT_DATE_PRESETS as ao, DatePickerCalendar as no, DatePickerContent as io, DatePickerPresets 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
|
|
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
|
|
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
|
|
26
|
-
import { Field as sr, FieldContent as xr, FieldDescription as Tr, FieldError as
|
|
27
|
-
import { GlobalLayout as yr, GlobalLayoutContent as Ar, GlobalLayoutContentBody as wr, GlobalLayoutContentHeader as
|
|
28
|
-
import { Header as
|
|
29
|
-
import { HoverCard as
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
44
|
-
import { RadioGroup as
|
|
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
|
|
48
|
-
import { Select as
|
|
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
|
|
53
|
-
import { Sonner as
|
|
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
|
|
56
|
-
import { Table as
|
|
57
|
-
import { Tabs as
|
|
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
|
|
64
|
-
import { DataTable as
|
|
65
|
-
import { InputList as
|
|
66
|
-
import { Sidebar as
|
|
67
|
-
import { useDebounce as
|
|
68
|
-
import {
|
|
69
|
-
import { usePrefersReducedMotion as
|
|
70
|
-
import { cn as
|
|
71
|
-
import { Area as
|
|
72
|
-
import { REGEXP_ONLY_CHARS as
|
|
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
|
-
|
|
79
|
-
|
|
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
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
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
|
-
|
|
93
|
-
|
|
92
|
+
b as AlertInfo,
|
|
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,
|
|
@@ -122,33 +122,33 @@ export {
|
|
|
122
122
|
ae as CardDescription,
|
|
123
123
|
ne as CardFooter,
|
|
124
124
|
ie as CardHeader,
|
|
125
|
-
|
|
125
|
+
le as CardTitle,
|
|
126
126
|
ue as Carousel,
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
be as CarouselContent,
|
|
128
|
+
de as CarouselDots,
|
|
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
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
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
|
-
|
|
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,
|
|
@@ -175,39 +175,41 @@ export {
|
|
|
175
175
|
so as ContextMenuItem,
|
|
176
176
|
xo as ContextMenuLabel,
|
|
177
177
|
To as ContextMenuPortal,
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
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
|
-
|
|
186
|
+
Nl as Customized,
|
|
187
187
|
ao as DEFAULT_DATE_PRESETS,
|
|
188
|
-
|
|
189
|
-
|
|
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
|
|
195
|
-
xi as
|
|
196
|
-
Ti as
|
|
197
|
-
|
|
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
|
-
|
|
201
|
-
|
|
202
|
+
lo as DatePickerPresets,
|
|
203
|
+
po as DatePickerRoot,
|
|
202
204
|
uo as DatePickerTrigger,
|
|
203
205
|
Ao as Description,
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
206
|
+
Bo as Dialog,
|
|
207
|
+
Go as DialogClose,
|
|
208
|
+
Ro as DialogContent,
|
|
207
209
|
vo as DialogDescription,
|
|
208
|
-
|
|
210
|
+
ko as DialogFooter,
|
|
209
211
|
Vo as DialogHeader,
|
|
210
|
-
|
|
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
|
-
|
|
234
|
-
|
|
235
|
+
lr as DropdownMenuRadioItem,
|
|
236
|
+
pr as DropdownMenuSeparator,
|
|
235
237
|
ur as DropdownMenuShortcut,
|
|
236
|
-
|
|
237
|
-
|
|
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
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
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
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
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
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
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
|
-
|
|
277
|
-
|
|
278
|
+
lt as InputOTPSimple,
|
|
279
|
+
pt as InputOTPSlot,
|
|
278
280
|
ut as InputOTPWithSeparator,
|
|
279
|
-
|
|
281
|
+
bt as InputOTPWithSpacing,
|
|
280
282
|
ua as InputPasswordField,
|
|
281
|
-
|
|
282
|
-
|
|
283
|
+
ba as InputPasswordRoot,
|
|
284
|
+
da as InputPasswordStrength,
|
|
283
285
|
Ca as InputPasswordToggle,
|
|
284
286
|
xt as Item,
|
|
285
287
|
Tt as ItemActions,
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
288
|
+
Dt as ItemContent,
|
|
289
|
+
ct as ItemDescription,
|
|
290
|
+
ft as ItemMedia,
|
|
291
|
+
It as ItemTitle,
|
|
290
292
|
Ct as Label,
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
293
|
+
Ol as LabelList,
|
|
294
|
+
_l as Line,
|
|
295
|
+
zl as LineChart,
|
|
294
296
|
St as Link,
|
|
295
|
-
|
|
297
|
+
Mt as List,
|
|
296
298
|
Pt as Logo,
|
|
297
299
|
At as Menubar,
|
|
298
300
|
wt as MenubarCheckboxItem,
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
301
|
+
Bt as MenubarContent,
|
|
302
|
+
Gt as MenubarItem,
|
|
303
|
+
Rt as MenubarLabel,
|
|
302
304
|
vt as MenubarMenu,
|
|
303
|
-
|
|
305
|
+
kt as MenubarRadioGroup,
|
|
304
306
|
Vt as MenubarRadioItem,
|
|
305
|
-
|
|
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
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
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
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
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
|
-
|
|
348
|
-
|
|
349
|
+
Zl as Rectangle,
|
|
350
|
+
$l as ReferenceLine,
|
|
349
351
|
ya as ResizableHandle,
|
|
350
352
|
Aa as ResizablePanel,
|
|
351
353
|
wa as ResizablePanelGroup,
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
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
|
-
|
|
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
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
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
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
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
|
-
|
|
418
|
-
|
|
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
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
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
|
-
|
|
434
|
-
|
|
435
|
-
|
|
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
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
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
|
-
|
|
467
|
-
|
|
468
|
+
Be as chipVariants,
|
|
469
|
+
Al as cn,
|
|
468
470
|
Lr as fieldLegendVariants,
|
|
469
|
-
|
|
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
|
-
|
|
478
|
+
fl as isBelowBreakpoint,
|
|
479
|
+
Il as isMobileViewport,
|
|
476
480
|
ht as itemVariants,
|
|
477
481
|
mt as labelVariants,
|
|
478
|
-
|
|
482
|
+
dn as sonner,
|
|
479
483
|
On as toggleVariants,
|
|
480
484
|
Mi as useDataTable,
|
|
481
|
-
|
|
485
|
+
xl as useDebounce,
|
|
482
486
|
jr as useInputChipContext,
|
|
483
|
-
|
|
484
|
-
|
|
487
|
+
wi as useInputListContext,
|
|
488
|
+
Ml as useIsBelowBreakpoint,
|
|
489
|
+
hl as useIsMobile,
|
|
485
490
|
ia as usePagination,
|
|
486
|
-
|
|
487
|
-
|
|
491
|
+
Pl as usePrefersReducedMotion,
|
|
492
|
+
Sl as useSidebar
|
|
488
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;
|