@brightlocal/ui-components 1.2.4 → 1.3.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/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import { Accordion as r, AccordionContent as t, AccordionItem as a, AccordionTri
2
2
  import { Alert as p, AlertDescription as l, AlertDestructive as u, AlertInfo as d, AlertSuccess as b, AlertTitle as m, AlertWarning as C, alertVariants as g } from "./alert.js";
3
3
  import { AlertDialog as x, AlertDialogAction as s, AlertDialogCancel as T, AlertDialogContent as c, AlertDialogDescription as D, AlertDialogFooter as f, AlertDialogHeader as M, AlertDialogOverlay as I, AlertDialogPortal as h, AlertDialogTitle as P, AlertDialogTrigger as L } from "./alert-dialog.js";
4
4
  import { AspectRatio as y } from "./aspect-ratio.js";
5
- import { Avatar as G, AvatarFallback as R, AvatarImage as B } from "./avatar.js";
5
+ import { Avatar as G, AvatarFallback as R, AvatarImage as v } from "./avatar.js";
6
6
  import { Badge as H } from "./badge.js";
7
7
  import { Breadcrumb as k, BreadcrumbEllipsis as E, BreadcrumbItem as F, BreadcrumbLink as O, BreadcrumbList as N, BreadcrumbPage as _, BreadcrumbSeparator as z } from "./breadcrumb.js";
8
8
  import { Button as X, ButtonVariants as Y } from "./button.js";
@@ -14,12 +14,12 @@ import { CentredLayout as se, CentredLayoutContent as Te, CentredLayoutHeader as
14
14
  import { Checkbox as fe } from "./checkbox.js";
15
15
  import { Chip as Ie, chipVariants as he } from "./chip.js";
16
16
  import { Collapsible as Le, CollapsibleContent as Ae, CollapsibleTrigger as ye } from "./collapsible.js";
17
- import { Combobox as Ge, ComboboxContent as Re, ComboboxEmpty as Be, ComboboxGroup as ve, ComboboxInput as He, ComboboxItem as Ve, ComboboxList as ke, ComboboxLoading as Ee, ComboboxSeparator as Fe, ComboboxTrigger as Oe, ComboboxValue as Ne } from "./combobox.js";
17
+ import { Combobox as Ge, ComboboxContent as Re, ComboboxEmpty as ve, ComboboxGroup as Be, ComboboxInput as He, ComboboxItem as Ve, ComboboxList as ke, ComboboxLoading as Ee, ComboboxSeparator as Fe, ComboboxTrigger as Oe, ComboboxValue as Ne } from "./combobox.js";
18
18
  import { Command as ze, CommandEmpty as We, CommandGroup as Xe, CommandInput as Ye, CommandItem as Ue, CommandList as qe, CommandSeparator as je, CommandShortcut as Je } from "./command.js";
19
19
  import { DEFAULT_DATE_PRESETS as Qe, DatePickerCalendar as Ze, DatePickerContent as $e, DatePickerPresets as eo, DatePickerRoot as oo, DatePickerTrigger as ro } from "./date-picker.js";
20
20
  import { ContextMenu as ao, ContextMenuCheckboxItem as no, ContextMenuContent as io, ContextMenuGroup as po, ContextMenuItem as lo, ContextMenuLabel as uo, ContextMenuPortal as bo, ContextMenuRadioGroup as mo, ContextMenuRadioItem as Co, ContextMenuSeparator as go, ContextMenuShortcut as So, ContextMenuSub as xo, ContextMenuSubContent as so, ContextMenuSubTrigger as To, ContextMenuTrigger as co } from "./context-menu.js";
21
21
  import { Description as fo } from "./description.js";
22
- import { Dialog as Io, DialogClose as ho, DialogContent as Po, DialogDescription as Lo, DialogFooter as Ao, DialogHeader as yo, DialogOverlay as wo, DialogPortal as Go, DialogTitle as Ro, DialogTrigger as Bo } from "./dialog.js";
22
+ import { Dialog as Io, DialogClose as ho, DialogContent as Po, DialogDescription as Lo, DialogFooter as Ao, DialogHeader as yo, DialogOverlay as wo, DialogPortal as Go, DialogTitle as Ro, DialogTrigger as vo } from "./dialog.js";
23
23
  import { Drawer as Ho, DrawerBody as Vo, DrawerClose as ko, DrawerContent as Eo, DrawerDescription as Fo, DrawerFooter as Oo, DrawerHeader as No, DrawerOverlay as _o, DrawerPortal as zo, DrawerTitle as Wo, DrawerTrigger as Xo } from "./drawer.js";
24
24
  import { DropdownMenu as Uo, DropdownMenuCheckboxItem as qo, DropdownMenuContent as jo, DropdownMenuGroup as Jo, DropdownMenuItem as Ko, DropdownMenuLabel as Qo, DropdownMenuPortal as Zo, DropdownMenuRadioGroup as $o, DropdownMenuRadioItem as er, DropdownMenuSeparator as or, DropdownMenuShortcut as rr, DropdownMenuSub as tr, DropdownMenuSubContent as ar, DropdownMenuSubTrigger as nr, DropdownMenuTrigger as ir, DropdownMenuTriggerAvatar as pr } from "./dropdown-menu.js";
25
25
  import { Field as ur, FieldContent as dr, FieldDescription as br, FieldError as mr, FieldErrorIcon as Cr, FieldGroup as gr, FieldLabel as Sr, FieldLegend as xr, FieldSet as sr, fieldLegendVariants as Tr } from "./field.js";
@@ -27,7 +27,7 @@ import { GlobalLayout as Dr, GlobalLayoutContent as fr, GlobalLayoutSidebar as M
27
27
  import { Header as hr } from "./header.js";
28
28
  import { HoverCard as Lr, HoverCardContent as Ar, HoverCardTrigger as yr } from "./hover-card.js";
29
29
  import { Input as Gr, inputVariants as Rr } from "./input.js";
30
- import { InputChip as vr, InputChipInput as Hr, InputChipItems as Vr, inputChipInputVariants as kr, inputChipVariants as Er, useInputChipContext as Fr } from "./input-chip.js";
30
+ import { InputChip as Br, InputChipInput as Hr, InputChipItems as Vr, inputChipInputVariants as kr, inputChipVariants as Er, useInputChipContext as Fr } from "./input-chip.js";
31
31
  import { InputGroup as Nr, InputGroupAddon as _r, InputGroupButton as zr, InputGroupInput as Wr, inputGroupButtonVariants as Xr, inputGroupVariants as Yr } from "./input-group.js";
32
32
  import { InputOTP as qr, InputOTPDigitsOnly as jr, InputOTPGroup as Jr, InputOTPSeparator as Kr, InputOTPSimple as Qr, InputOTPSlot as Zr, InputOTPWithSeparator as $r, InputOTPWithSpacing as et } from "./input-otp.js";
33
33
  import { Label as rt, labelVariants as tt } from "./label.js";
@@ -35,7 +35,7 @@ import { Link as nt } from "./link.js";
35
35
  import { Item as pt, ItemActions as lt, ItemContent as ut, ItemDescription as dt, ItemMedia as bt, ItemTitle as mt, List as Ct, itemVariants as gt } from "./list.js";
36
36
  import { Logo as xt } from "./logo.js";
37
37
  import { Menubar as Tt, MenubarCheckboxItem as ct, MenubarContent as Dt, MenubarItem as ft, MenubarLabel as Mt, MenubarMenu as It, MenubarRadioGroup as ht, MenubarRadioItem as Pt, MenubarSeparator as Lt, MenubarShortcut as At, MenubarSub as yt, MenubarSubContent as wt, MenubarSubTrigger as Gt, MenubarTrigger as Rt } from "./menubar.js";
38
- import { NavigationMenu as vt, NavigationMenuContent as Ht, NavigationMenuIndicator as Vt, NavigationMenuItem as kt, NavigationMenuLink as Et, NavigationMenuList as Ft, NavigationMenuTrigger as Ot, NavigationMenuViewport as Nt } from "./navigation-menu.js";
38
+ import { NavigationMenu as Bt, NavigationMenuContent as Ht, NavigationMenuIndicator as Vt, NavigationMenuItem as kt, NavigationMenuLink as Et, NavigationMenuList as Ft, NavigationMenuTrigger as Ot, NavigationMenuViewport as Nt } from "./navigation-menu.js";
39
39
  import { Pagination as zt, PaginationButton as Wt, PaginationContent as Xt, PaginationEllipsis as Yt, PaginationItem as Ut, PaginationLink as qt, PaginationNext as jt, PaginationPrevious as Jt, usePagination as Kt } from "./pagination.js";
40
40
  import { DEFAULT_STRENGTH_LEVELS as Zt, InputPasswordField as $t, InputPasswordRoot as ea, InputPasswordStrength as oa, InputPasswordToggle as ra, calculatePasswordStrength as ta } from "./input-password.js";
41
41
  import { Popover as na, PopoverAnchor as ia, PopoverContent as pa, PopoverTrigger as la } from "./popover.js";
@@ -44,7 +44,7 @@ import { RadioGroup as ma, RadioGroupItem as Ca } from "./radio-group.js";
44
44
  import { Rating as Sa } from "./rating.js";
45
45
  import { ResizableHandle as sa, ResizablePanel as Ta, ResizablePanelGroup as ca } from "./resizable.js";
46
46
  import { ScrollArea as fa, ScrollBar as Ma } from "./scroll-area.js";
47
- import { Select as ha, SelectContent as Pa, SelectGroup as La, SelectItem as Aa, SelectLabel as ya, SelectScrollDownButton as wa, SelectScrollUpButton as Ga, SelectSeparator as Ra, SelectTrigger as Ba, SelectValue as va } from "./select.js";
47
+ import { Select as ha, SelectContent as Pa, SelectGroup as La, SelectItem as Aa, SelectLabel as ya, SelectScrollDownButton as wa, SelectScrollUpButton as Ga, SelectSeparator as Ra, SelectTrigger as va, SelectValue as Ba } from "./select.js";
48
48
  import { Separator as Va, SeparatorWithText as ka } from "./separator.js";
49
49
  import { Sheet as Fa, SheetClose as Oa, SheetContent as Na, SheetDescription as _a, SheetFooter as za, SheetHeader as Wa, SheetOverlay as Xa, SheetPortal as Ya, SheetTitle as Ua, SheetTrigger as qa } from "./sheet.js";
50
50
  import { Skeleton as Ja } from "./skeleton.js";
@@ -54,19 +54,21 @@ import { SplitLayout as rn, SplitLayoutContentLeft as tn, SplitLayoutContentRigh
54
54
  import { Switch as ln } from "./switch.js";
55
55
  import { Table as dn, TableBody as bn, TableCaption as mn, TableCell as Cn, TableFooter as gn, TableHead as Sn, TableHeader as xn, TableRow as sn } from "./table.js";
56
56
  import { Tabs as cn, TabsContent as Dn, TabsList as fn, TabsTrigger as Mn } from "./tabs.js";
57
- import { Textarea as hn } from "./textarea.js";
58
- import { Toggle as Ln, toggleVariants as An } from "./toggle.js";
59
- import { ToggleGroup as wn, ToggleGroupItem as Gn } from "./toggle-group.js";
60
- import { Tooltip as Bn, TooltipContent as vn, TooltipProvider as Hn, TooltipTrigger as Vn } from "./tooltip.js";
61
- import { TypographyBlockquote as En, TypographyCode as Fn, TypographyH1 as On, TypographyH2 as Nn, TypographyH3 as _n, TypographyH4 as zn, TypographyInlineCode as Wn, TypographyLarge as Xn, TypographyLead as Yn, TypographyList as Un, TypographyMuted as qn, TypographyP as jn, TypographySmall as Jn, blockquoteVariants as Kn } from "./typography.js";
62
- import { DataTable as Zn, DataTableColumnHeader as $n, DataTablePagination as ei, DataTableRowActions as oi, DataTableSearch as ri, DataTableSelectAllCheckbox as ti, DataTableSelectRowCheckbox as ai, DataTableToolbar as ni } from "./blocks/data-table.js";
63
- import { InputList as pi } from "./blocks/input-list.js";
64
- import { Sidebar as ui, SidebarCollapseIcon as di, SidebarCollapseIconType as bi, SidebarCollapsible as mi, SidebarContent as Ci, SidebarFooter as gi, SidebarGroup as Si, SidebarGroupAction as xi, SidebarGroupContent as si, SidebarGroupLabel as Ti, SidebarGroupLabelSize as ci, SidebarGroupLabelVariant as Di, SidebarHeader as fi, SidebarInput as Mi, SidebarInset as Ii, SidebarMenu as hi, SidebarMenuAction as Pi, SidebarMenuBadge as Li, SidebarMenuButton as Ai, SidebarMenuButtonSize as yi, SidebarMenuButtonVariant as wi, SidebarMenuItem as Gi, SidebarMenuSkeleton as Ri, SidebarMenuSub as Bi, SidebarMenuSubButton as vi, SidebarMenuSubButtonSize as Hi, SidebarMenuSubItem as Vi, SidebarMenuSubVariant as ki, SidebarProvider as Ei, SidebarRail as Fi, SidebarSeparator as Oi, SidebarSide as Ni, SidebarTrigger as _i, SidebarVariant as zi, useSidebar as Wi } from "./blocks/sidebar.js";
65
- import { useIsMobile as Yi } from "./hooks/use-mobile.js";
66
- import { cn as qi } from "./lib/utils.js";
67
- import { Area as Ji, AreaChart as Ki, Bar as Qi, BarChart as Zi, CartesianGrid as $i, Cell as ep, Label as op, Legend as rp, Tooltip as tp, Customized as ap, LabelList as np, Line as ip, LineChart as pp, Pie as lp, PieChart as up, PolarAngleAxis as dp, PolarGrid as bp, PolarRadiusAxis as mp, Radar as Cp, RadarChart as gp, RadialBar as Sp, RadialBarChart as xp, Rectangle as sp, ReferenceLine as Tp, ResponsiveContainer as cp, Sector as Dp, XAxis as fp, YAxis as Mp } from "recharts";
68
- import { REGEXP_ONLY_CHARS as hp, REGEXP_ONLY_DIGITS as Pp, REGEXP_ONLY_DIGITS_AND_CHARS as Lp } from "input-otp";
69
- import { createColumnHelper as yp, flexRender as wp } from "@tanstack/react-table";
57
+ import { TextRevealMotion as hn } from "./text-reveal-motion.js";
58
+ import { Textarea as Ln } from "./textarea.js";
59
+ import { Toggle as yn, toggleVariants as wn } from "./toggle.js";
60
+ import { ToggleGroup as Rn, ToggleGroupItem as vn } from "./toggle-group.js";
61
+ import { Tooltip as Hn, TooltipContent as Vn, TooltipProvider as kn, TooltipTrigger as En } from "./tooltip.js";
62
+ import { TypographyBlockquote as On, TypographyCode as Nn, TypographyH1 as _n, TypographyH2 as zn, TypographyH3 as Wn, TypographyH4 as Xn, TypographyInlineCode as Yn, TypographyLarge as Un, TypographyLead as qn, TypographyList as jn, TypographyMuted as Jn, TypographyP as Kn, TypographySmall as Qn, blockquoteVariants as Zn } from "./typography.js";
63
+ import { DataTable as ei, DataTableColumnHeader as oi, DataTablePagination as ri, DataTableRowActions as ti, DataTableSearch as ai, DataTableSelectAllCheckbox as ni, DataTableSelectRowCheckbox as ii, DataTableToolbar as pi } from "./blocks/data-table.js";
64
+ import { InputList as ui } from "./blocks/input-list.js";
65
+ import { Sidebar as bi, SidebarCollapseIcon as mi, SidebarCollapseIconType as Ci, SidebarCollapsible as gi, SidebarContent as Si, SidebarFooter as xi, SidebarGroup as si, SidebarGroupAction as Ti, SidebarGroupContent as ci, SidebarGroupLabel as Di, SidebarGroupLabelSize as fi, SidebarGroupLabelVariant as Mi, SidebarHeader as Ii, SidebarInput as hi, SidebarInset as Pi, SidebarMenu as Li, SidebarMenuAction as Ai, SidebarMenuBadge as yi, SidebarMenuButton as wi, SidebarMenuButtonSize as Gi, SidebarMenuButtonVariant as Ri, SidebarMenuItem as vi, SidebarMenuSkeleton as Bi, SidebarMenuSub as Hi, SidebarMenuSubButton as Vi, SidebarMenuSubButtonSize as ki, SidebarMenuSubItem as Ei, SidebarMenuSubVariant as Fi, SidebarProvider as Oi, SidebarRail as Ni, SidebarSeparator as _i, SidebarSide as zi, SidebarTrigger as Wi, SidebarVariant as Xi, useSidebar as Yi } from "./blocks/sidebar.js";
66
+ import { useIsMobile as qi } from "./hooks/use-mobile.js";
67
+ import { usePrefersReducedMotion as Ji } from "./hooks/use-prefers-reduced-motion.js";
68
+ import { cn as Qi } from "./lib/utils.js";
69
+ import { Area as $i, AreaChart as ep, Bar as op, BarChart as rp, CartesianGrid as tp, Cell as ap, Label as np, Legend as ip, Tooltip as pp, Customized as lp, LabelList as up, Line as dp, LineChart as bp, Pie as mp, PieChart as Cp, PolarAngleAxis as gp, PolarGrid as Sp, PolarRadiusAxis as xp, Radar as sp, RadarChart as Tp, RadialBar as cp, RadialBarChart as Dp, Rectangle as fp, ReferenceLine as Mp, ResponsiveContainer as Ip, Sector as hp, XAxis as Pp, YAxis as Lp } from "recharts";
70
+ import { REGEXP_ONLY_CHARS as yp, REGEXP_ONLY_DIGITS as wp, REGEXP_ONLY_DIGITS_AND_CHARS as Gp } from "input-otp";
71
+ import { createColumnHelper as vp, flexRender as Bp } from "@tanstack/react-table";
70
72
  export {
71
73
  r as Accordion,
72
74
  t as AccordionContent,
@@ -90,15 +92,15 @@ export {
90
92
  b as AlertSuccess,
91
93
  m as AlertTitle,
92
94
  C as AlertWarning,
93
- Ji as Area,
94
- Ki as AreaChart,
95
+ $i as Area,
96
+ ep as AreaChart,
95
97
  y as AspectRatio,
96
98
  G as Avatar,
97
99
  R as AvatarFallback,
98
- B as AvatarImage,
100
+ v as AvatarImage,
99
101
  H as Badge,
100
- Qi as Bar,
101
- Zi as BarChart,
102
+ op as Bar,
103
+ rp as BarChart,
102
104
  k as Breadcrumb,
103
105
  E as BreadcrumbEllipsis,
104
106
  F as BreadcrumbItem,
@@ -122,20 +124,20 @@ export {
122
124
  ie as CarouselItem,
123
125
  pe as CarouselNext,
124
126
  le as CarouselPrevious,
125
- $i as CartesianGrid,
126
- ep as Cell,
127
+ tp as CartesianGrid,
128
+ ap as Cell,
127
129
  se as CentredLayout,
128
130
  Te as CentredLayoutContent,
129
131
  ce as CentredLayoutHeader,
130
132
  de as ChartContainer,
131
- op as ChartLabel,
133
+ np as ChartLabel,
132
134
  be as ChartLegend,
133
135
  me as ChartLegendContent,
134
136
  Ce as ChartStyle,
135
137
  ge as ChartTooltip,
136
138
  Se as ChartTooltipContent,
137
- rp as ChartsLegend,
138
- tp as ChartsTooltip,
139
+ ip as ChartsLegend,
140
+ pp as ChartsTooltip,
139
141
  fe as Checkbox,
140
142
  Ie as Chip,
141
143
  Le as Collapsible,
@@ -143,8 +145,8 @@ export {
143
145
  ye as CollapsibleTrigger,
144
146
  Ge as Combobox,
145
147
  Re as ComboboxContent,
146
- Be as ComboboxEmpty,
147
- ve as ComboboxGroup,
148
+ ve as ComboboxEmpty,
149
+ Be as ComboboxGroup,
148
150
  He as ComboboxInput,
149
151
  Ve as ComboboxItem,
150
152
  ke as ComboboxList,
@@ -175,17 +177,17 @@ export {
175
177
  so as ContextMenuSubContent,
176
178
  To as ContextMenuSubTrigger,
177
179
  co as ContextMenuTrigger,
178
- ap as Customized,
180
+ lp as Customized,
179
181
  Qe as DEFAULT_DATE_PRESETS,
180
182
  Zt as DEFAULT_STRENGTH_LEVELS,
181
- Zn as DataTable,
182
- $n as DataTableColumnHeader,
183
- ei as DataTablePagination,
184
- oi as DataTableRowActions,
185
- ri as DataTableSearch,
186
- ti as DataTableSelectAllCheckbox,
187
- ai as DataTableSelectRowCheckbox,
188
- ni as DataTableToolbar,
183
+ ei as DataTable,
184
+ oi as DataTableColumnHeader,
185
+ ri as DataTablePagination,
186
+ ti as DataTableRowActions,
187
+ ai as DataTableSearch,
188
+ ni as DataTableSelectAllCheckbox,
189
+ ii as DataTableSelectRowCheckbox,
190
+ pi as DataTableToolbar,
189
191
  Ze as DatePickerCalendar,
190
192
  $e as DatePickerContent,
191
193
  eo as DatePickerPresets,
@@ -201,7 +203,7 @@ export {
201
203
  wo as DialogOverlay,
202
204
  Go as DialogPortal,
203
205
  Ro as DialogTitle,
204
- Bo as DialogTrigger,
206
+ vo as DialogTrigger,
205
207
  Ho as Drawer,
206
208
  Vo as DrawerBody,
207
209
  ko as DrawerClose,
@@ -246,14 +248,14 @@ export {
246
248
  Ar as HoverCardContent,
247
249
  yr as HoverCardTrigger,
248
250
  Gr as Input,
249
- vr as InputChip,
251
+ Br as InputChip,
250
252
  Hr as InputChipInput,
251
253
  Vr as InputChipItems,
252
254
  Nr as InputGroup,
253
255
  _r as InputGroupAddon,
254
256
  zr as InputGroupButton,
255
257
  Wr as InputGroupInput,
256
- pi as InputList,
258
+ ui as InputList,
257
259
  qr as InputOTP,
258
260
  jr as InputOTPDigitsOnly,
259
261
  Jr as InputOTPGroup,
@@ -273,9 +275,9 @@ export {
273
275
  bt as ItemMedia,
274
276
  mt as ItemTitle,
275
277
  rt as Label,
276
- np as LabelList,
277
- ip as Line,
278
- pp as LineChart,
278
+ up as LabelList,
279
+ dp as Line,
280
+ bp as LineChart,
279
281
  nt as Link,
280
282
  Ct as List,
281
283
  xt as Logo,
@@ -293,7 +295,7 @@ export {
293
295
  wt as MenubarSubContent,
294
296
  Gt as MenubarSubTrigger,
295
297
  Rt as MenubarTrigger,
296
- vt as NavigationMenu,
298
+ Bt as NavigationMenu,
297
299
  Ht as NavigationMenuContent,
298
300
  Vt as NavigationMenuIndicator,
299
301
  kt as NavigationMenuItem,
@@ -309,35 +311,35 @@ export {
309
311
  qt as PaginationLink,
310
312
  jt as PaginationNext,
311
313
  Jt as PaginationPrevious,
312
- lp as Pie,
313
- up as PieChart,
314
- dp as PolarAngleAxis,
315
- bp as PolarGrid,
316
- mp as PolarRadiusAxis,
314
+ mp as Pie,
315
+ Cp as PieChart,
316
+ gp as PolarAngleAxis,
317
+ Sp as PolarGrid,
318
+ xp as PolarRadiusAxis,
317
319
  na as Popover,
318
320
  ia as PopoverAnchor,
319
321
  pa as PopoverContent,
320
322
  la as PopoverTrigger,
321
323
  da as Progress,
322
- hp as REGEXP_ONLY_CHARS,
323
- Pp as REGEXP_ONLY_DIGITS,
324
- Lp as REGEXP_ONLY_DIGITS_AND_CHARS,
325
- Cp as Radar,
326
- gp as RadarChart,
327
- Sp as RadialBar,
328
- xp as RadialBarChart,
324
+ yp as REGEXP_ONLY_CHARS,
325
+ wp as REGEXP_ONLY_DIGITS,
326
+ Gp as REGEXP_ONLY_DIGITS_AND_CHARS,
327
+ sp as Radar,
328
+ Tp as RadarChart,
329
+ cp as RadialBar,
330
+ Dp as RadialBarChart,
329
331
  ma as RadioGroup,
330
332
  Ca as RadioGroupItem,
331
333
  Sa as Rating,
332
- sp as Rectangle,
333
- Tp as ReferenceLine,
334
+ fp as Rectangle,
335
+ Mp as ReferenceLine,
334
336
  sa as ResizableHandle,
335
337
  Ta as ResizablePanel,
336
338
  ca as ResizablePanelGroup,
337
- cp as ResponsiveContainer,
339
+ Ip as ResponsiveContainer,
338
340
  fa as ScrollArea,
339
341
  Ma as ScrollBar,
340
- Dp as Sector,
342
+ hp as Sector,
341
343
  ha as Select,
342
344
  Pa as SelectContent,
343
345
  La as SelectGroup,
@@ -346,8 +348,8 @@ export {
346
348
  wa as SelectScrollDownButton,
347
349
  Ga as SelectScrollUpButton,
348
350
  Ra as SelectSeparator,
349
- Ba as SelectTrigger,
350
- va as SelectValue,
351
+ va as SelectTrigger,
352
+ Ba as SelectValue,
351
353
  Va as Separator,
352
354
  ka as SeparatorWithText,
353
355
  Fa as Sheet,
@@ -360,40 +362,40 @@ export {
360
362
  Ya as SheetPortal,
361
363
  Ua as SheetTitle,
362
364
  qa as SheetTrigger,
363
- ui as Sidebar,
364
- di as SidebarCollapseIcon,
365
- bi as SidebarCollapseIconType,
366
- mi as SidebarCollapsible,
367
- Ci as SidebarContent,
368
- gi as SidebarFooter,
369
- Si as SidebarGroup,
370
- xi as SidebarGroupAction,
371
- si as SidebarGroupContent,
372
- Ti as SidebarGroupLabel,
373
- ci as SidebarGroupLabelSize,
374
- Di as SidebarGroupLabelVariant,
375
- fi as SidebarHeader,
376
- Mi as SidebarInput,
377
- Ii as SidebarInset,
378
- hi as SidebarMenu,
379
- Pi as SidebarMenuAction,
380
- Li as SidebarMenuBadge,
381
- Ai as SidebarMenuButton,
382
- yi as SidebarMenuButtonSize,
383
- wi as SidebarMenuButtonVariant,
384
- Gi as SidebarMenuItem,
385
- Ri as SidebarMenuSkeleton,
386
- Bi as SidebarMenuSub,
387
- vi as SidebarMenuSubButton,
388
- Hi as SidebarMenuSubButtonSize,
389
- Vi as SidebarMenuSubItem,
390
- ki as SidebarMenuSubVariant,
391
- Ei as SidebarProvider,
392
- Fi as SidebarRail,
393
- Oi as SidebarSeparator,
394
- Ni as SidebarSide,
395
- _i as SidebarTrigger,
396
- zi as SidebarVariant,
365
+ bi as Sidebar,
366
+ mi as SidebarCollapseIcon,
367
+ Ci as SidebarCollapseIconType,
368
+ gi as SidebarCollapsible,
369
+ Si as SidebarContent,
370
+ xi as SidebarFooter,
371
+ si as SidebarGroup,
372
+ Ti as SidebarGroupAction,
373
+ ci as SidebarGroupContent,
374
+ Di as SidebarGroupLabel,
375
+ fi as SidebarGroupLabelSize,
376
+ Mi as SidebarGroupLabelVariant,
377
+ Ii as SidebarHeader,
378
+ hi as SidebarInput,
379
+ Pi as SidebarInset,
380
+ Li as SidebarMenu,
381
+ Ai as SidebarMenuAction,
382
+ yi as SidebarMenuBadge,
383
+ wi as SidebarMenuButton,
384
+ Gi as SidebarMenuButtonSize,
385
+ Ri as SidebarMenuButtonVariant,
386
+ vi as SidebarMenuItem,
387
+ Bi as SidebarMenuSkeleton,
388
+ Hi as SidebarMenuSub,
389
+ Vi as SidebarMenuSubButton,
390
+ ki as SidebarMenuSubButtonSize,
391
+ Ei as SidebarMenuSubItem,
392
+ Fi as SidebarMenuSubVariant,
393
+ Oi as SidebarProvider,
394
+ Ni as SidebarRail,
395
+ _i as SidebarSeparator,
396
+ zi as SidebarSide,
397
+ Wi as SidebarTrigger,
398
+ Xi as SidebarVariant,
397
399
  Ja as Skeleton,
398
400
  Qa as Slider,
399
401
  $a as Sonner,
@@ -414,37 +416,38 @@ export {
414
416
  Dn as TabsContent,
415
417
  fn as TabsList,
416
418
  Mn as TabsTrigger,
417
- hn as Textarea,
418
- Ln as Toggle,
419
- wn as ToggleGroup,
420
- Gn as ToggleGroupItem,
421
- Bn as Tooltip,
422
- vn as TooltipContent,
423
- Hn as TooltipProvider,
424
- Vn as TooltipTrigger,
425
- En as TypographyBlockquote,
426
- Fn as TypographyCode,
427
- On as TypographyH1,
428
- Nn as TypographyH2,
429
- _n as TypographyH3,
430
- zn as TypographyH4,
431
- Wn as TypographyInlineCode,
432
- Xn as TypographyLarge,
433
- Yn as TypographyLead,
434
- Un as TypographyList,
435
- qn as TypographyMuted,
436
- jn as TypographyP,
437
- Jn as TypographySmall,
438
- fp as XAxis,
439
- Mp as YAxis,
419
+ hn as TextRevealMotion,
420
+ Ln as Textarea,
421
+ yn as Toggle,
422
+ Rn as ToggleGroup,
423
+ vn as ToggleGroupItem,
424
+ Hn as Tooltip,
425
+ Vn as TooltipContent,
426
+ kn as TooltipProvider,
427
+ En as TooltipTrigger,
428
+ On as TypographyBlockquote,
429
+ Nn as TypographyCode,
430
+ _n as TypographyH1,
431
+ zn as TypographyH2,
432
+ Wn as TypographyH3,
433
+ Xn as TypographyH4,
434
+ Yn as TypographyInlineCode,
435
+ Un as TypographyLarge,
436
+ qn as TypographyLead,
437
+ jn as TypographyList,
438
+ Jn as TypographyMuted,
439
+ Kn as TypographyP,
440
+ Qn as TypographySmall,
441
+ Pp as XAxis,
442
+ Lp as YAxis,
440
443
  g as alertVariants,
441
- Kn as blockquoteVariants,
444
+ Zn as blockquoteVariants,
442
445
  ta as calculatePasswordStrength,
443
446
  he as chipVariants,
444
- qi as cn,
445
- yp as createColumnHelper,
447
+ Qi as cn,
448
+ vp as createColumnHelper,
446
449
  Tr as fieldLegendVariants,
447
- wp as flexRender,
450
+ Bp as flexRender,
448
451
  kr as inputChipInputVariants,
449
452
  Er as inputChipVariants,
450
453
  Xr as inputGroupButtonVariants,
@@ -453,9 +456,10 @@ export {
453
456
  gt as itemVariants,
454
457
  tt as labelVariants,
455
458
  en as sonner,
456
- An as toggleVariants,
459
+ wn as toggleVariants,
457
460
  Fr as useInputChipContext,
458
- Yi as useIsMobile,
461
+ qi as useIsMobile,
459
462
  Kt as usePagination,
460
- Wi as useSidebar
463
+ Ji as usePrefersReducedMotion,
464
+ Yi as useSidebar
461
465
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),c=require("react"),T=require("framer-motion"),ht=require("flubber"),gt=require("@brightlocal/ui-components/lib/utils"),bt=require("./hooks/use-prefers-reduced-motion.cjs");function yt(u){const S=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(u){for(const m in u)if(m!=="default"){const P=Object.getOwnPropertyDescriptor(u,m);Object.defineProperty(S,m,P.get?P:{enumerable:!0,get:()=>u[m]})}}return S.default=u,Object.freeze(S)}const Q=yt(c),V="M250 500C388.071 500 500 388.071 500 250C500 111.929 388.071 0 250 0C111.929 0 0 111.929 0 250C0 388.071 111.929 500 250 500Z",Y="M492.425 259.355C332.265 293.145 293.145 332.265 259.355 492.425C257.225 502.525 242.775 502.525 240.645 492.425C206.855 332.265 167.735 293.145 7.575 259.355C-2.525 257.225 -2.525 242.775 7.575 240.645C167.735 206.855 206.855 167.735 240.645 7.575C242.775 -2.525 257.225 -2.525 259.355 7.575C293.145 167.735 332.265 206.855 492.425 240.645C502.525 242.775 502.525 257.225 492.425 259.355Z",tt="M258.366 5.58795L296.379 97.3854C298.509 102.526 304.729 104.546 309.47 101.636L394.177 49.7215C401.057 45.5112 409.598 51.7117 407.708 59.5523L384.506 156.16C383.206 161.571 387.046 166.861 392.596 167.301L491.645 175.092C499.685 175.722 502.945 185.763 496.815 191.003L421.259 255.528C417.029 259.138 417.029 265.679 421.259 269.299L496.815 333.824C502.945 339.065 499.685 349.106 491.645 349.736L392.596 357.526C387.046 357.966 383.206 363.257 384.506 368.667L407.708 465.275C409.588 473.116 401.047 479.326 394.177 475.106L309.47 423.192C304.729 420.282 298.509 422.302 296.379 427.442L258.366 519.24C255.275 526.69 244.725 526.69 241.634 519.24L203.621 427.442C201.491 422.302 195.271 420.282 190.53 423.192L105.823 475.106C98.9428 479.316 90.4021 473.116 92.2922 465.275L115.494 368.667C116.794 363.257 112.954 357.966 107.403 357.526L8.35543 349.736C0.314784 349.106 -2.94548 339.065 3.18502 333.824L78.7411 269.299C82.9715 265.689 82.9715 259.148 78.7411 255.528L3.18502 191.003C-2.94548 185.763 0.314784 175.722 8.35543 175.092L107.403 167.301C112.954 166.861 116.794 161.571 115.494 156.16L92.2922 59.5523C90.4121 51.7117 98.9528 45.5012 105.823 49.7215L190.53 101.636C195.271 104.546 201.491 102.526 203.621 97.3854L241.634 5.58795C244.725 -1.86265 255.275 -1.86265 258.366 5.58795Z",j=u=>u<0?0:u>1?1:u,Ct=[V,Y,tt,V,tt,Y],et=Q.forwardRef(({className:u,dataHook:S,holdTime:m=1300,shimmer:P=!0,gradientFrom:nt="var(--loading-gradient-from)",gradientTo:st="var(--loading-gradient-to)",trackingEl:rt,trackingLabel:at,children:ot,...it},lt)=>{const o=Ct,q=.8,X=180,z=24,F=1,k=bt.usePrefersReducedMotion(),D=`text-reveal-gradient-${c.useId().replace(/:/g,"")}`,N=c.useRef(null),O=c.useRef(null),_=c.useRef(null),H=c.useRef(null),W=c.useRef(null),w=c.useRef(new Map),$=Q.Children.toArray(ot),[ct,ft]=c.useState({widths:[],ballSize:0}),{widths:R,ballSize:i}=ct,ut=c.useCallback(e=>t=>{t?w.current.set(e,t):w.current.delete(e)},[]);c.useEffect(()=>{if(w.current.size===0)return;const e=requestAnimationFrame(()=>{const t=[];let d=32;w.current.forEach((h,n)=>{if(t[n]=h.scrollWidth,n===0){const v=h.firstElementChild??h,b=parseFloat(getComputedStyle(v).fontSize)||16;d=Math.round(b*1.5)}}),ft({widths:t,ballSize:d})});return()=>cancelAnimationFrame(e)},[$.length]),c.useEffect(()=>{if(k)return;const e=W.current;if(!e)return;const t=e;let d,h=null;const n=.12+Math.random()*.06,v=.08+Math.random()*.04,b=Math.random()*Math.PI*2,U=Math.random()*Math.PI*2;let r=-1/0;function a(f){h||(h=f);const M=(f-h)/1e3,p=Math.sin(M*n+b)*Math.PI+Math.sin(M*v+U)*.5;if(Math.abs(p-r)>.01){r=p;const y=Math.cos(p),A=Math.sin(p);t.setAttribute("x1",`${50+45*y}%`),t.setAttribute("y1",`${50+45*A}%`),t.setAttribute("x2",`${50-45*y}%`),t.setAttribute("y2",`${50-45*A}%`)}d=requestAnimationFrame(a)}return d=requestAnimationFrame(a),()=>cancelAnimationFrame(d)},[k]);function dt(e){e.style.opacity="1",T.animate(0,1,{duration:1.2,ease:[.25,1,.5,1],onUpdate:t=>{e.style.transform=`translateX(${-100+t*200}%)`},onComplete:()=>{e.style.opacity="0"}})}c.useEffect(()=>{if(!_.current||!H.current||!N.current||!O.current||R.length===0||i===0)return;const e=_.current,t=H.current,d=N.current,h=O.current;if(k){e.setAttribute("d",o[0]),t.style.opacity="1";const r=w.current.get(0);r&&(r.style.visibility="visible",r.style.clipPath="none");const a=i*.5,f=(R[0]??0)+a+i/2;d.style.transform=`translateX(${f}px)`;return}let n=!1;const v=i*.5,b=[];for(let r=0;r<o.length;r++)b.push(ht.interpolate(o[r],o[(r+1)%o.length]));async function U(){t.style.opacity="1";let r=0,a=0,f=0;for(;!n;){const M=r%$.length,p=R[M]??0,y=-(v+i/2),A=p+v+i/2,G=A-y,B=w.current.get(M);if(!B)break;w.current.forEach((s,x)=>{s.style.visibility=x===M?"visible":"hidden",s.style.clipPath="inset(0 100% 0 0)"});const pt=b[a%o.length],E=360,J=f;if(await new Promise(s=>{if(n){s();return}const x=T.animate(y,A,{type:"spring",stiffness:X*q,damping:z,mass:F,onUpdate:g=>{if(n){x.stop(),s();return}d.style.transform=`translateX(${g}px)`;const L=p>0?100-j(g/p)*100:100;B.style.clipPath=`inset(0 ${L}% 0 0)`;const C=(g-y)/G;t.style.transform=`rotate(${J+C*E}deg)`,e.setAttribute("d",pt(j(C)))},onComplete:()=>{f=J+E,a=(a+1)%o.length,s()}})}),n)break;if(P&&dt(h),m>0){const s=performance.now();for(;!n&&performance.now()-s<m&&(await new Promise(I=>setTimeout(I,300)),!(n||performance.now()-s>=m));){const x=(a+1)%o.length,g=b[a%o.length],L=f,C=f+360;await T.animate(0,1,{type:"spring",stiffness:30,damping:9,mass:.5,onUpdate:I=>{e.setAttribute("d",g(j(I))),t.style.transform=`rotate(${L+I*(C-L)}deg)`}}),f=C,a=x}}if(n)break;const mt=b[a%o.length],K=f;if(await new Promise(s=>{if(n){s();return}const x=T.animate(A,y,{type:"spring",stiffness:X*q,damping:z,mass:F,onUpdate:g=>{if(n){x.stop(),s();return}d.style.transform=`translateX(${g}px)`;const L=p>0?100-j(g/p)*100:100;B.style.clipPath=`inset(0 ${L}% 0 0)`;const C=1-(g-y)/G;t.style.transform=`rotate(${K-C*E}deg)`,e.setAttribute("d",mt(j(C)))},onComplete:()=>{f=K-E,a=(a+1)%o.length,s()}})}),n)break;await new Promise(s=>setTimeout(s,300)),r++}}return U(),()=>{n=!0}},[R,i,$.length,k,q,m,P,X,z,F,o]);const Z=R.length>0?Math.max(...R):0;return l.jsx("div",{ref:lt,className:gt.cn("relative inline-flex items-center",u),"data-hook":S,"data-slot":"text-reveal","data-tracking-el":rt,"data-tracking-label":at,...it,children:l.jsxs("div",{className:"relative flex items-center",style:{width:Z||void 0},children:[l.jsxs("span",{className:"relative inline-block overflow-hidden",style:{width:Z||void 0},children:[$.map((e,t)=>l.jsx("span",{ref:ut(t),style:{display:"block",whiteSpace:"nowrap",visibility:"hidden",clipPath:"inset(0 100% 0 0)",willChange:"clip-path, visibility",...t>0?{position:"absolute",top:0,left:0}:{}},children:e},t)),l.jsx("div",{ref:O,className:"pointer-events-none absolute inset-0",style:{opacity:0,transform:"translateX(-100%)",willChange:"transform, opacity",background:"linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--background) 40%, transparent) 40%, color-mix(in srgb, var(--background) 70%, transparent) 50%, color-mix(in srgb, var(--background) 40%, transparent) 60%, transparent 100%)"}})]}),l.jsx("div",{ref:N,className:"absolute",style:{left:-i/2,top:"50%",marginTop:-i/2,width:i,height:i,transform:"translateX(0px)",willChange:"transform"},children:l.jsxs("svg",{"aria-label":"Loading","data-slot":"text-reveal-ball",fill:"none",height:i,role:"img",style:{overflow:"visible"},viewBox:"-30 -30 560 560",width:i,xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("defs",{children:l.jsxs("linearGradient",{ref:W,id:D,children:[l.jsx("stop",{offset:"-20%",stopColor:nt}),l.jsx("stop",{offset:"120%",stopColor:st})]})}),l.jsx("g",{ref:H,style:{opacity:0,transformOrigin:"250px 250px",willChange:"transform"},children:l.jsx("path",{ref:_,d:o[0],fill:`url(#${D})`})})]})})]})})});et.displayName="TextRevealMotion";exports.TextRevealMotion=et;
@@ -0,0 +1,73 @@
1
+ import * as React from "react";
2
+ /**
3
+ * Props for the TextRevealMotion component.
4
+ * Extends native div props for full HTML attribute support.
5
+ *
6
+ * Each child represents one item in the reveal cycle. The rolling ball
7
+ * animates across, revealing each child via clip-path, then rolls back
8
+ * before moving to the next.
9
+ *
10
+ * @example
11
+ * ```tsx
12
+ * <TextRevealMotion dataHook="loader">
13
+ * <TypographyP dataHook="w1">Analyzing</TypographyP>
14
+ * <TypographyP dataHook="w2">Processing</TypographyP>
15
+ * </TextRevealMotion>
16
+ * ```
17
+ */
18
+ export interface TextRevealMotionProps extends Omit<React.ComponentPropsWithoutRef<"div">, "children"> {
19
+ /**
20
+ * Required data-hook attribute for automated testing.
21
+ * @example "text-reveal-loader"
22
+ */
23
+ dataHook: string;
24
+ /**
25
+ * How long (ms) each item stays fully visible.
26
+ * The ball keeps morphing and rotating during the hold.
27
+ * @default 1300
28
+ */
29
+ holdTime?: number;
30
+ /**
31
+ * Show shimmer sweep after each reveal.
32
+ * @default true
33
+ */
34
+ shimmer?: boolean;
35
+ /**
36
+ * Gradient start color. Accepts any CSS color value.
37
+ * @default "var(--loading-gradient-from)"
38
+ */
39
+ gradientFrom?: string;
40
+ /**
41
+ * Gradient end color. Accepts any CSS color value.
42
+ * @default "var(--loading-gradient-to)"
43
+ */
44
+ gradientTo?: string;
45
+ /**
46
+ * Tracking element identifier for analytics.
47
+ */
48
+ trackingEl?: string;
49
+ /**
50
+ * Tracking label for analytics context.
51
+ */
52
+ trackingLabel?: string;
53
+ /**
54
+ * Each child is one item in the reveal cycle.
55
+ * Pass any Typography component as a child.
56
+ * @example
57
+ * ```tsx
58
+ * <TypographyP dataHook="w1">Analyzing</TypographyP>
59
+ * <TypographyP dataHook="w2">Processing</TypographyP>
60
+ * ```
61
+ */
62
+ children: React.ReactNode;
63
+ }
64
+ /**
65
+ * Animated text reveal component with a rolling shape-morphing ball.
66
+ *
67
+ * The ball rolls across each child, revealing it via clip-path, holds,
68
+ * then rolls back and cycles to the next child. Supports any Typography
69
+ * component as children.
70
+ */
71
+ declare const TextRevealMotion: React.ForwardRefExoticComponent<TextRevealMotionProps & React.RefAttributes<HTMLDivElement>>;
72
+ export { TextRevealMotion };
73
+ //# sourceMappingURL=text-reveal-motion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-reveal-motion.d.ts","sourceRoot":"","sources":["../../src/components/text-reveal-motion.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAsC/B;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CACjD,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,EACrC,UAAU,CACX;IACC;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;;;;OAQG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAMD;;;;;;GAMG;AACH,QAAA,MAAM,gBAAgB,8FA8brB,CAAC;AAIF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}