@brightlocal/ui-components 2.6.0 → 2.7.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 +4 -5
- package/dist/blocks/data-table.cjs +1 -1
- package/dist/blocks/data-table.d.ts +110 -83
- package/dist/blocks/data-table.d.ts.map +1 -1
- package/dist/blocks/data-table.js +428 -389
- package/dist/blocks/sidebar.cjs +1 -1
- package/dist/blocks/sidebar.d.ts +4 -0
- package/dist/blocks/sidebar.d.ts.map +1 -1
- package/dist/blocks/sidebar.js +70 -70
- package/dist/global-layout.cjs +1 -1
- package/dist/global-layout.d.ts +6 -24
- package/dist/global-layout.d.ts.map +1 -1
- package/dist/global-layout.js +91 -92
- package/dist/index.cjs +1 -1
- package/dist/index.js +169 -173
- package/dist/table.cjs +1 -1
- package/dist/table.js +28 -28
- package/package.json +3 -3
- package/src/blocks/data-table.tsx +462 -293
- package/src/blocks/sidebar.tsx +6 -2
- package/src/components/global-layout.tsx +27 -58
- package/src/components/table.tsx +1 -1
package/dist/index.js
CHANGED
|
@@ -1,91 +1,90 @@
|
|
|
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 c, AlertDialogDescription as D, AlertDialogFooter as
|
|
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";
|
|
4
4
|
import { AspectRatio as A } from "./aspect-ratio.js";
|
|
5
|
-
import { Avatar as
|
|
5
|
+
import { Avatar as G, AvatarFallback as R, AvatarImage as B } from "./avatar.js";
|
|
6
6
|
import { Badge as H } from "./badge.js";
|
|
7
|
-
import { Breadcrumb as k, BreadcrumbEllipsis as E, BreadcrumbItem as F, BreadcrumbLink as
|
|
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";
|
|
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
|
|
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
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
|
|
13
|
+
import { ChartContainer as se, ChartLegend as xe, ChartLegendContent as Te, ChartStyle as ce, ChartTooltip as De, ChartTooltipContent as Me } from "./chart.js";
|
|
14
14
|
import { CentredLayout as Ie, CentredLayoutContent as he, CentredLayoutHeader as Le } from "./centred-layout.js";
|
|
15
15
|
import { Checkbox as ye } from "./checkbox.js";
|
|
16
|
-
import { Chip as
|
|
16
|
+
import { Chip as we, chipVariants as Ge } from "./chip.js";
|
|
17
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
|
|
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";
|
|
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 co, ContextMenuRadioItem as Do, ContextMenuSeparator as
|
|
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";
|
|
22
22
|
import { Description as Ao } from "./description.js";
|
|
23
|
-
import { Dialog as
|
|
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";
|
|
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 cr, FieldErrorIcon as Dr, FieldGroup as
|
|
27
|
-
import { GlobalLayout as yr, GlobalLayoutContent as Ar, GlobalLayoutContentBody 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 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
28
|
import { Header as Hr } from "./header.js";
|
|
29
29
|
import { HoverCard as kr, HoverCardContent as Er, HoverCardTrigger as Fr } from "./hover-card.js";
|
|
30
|
-
import { Input as
|
|
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 pt, InputOTPSlot as lt, InputOTPWithSeparator as ut, InputOTPWithSpacing as dt } 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
|
|
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";
|
|
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 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";
|
|
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 la, InputPasswordField as ua, InputPasswordRoot as da, InputPasswordStrength as ba, 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 Da } from "./progress.js";
|
|
44
|
-
import { RadioGroup as
|
|
44
|
+
import { RadioGroup as fa, RadioGroupItem as Ia } from "./radio-group.js";
|
|
45
45
|
import { Rating as La } from "./rating.js";
|
|
46
|
-
import { ResizableHandle as ya, ResizablePanel as Aa, ResizablePanelGroup as
|
|
46
|
+
import { ResizableHandle as ya, ResizablePanel as Aa, ResizablePanelGroup as wa } from "./resizable.js";
|
|
47
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
|
|
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";
|
|
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
|
|
52
|
+
import { Slider as ln } from "./slider.js";
|
|
53
53
|
import { Sonner as dn, sonner as bn } 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 cn } from "./switch.js";
|
|
56
|
-
import { Table as
|
|
57
|
-
import { Tabs as
|
|
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";
|
|
58
58
|
import { TextRevealMotion as Vn } from "./text-reveal-motion.js";
|
|
59
59
|
import { Textarea as En } from "./textarea.js";
|
|
60
|
-
import { Toggle as
|
|
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 bi, DataTableColumnHeader as Ci, DataTablePagination as mi,
|
|
65
|
-
import { InputList as
|
|
66
|
-
import { Sidebar as wi, SidebarCollapseIcon as
|
|
67
|
-
import { useDebounce as
|
|
68
|
-
import { getMobileBreakpoint as
|
|
69
|
-
import { usePrefersReducedMotion as
|
|
70
|
-
import { cn as
|
|
71
|
-
import { Area as
|
|
72
|
-
import { REGEXP_ONLY_CHARS as
|
|
73
|
-
import { createColumnHelper as np, flexRender as ip } from "@tanstack/react-table";
|
|
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";
|
|
74
73
|
export {
|
|
75
74
|
r as Accordion,
|
|
76
75
|
t as AccordionContent,
|
|
77
76
|
a as AccordionItem,
|
|
78
77
|
n as AccordionTrigger,
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
p as Alert,
|
|
79
|
+
l as AlertDescription,
|
|
81
80
|
u as AlertDestructive,
|
|
82
81
|
s as AlertDialog,
|
|
83
82
|
x as AlertDialogAction,
|
|
84
83
|
T as AlertDialogCancel,
|
|
85
84
|
c as AlertDialogContent,
|
|
86
85
|
D as AlertDialogDescription,
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
M as AlertDialogFooter,
|
|
87
|
+
f as AlertDialogHeader,
|
|
89
88
|
I as AlertDialogOverlay,
|
|
90
89
|
h as AlertDialogPortal,
|
|
91
90
|
L as AlertDialogTitle,
|
|
@@ -94,20 +93,20 @@ export {
|
|
|
94
93
|
b as AlertSuccess,
|
|
95
94
|
C as AlertTitle,
|
|
96
95
|
m as AlertWarning,
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
Lp as Area,
|
|
97
|
+
Pp as AreaChart,
|
|
99
98
|
A as AspectRatio,
|
|
100
|
-
|
|
99
|
+
G as Avatar,
|
|
101
100
|
R as AvatarFallback,
|
|
102
101
|
B as AvatarImage,
|
|
103
102
|
H as Badge,
|
|
104
|
-
|
|
105
|
-
|
|
103
|
+
yp as Bar,
|
|
104
|
+
Ap as BarChart,
|
|
106
105
|
k as Breadcrumb,
|
|
107
106
|
E as BreadcrumbEllipsis,
|
|
108
107
|
F as BreadcrumbItem,
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
N as BreadcrumbLink,
|
|
109
|
+
O as BreadcrumbList,
|
|
111
110
|
_ as BreadcrumbPage,
|
|
112
111
|
z as BreadcrumbSeparator,
|
|
113
112
|
X as Button,
|
|
@@ -123,37 +122,37 @@ export {
|
|
|
123
122
|
ae as CardDescription,
|
|
124
123
|
ne as CardFooter,
|
|
125
124
|
ie as CardHeader,
|
|
126
|
-
|
|
125
|
+
pe as CardTitle,
|
|
127
126
|
ue as Carousel,
|
|
128
127
|
de as CarouselContent,
|
|
129
128
|
be as CarouselDots,
|
|
130
129
|
Ce as CarouselItem,
|
|
131
130
|
me as CarouselNext,
|
|
132
131
|
ge as CarouselPrevious,
|
|
133
|
-
|
|
134
|
-
|
|
132
|
+
wp as CartesianGrid,
|
|
133
|
+
Gp as Cell,
|
|
135
134
|
Ie as CentredLayout,
|
|
136
135
|
he as CentredLayoutContent,
|
|
137
136
|
Le as CentredLayoutHeader,
|
|
138
137
|
se as ChartContainer,
|
|
139
|
-
|
|
138
|
+
Rp as ChartLabel,
|
|
140
139
|
xe as ChartLegend,
|
|
141
140
|
Te as ChartLegendContent,
|
|
142
141
|
ce as ChartStyle,
|
|
143
142
|
De as ChartTooltip,
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
143
|
+
Me as ChartTooltipContent,
|
|
144
|
+
Bp as ChartsLegend,
|
|
145
|
+
vp as ChartsTooltip,
|
|
147
146
|
ye as Checkbox,
|
|
148
|
-
|
|
147
|
+
we as Chip,
|
|
149
148
|
Be as Collapsible,
|
|
150
149
|
ve as CollapsibleContent,
|
|
151
150
|
He as CollapsibleTrigger,
|
|
152
151
|
ke as Combobox,
|
|
153
152
|
Ee as ComboboxContent,
|
|
154
153
|
Fe as ComboboxEmpty,
|
|
155
|
-
|
|
156
|
-
|
|
154
|
+
Ne as ComboboxGroup,
|
|
155
|
+
Oe as ComboboxInput,
|
|
157
156
|
_e as ComboboxItem,
|
|
158
157
|
ze as ComboboxList,
|
|
159
158
|
We as ComboboxLoading,
|
|
@@ -178,32 +177,31 @@ export {
|
|
|
178
177
|
To as ContextMenuPortal,
|
|
179
178
|
co as ContextMenuRadioGroup,
|
|
180
179
|
Do as ContextMenuRadioItem,
|
|
181
|
-
|
|
182
|
-
|
|
180
|
+
Mo as ContextMenuSeparator,
|
|
181
|
+
fo as ContextMenuShortcut,
|
|
183
182
|
Io as ContextMenuSub,
|
|
184
183
|
ho as ContextMenuSubContent,
|
|
185
184
|
Lo as ContextMenuSubTrigger,
|
|
186
185
|
Po as ContextMenuTrigger,
|
|
187
|
-
|
|
186
|
+
Hp as Customized,
|
|
188
187
|
ao as DEFAULT_DATE_PRESETS,
|
|
189
|
-
|
|
188
|
+
la as DEFAULT_STRENGTH_LEVELS,
|
|
190
189
|
bi as DataTable,
|
|
191
190
|
Ci as DataTableColumnHeader,
|
|
192
191
|
mi as DataTablePagination,
|
|
193
|
-
gi as
|
|
194
|
-
Si as
|
|
195
|
-
si as
|
|
196
|
-
xi as
|
|
197
|
-
Ti as
|
|
198
|
-
ci as
|
|
199
|
-
Di as DataTableToolbarRight,
|
|
192
|
+
gi as DataTablePaginationNav,
|
|
193
|
+
Si as DataTablePaginationRowCount,
|
|
194
|
+
si as DataTableRowActions,
|
|
195
|
+
xi as DataTableSearch,
|
|
196
|
+
Ti as DataTableSelectAllCheckbox,
|
|
197
|
+
ci as DataTableSelectRowCheckbox,
|
|
200
198
|
no as DatePickerCalendar,
|
|
201
199
|
io as DatePickerContent,
|
|
202
|
-
|
|
203
|
-
|
|
200
|
+
po as DatePickerPresets,
|
|
201
|
+
lo as DatePickerRoot,
|
|
204
202
|
uo as DatePickerTrigger,
|
|
205
203
|
Ao as Description,
|
|
206
|
-
|
|
204
|
+
Go as Dialog,
|
|
207
205
|
Ro as DialogClose,
|
|
208
206
|
Bo as DialogContent,
|
|
209
207
|
vo as DialogDescription,
|
|
@@ -212,7 +210,7 @@ export {
|
|
|
212
210
|
ko as DialogOverlay,
|
|
213
211
|
Eo as DialogPortal,
|
|
214
212
|
Fo as DialogTitle,
|
|
215
|
-
|
|
213
|
+
No as DialogTrigger,
|
|
216
214
|
_o as Drawer,
|
|
217
215
|
zo as DrawerBody,
|
|
218
216
|
Wo as DrawerClose,
|
|
@@ -232,8 +230,8 @@ export {
|
|
|
232
230
|
ar as DropdownMenuLabel,
|
|
233
231
|
nr as DropdownMenuPortal,
|
|
234
232
|
ir as DropdownMenuRadioGroup,
|
|
235
|
-
|
|
236
|
-
|
|
233
|
+
pr as DropdownMenuRadioItem,
|
|
234
|
+
lr as DropdownMenuSeparator,
|
|
237
235
|
ur as DropdownMenuShortcut,
|
|
238
236
|
dr as DropdownMenuSub,
|
|
239
237
|
br as DropdownMenuSubContent,
|
|
@@ -245,21 +243,21 @@ export {
|
|
|
245
243
|
Tr as FieldDescription,
|
|
246
244
|
cr as FieldError,
|
|
247
245
|
Dr as FieldErrorIcon,
|
|
248
|
-
|
|
249
|
-
|
|
246
|
+
Mr as FieldGroup,
|
|
247
|
+
fr as FieldLabel,
|
|
250
248
|
Ir as FieldLegend,
|
|
251
249
|
hr as FieldSet,
|
|
252
250
|
yr as GlobalLayout,
|
|
253
251
|
Ar as GlobalLayoutContent,
|
|
254
|
-
|
|
255
|
-
|
|
252
|
+
wr as GlobalLayoutContentBody,
|
|
253
|
+
Gr as GlobalLayoutContentHeader,
|
|
256
254
|
Rr as GlobalLayoutMobileHeader,
|
|
257
255
|
Br as GlobalLayoutSidebar,
|
|
258
256
|
Hr as Header,
|
|
259
257
|
kr as HoverCard,
|
|
260
258
|
Er as HoverCardContent,
|
|
261
259
|
Fr as HoverCardTrigger,
|
|
262
|
-
|
|
260
|
+
Or as Input,
|
|
263
261
|
Wr as InputChip,
|
|
264
262
|
Xr as InputChipInput,
|
|
265
263
|
Yr as InputChipItems,
|
|
@@ -267,16 +265,16 @@ export {
|
|
|
267
265
|
Qr as InputGroupAddon,
|
|
268
266
|
Zr as InputGroupButton,
|
|
269
267
|
$r as InputGroupInput,
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
268
|
+
Ii as InputList,
|
|
269
|
+
hi as InputListAddButton,
|
|
270
|
+
Li as InputListInput,
|
|
271
|
+
Pi as InputListItems,
|
|
274
272
|
tt as InputOTP,
|
|
275
273
|
at as InputOTPDigitsOnly,
|
|
276
274
|
nt as InputOTPGroup,
|
|
277
275
|
it as InputOTPSeparator,
|
|
278
|
-
|
|
279
|
-
|
|
276
|
+
pt as InputOTPSimple,
|
|
277
|
+
lt as InputOTPSlot,
|
|
280
278
|
ut as InputOTPWithSeparator,
|
|
281
279
|
dt as InputOTPWithSpacing,
|
|
282
280
|
ua as InputPasswordField,
|
|
@@ -287,18 +285,18 @@ export {
|
|
|
287
285
|
Tt as ItemActions,
|
|
288
286
|
ct as ItemContent,
|
|
289
287
|
Dt as ItemDescription,
|
|
290
|
-
|
|
291
|
-
|
|
288
|
+
Mt as ItemMedia,
|
|
289
|
+
ft as ItemTitle,
|
|
292
290
|
Ct as Label,
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
291
|
+
Vp as LabelList,
|
|
292
|
+
kp as Line,
|
|
293
|
+
Ep as LineChart,
|
|
296
294
|
St as Link,
|
|
297
295
|
It as List,
|
|
298
296
|
Pt as Logo,
|
|
299
297
|
At as Menubar,
|
|
300
|
-
|
|
301
|
-
|
|
298
|
+
wt as MenubarCheckboxItem,
|
|
299
|
+
Gt as MenubarContent,
|
|
302
300
|
Rt as MenubarItem,
|
|
303
301
|
Bt as MenubarLabel,
|
|
304
302
|
vt as MenubarMenu,
|
|
@@ -307,8 +305,8 @@ export {
|
|
|
307
305
|
kt as MenubarSeparator,
|
|
308
306
|
Et as MenubarShortcut,
|
|
309
307
|
Ft as MenubarSub,
|
|
310
|
-
|
|
311
|
-
|
|
308
|
+
Nt as MenubarSubContent,
|
|
309
|
+
Ot as MenubarSubTrigger,
|
|
312
310
|
_t as MenubarTrigger,
|
|
313
311
|
Wt as NavigationMenu,
|
|
314
312
|
Xt as NavigationMenuContent,
|
|
@@ -326,42 +324,42 @@ export {
|
|
|
326
324
|
ta as PaginationLink,
|
|
327
325
|
aa as PaginationNext,
|
|
328
326
|
na as PaginationPrevious,
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
327
|
+
Fp as Pie,
|
|
328
|
+
Np as PieChart,
|
|
329
|
+
Op as PolarAngleAxis,
|
|
330
|
+
_p as PolarGrid,
|
|
331
|
+
zp as PolarRadiusAxis,
|
|
334
332
|
Sa as Popover,
|
|
335
333
|
sa as PopoverAnchor,
|
|
336
334
|
xa as PopoverContent,
|
|
337
335
|
Ta as PopoverTrigger,
|
|
338
336
|
Da as Progress,
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
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,
|
|
347
345
|
Ia as RadioGroupItem,
|
|
348
346
|
La as Rating,
|
|
349
|
-
|
|
350
|
-
|
|
347
|
+
qp as Rectangle,
|
|
348
|
+
jp as ReferenceLine,
|
|
351
349
|
ya as ResizableHandle,
|
|
352
350
|
Aa as ResizablePanel,
|
|
353
|
-
|
|
354
|
-
|
|
351
|
+
wa as ResizablePanelGroup,
|
|
352
|
+
Jp as ResponsiveContainer,
|
|
355
353
|
Ra as ScrollArea,
|
|
356
354
|
Ba as ScrollBar,
|
|
357
|
-
|
|
355
|
+
Kp as Sector,
|
|
358
356
|
Ha as Select,
|
|
359
357
|
Va as SelectContent,
|
|
360
358
|
ka as SelectGroup,
|
|
361
359
|
Ea as SelectItem,
|
|
362
360
|
Fa as SelectLabel,
|
|
363
|
-
|
|
364
|
-
|
|
361
|
+
Na as SelectScrollDownButton,
|
|
362
|
+
Oa as SelectScrollUpButton,
|
|
365
363
|
_a as SelectSeparator,
|
|
366
364
|
za as SelectTrigger,
|
|
367
365
|
Wa as SelectValue,
|
|
@@ -378,45 +376,45 @@ export {
|
|
|
378
376
|
rn as SheetTitle,
|
|
379
377
|
tn as SheetTrigger,
|
|
380
378
|
wi as Sidebar,
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
379
|
+
Gi as SidebarCollapseIcon,
|
|
380
|
+
Ri as SidebarCollapseIconType,
|
|
381
|
+
Bi as SidebarCollapsible,
|
|
382
|
+
vi as SidebarContent,
|
|
383
|
+
Hi as SidebarDrawer,
|
|
384
|
+
Vi as SidebarFooter,
|
|
385
|
+
ki as SidebarGroup,
|
|
386
|
+
Ei as SidebarGroupAction,
|
|
387
|
+
Fi as SidebarGroupContent,
|
|
390
388
|
Ni as SidebarGroupLabel,
|
|
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
|
-
|
|
416
|
-
|
|
417
|
-
|
|
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,
|
|
418
416
|
nn as Skeleton,
|
|
419
|
-
|
|
417
|
+
ln as Slider,
|
|
420
418
|
dn as Sonner,
|
|
421
419
|
mn as SplitLayout,
|
|
422
420
|
gn as SplitLayoutContentLeft,
|
|
@@ -424,21 +422,21 @@ export {
|
|
|
424
422
|
sn as SplitLayoutHeader,
|
|
425
423
|
xn as SplitLayoutImage,
|
|
426
424
|
cn as Switch,
|
|
427
|
-
|
|
428
|
-
|
|
425
|
+
Mn as Table,
|
|
426
|
+
fn as TableBody,
|
|
429
427
|
In as TableCaption,
|
|
430
428
|
hn as TableCell,
|
|
431
429
|
Ln as TableFooter,
|
|
432
430
|
Pn as TableHead,
|
|
433
431
|
yn as TableHeader,
|
|
434
432
|
An as TableRow,
|
|
435
|
-
|
|
433
|
+
Gn as Tabs,
|
|
436
434
|
Rn as TabsContent,
|
|
437
435
|
Bn as TabsList,
|
|
438
436
|
vn as TabsTrigger,
|
|
439
437
|
Vn as TextRevealMotion,
|
|
440
438
|
En as Textarea,
|
|
441
|
-
|
|
439
|
+
Nn as Toggle,
|
|
442
440
|
zn as ToggleGroup,
|
|
443
441
|
Wn as ToggleGroupItem,
|
|
444
442
|
Yn as Tooltip,
|
|
@@ -456,37 +454,35 @@ export {
|
|
|
456
454
|
ai as TypographyLead,
|
|
457
455
|
ni as TypographyList,
|
|
458
456
|
ii as TypographyMuted,
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
457
|
+
pi as TypographyP,
|
|
458
|
+
li as TypographySmall,
|
|
459
|
+
Di as VirtualizedDataTable,
|
|
460
|
+
Qp as XAxis,
|
|
461
|
+
Zp as YAxis,
|
|
464
462
|
g as alertVariants,
|
|
465
463
|
ui as blockquoteVariants,
|
|
466
464
|
ma as calculatePasswordStrength,
|
|
467
465
|
$ as calloutVariants,
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
np as createColumnHelper,
|
|
466
|
+
Ge as chipVariants,
|
|
467
|
+
Ip as cn,
|
|
471
468
|
Lr as fieldLegendVariants,
|
|
472
|
-
|
|
473
|
-
Tl as getMobileBreakpoint,
|
|
469
|
+
xp as getMobileBreakpoint,
|
|
474
470
|
Ur as inputChipInputVariants,
|
|
475
471
|
qr as inputChipVariants,
|
|
476
472
|
et as inputGroupButtonVariants,
|
|
477
473
|
ot as inputGroupVariants,
|
|
478
474
|
_r as inputVariants,
|
|
479
|
-
|
|
475
|
+
Tp as isMobileViewport,
|
|
480
476
|
ht as itemVariants,
|
|
481
477
|
mt as labelVariants,
|
|
482
478
|
bn as sonner,
|
|
483
|
-
|
|
479
|
+
On as toggleVariants,
|
|
484
480
|
Mi as useDataTable,
|
|
485
|
-
|
|
481
|
+
Sp as useDebounce,
|
|
486
482
|
jr as useInputChipContext,
|
|
487
|
-
|
|
488
|
-
|
|
483
|
+
yi as useInputListContext,
|
|
484
|
+
cp as useIsMobile,
|
|
489
485
|
ia as usePagination,
|
|
490
|
-
|
|
491
|
-
|
|
486
|
+
Mp as usePrefersReducedMotion,
|
|
487
|
+
mp as useSidebar
|
|
492
488
|
};
|
package/dist/table.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),y=require("react"),b=require("class-variance-authority"),r=require("@brightlocal/ui-components/lib/utils");function w(
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),y=require("react"),b=require("class-variance-authority"),r=require("@brightlocal/ui-components/lib/utils");function w(a){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const e in a)if(e!=="default"){const l=Object.getOwnPropertyDescriptor(a,e);Object.defineProperty(t,e,l.get?l:{enumerable:!0,get:()=>a[e]})}}return t.default=a,Object.freeze(t)}const s=w(y),N=b.cva("align-middle bg-transparent text-foreground text-sm font-normal leading-normal break-words",{variants:{size:{default:"h-12 p-2",md:"h-16 p-2",lg:"h-24 p-2"},align:{left:"text-left",right:"text-right",center:"text-center"}},defaultVariants:{size:"default",align:"left"}}),j=b.cva("h-10 p-2 align-middle text-muted-foreground text-sm font-medium leading-normal hover:bg-muted break-words outline-none focus-visible:shadow-default transition-[background-color,box-shadow] duration-150 ease-in-out",{variants:{align:{left:"text-left",right:"text-right",center:"text-center"}},defaultVariants:{align:"left"}}),f=s.forwardRef(({className:a,dataHook:t,trackingEl:e,trackingLabel:l,...n},d)=>o.jsx("div",{className:"relative w-full overflow-x-auto","data-slot":"table-container",children:o.jsx("table",{ref:d,className:r.cn("w-full caption-bottom text-sm",a),"data-hook":t,"data-slot":"table","data-tracking-el":e,"data-tracking-label":l,...n})}));f.displayName="Table";const u=s.forwardRef(({className:a,dataHook:t,...e},l)=>o.jsx("thead",{ref:l,className:r.cn(a),"data-hook":t,"data-slot":"table-header",...e}));u.displayName="TableHeader";const m=s.forwardRef(({className:a,dataHook:t,...e},l)=>o.jsx("tbody",{ref:l,className:r.cn(a),"data-hook":t,"data-slot":"table-body",...e}));m.displayName="TableBody";const g=s.forwardRef(({className:a,dataHook:t,...e},l)=>o.jsx("tfoot",{ref:l,className:r.cn("bg-muted/50",a),"data-hook":t,"data-slot":"table-footer",...e}));g.displayName="TableFooter";const p=s.forwardRef(({className:a,dataHook:t,...e},l)=>o.jsx("tr",{ref:l,className:r.cn("data-[state=selected]:bg-muted transition-colors duration-150 ease-in-out",a),"data-hook":t,"data-slot":"table-row",...e}));p.displayName="TableRow";const T=s.forwardRef(({className:a,dataHook:t,align:e,minWidth:l,style:n,scope:d="col",...i},c)=>o.jsx("th",{ref:c,className:r.cn(j({align:e}),a),"data-hook":t,"data-slot":"table-head",scope:d,style:{minWidth:l,...n},...i}));T.displayName="TableHead";const h=s.forwardRef(({className:a,dataHook:t,size:e,align:l,minWidth:n,style:d,...i},c)=>o.jsx("td",{ref:c,className:r.cn(N({size:e,align:l}),a),"data-hook":t,"data-slot":"table-cell",style:{minWidth:n,...d},...i}));h.displayName="TableCell";const x=s.forwardRef(({className:a,dataHook:t,...e},l)=>o.jsx("caption",{ref:l,className:r.cn("caption-bottom py-4",a),"data-hook":t,"data-slot":"table-caption",...e}));x.displayName="TableCaption";exports.Table=f;exports.TableBody=m;exports.TableCaption=x;exports.TableCell=h;exports.TableFooter=g;exports.TableHead=T;exports.TableHeader=u;exports.TableRow=p;
|