ml-uikit 1.0.6 → 1.0.8
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/components/button.d.ts +2 -11
- package/dist/components/button.d.ts.map +1 -1
- package/dist/components/ui/badge.d.ts +14 -3
- package/dist/components/ui/badge.d.ts.map +1 -1
- package/dist/components/ui/button-group.d.ts +1 -0
- package/dist/components/ui/button-group.d.ts.map +1 -1
- package/dist/components/ui/button.d.ts +2 -2
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/chart.d.ts +1 -1
- package/dist/components/ui/command.d.ts +7 -7
- package/dist/components/ui/empty.d.ts +1 -0
- package/dist/components/ui/empty.d.ts.map +1 -1
- package/dist/components/ui/input-group.d.ts +2 -2
- package/dist/components/ui/input-otp.d.ts +2 -2
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/item.d.ts +1 -1
- package/dist/components/ui/kbd.d.ts +1 -0
- package/dist/components/ui/kbd.d.ts.map +1 -1
- package/dist/components/ui/sheet.d.ts +1 -1
- package/dist/components/ui/sidebar.d.ts +2 -2
- package/dist/components/ui/skeleton.d.ts +1 -0
- package/dist/components/ui/skeleton.d.ts.map +1 -1
- package/dist/components/ui/table.d.ts +24 -2
- package/dist/components/ui/table.d.ts.map +1 -1
- package/dist/components/ui/textarea.d.ts.map +1 -1
- package/dist/components/ui/toggle-group.d.ts +2 -2
- package/dist/components/ui/toggle.d.ts +2 -2
- package/dist/components/ui/typography.d.ts +171 -0
- package/dist/components/ui/typography.d.ts.map +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs10.js.map +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs11.js.map +1 -1
- package/dist/index.cjs2.js +1 -1
- package/dist/index.cjs23.js +1 -1
- package/dist/index.cjs23.js.map +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs27.js.map +1 -1
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/index.cjs31.js +1 -1
- package/dist/index.cjs31.js.map +1 -1
- package/dist/index.cjs33.js +1 -1
- package/dist/index.cjs33.js.map +1 -1
- package/dist/index.cjs34.js +1 -1
- package/dist/index.cjs34.js.map +1 -1
- package/dist/index.cjs35.js +1 -1
- package/dist/index.cjs35.js.map +1 -1
- package/dist/index.cjs36.js +1 -1
- package/dist/index.cjs36.js.map +1 -1
- package/dist/index.cjs37.js +1 -1
- package/dist/index.cjs37.js.map +1 -1
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs38.js.map +1 -1
- package/dist/index.cjs39.js +1 -1
- package/dist/index.cjs39.js.map +1 -1
- package/dist/index.cjs40.js +1 -1
- package/dist/index.cjs40.js.map +1 -1
- package/dist/index.cjs41.js +1 -1
- package/dist/index.cjs41.js.map +1 -1
- package/dist/index.cjs42.js +1 -1
- package/dist/index.cjs42.js.map +1 -1
- package/dist/index.cjs43.js +1 -1
- package/dist/index.cjs43.js.map +1 -1
- package/dist/index.cjs44.js +1 -1
- package/dist/index.cjs44.js.map +1 -1
- package/dist/index.cjs45.js +1 -1
- package/dist/index.cjs45.js.map +1 -1
- package/dist/index.cjs46.js +1 -1
- package/dist/index.cjs46.js.map +1 -1
- package/dist/index.cjs47.js +1 -1
- package/dist/index.cjs47.js.map +1 -1
- package/dist/index.cjs48.js +1 -1
- package/dist/index.cjs48.js.map +1 -1
- package/dist/index.cjs49.js +1 -1
- package/dist/index.cjs49.js.map +1 -1
- package/dist/index.cjs50.js +1 -1
- package/dist/index.cjs50.js.map +1 -1
- package/dist/index.cjs51.js +1 -1
- package/dist/index.cjs51.js.map +1 -1
- package/dist/index.cjs52.js +1 -1
- package/dist/index.cjs52.js.map +1 -1
- package/dist/index.cjs53.js +1 -1
- package/dist/index.cjs53.js.map +1 -1
- package/dist/index.cjs54.js +1 -1
- package/dist/index.cjs54.js.map +1 -1
- package/dist/index.cjs55.js +1 -1
- package/dist/index.cjs55.js.map +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs8.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +154 -151
- package/dist/index.es.js.map +1 -1
- package/dist/index.es10.js +31 -24
- package/dist/index.es10.js.map +1 -1
- package/dist/index.es11.js +22 -21
- package/dist/index.es11.js.map +1 -1
- package/dist/index.es2.js +1 -1
- package/dist/index.es23.js +24 -23
- package/dist/index.es23.js.map +1 -1
- package/dist/index.es24.js +1 -1
- package/dist/index.es27.js +13 -9
- package/dist/index.es27.js.map +1 -1
- package/dist/index.es28.js +1 -1
- package/dist/index.es30.js +1 -1
- package/dist/index.es31.js +8 -7
- package/dist/index.es31.js.map +1 -1
- package/dist/index.es33.js +91 -189
- package/dist/index.es33.js.map +1 -1
- package/dist/index.es34.js +165 -71
- package/dist/index.es34.js.map +1 -1
- package/dist/index.es35.js +85 -84
- package/dist/index.es35.js.map +1 -1
- package/dist/index.es36.js +92 -17
- package/dist/index.es36.js.map +1 -1
- package/dist/index.es37.js +19 -21
- package/dist/index.es37.js.map +1 -1
- package/dist/index.es38.js +16 -21
- package/dist/index.es38.js.map +1 -1
- package/dist/index.es39.js +16 -21
- package/dist/index.es39.js.map +1 -1
- package/dist/index.es40.js +25 -104
- package/dist/index.es40.js.map +1 -1
- package/dist/index.es41.js +111 -20
- package/dist/index.es41.js.map +1 -1
- package/dist/index.es42.js +19 -97
- package/dist/index.es42.js.map +1 -1
- package/dist/index.es43.js +77 -509
- package/dist/index.es43.js.map +1 -1
- package/dist/index.es44.js +526 -9
- package/dist/index.es44.js.map +1 -1
- package/dist/index.es45.js +15 -18
- package/dist/index.es45.js.map +1 -1
- package/dist/index.es46.js +18 -22
- package/dist/index.es46.js.map +1 -1
- package/dist/index.es47.js +19 -12
- package/dist/index.es47.js.map +1 -1
- package/dist/index.es48.js +13 -22
- package/dist/index.es48.js.map +1 -1
- package/dist/index.es49.js +17 -80
- package/dist/index.es49.js.map +1 -1
- package/dist/index.es50.js +186 -28
- package/dist/index.es50.js.map +1 -1
- package/dist/index.es51.js +38 -10
- package/dist/index.es51.js.map +1 -1
- package/dist/index.es52.js +13 -29
- package/dist/index.es52.js.map +1 -1
- package/dist/index.es53.js +30 -34
- package/dist/index.es53.js.map +1 -1
- package/dist/index.es54.js +37 -19
- package/dist/index.es54.js.map +1 -1
- package/dist/index.es55.js +18 -41
- package/dist/index.es55.js.map +1 -1
- package/dist/index.es8.js +71 -20
- package/dist/index.es8.js.map +1 -1
- package/dist/style.css +421 -34
- package/package.json +17 -3
package/dist/index.es.js
CHANGED
|
@@ -3,8 +3,8 @@ import { Accordion as t, AccordionContent as n, AccordionItem as M, AccordionTri
|
|
|
3
3
|
import { Alert as L, AlertDescription as u, AlertTitle as l } from "./index.es4.js";
|
|
4
4
|
import { AlertDialog as d, AlertDialogAction as m, AlertDialogCancel as g, AlertDialogContent as b, AlertDialogDescription as C, AlertDialogFooter as S, AlertDialogHeader as T, AlertDialogOverlay as D, AlertDialogPortal as c, AlertDialogTitle as x, AlertDialogTrigger as I } from "./index.es5.js";
|
|
5
5
|
import { AspectRatio as w } from "./index.es6.js";
|
|
6
|
-
import { Avatar as F, AvatarFallback as
|
|
7
|
-
import { Badge as
|
|
6
|
+
import { Avatar as F, AvatarFallback as h, AvatarImage as P } from "./index.es7.js";
|
|
7
|
+
import { Badge as v, badgeVariants as B } from "./index.es8.js";
|
|
8
8
|
import { Breadcrumb as H, BreadcrumbEllipsis as R, BreadcrumbItem as N, BreadcrumbLink as k, BreadcrumbList as E, BreadcrumbPage as O, BreadcrumbSeparator as V } from "./index.es9.js";
|
|
9
9
|
import { Button as U, buttonVariants as j } from "./index.es10.js";
|
|
10
10
|
import { ButtonGroup as z, ButtonGroupSeparator as J, ButtonGroupText as Q, buttonGroupVariants as W } from "./index.es11.js";
|
|
@@ -14,11 +14,11 @@ import { Carousel as Me, CarouselContent as ie, CarouselItem as se, CarouselNext
|
|
|
14
14
|
import { ChartContainer as pe, ChartLegend as de, ChartLegendContent as me, ChartStyle as ge, ChartTooltip as be, ChartTooltipContent as Ce } from "./index.es15.js";
|
|
15
15
|
import { Checkbox as Te } from "./index.es16.js";
|
|
16
16
|
import { Collapsible as ce, CollapsibleContent as xe, CollapsibleTrigger as Ie } from "./index.es17.js";
|
|
17
|
-
import { Command as we, CommandDialog as Ae, CommandEmpty as Fe, CommandGroup as
|
|
17
|
+
import { Command as we, CommandDialog as Ae, CommandEmpty as Fe, CommandGroup as he, CommandInput as Pe, CommandItem as fe, CommandList as ve, CommandSeparator as Be, CommandShortcut as ye } from "./index.es18.js";
|
|
18
18
|
import { ContextMenu as Re, ContextMenuCheckboxItem as Ne, ContextMenuContent as ke, ContextMenuGroup as Ee, ContextMenuItem as Oe, ContextMenuLabel as Ve, ContextMenuPortal as Ke, ContextMenuRadioGroup as Ue, ContextMenuRadioItem as je, ContextMenuSeparator as qe, ContextMenuShortcut as ze, ContextMenuSub as Je, ContextMenuSubContent as Qe, ContextMenuSubTrigger as We, ContextMenuTrigger as Xe } from "./index.es19.js";
|
|
19
19
|
import { Dialog as Ze, DialogClose as _e, DialogContent as $e, DialogDescription as ea, DialogFooter as aa, DialogHeader as ra, DialogOverlay as oa, DialogPortal as ta, DialogTitle as na, DialogTrigger as Ma } from "./index.es20.js";
|
|
20
20
|
import { Drawer as sa, DrawerClose as La, DrawerContent as ua, DrawerDescription as la, DrawerFooter as pa, DrawerHeader as da, DrawerOverlay as ma, DrawerPortal as ga, DrawerTitle as ba, DrawerTrigger as Ca } from "./index.es21.js";
|
|
21
|
-
import { DropdownMenu as Ta, DropdownMenuCheckboxItem as Da, DropdownMenuContent as ca, DropdownMenuGroup as xa, DropdownMenuItem as Ia, DropdownMenuLabel as Ga, DropdownMenuPortal as wa, DropdownMenuRadioGroup as Aa, DropdownMenuRadioItem as Fa, DropdownMenuSeparator as
|
|
21
|
+
import { DropdownMenu as Ta, DropdownMenuCheckboxItem as Da, DropdownMenuContent as ca, DropdownMenuGroup as xa, DropdownMenuItem as Ia, DropdownMenuLabel as Ga, DropdownMenuPortal as wa, DropdownMenuRadioGroup as Aa, DropdownMenuRadioItem as Fa, DropdownMenuSeparator as ha, DropdownMenuShortcut as Pa, DropdownMenuSub as fa, DropdownMenuSubContent as va, DropdownMenuSubTrigger as Ba, DropdownMenuTrigger as ya } from "./index.es22.js";
|
|
22
22
|
import { Empty as Ra, EmptyContent as Na, EmptyDescription as ka, EmptyHeader as Ea, EmptyMedia as Oa, EmptyTitle as Va } from "./index.es23.js";
|
|
23
23
|
import { Field as Ua, FieldContent as ja, FieldDescription as qa, FieldError as za, FieldGroup as Ja, FieldLabel as Qa, FieldLegend as Wa, FieldSeparator as Xa, FieldSet as Ya, FieldTitle as Za } from "./index.es24.js";
|
|
24
24
|
import { Form as $a, FormControl as er, FormDescription as ar, FormField as rr, FormItem as or, FormLabel as tr, FormMessage as nr, useFormField as Mr } from "./index.es25.js";
|
|
@@ -26,31 +26,32 @@ import { HoverCard as sr, HoverCardContent as Lr, HoverCardTrigger as ur } from
|
|
|
26
26
|
import { Input as pr } from "./index.es27.js";
|
|
27
27
|
import { InputGroup as mr, InputGroupAddon as gr, InputGroupButton as br, InputGroupInput as Cr, InputGroupText as Sr, InputGroupTextarea as Tr } from "./index.es28.js";
|
|
28
28
|
import { InputOTP as cr, InputOTPGroup as xr, InputOTPSeparator as Ir, InputOTPSlot as Gr } from "./index.es29.js";
|
|
29
|
-
import { Item as Ar, ItemActions as Fr, ItemContent as
|
|
29
|
+
import { Item as Ar, ItemActions as Fr, ItemContent as hr, ItemDescription as Pr, ItemFooter as fr, ItemGroup as vr, ItemHeader as Br, ItemMedia as yr, ItemSeparator as Hr, ItemTitle as Rr } from "./index.es30.js";
|
|
30
30
|
import { Kbd as kr, KbdGroup as Er } from "./index.es31.js";
|
|
31
31
|
import { Label as Vr } from "./index.es32.js";
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
32
|
+
import { Typography as Ur, typographyVariants as jr } from "./index.es33.js";
|
|
33
|
+
import { Menubar as zr, MenubarCheckboxItem as Jr, MenubarContent as Qr, MenubarGroup as Wr, MenubarItem as Xr, MenubarLabel as Yr, MenubarMenu as Zr, MenubarPortal as _r, MenubarRadioGroup as $r, MenubarRadioItem as eo, MenubarSeparator as ao, MenubarShortcut as ro, MenubarSub as oo, MenubarSubContent as to, MenubarSubTrigger as no, MenubarTrigger as Mo } from "./index.es34.js";
|
|
34
|
+
import { NavigationMenu as so, NavigationMenuContent as Lo, NavigationMenuIndicator as uo, NavigationMenuItem as lo, NavigationMenuLink as po, NavigationMenuList as mo, NavigationMenuTrigger as go, navigationMenuTriggerStyle as bo, NavigationMenuViewport as Co } from "./index.es35.js";
|
|
35
|
+
import { Pagination as To, PaginationContent as Do, PaginationEllipsis as co, PaginationItem as xo, PaginationLink as Io, PaginationNext as Go, PaginationPrevious as wo } from "./index.es36.js";
|
|
36
|
+
import { Popover as Fo, PopoverAnchor as ho, PopoverContent as Po, PopoverTrigger as fo } from "./index.es37.js";
|
|
37
|
+
import { Progress as Bo } from "./index.es38.js";
|
|
38
|
+
import { RadioGroup as Ho, RadioGroupItem as Ro } from "./index.es39.js";
|
|
39
|
+
import { ScrollArea as ko, ScrollBar as Eo } from "./index.es40.js";
|
|
40
|
+
import { Select as Vo, SelectContent as Ko, SelectGroup as Uo, SelectItem as jo, SelectLabel as qo, SelectScrollDownButton as zo, SelectScrollUpButton as Jo, SelectSeparator as Qo, SelectTrigger as Wo, SelectValue as Xo } from "./index.es41.js";
|
|
41
|
+
import { Separator as Zo } from "./index.es42.js";
|
|
42
|
+
import { Sheet as $o, SheetClose as et, SheetContent as at, SheetDescription as rt, SheetFooter as ot, SheetHeader as tt, SheetOverlay as nt, SheetPortal as Mt, SheetTitle as it, SheetTrigger as st } from "./index.es43.js";
|
|
43
|
+
import { Sidebar as ut, SidebarContent as lt, SidebarFooter as pt, SidebarGroup as dt, SidebarGroupAction as mt, SidebarGroupContent as gt, SidebarGroupLabel as bt, SidebarHeader as Ct, SidebarInput as St, SidebarInset as Tt, SidebarMenu as Dt, SidebarMenuAction as ct, SidebarMenuBadge as xt, SidebarMenuButton as It, SidebarMenuItem as Gt, SidebarMenuSkeleton as wt, SidebarMenuSub as At, SidebarMenuSubButton as Ft, SidebarMenuSubItem as ht, SidebarProvider as Pt, SidebarRail as ft, SidebarSeparator as vt, SidebarTrigger as Bt, useSidebar as yt } from "./index.es44.js";
|
|
44
|
+
import { Skeleton as Rt } from "./index.es45.js";
|
|
45
|
+
import { Slider as kt } from "./index.es46.js";
|
|
46
|
+
import { Toaster as Ot } from "./index.es47.js";
|
|
47
|
+
import { Spinner as Kt } from "./index.es48.js";
|
|
48
|
+
import { Switch as jt } from "./index.es49.js";
|
|
49
|
+
import { Table as zt, TableBody as Jt, TableCaption as Qt, TableCell as Wt, TableFooter as Xt, TableHead as Yt, TableHeader as Zt, TableRow as _t } from "./index.es50.js";
|
|
50
|
+
import { Tabs as en, TabsContent as an, TabsList as rn, TabsTrigger as on } from "./index.es51.js";
|
|
51
|
+
import { Textarea as nn } from "./index.es52.js";
|
|
52
|
+
import { Toggle as sn, toggleVariants as Ln } from "./index.es53.js";
|
|
53
|
+
import { ToggleGroup as ln, ToggleGroupItem as pn } from "./index.es54.js";
|
|
54
|
+
import { Tooltip as mn, TooltipContent as gn, TooltipProvider as bn, TooltipTrigger as Cn } from "./index.es55.js";
|
|
54
55
|
export {
|
|
55
56
|
r as Login,
|
|
56
57
|
t as MLAccordion,
|
|
@@ -73,9 +74,9 @@ export {
|
|
|
73
74
|
l as MLAlertTitle,
|
|
74
75
|
w as MLAspectRatio,
|
|
75
76
|
F as MLAvatar,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
h as MLAvatarFallback,
|
|
78
|
+
P as MLAvatarImage,
|
|
79
|
+
v as MLBadge,
|
|
79
80
|
B as MLBadgeVariants,
|
|
80
81
|
H as MLBreadcrumb,
|
|
81
82
|
R as MLBreadcrumbEllipsis,
|
|
@@ -116,10 +117,10 @@ export {
|
|
|
116
117
|
we as MLCommand,
|
|
117
118
|
Ae as MLCommandDialog,
|
|
118
119
|
Fe as MLCommandEmpty,
|
|
119
|
-
|
|
120
|
-
|
|
120
|
+
he as MLCommandGroup,
|
|
121
|
+
Pe as MLCommandInput,
|
|
121
122
|
fe as MLCommandItem,
|
|
122
|
-
|
|
123
|
+
ve as MLCommandList,
|
|
123
124
|
Be as MLCommandSeparator,
|
|
124
125
|
ye as MLCommandShortcut,
|
|
125
126
|
Re as MLContextMenu,
|
|
@@ -166,10 +167,10 @@ export {
|
|
|
166
167
|
wa as MLDropdownMenuPortal,
|
|
167
168
|
Aa as MLDropdownMenuRadioGroup,
|
|
168
169
|
Fa as MLDropdownMenuRadioItem,
|
|
169
|
-
|
|
170
|
-
|
|
170
|
+
ha as MLDropdownMenuSeparator,
|
|
171
|
+
Pa as MLDropdownMenuShortcut,
|
|
171
172
|
fa as MLDropdownMenuSub,
|
|
172
|
-
|
|
173
|
+
va as MLDropdownMenuSubContent,
|
|
173
174
|
Ba as MLDropdownMenuSubTrigger,
|
|
174
175
|
ya as MLDropdownMenuTrigger,
|
|
175
176
|
Ra as MLEmpty,
|
|
@@ -211,10 +212,10 @@ export {
|
|
|
211
212
|
Gr as MLInputOTPSlot,
|
|
212
213
|
Ar as MLItem,
|
|
213
214
|
Fr as MLItemActions,
|
|
214
|
-
|
|
215
|
-
|
|
215
|
+
hr as MLItemContent,
|
|
216
|
+
Pr as MLItemDescription,
|
|
216
217
|
fr as MLItemFooter,
|
|
217
|
-
|
|
218
|
+
vr as MLItemGroup,
|
|
218
219
|
Br as MLItemHeader,
|
|
219
220
|
yr as MLItemMedia,
|
|
220
221
|
Hr as MLItemSeparator,
|
|
@@ -222,118 +223,120 @@ export {
|
|
|
222
223
|
kr as MLKbd,
|
|
223
224
|
Er as MLKbdGroup,
|
|
224
225
|
Vr as MLLabel,
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
226
|
+
zr as MLMenubar,
|
|
227
|
+
Jr as MLMenubarCheckboxItem,
|
|
228
|
+
Qr as MLMenubarContent,
|
|
229
|
+
Wr as MLMenubarGroup,
|
|
230
|
+
Xr as MLMenubarItem,
|
|
231
|
+
Yr as MLMenubarLabel,
|
|
232
|
+
Zr as MLMenubarMenu,
|
|
233
|
+
_r as MLMenubarPortal,
|
|
234
|
+
$r as MLMenubarRadioGroup,
|
|
235
|
+
eo as MLMenubarRadioItem,
|
|
236
|
+
ao as MLMenubarSeparator,
|
|
237
|
+
ro as MLMenubarShortcut,
|
|
238
|
+
oo as MLMenubarSub,
|
|
239
|
+
to as MLMenubarSubContent,
|
|
240
|
+
no as MLMenubarSubTrigger,
|
|
241
|
+
Mo as MLMenubarTrigger,
|
|
242
|
+
so as MLNavigationMenu,
|
|
243
|
+
Lo as MLNavigationMenuContent,
|
|
244
|
+
uo as MLNavigationMenuIndicator,
|
|
245
|
+
lo as MLNavigationMenuItem,
|
|
246
|
+
po as MLNavigationMenuLink,
|
|
247
|
+
mo as MLNavigationMenuList,
|
|
248
|
+
go as MLNavigationMenuTrigger,
|
|
249
|
+
bo as MLNavigationMenuTriggerStyle,
|
|
250
|
+
Co as MLNavigationMenuViewport,
|
|
251
|
+
To as MLPagination,
|
|
252
|
+
Do as MLPaginationContent,
|
|
253
|
+
co as MLPaginationEllipsis,
|
|
254
|
+
xo as MLPaginationItem,
|
|
255
|
+
Io as MLPaginationLink,
|
|
256
|
+
Go as MLPaginationNext,
|
|
257
|
+
wo as MLPaginationPrevious,
|
|
258
|
+
Fo as MLPopover,
|
|
259
|
+
ho as MLPopoverAnchor,
|
|
260
|
+
Po as MLPopoverContent,
|
|
261
|
+
fo as MLPopoverTrigger,
|
|
262
|
+
Bo as MLProgress,
|
|
263
|
+
Ho as MLRadioGroup,
|
|
264
|
+
Ro as MLRadioGroupItem,
|
|
265
|
+
ko as MLScrollArea,
|
|
266
|
+
Eo as MLScrollBar,
|
|
267
|
+
Vo as MLSelect,
|
|
268
|
+
Ko as MLSelectContent,
|
|
269
|
+
Uo as MLSelectGroup,
|
|
270
|
+
jo as MLSelectItem,
|
|
271
|
+
qo as MLSelectLabel,
|
|
272
|
+
zo as MLSelectScrollDownButton,
|
|
273
|
+
Jo as MLSelectScrollUpButton,
|
|
274
|
+
Qo as MLSelectSeparator,
|
|
275
|
+
Wo as MLSelectTrigger,
|
|
276
|
+
Xo as MLSelectValue,
|
|
277
|
+
Zo as MLSeparator,
|
|
278
|
+
$o as MLSheet,
|
|
279
|
+
et as MLSheetClose,
|
|
280
|
+
at as MLSheetContent,
|
|
281
|
+
rt as MLSheetDescription,
|
|
282
|
+
ot as MLSheetFooter,
|
|
283
|
+
tt as MLSheetHeader,
|
|
284
|
+
nt as MLSheetOverlay,
|
|
285
|
+
Mt as MLSheetPortal,
|
|
286
|
+
it as MLSheetTitle,
|
|
287
|
+
st as MLSheetTrigger,
|
|
288
|
+
ut as MLSidebar,
|
|
289
|
+
lt as MLSidebarContent,
|
|
290
|
+
pt as MLSidebarFooter,
|
|
291
|
+
dt as MLSidebarGroup,
|
|
292
|
+
mt as MLSidebarGroupAction,
|
|
293
|
+
gt as MLSidebarGroupContent,
|
|
294
|
+
bt as MLSidebarGroupLabel,
|
|
295
|
+
Ct as MLSidebarHeader,
|
|
296
|
+
St as MLSidebarInput,
|
|
297
|
+
Tt as MLSidebarInset,
|
|
298
|
+
Dt as MLSidebarMenu,
|
|
299
|
+
ct as MLSidebarMenuAction,
|
|
300
|
+
xt as MLSidebarMenuBadge,
|
|
301
|
+
It as MLSidebarMenuButton,
|
|
302
|
+
Gt as MLSidebarMenuItem,
|
|
303
|
+
wt as MLSidebarMenuSkeleton,
|
|
304
|
+
At as MLSidebarMenuSub,
|
|
305
|
+
Ft as MLSidebarMenuSubButton,
|
|
306
|
+
ht as MLSidebarMenuSubItem,
|
|
307
|
+
Pt as MLSidebarProvider,
|
|
308
|
+
ft as MLSidebarRail,
|
|
309
|
+
vt as MLSidebarSeparator,
|
|
310
|
+
Bt as MLSidebarTrigger,
|
|
311
|
+
Rt as MLSkeleton,
|
|
312
|
+
kt as MLSlider,
|
|
313
|
+
Kt as MLSpinner,
|
|
314
|
+
jt as MLSwitch,
|
|
315
|
+
zt as MLTable,
|
|
316
|
+
Jt as MLTableBody,
|
|
317
|
+
Qt as MLTableCaption,
|
|
318
|
+
Wt as MLTableCell,
|
|
319
|
+
Xt as MLTableFooter,
|
|
320
|
+
Yt as MLTableHead,
|
|
321
|
+
Zt as MLTableHeader,
|
|
322
|
+
_t as MLTableRow,
|
|
323
|
+
en as MLTabs,
|
|
324
|
+
an as MLTabsContent,
|
|
325
|
+
rn as MLTabsList,
|
|
326
|
+
on as MLTabsTrigger,
|
|
327
|
+
nn as MLTextarea,
|
|
328
|
+
Ot as MLToaster,
|
|
329
|
+
sn as MLToggle,
|
|
330
|
+
ln as MLToggleGroup,
|
|
331
|
+
pn as MLToggleGroupItem,
|
|
332
|
+
Ln as MLToggleVariants,
|
|
333
|
+
mn as MLTooltip,
|
|
334
|
+
gn as MLTooltipContent,
|
|
335
|
+
bn as MLTooltipProvider,
|
|
336
|
+
Cn as MLTooltipTrigger,
|
|
337
|
+
Ur as MLTypography,
|
|
338
|
+
jr as MLTypographyVariants,
|
|
336
339
|
Mr as MLUseFormField,
|
|
337
|
-
|
|
340
|
+
yt as MLUseSidebar
|
|
338
341
|
};
|
|
339
342
|
//# sourceMappingURL=index.es.js.map
|
package/dist/index.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.es10.js
CHANGED
|
@@ -1,24 +1,31 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
|
-
import { Slot as
|
|
3
|
-
import { cva as
|
|
4
|
-
import { cn as
|
|
5
|
-
const m =
|
|
6
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md
|
|
2
|
+
import { Slot as c } from "@radix-ui/react-slot";
|
|
3
|
+
import { cva as g } from "class-variance-authority";
|
|
4
|
+
import { cn as p } from "./index.es56.js";
|
|
5
|
+
const t = "bg-primary text-primary-foreground hover:bg-primary/90", l = "bg-secondary text-secondary-foreground hover:bg-secondary/80", m = "border border-primary bg-background text-primary hover:bg-primary/10", r = "border border-input bg-background text-foreground hover:bg-muted", v = "bg-transparent text-foreground hover:bg-muted", b = "bg-destructive text-destructive-foreground hover:bg-destructive/90", f = "text-primary underline-offset-4 hover:underline", y = g(
|
|
6
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
7
7
|
{
|
|
8
8
|
variants: {
|
|
9
9
|
variant: {
|
|
10
|
-
default:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
default: t,
|
|
11
|
+
primary: t,
|
|
12
|
+
secondary: l,
|
|
13
|
+
"outline-primary": m,
|
|
14
|
+
"outline-neutral": r,
|
|
15
|
+
outline: r,
|
|
16
|
+
ghost: v,
|
|
17
|
+
destructive: b,
|
|
18
|
+
link: f
|
|
16
19
|
},
|
|
17
20
|
size: {
|
|
18
|
-
default: "h-9 px-4
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
default: "h-9 px-4 text-sm [&_svg]:size-4",
|
|
22
|
+
lg: "h-10 px-5 text-sm [&_svg]:size-5",
|
|
23
|
+
sm: "h-8 px-3 text-xs [&_svg]:size-3.5",
|
|
24
|
+
mini: "h-7 px-2 text-[10px] leading-4 [&_svg]:size-3",
|
|
25
|
+
icon: "h-9 w-9 p-0 [&_svg]:size-4",
|
|
26
|
+
"icon-lg": "h-10 w-10 p-0 [&_svg]:size-5",
|
|
27
|
+
"icon-sm": "h-8 w-8 p-0 [&_svg]:size-3.5",
|
|
28
|
+
"icon-mini": "h-7 w-7 p-0 [&_svg]:size-3"
|
|
22
29
|
}
|
|
23
30
|
},
|
|
24
31
|
defaultVariants: {
|
|
@@ -26,22 +33,22 @@ const m = c(
|
|
|
26
33
|
size: "default"
|
|
27
34
|
}
|
|
28
35
|
}
|
|
29
|
-
),
|
|
30
|
-
({ className:
|
|
31
|
-
const
|
|
36
|
+
), h = e.forwardRef(
|
|
37
|
+
({ className: i, variant: n, size: o, asChild: a = !1, ...s }, d) => {
|
|
38
|
+
const u = a ? c : "button";
|
|
32
39
|
return /* @__PURE__ */ e.createElement(
|
|
33
|
-
|
|
40
|
+
u,
|
|
34
41
|
{
|
|
35
|
-
className:
|
|
36
|
-
ref:
|
|
42
|
+
className: p(y({ variant: n, size: o, className: i })),
|
|
43
|
+
ref: d,
|
|
37
44
|
...s
|
|
38
45
|
}
|
|
39
46
|
);
|
|
40
47
|
}
|
|
41
48
|
);
|
|
42
|
-
|
|
49
|
+
h.displayName = "Button";
|
|
43
50
|
export {
|
|
44
|
-
|
|
45
|
-
|
|
51
|
+
h as Button,
|
|
52
|
+
y as buttonVariants
|
|
46
53
|
};
|
|
47
54
|
//# sourceMappingURL=index.es10.js.map
|
package/dist/index.es10.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es10.js","sources":["../src/components/ui/button.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst buttonVariants = cva(\n \"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md
|
|
1
|
+
{"version":3,"file":"index.es10.js","sources":["../src/components/ui/button.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst primaryVariant = \"bg-primary text-primary-foreground hover:bg-primary/90\"\nconst secondaryVariant =\n \"bg-secondary text-secondary-foreground hover:bg-secondary/80\"\nconst outlinePrimaryVariant =\n \"border border-primary bg-background text-primary hover:bg-primary/10\"\nconst outlineNeutralVariant =\n \"border border-input bg-background text-foreground hover:bg-muted\"\nconst ghostVariant = \"bg-transparent text-foreground hover:bg-muted\"\nconst destructiveVariant =\n \"bg-destructive text-destructive-foreground hover:bg-destructive/90\"\nconst linkVariant = \"text-primary underline-offset-4 hover:underline\"\n\nconst buttonVariants = cva(\n \"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n {\n variants: {\n variant: {\n default: primaryVariant,\n primary: primaryVariant,\n secondary: secondaryVariant,\n \"outline-primary\": outlinePrimaryVariant,\n \"outline-neutral\": outlineNeutralVariant,\n outline: outlineNeutralVariant,\n ghost: ghostVariant,\n destructive: destructiveVariant,\n link: linkVariant,\n },\n size: {\n default: \"h-9 px-4 text-sm [&_svg]:size-4\",\n lg: \"h-10 px-5 text-sm [&_svg]:size-5\",\n sm: \"h-8 px-3 text-xs [&_svg]:size-3.5\",\n mini: \"h-7 px-2 text-[10px] leading-4 [&_svg]:size-3\",\n icon: \"h-9 w-9 p-0 [&_svg]:size-4\",\n \"icon-lg\": \"h-10 w-10 p-0 [&_svg]:size-5\",\n \"icon-sm\": \"h-8 w-8 p-0 [&_svg]:size-3.5\",\n \"icon-mini\": \"h-7 w-7 p-0 [&_svg]:size-3\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n }\n)\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement>,\n VariantProps<typeof buttonVariants> {\n asChild?: boolean\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ className, variant, size, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : \"button\"\n return (\n <Comp\n className={cn(buttonVariants({ variant, size, className }))}\n ref={ref}\n {...props}\n />\n )\n }\n)\nButton.displayName = \"Button\"\n\nexport { Button, buttonVariants }\n"],"names":["primaryVariant","secondaryVariant","outlinePrimaryVariant","outlineNeutralVariant","ghostVariant","destructiveVariant","linkVariant","buttonVariants","cva","Button","React","className","variant","size","asChild","props","ref","Comp","Slot","cn"],"mappings":";;;;AAMA,MAAMA,IAAiB,0DACjBC,IACJ,gEACIC,IACJ,wEACIC,IACJ,oEACIC,IAAe,iDACfC,IACJ,sEACIC,IAAc,mDAEdC,IAAiBC;AAAA,EACrB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SAASR;AAAA,QACT,SAASA;AAAA,QACT,WAAWC;AAAA,QACX,mBAAmBC;AAAA,QACnB,mBAAmBC;AAAA,QACnB,SAASA;AAAA,QACT,OAAOC;AAAA,QACP,aAAaC;AAAA,QACb,MAAMC;AAAA,MAAA;AAAA,MAER,MAAM;AAAA,QACJ,SAAS;AAAA,QACT,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,MAAM;AAAA,QACN,MAAM;AAAA,QACN,WAAW;AAAA,QACX,WAAW;AAAA,QACX,aAAa;AAAA,MAAA;AAAA,IACf;AAAA,IAEF,iBAAiB;AAAA,MACf,SAAS;AAAA,MACT,MAAM;AAAA,IAAA;AAAA,EACR;AAEJ,GAQMG,IAASC,EAAM;AAAA,EACnB,CAAC,EAAE,WAAAC,GAAW,SAAAC,GAAS,MAAAC,GAAM,SAAAC,IAAU,IAAO,GAAGC,EAAA,GAASC,MAAQ;AAChE,UAAMC,IAAOH,IAAUI,IAAO;AAC9B,WACE,gBAAAR,EAAA;AAAA,MAACO;AAAA,MAAA;AAAA,QACC,WAAWE,EAAGZ,EAAe,EAAE,SAAAK,GAAS,MAAAC,GAAM,WAAAF,EAAA,CAAW,CAAC;AAAA,QAC1D,KAAAK;AAAA,QACC,GAAGD;AAAA,MAAA;AAAA,IAAA;AAAA,EAGV;AACF;AACAN,EAAO,cAAc;"}
|
package/dist/index.es11.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import * as r from "react";
|
|
2
|
+
import { Slot as i } from "@radix-ui/react-slot";
|
|
3
|
+
import { cva as s } from "class-variance-authority";
|
|
4
|
+
import { cn as a } from "./index.es56.js";
|
|
5
|
+
import { Separator as l } from "./index.es42.js";
|
|
6
|
+
const d = s(
|
|
6
7
|
"flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",
|
|
7
8
|
{
|
|
8
9
|
variants: {
|
|
@@ -16,32 +17,32 @@ const l = i(
|
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
19
|
);
|
|
19
|
-
function
|
|
20
|
+
function p({
|
|
20
21
|
className: e,
|
|
21
22
|
orientation: t,
|
|
22
23
|
...o
|
|
23
24
|
}) {
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
+
return /* @__PURE__ */ r.createElement(
|
|
25
26
|
"div",
|
|
26
27
|
{
|
|
27
28
|
role: "group",
|
|
28
29
|
"data-slot": "button-group",
|
|
29
30
|
"data-orientation": t,
|
|
30
|
-
className:
|
|
31
|
+
className: a(d({ orientation: t }), e),
|
|
31
32
|
...o
|
|
32
33
|
}
|
|
33
34
|
);
|
|
34
35
|
}
|
|
35
|
-
function
|
|
36
|
+
function h({
|
|
36
37
|
className: e,
|
|
37
38
|
asChild: t = !1,
|
|
38
39
|
...o
|
|
39
40
|
}) {
|
|
40
|
-
const
|
|
41
|
-
return /* @__PURE__ */
|
|
42
|
-
|
|
41
|
+
const n = t ? i : "div";
|
|
42
|
+
return /* @__PURE__ */ r.createElement(
|
|
43
|
+
n,
|
|
43
44
|
{
|
|
44
|
-
className:
|
|
45
|
+
className: a(
|
|
45
46
|
"bg-muted shadow-xs flex items-center gap-2 rounded-md border px-4 text-sm font-medium [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none",
|
|
46
47
|
e
|
|
47
48
|
),
|
|
@@ -49,17 +50,17 @@ function p({
|
|
|
49
50
|
}
|
|
50
51
|
);
|
|
51
52
|
}
|
|
52
|
-
function
|
|
53
|
+
function g({
|
|
53
54
|
className: e,
|
|
54
55
|
orientation: t = "vertical",
|
|
55
56
|
...o
|
|
56
57
|
}) {
|
|
57
|
-
return /* @__PURE__ */
|
|
58
|
-
|
|
58
|
+
return /* @__PURE__ */ r.createElement(
|
|
59
|
+
l,
|
|
59
60
|
{
|
|
60
61
|
"data-slot": "button-group-separator",
|
|
61
62
|
orientation: t,
|
|
62
|
-
className:
|
|
63
|
+
className: a(
|
|
63
64
|
"bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto",
|
|
64
65
|
e
|
|
65
66
|
),
|
|
@@ -68,9 +69,9 @@ function h({
|
|
|
68
69
|
);
|
|
69
70
|
}
|
|
70
71
|
export {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
p as ButtonGroup,
|
|
73
|
+
g as ButtonGroupSeparator,
|
|
74
|
+
h as ButtonGroupText,
|
|
75
|
+
d as buttonGroupVariants
|
|
75
76
|
};
|
|
76
77
|
//# sourceMappingURL=index.es11.js.map
|
package/dist/index.es11.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es11.js","sources":["../src/components/ui/button-group.tsx"],"sourcesContent":["import { Slot } from \"@radix-ui/react-slot\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Separator } from \"@/components/ui/separator\"\n\nconst buttonGroupVariants = cva(\n \"flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1\",\n {\n variants: {\n orientation: {\n horizontal:\n \"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none\",\n vertical:\n \"flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none\",\n },\n },\n defaultVariants: {\n orientation: \"horizontal\",\n },\n }\n)\n\nfunction ButtonGroup({\n className,\n orientation,\n ...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof buttonGroupVariants>) {\n return (\n <div\n role=\"group\"\n data-slot=\"button-group\"\n data-orientation={orientation}\n className={cn(buttonGroupVariants({ orientation }), className)}\n {...props}\n />\n )\n}\n\nfunction ButtonGroupText({\n className,\n asChild = false,\n ...props\n}: React.ComponentProps<\"div\"> & {\n asChild?: boolean\n}) {\n const Comp = asChild ? Slot : \"div\"\n\n return (\n <Comp\n className={cn(\n \"bg-muted shadow-xs flex items-center gap-2 rounded-md border px-4 text-sm font-medium [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction ButtonGroupSeparator({\n className,\n orientation = \"vertical\",\n ...props\n}: React.ComponentProps<typeof Separator>) {\n return (\n <Separator\n data-slot=\"button-group-separator\"\n orientation={orientation}\n className={cn(\n \"bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport {\n ButtonGroup,\n ButtonGroupSeparator,\n ButtonGroupText,\n buttonGroupVariants,\n}\n"],"names":["buttonGroupVariants","cva","ButtonGroup","className","orientation","props","cn","ButtonGroupText","asChild","Comp","Slot","ButtonGroupSeparator","Separator"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es11.js","sources":["../src/components/ui/button-group.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Separator } from \"@/components/ui/separator\"\n\nconst buttonGroupVariants = cva(\n \"flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1\",\n {\n variants: {\n orientation: {\n horizontal:\n \"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none\",\n vertical:\n \"flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none\",\n },\n },\n defaultVariants: {\n orientation: \"horizontal\",\n },\n }\n)\n\nfunction ButtonGroup({\n className,\n orientation,\n ...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof buttonGroupVariants>) {\n return (\n <div\n role=\"group\"\n data-slot=\"button-group\"\n data-orientation={orientation}\n className={cn(buttonGroupVariants({ orientation }), className)}\n {...props}\n />\n )\n}\n\nfunction ButtonGroupText({\n className,\n asChild = false,\n ...props\n}: React.ComponentProps<\"div\"> & {\n asChild?: boolean\n}) {\n const Comp = asChild ? Slot : \"div\"\n\n return (\n <Comp\n className={cn(\n \"bg-muted shadow-xs flex items-center gap-2 rounded-md border px-4 text-sm font-medium [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction ButtonGroupSeparator({\n className,\n orientation = \"vertical\",\n ...props\n}: React.ComponentProps<typeof Separator>) {\n return (\n <Separator\n data-slot=\"button-group-separator\"\n orientation={orientation}\n className={cn(\n \"bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport {\n ButtonGroup,\n ButtonGroupSeparator,\n ButtonGroupText,\n buttonGroupVariants,\n}\n"],"names":["buttonGroupVariants","cva","ButtonGroup","className","orientation","props","React","cn","ButtonGroupText","asChild","Comp","Slot","ButtonGroupSeparator","Separator"],"mappings":";;;;;AAOA,MAAMA,IAAsBC;AAAA,EAC1B;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,aAAa;AAAA,QACX,YACE;AAAA,QACF,UACE;AAAA,MAAA;AAAA,IACJ;AAAA,IAEF,iBAAiB;AAAA,MACf,aAAa;AAAA,IAAA;AAAA,EACf;AAEJ;AAEA,SAASC,EAAY;AAAA,EACnB,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,GAAGC;AACL,GAA2E;AACzE,SACE,gBAAAC,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,aAAU;AAAA,MACV,oBAAkBF;AAAA,MAClB,WAAWG,EAAGP,EAAoB,EAAE,aAAAI,EAAA,CAAa,GAAGD,CAAS;AAAA,MAC5D,GAAGE;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASG,EAAgB;AAAA,EACvB,WAAAL;AAAA,EACA,SAAAM,IAAU;AAAA,EACV,GAAGJ;AACL,GAEG;AACD,QAAMK,IAAOD,IAAUE,IAAO;AAE9B,SACE,gBAAAL,EAAA;AAAA,IAACI;AAAA,IAAA;AAAA,MACC,WAAWH;AAAA,QACT;AAAA,QACAJ;AAAA,MAAA;AAAA,MAED,GAAGE;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASO,EAAqB;AAAA,EAC5B,WAAAT;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,GAAGC;AACL,GAA2C;AACzC,SACE,gBAAAC,EAAA;AAAA,IAACO;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,aAAAT;AAAA,MACA,WAAWG;AAAA,QACT;AAAA,QACAJ;AAAA,MAAA;AAAA,MAED,GAAGE;AAAA,IAAA;AAAA,EAAA;AAGV;"}
|
package/dist/index.es2.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import e from "react";
|
|
2
2
|
import { Input as t } from "./index.es27.js";
|
|
3
|
-
import { Button as r } from "./index.
|
|
3
|
+
import { Button as r } from "./index.es10.js";
|
|
4
4
|
function m() {
|
|
5
5
|
return /* @__PURE__ */ e.createElement("div", { className: "border p-4 flex gap-4 rounded-md flex-col" }, /* @__PURE__ */ e.createElement(t, { type: "email", placeholder: "Email" }), /* @__PURE__ */ e.createElement(t, { type: "password", placeholder: "Password" }), /* @__PURE__ */ e.createElement(r, null, "Login"));
|
|
6
6
|
}
|