@customafk/lunas-ui 0.0.81 → 0.0.83
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/{button-D6hzitQh.d.cts → button-BRh46Vhx.d.cts} +4 -4
- package/dist/{button-DKcU4dim.d.ts → button-DIPXcr_W.d.ts} +6 -6
- package/dist/{command-KnD1dAzj.d.ts → command-D3-KujCH.d.cts} +12 -12
- package/dist/{command-BCHEIInv.d.cts → command-D3q0OaKb.d.ts} +12 -12
- package/dist/data-display/empty.d.cts +2 -2
- package/dist/data-display/statistic.d.cts +2 -2
- package/dist/data-display/statistic.d.ts +2 -2
- package/dist/{dialog-MCM90IpD.d.cts → dialog-BWtARDnm.d.ts} +12 -12
- package/dist/{dialog-lKVaxcfs.d.ts → dialog-D5Oj_FUV.d.cts} +12 -12
- package/dist/dialogs/detail-dialog/component/sidebar.d.cts +28 -28
- package/dist/dialogs/detail-dialog/component/sidebar.d.ts +28 -28
- package/dist/dialogs/form-dialog.cjs +1 -1
- package/dist/dialogs/form-dialog.d.cts +2 -2
- package/dist/dialogs/form-dialog.d.ts +2 -2
- package/dist/dialogs/form-dialog.js +1 -1
- package/dist/drawer-BT0osH1O.js +2 -0
- package/dist/{drawer-DRC3X2-U.js.map → drawer-BT0osH1O.js.map} +1 -1
- package/dist/drawer-C3vvvU_D.cjs +2 -0
- package/dist/{drawer-70cz3SPB.cjs.map → drawer-C3vvvU_D.cjs.map} +1 -1
- package/dist/forms/combobox-field.d.cts +2 -2
- package/dist/forms/combobox-field.d.ts +2 -2
- package/dist/forms/date-field.d.cts +2 -2
- package/dist/forms/date-field.d.ts +2 -2
- package/dist/forms/form-wrapper.d.cts +2 -2
- package/dist/forms/form-wrapper.d.ts +2 -2
- package/dist/forms/multi-select-field.d.cts +2 -2
- package/dist/forms/multi-select-field.d.ts +2 -2
- package/dist/forms/number-field.d.cts +2 -2
- package/dist/forms/number-field.d.ts +2 -2
- package/dist/forms/password-field.d.cts +2 -2
- package/dist/forms/password-field.d.ts +2 -2
- package/dist/forms/select-field.d.cts +2 -2
- package/dist/forms/select-field.d.ts +2 -2
- package/dist/forms/switch-field.d.cts +2 -2
- package/dist/forms/switch-field.d.ts +2 -2
- package/dist/forms/text-field.d.cts +2 -2
- package/dist/forms/text-field.d.ts +2 -2
- package/dist/forms/textarea-field.d.cts +2 -2
- package/dist/forms/textarea-field.d.ts +2 -2
- package/dist/{input-EieQSty7.d.cts → input-B_LC16rD.d.cts} +3 -3
- package/dist/{input-BbxBfHG5.d.ts → input-D0_NPJao.d.ts} +3 -3
- package/dist/{label-Bfd7VFEe.d.cts → label-BxG8BdVi.d.cts} +3 -3
- package/dist/label-CGASn94e.d.ts +11 -0
- package/dist/layouts/app-layout/index.d.cts +28 -28
- package/dist/layouts/app-layout/index.d.ts +28 -28
- package/dist/layouts/flex.d.cts +4 -4
- package/dist/layouts/service-layout/index.cjs +1 -1
- package/dist/layouts/service-layout/index.d.cts +15 -15
- package/dist/layouts/service-layout/index.d.ts +15 -15
- package/dist/layouts/service-layout/index.js +1 -1
- package/dist/{separator-LYCmJYd5.d.ts → separator-3Tqllk9s.d.ts} +3 -3
- package/dist/{separator-BBWO-2XW.d.cts → separator-Dxf2wDl5.d.cts} +3 -3
- package/dist/table/index.d.cts +2 -2
- package/dist/{toggle-DaTd0CKm.d.ts → toggle-BNUNuWcd.d.ts} +3 -3
- package/dist/{toggle-Bhwgx-y_.d.cts → toggle-C7HTp7p1.d.cts} +3 -3
- package/dist/{tooltip-B3mrjes6.d.cts → tooltip-BNynBa87.d.cts} +6 -6
- package/dist/{tooltip-IMUjBDRr.d.ts → tooltip-Clkt7Knc.d.ts} +6 -6
- package/dist/typography/paragraph.d.cts +2 -2
- package/dist/typography/paragraph.d.ts +2 -2
- package/dist/typography/title.d.cts +2 -2
- package/dist/typography/title.d.ts +2 -2
- package/dist/ui/alert-dialog.d.cts +12 -12
- package/dist/ui/alert-dialog.d.ts +12 -12
- package/dist/ui/alert.d.cts +5 -5
- package/dist/ui/alert.d.ts +7 -7
- package/dist/ui/aspect-ratio.d.cts +2 -2
- package/dist/ui/aspect-ratio.d.ts +2 -2
- package/dist/ui/avatar.d.cts +4 -4
- package/dist/ui/avatar.d.ts +4 -4
- package/dist/ui/badge.d.cts +2 -2
- package/dist/ui/badge.d.ts +4 -4
- package/dist/ui/breadcrumb.d.cts +8 -8
- package/dist/ui/breadcrumb.d.ts +8 -8
- package/dist/ui/button-group.d.cts +7 -7
- package/dist/ui/button-group.d.ts +7 -7
- package/dist/ui/button.d.cts +1 -1
- package/dist/ui/button.d.ts +1 -1
- package/dist/ui/calendar.d.cts +4 -4
- package/dist/ui/calendar.d.ts +4 -4
- package/dist/ui/card.d.cts +8 -8
- package/dist/ui/card.d.ts +8 -8
- package/dist/ui/carousel.d.cts +7 -7
- package/dist/ui/carousel.d.ts +7 -7
- package/dist/ui/collapsible.d.cts +4 -4
- package/dist/ui/collapsible.d.ts +4 -4
- package/dist/ui/command.d.cts +2 -2
- package/dist/ui/command.d.ts +2 -2
- package/dist/ui/context-menu.d.cts +16 -16
- package/dist/ui/context-menu.d.ts +16 -16
- package/dist/ui/dialog.d.cts +1 -1
- package/dist/ui/dialog.d.ts +1 -1
- package/dist/ui/drawer.cjs +1 -0
- package/dist/ui/drawer.d.cts +44 -0
- package/dist/ui/drawer.d.ts +44 -0
- package/dist/ui/drawer.js +1 -0
- package/dist/ui/dropdown-menu.d.cts +16 -16
- package/dist/ui/dropdown-menu.d.ts +16 -16
- package/dist/ui/empty.d.cts +9 -9
- package/dist/ui/empty.d.ts +9 -9
- package/dist/ui/field.d.cts +14 -14
- package/dist/ui/field.d.ts +14 -14
- package/dist/ui/file-uploader.d.cts +2 -2
- package/dist/ui/file-uploader.d.ts +2 -2
- package/dist/ui/form.d.cts +7 -7
- package/dist/ui/form.d.ts +7 -7
- package/dist/ui/hover-card.d.cts +4 -4
- package/dist/ui/hover-card.d.ts +4 -4
- package/dist/ui/input-otp.d.cts +5 -5
- package/dist/ui/input-otp.d.ts +5 -5
- package/dist/ui/input.d.cts +1 -1
- package/dist/ui/input.d.ts +1 -1
- package/dist/ui/inputs/search-input.d.cts +3 -3
- package/dist/ui/inputs/search-input.d.ts +3 -3
- package/dist/ui/item.d.cts +15 -15
- package/dist/ui/item.d.ts +15 -15
- package/dist/ui/label.d.cts +1 -1
- package/dist/ui/label.d.ts +1 -1
- package/dist/ui/menubar.d.cts +17 -17
- package/dist/ui/menubar.d.ts +17 -17
- package/dist/ui/multi-select.d.cts +2 -2
- package/dist/ui/multi-select.d.ts +2 -2
- package/dist/ui/navigation-menu.d.cts +9 -9
- package/dist/ui/navigation-menu.d.ts +11 -11
- package/dist/ui/pagination.d.cts +9 -9
- package/dist/ui/pagination.d.ts +9 -9
- package/dist/ui/popover.d.cts +5 -5
- package/dist/ui/popover.d.ts +5 -5
- package/dist/ui/progress.d.cts +2 -2
- package/dist/ui/progress.d.ts +2 -2
- package/dist/ui/radio-group.d.cts +3 -3
- package/dist/ui/radio-group.d.ts +3 -3
- package/dist/ui/resizable.d.cts +4 -4
- package/dist/ui/resizable.d.ts +4 -4
- package/dist/ui/scroll-area.d.cts +3 -3
- package/dist/ui/scroll-area.d.ts +3 -3
- package/dist/ui/select.d.cts +11 -11
- package/dist/ui/select.d.ts +11 -11
- package/dist/ui/separator.d.cts +1 -1
- package/dist/ui/separator.d.ts +1 -1
- package/dist/ui/sheet.d.cts +9 -9
- package/dist/ui/sheet.d.ts +9 -9
- package/dist/ui/sidebar.cjs +1 -1
- package/dist/ui/sidebar.d.cts +28 -28
- package/dist/ui/sidebar.d.ts +30 -30
- package/dist/ui/sidebar.js +1 -1
- package/dist/ui/skeleton.d.cts +2 -2
- package/dist/ui/skeleton.d.ts +2 -2
- package/dist/ui/slider.d.cts +2 -2
- package/dist/ui/slider.d.ts +2 -2
- package/dist/ui/sonner.d.cts +2 -2
- package/dist/ui/sonner.d.ts +2 -2
- package/dist/ui/spinner.d.cts +2 -2
- package/dist/ui/spinner.d.ts +2 -2
- package/dist/ui/switch.d.cts +2 -2
- package/dist/ui/switch.d.ts +2 -2
- package/dist/ui/table.d.cts +9 -9
- package/dist/ui/table.d.ts +9 -9
- package/dist/ui/tabs.d.cts +5 -5
- package/dist/ui/tabs.d.ts +5 -5
- package/dist/ui/textarea.d.cts +2 -2
- package/dist/ui/textarea.d.ts +2 -2
- package/dist/ui/toggle-group.d.cts +4 -4
- package/dist/ui/toggle-group.d.ts +4 -4
- package/dist/ui/toggle.d.cts +1 -1
- package/dist/ui/toggle.d.ts +1 -1
- package/dist/ui/tooltip.d.cts +1 -1
- package/dist/ui/tooltip.d.ts +1 -1
- package/package.json +9 -1
- package/dist/drawer-70cz3SPB.cjs +0 -2
- package/dist/drawer-DRC3X2-U.js +0 -2
- package/dist/label-DlBHUp00.d.ts +0 -11
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "../../button-
|
|
2
|
-
import "../../separator-
|
|
3
|
-
import { TooltipContent } from "../../tooltip-
|
|
1
|
+
import "../../button-DIPXcr_W.js";
|
|
2
|
+
import "../../separator-3Tqllk9s.js";
|
|
3
|
+
import { TooltipContent } from "../../tooltip-Clkt7Knc.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import * as
|
|
5
|
+
import * as react_jsx_runtime321 from "react/jsx-runtime";
|
|
6
6
|
import { VariantProps } from "class-variance-authority";
|
|
7
7
|
import { CredentialResponse } from "@react-oauth/google";
|
|
8
|
-
import * as
|
|
8
|
+
import * as class_variance_authority_types13 from "class-variance-authority/types";
|
|
9
9
|
|
|
10
10
|
//#region packages/components/layouts/service-layout/hooks/use-service-layout.d.ts
|
|
11
11
|
type Cart = {
|
|
@@ -43,43 +43,43 @@ declare function ServiceLayoutSidebar$1({
|
|
|
43
43
|
side?: 'left' | 'right';
|
|
44
44
|
variant?: 'sidebar' | 'floating' | 'inset';
|
|
45
45
|
collapsible?: 'offcanvas' | 'icon' | 'none';
|
|
46
|
-
}):
|
|
46
|
+
}): react_jsx_runtime321.JSX.Element;
|
|
47
47
|
declare function ServiceLayoutSidebarFooter({
|
|
48
48
|
className,
|
|
49
49
|
children,
|
|
50
50
|
...props
|
|
51
|
-
}: React.ComponentProps<'div'>):
|
|
51
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime321.JSX.Element;
|
|
52
52
|
declare function ServiceLayoutSidebarContent({
|
|
53
53
|
className,
|
|
54
54
|
...props
|
|
55
|
-
}: React.ComponentProps<'div'>):
|
|
55
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime321.JSX.Element;
|
|
56
56
|
declare function ServiceLayoutSidebarGroup({
|
|
57
57
|
className,
|
|
58
58
|
...props
|
|
59
|
-
}: React.ComponentProps<'div'>):
|
|
59
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime321.JSX.Element;
|
|
60
60
|
declare function ServiceLayoutSidebarGroupLabel({
|
|
61
61
|
className,
|
|
62
62
|
asChild,
|
|
63
63
|
...props
|
|
64
64
|
}: React.ComponentProps<'div'> & {
|
|
65
65
|
asChild?: boolean;
|
|
66
|
-
}):
|
|
66
|
+
}): react_jsx_runtime321.JSX.Element;
|
|
67
67
|
declare function ServiceLayoutSidebarGroupContent({
|
|
68
68
|
className,
|
|
69
69
|
...props
|
|
70
|
-
}: React.ComponentProps<'div'>):
|
|
70
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime321.JSX.Element;
|
|
71
71
|
declare function ServiceLayoutSidebarMenu({
|
|
72
72
|
className,
|
|
73
73
|
...props
|
|
74
|
-
}: React.ComponentProps<'ul'>):
|
|
74
|
+
}: React.ComponentProps<'ul'>): react_jsx_runtime321.JSX.Element;
|
|
75
75
|
declare function ServiceLayoutSidebarMenuItem({
|
|
76
76
|
className,
|
|
77
77
|
...props
|
|
78
|
-
}: React.ComponentProps<'li'>):
|
|
78
|
+
}: React.ComponentProps<'li'>): react_jsx_runtime321.JSX.Element;
|
|
79
79
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
80
80
|
variant?: "default" | "outline" | null | undefined;
|
|
81
81
|
size?: "sm" | "lg" | "default" | null | undefined;
|
|
82
|
-
} &
|
|
82
|
+
} & class_variance_authority_types13.ClassProp) | undefined) => string;
|
|
83
83
|
declare function ServiceLayoutSidebarMenuButton({
|
|
84
84
|
asChild,
|
|
85
85
|
isActive,
|
|
@@ -92,7 +92,7 @@ declare function ServiceLayoutSidebarMenuButton({
|
|
|
92
92
|
asChild?: boolean;
|
|
93
93
|
isActive?: boolean;
|
|
94
94
|
tooltip?: string | React.ComponentProps<typeof TooltipContent>;
|
|
95
|
-
} & VariantProps<typeof sidebarMenuButtonVariants>):
|
|
95
|
+
} & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime321.JSX.Element;
|
|
96
96
|
//#endregion
|
|
97
97
|
//#region packages/components/layouts/service-layout/service-layout.d.ts
|
|
98
98
|
declare const ServiceLayoutProvider: React.FC<React.PropsWithChildren<ServiceLayoutContextProps>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../dist-BgkALM7U.js";import"../../button-variants-Y1GTBayz.js";import{Button as e}from"../../button-CYsnwc1-.js";import{Card as t,CardContent as n}from"../../card-DOv2mZU8.js";import"../../skeleton-ByN-MrQO.js";import{Image as r}from"../../image-CiQhTTyt.js";import{Tooltip as i,TooltipContent as a,TooltipProvider as o,TooltipTrigger as s}from"../../tooltip-BTrjCwd8.js";import{Avatar as c,AvatarFallback as l,AvatarImage as u}from"../../avatar-iX5Jhj8E.js";import{Separator as d}from"../../separator-D17HxS2f.js";import{Dialog as f,DialogContent as p,DialogFooter as m,DialogHeader as h,DialogTitle as g}from"../../dialog-BAlJ18xi.js";import{Drawer as _,DrawerContent as v,DrawerDescription as y,DrawerFooter as b,DrawerHeader as x,DrawerTitle as S}from"../../drawer-DRC3X2-U.js";import{Input as ee}from"../../input-BStypTnq.js";import{DropdownMenu as C,DropdownMenuContent as w,DropdownMenuItem as te,DropdownMenuLabel as ne,DropdownMenuSeparator as re,DropdownMenuTrigger as ie}from"../../dropdown-menu-DtEPAmMV.js";import{ScrollArea as ae}from"../../scroll-area-DFENklE1.js";import{Sheet as oe,SheetContent as se,SheetHeader as ce,SheetTitle as le,SheetTrigger as ue}from"../../sheet-BhyEuJtA.js";import{Tabs as T,TabsContent as E,TabsList as de,TabsTrigger as D}from"../../tabs-BVCzl3vY.js";import{LockIcon as fe,LogInIcon as O,LogOutIcon as k,MenuIcon as pe,Minus as me,Plus as he,ShoppingBag as ge,ShoppingBasketIcon as _e,ShoppingCartIcon as A,Trash2 as ve,UserIcon as ye}from"lucide-react";import{cn as j}from"@customafk/react-toolkit/utils";import{createContext as M,useCallback as N,useContext as P,useEffect as F,useMemo as be,useState as I}from"react";import{Fragment as xe,jsx as L,jsxs as R}from"react/jsx-runtime";import{cva as Se}from"class-variance-authority";import{Slot as z}from"radix-ui";import{useMediaQuery as B}from"@customafk/react-toolkit/hooks/useMediaQuery";import{GoogleLogin as V}from"@react-oauth/google";import{useIsMobile as Ce}from"@customafk/react-toolkit/hooks/useMobile";import{useDebounceCallback as we}from"@customafk/react-toolkit/hooks/useDebounceCallback";const H=M(null),U=()=>{let e=P(H);if(!e)throw Error(`useServiceLayoutContext must be used within a ServiceLayoutProvider`);return e},Te=({type:i,productUuid:a,variantUuid:o,productName:s,variantName:c,imageUrl:l,optionValue:u,optionTitle:d,quantity:f,price:p})=>{let{onDeletingCart:m,onUpdatingCart:h}=U(),[g,_]=I(f),[v,y]=I(!1),b=N(()=>{h?.(o,g,i)},[h,o,g,i]),x=we(b,500),S=N(e=>{e<1&&(e=1),e>99&&(e=99),_(e)},[]),C=N(async()=>{y(!0),await m?.(a),y(!1)},[a,m]);return F(()=>(g!==f&&x(),()=>{x.cancel()}),[g,f,x]),R(t,{className:`border-border-weak relative mb-3 overflow-x-auto border p-4 shadow-none`,children:[v&&L(`div`,{className:`bg-muted-muted/80 absolute inset-0 z-10 flex items-center justify-center`,children:L(`div`,{className:`loader-dots`})}),R(n,{className:`p-0`,children:[R(e,{variant:`ghost`,size:`icon`,color:`muted`,disabled:v,className:`text-text-positive-weak absolute top-2 right-2 z-10`,onClick:C,children:[L(ve,{className:`h-4 w-4`}),L(`span`,{className:`sr-only`,children:`Remove item`})]}),R(`div`,{className:`flex gap-3`,children:[L(`div`,{className:`relative size-20 flex-shrink-0`,children:l?L(r,{src:l,alt:s,className:`rounded-md border-none shadow-xs`,width:80,height:80}):L(`div`,{className:`bg-muted text-muted-foreground flex size-full items-center justify-center text-xs`,children:`No image`})}),R(`div`,{className:`flex flex-1 flex-col`,children:[L(`div`,{className:`flex justify-between`,children:L(`h3`,{className:`text-text-positive line-clamp-1 text-sm font-medium`,children:s})}),R(`p`,{className:`text-text-positive-weak mb-1 text-xs`,children:[c,d&&` - ${d}: ${u}`]}),R(`div`,{className:`mt-auto flex items-center justify-between`,children:[R(`div`,{className:`flex items-center space-x-1`,children:[L(`button`,{disabled:g<=1,className:`border-border active:bg-muted-muted flex size-6 cursor-pointer items-center justify-center rounded-full border transition-all disabled:opacity-60`,onClick:()=>S(g-1),children:L(me,{size:12})}),L(ee,{value:g,onChange:e=>S(parseInt(e.target.value||`1`)),className:`border-border h-6.5 w-14 rounded-md border p-1 text-center text-sm`,min:1}),L(`button`,{disabled:g>=99,className:`border-border active:bg-muted-muted flex size-6 cursor-pointer items-center justify-center rounded-full border transition-all disabled:opacity-60`,onClick:()=>S(g+1),children:L(he,{size:12})})]}),R(`div`,{className:`text-sm font-semibold`,children:[(p*g).toLocaleString(),` ₫`]})]})]})]})]})]})},W=({items:t=[],cartType:n,className:r})=>{let i=t.reduce((e,t)=>e+t.price*t.quantity,0);return t.length===0?R(`div`,{className:j(`bg-muted-muted flex size-full max-h-80 flex-col items-center justify-center rounded-lg p-8`,r),children:[L(`div`,{className:`text-text-positive-weak bg-card shadow-card mb-4 flex size-20 items-center justify-center rounded-full text-5xl`,children:L(_e,{size:42,strokeWidth:1})}),R(`div`,{className:`flex flex-col space-y-1`,children:[L(`p`,{className:`text-text-positive text-center text-base font-semibold`,children:`Giỏ hàng trống`}),L(`p`,{className:`text-text-positive-weak mb-4 text-center text-sm`,children:n===`in_stock`?`Thêm sản phẩm có sẵn vào giỏ hàng của bạn!`:`Thêm sản phẩm đặt trước vào giỏ hàng của bạn!`})]})]}):R(`div`,{className:j(`flex h-full flex-col space-y-4 overflow-y-auto`,r),children:[L(ae,{className:`h-full flex-1`,children:t.map(e=>L(Te,{...e,type:n},`${e.productUuid}-${e.variantUuid}`))}),R(`div`,{className:`flex-0 space-y-3`,children:[R(`div`,{className:`flex justify-between`,children:[L(`span`,{className:`text-text-positive-weak text-sm`,children:`Tạm tính:`}),R(`span`,{className:`text-sm`,children:[i.toLocaleString(),` ₫`]})]}),L(d,{}),R(`div`,{className:`flex justify-between`,children:[L(`span`,{className:`text-text-positive font-medium`,children:`Tổng cộng:`}),R(`span`,{className:`text-lg font-semibold`,children:[i.toLocaleString(),` ₫`]})]}),L(e,{className:`mt-2 w-full`,children:`Thanh toán ngay`}),n===`pre_order`&&L(`p`,{className:`text-text-positive-weak text-center text-xs italic`,children:`* Sản phẩm đặt trước sẽ được giao sau khi có hàng`})]})]})},G=M(null),K=()=>{let e=P(G);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e};function q({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:a,...s}){let c=Ce(),[l,u]=I(!1),[d,f]=I(e),p=t??d,m=N(e=>{let t=typeof e==`function`?e(p):e;n?n(t):f(t),document.cookie=`sidebar_state=${t}; path=/; max-age=604800`},[n,p]),h=N(()=>c?u(e=>!e):m(e=>!e),[c,m,u]);F(()=>{let e=e=>{e.key===`b`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),h())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[h]);let g=p?`expanded`:`collapsed`,_=be(()=>({state:g,isMobile:c,toggleSidebar:h,open:p,setOpen:m,openMobile:l,setOpenMobile:u}),[g,p,m,c,l,u,h]);return L(G.Provider,{value:_,children:L(o,{delayDuration:0,children:L(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":`16rem`,"--sidebar-width-icon":`3rem`,...i},className:j(`group/sidebar-wrapper`,`has-data-[variant=inset]:bg-sidebar`,`flex h-dvh w-full`,r),...s,children:a})})})}function Ee({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,...a}){let{isMobile:o,state:s,openMobile:c,setOpenMobile:l}=K();return n===`none`?L(`aside`,{"data-slot":`sidebar`,className:j(`bg-sidebar`,`text-sidebar-foreground`,`flex h-full w-(--sidebar-width) flex-col`,r),...a,children:i}):o?L(_,{direction:`left`,open:c,onOpenChange:l,children:R(v,{"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 data-[vaul-drawer-direction=left]:w-3xs data-[vaul-drawer-direction=left]:sm:max-w-3xs [&>button]:hidden`,style:{"--sidebar-width":`16rem`},children:[R(x,{className:`sr-only`,children:[L(S,{children:`Sidebar`}),L(y,{children:`Displays the mobile sidebar.`})]}),R(`div`,{className:`flex size-full flex-col`,children:[R(`div`,{className:`border-border-weak flex flex-0 items-center gap-x-2 border-b p-2 pr-4`,children:[L(J,{}),L(`div`,{className:`bg-sidebar-primary text-sidebar-primary-foreground ml-2 flex aspect-square size-8 items-center justify-center rounded-lg`,children:L(A,{size:20})}),R(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[L(`span`,{className:`truncate font-medium`,children:`Lunas Store`}),L(`span`,{className:`truncate text-xs`,children:`Established 2023`})]})]}),L(`div`,{className:`flex flex-1 flex-col p-2`,children:i})]})]})}):R(`aside`,{className:`group peer text-sidebar-foreground bg-card hidden md:block`,"data-state":s,"data-collapsible":s===`collapsed`?n:``,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[L(`div`,{"data-slot":`sidebar-gap`,className:j(`relative`,`bg-transparent`,`transition-[width] duration-200 ease-linear`,`h-(--header-height) w-(--sidebar-width)`,`sm:h-[calc(var(--header-height) + 0.5rem)]`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,t===`floating`||t===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),L(`div`,{"data-slot":`sidebar-container`,className:j(`hidden md:flex`,`shadow-nav fixed inset-y-0 top-14 z-10`,`h-[calc(100dvh-3.5rem)] w-(--sidebar-width)`,`transition-[left,right,width] duration-200 ease-linear`,e===`left`&&`left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`,e===`right`&&`right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,t===`floating`||t===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,r),...a,children:L(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:j(`flex size-full flex-col`,`group-data-[variant=floating]:rounded-lg`,`group-data-[variant=floating]:border`,`group-data-[variant=floating]:border-sidebar-border`,`group-data-[variant=floating]:shadow-sm`),children:i})})]})}function J({className:t,onClick:n,...r}){let{toggleSidebar:i}=K();return R(e,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,color:`muted`,size:`icon`,className:j(`size-10 rounded-full`,t),onClick:e=>{n?.(e),i()},...r,children:[L(pe,{className:`!size-6`}),L(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function De({className:e,children:t,...n}){return R(`main`,{"data-slot":`sidebar-inset`,className:j(`relative flex w-full flex-1 flex-col`,e),...n,children:[L(`div`,{className:`h-(--header-height) w-full sm:h-[calc(var(--header-height)_+_0.5rem)]`}),L(`div`,{className:j(`flex-1 inset-shadow-sm`),children:t})]})}function Oe({className:e,children:t,...n}){let{open:r}=K(),{onLogout:i}=U();return R(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:j(`flex flex-col gap-2`,e),...n,children:[t,R(Y,{children:[L(X,{children:R(Z,{className:`border-border border`,onClick:i,children:[L(k,{className:`text-text-positive-weak`}),`Đăng xuất`]})}),r&&L(X,{className:`border-t-border mt-2 border-t`,children:L(`p`,{className:`text-muted-foreground pt-2 text-center text-xs`,children:`Copyright © 2025, Lunas.`})})]})]})}function ke({className:e,...t}){return L(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:j(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...t})}function Ae({className:e,...t}){return L(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:j(`relative flex w-full min-w-0 flex-col`,e),...t})}function je({className:e,asChild:t=!1,...n}){let r=t?z.Slot:`div`;return L(r,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:j(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2`,`text-sidebar-foreground/70`,`ring-sidebar-ring`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`group-data-[collapsible=icon]:-mt-8`,`group-data-[collapsible=icon]:opacity-0`,e),...n})}function Me({className:e,...t}){return L(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:j(`w-full text-sm`,e),...t})}function Y({className:e,...t}){return L(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:j(`flex w-full min-w-0 flex-col gap-1`,e),...t})}function X({className:e,...t}){return L(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:j(`group/menu-item relative`,e),...t})}const Ne=Se(`peer/menu-button.cursor-pointer.flex w-full items-center gap-2.overflow-hidden rounded-md p-2 outline-hidden.text-left truncate.transition-[color,width,height,padding].hover:bg-sidebar-accent.hover:text-sidebar-accent-foreground.active:bg-sidebar-accent.active:text-sidebar-accent-foreground.disabled:pointer-events-none.disabled:opacity-50.group-has-data-[sidebar=menu-action]/menu-item:pr-8.aria-disabled:pointer-events-none.aria-disabled:opacity-50.data-[active=true]:bg-sidebar-primary-muted.data-[active=true]:font-medium.data-[active=true]:text-sidebar-primary.data-[state=open]:hover:bg-sidebar-accent.data-[state=open]:hover:text-sidebar-accent-foreground.group-data-[collapsible=icon]:size-12!.group-data-[collapsible=icon]:p-3!.group-data-[collapsible=icon]:gap-3!.[&>svg]:size-6.[&>svg]:shrink-0.[&>span:last-child]:truncate`.split(`.`),{variants:{variant:{default:`hover:bg-sidebar-accent/60 hover:text-sidebar-accent-foreground/80`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-10 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function Z({asChild:e=!1,isActive:t=!1,variant:n=`default`,size:r=`default`,tooltip:o,className:c,...l}){let u=e?z.Slot:`button`,{isMobile:d,state:f}=K(),p=L(u,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":r,"data-active":t,className:j(Ne({variant:n,size:r}),c),...l});return o?(typeof o==`string`&&(o={children:o}),R(i,{children:[L(s,{asChild:!0,children:p}),L(a,{side:`right`,align:`center`,hidden:f!==`collapsed`||d,...o})]})):p}const Pe=({isLoggedIn:e=!1,username:t,email:n,inStockCarts:r,orderedCarts:i,onGoogleLoginSuccess:a,onUpdatingCart:o,onDeletingCart:s,onLogout:c,children:l})=>L(H.Provider,{value:{isLoggedIn:e,username:t,email:n,inStockCarts:r,orderedCarts:i,onGoogleLoginSuccess:a,onUpdatingCart:o,onDeletingCart:s,onLogout:c},children:l}),Fe=({children:e})=>L(q,{children:e}),Q=({userName:t=`Keith Kennedy`,userEmail:n=`k.kennedy@originui.com`,onLogout:r})=>R(C,{children:[L(ie,{asChild:!0,children:L(e,{size:`icon`,variant:`ghost`,color:`secondary`,className:`size-10 rounded-full`,children:R(c,{className:`size-10`,children:[L(u,{}),L(l,{className:`bg-muted-muted size-full`,children:L(ye,{})})]})})}),R(w,{align:`end`,className:`max-w-64`,children:[R(ne,{className:`flex min-w-0 flex-col`,children:[L(`span`,{className:`text-text-positive truncate text-sm font-medium`,children:t}),L(`span`,{className:`text-text-positive-weak truncate text-xs font-normal`,children:n})]}),L(re,{}),R(te,{onClick:r,children:[L(k,{size:16,"aria-hidden":`true`}),L(`span`,{className:`text-text-positive`,children:`Logout`})]})]})]}),$=()=>{let{inStockCarts:t=[],orderedCarts:n=[]}=U(),r=t.length,i=n.length,a=r+i;return R(oe,{children:[L(ue,{asChild:!0,children:R(e,{size:`icon`,variant:`ghost`,color:`secondary`,className:`relative size-10 rounded-full`,children:[L(A,{}),a>0&&L(`span`,{className:`bg-primary text-primary-foreground absolute -top-1 -right-1 flex h-4 min-w-4 items-center justify-center rounded-full px-1 text-xs font-bold`,children:a})]})}),R(se,{className:`w-[95vw] sm:max-w-md`,children:[L(ce,{className:`border-border-weak flex-0 border-b pb-3`,children:R(le,{className:`flex items-center gap-2`,children:[L(ge,{className:`h-5 w-5`}),L(`span`,{children:`Giỏ hàng của bạn`}),a>0&&R(`span`,{className:`text-text-positive-weak text-sm font-normal`,children:[`(`,a,` sản phẩm)`]})]})}),R(T,{defaultValue:i>0?`pre_order`:`in_stock`,className:`h-full flex-1 overflow-y-auto p-4 pt-0`,children:[R(de,{className:`w-full flex-0`,children:[R(D,{value:`in_stock`,className:`relative`,children:[`Có sẵn`,r>0&&R(`span`,{children:[`(`,r,`)`]})]}),R(D,{value:`pre_order`,className:`relative`,children:[`Đặt trước`,i>0&&R(`span`,{children:[`(`,i,`)`]})]})]}),L(E,{value:`pre_order`,className:`flex-1 overflow-y-auto`,children:L(W,{items:n,cartType:`pre_order`})}),L(E,{value:`in_stock`,className:`flex-1 overflow-y-auto`,children:L(W,{items:t,cartType:`in_stock`})})]})]})]})},Ie=()=>{let{isLoggedIn:t,username:n,email:r,onGoogleLoginSuccess:i,onLogout:a}=U(),o=B(`(min-width: 640px)`),[s,c]=I(!1);return R(`header`,{className:j(`bg-card`,`h-(--header-height)`,`sm:h-[calc(var(--header-height)_+_0.5rem)] sm:px-4 sm:pr-6`,`absolute inset-x-0 top-0 z-20 gap-2 px-2 pr-4.5`,`shadow-nav flex items-center`,`transition-[width,height] ease-linear`),children:[t&&L(J,{}),R(`div`,{className:`flex gap-x-2 sm:ml-2.5`,children:[L(`div`,{className:`bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg`,children:L(A,{size:20})}),R(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[L(`span`,{className:`truncate font-medium`,children:`Lunas Store`}),L(`span`,{className:`truncate text-xs`,children:`Established 2023`})]})]}),R(`div`,{className:`flex flex-1 items-center justify-end gap-x-2`,children:[!t&&R(e,{className:`w-8 sm:w-fit`,onClick:()=>c(!0),children:[L(O,{}),L(`span`,{className:`sr-only sm:not-sr-only`,children:`Đăng nhập`})]}),t&&R(xe,{children:[L(Q,{userName:n,userEmail:r,onLogout:a}),L(d,{orientation:`vertical`,className:`min-h-6 w-px`}),L($,{})]})]}),o&&L(f,{open:s,onOpenChange:c,children:R(p,{showCloseButton:!1,className:`flex flex-col gap-0 border-none p-0 sm:max-w-sm`,children:[L(h,{className:`flex-0 gap-2 p-6`,children:L(g,{className:`text-center`,children:`Chào mừng bạn đến với Lunas Store!`})}),L(`div`,{className:`flex flex-1 flex-col`,children:L(`main`,{className:`bg-card size-full flex-1 p-4 pt-0`,children:R(`div`,{className:`flex flex-col items-center gap-y-1`,children:[L(`p`,{className:`text-text-positive-weak text-sm`,children:`Đăng nhập với Google`}),L(V,{size:`large`,theme:`outline`,width:240,onSuccess:async e=>{!e.clientId||!e.credential||!e.select_by||await i?.(e)}})]})})}),L(m,{className:`p-2`})]})}),!o&&L(_,{open:s,onOpenChange:c,children:R(v,{children:[L(x,{className:`text-left`,children:L(S,{children:`Chào mừng bạn đến với Lunas Store!`})}),L(`div`,{className:`flex flex-1 flex-col`,children:L(`main`,{className:`flex size-full flex-1 flex-col p-4 pt-0`,children:R(`div`,{className:`flex flex-col items-center gap-y-1`,children:[L(`p`,{className:`text-text-positive-weak text-sm`,children:`Đăng nhập với Google`}),L(V,{size:`large`,theme:`outline`,onSuccess:async e=>{!e.clientId||!e.credential||!e.select_by||await i?.(e)}})]})})}),L(b,{})]})})]})},Le=({children:e,...t})=>{let{isLoggedIn:n}=U();return n?L(Ee,{variant:`inset`,collapsible:`icon`,...t,children:e}):null},Re=({children:t})=>{let{isLoggedIn:n,onGoogleLoginSuccess:r}=U(),i=B(`(min-width: 640px)`),[a,o]=I(!1);return n?L(De,{children:L(`section`,{className:`relative size-full`,children:L(`div`,{className:`absolute inset-0 flex flex-col`,children:t})})}):L(`div`,{className:`size-full p-4 pt-[calc(var(--header-height)+1.5rem)]`,children:R(`div`,{className:`bg-card shadow-card flex size-full flex-col items-center justify-center gap-6 rounded-lg p-8 text-center`,children:[L(`div`,{className:`bg-muted-foreground/10 flex size-20 items-center justify-center rounded-full`,children:L(fe,{className:`text-primary size-10`})}),R(`div`,{className:`flex max-w-md flex-col gap-2`,children:[L(`h2`,{className:`text-2xl font-semibold`,children:`Bạn chưa đăng nhập`}),L(`p`,{className:`text-text-positive-weak`,children:`Đăng nhập để khám phá đầy đủ các tính năng của Lunas Store và truy cập vào tài khoản của bạn.`})]}),R(e,{size:`lg`,className:`gap-2`,onClick:()=>o(!0),children:[L(O,{size:18}),L(`span`,{children:`Đăng nhập ngay`})]}),i&&L(f,{open:a,onOpenChange:o,children:R(p,{showCloseButton:!1,className:`flex flex-col gap-0 border-none p-0 sm:max-w-sm`,children:[L(h,{className:`flex-0 gap-2 p-6`,children:L(g,{className:`text-center`,children:`Chào mừng bạn đến với Lunas Store!`})}),L(`div`,{className:`flex flex-1 flex-col`,children:L(`main`,{className:`bg-card size-full flex-1 p-4 pt-0`,children:R(`div`,{className:`flex flex-col items-center gap-y-1`,children:[L(`p`,{className:`text-text-positive-weak text-sm`,children:`Đăng nhập với Google`}),L(V,{size:`large`,theme:`outline`,width:240,onSuccess:async e=>{!e.clientId||!e.credential||!e.select_by||(await r?.(e),o(!1))}})]})})}),L(m,{className:`p-2`})]})}),!i&&L(_,{open:a,onOpenChange:o,children:R(v,{children:[L(x,{className:`text-left`,children:L(S,{children:`Chào mừng bạn đến với Lunas Store!`})}),L(`div`,{className:`flex flex-1 flex-col`,children:L(`main`,{className:`flex size-full flex-1 flex-col p-4 pt-0`,children:R(`div`,{className:`flex flex-col items-center gap-y-1`,children:[L(`p`,{className:`text-text-positive-weak text-sm`,children:`Đăng nhập với Google`}),L(V,{size:`large`,theme:`outline`,onSuccess:async e=>{!e.clientId||!e.credential||!e.select_by||(await r?.(e),o(!1))}})]})})}),L(b,{})]})})]})})},ze=({className:e,children:t})=>L(`div`,{"data-slot":`main-header`,className:j(`flex-0 snap-start`,e),children:t}),Be=({className:e,children:t})=>L(`div`,{"data-slot":`main-content`,className:j(`flex w-full flex-1 flex-col gap-4 overflow-y-auto px-2 sm:px-4`,e),children:t}),Ve=({className:e,children:t})=>L(`div`,{"data-slot":`main-footer`,className:j(`border-border-weak hidden w-full flex-0 border-t pt-2 sm:flex`,e),children:t}),He=({children:e,className:t})=>L(`div`,{"data-slot":`main-group`,className:j(`flex size-full flex-col gap-4`,t),children:e}),Ue=({className:e,children:t})=>L(`div`,{"data-slot":`main-group-content`,className:j(`bg-card shadow-card max-w-8xl size-full flex-1 rounded-md p-4`,e),children:t});export{$ as ServiceLayoutCartInfo,Ie as ServiceLayoutHeader,Re as ServiceLayoutMain,Be as ServiceLayoutMainContent,Ve as ServiceLayoutMainFooter,He as ServiceLayoutMainGroup,Ue as ServiceLayoutMainGroupContent,ze as ServiceLayoutMainHeader,Pe as ServiceLayoutProvider,Le as ServiceLayoutSidebar,ke as ServiceLayoutSidebarContent,Oe as ServiceLayoutSidebarFooter,Ae as ServiceLayoutSidebarGroup,Me as ServiceLayoutSidebarGroupContent,je as ServiceLayoutSidebarGroupLabel,Y as ServiceLayoutSidebarMenu,Z as ServiceLayoutSidebarMenuButton,X as ServiceLayoutSidebarMenuItem,Q as ServiceLayoutUserInfo,Fe as ServiceLayoutWrapper};
|
|
1
|
+
import"../../dist-BgkALM7U.js";import"../../button-variants-Y1GTBayz.js";import{Button as e}from"../../button-CYsnwc1-.js";import{Card as t,CardContent as n}from"../../card-DOv2mZU8.js";import"../../skeleton-ByN-MrQO.js";import{Image as r}from"../../image-CiQhTTyt.js";import{Tooltip as i,TooltipContent as a,TooltipProvider as o,TooltipTrigger as s}from"../../tooltip-BTrjCwd8.js";import{Avatar as c,AvatarFallback as l,AvatarImage as u}from"../../avatar-iX5Jhj8E.js";import{Separator as d}from"../../separator-D17HxS2f.js";import{Dialog as f,DialogContent as p,DialogFooter as m,DialogHeader as h,DialogTitle as g}from"../../dialog-BAlJ18xi.js";import{Drawer as _,DrawerContent as v,DrawerDescription as y,DrawerFooter as b,DrawerHeader as x,DrawerTitle as S}from"../../drawer-BT0osH1O.js";import{Input as ee}from"../../input-BStypTnq.js";import{DropdownMenu as C,DropdownMenuContent as w,DropdownMenuItem as te,DropdownMenuLabel as ne,DropdownMenuSeparator as re,DropdownMenuTrigger as ie}from"../../dropdown-menu-DtEPAmMV.js";import{ScrollArea as ae}from"../../scroll-area-DFENklE1.js";import{Sheet as oe,SheetContent as se,SheetHeader as ce,SheetTitle as le,SheetTrigger as ue}from"../../sheet-BhyEuJtA.js";import{Tabs as T,TabsContent as E,TabsList as de,TabsTrigger as D}from"../../tabs-BVCzl3vY.js";import{LockIcon as fe,LogInIcon as O,LogOutIcon as k,MenuIcon as pe,Minus as me,Plus as he,ShoppingBag as ge,ShoppingBasketIcon as _e,ShoppingCartIcon as A,Trash2 as ve,UserIcon as ye}from"lucide-react";import{cn as j}from"@customafk/react-toolkit/utils";import{createContext as M,useCallback as N,useContext as P,useEffect as F,useMemo as be,useState as I}from"react";import{Fragment as xe,jsx as L,jsxs as R}from"react/jsx-runtime";import{cva as Se}from"class-variance-authority";import{Slot as z}from"radix-ui";import{useMediaQuery as B}from"@customafk/react-toolkit/hooks/useMediaQuery";import{GoogleLogin as V}from"@react-oauth/google";import{useIsMobile as Ce}from"@customafk/react-toolkit/hooks/useMobile";import{useDebounceCallback as we}from"@customafk/react-toolkit/hooks/useDebounceCallback";const H=M(null),U=()=>{let e=P(H);if(!e)throw Error(`useServiceLayoutContext must be used within a ServiceLayoutProvider`);return e},Te=({type:i,productUuid:a,variantUuid:o,productName:s,variantName:c,imageUrl:l,optionValue:u,optionTitle:d,quantity:f,price:p})=>{let{onDeletingCart:m,onUpdatingCart:h}=U(),[g,_]=I(f),[v,y]=I(!1),b=N(()=>{h?.(o,g,i)},[h,o,g,i]),x=we(b,500),S=N(e=>{e<1&&(e=1),e>99&&(e=99),_(e)},[]),C=N(async()=>{y(!0),await m?.(a),y(!1)},[a,m]);return F(()=>(g!==f&&x(),()=>{x.cancel()}),[g,f,x]),R(t,{className:`border-border-weak relative mb-3 overflow-x-auto border p-4 shadow-none`,children:[v&&L(`div`,{className:`bg-muted-muted/80 absolute inset-0 z-10 flex items-center justify-center`,children:L(`div`,{className:`loader-dots`})}),R(n,{className:`p-0`,children:[R(e,{variant:`ghost`,size:`icon`,color:`muted`,disabled:v,className:`text-text-positive-weak absolute top-2 right-2 z-10`,onClick:C,children:[L(ve,{className:`h-4 w-4`}),L(`span`,{className:`sr-only`,children:`Remove item`})]}),R(`div`,{className:`flex gap-3`,children:[L(`div`,{className:`relative size-20 flex-shrink-0`,children:l?L(r,{src:l,alt:s,className:`rounded-md border-none shadow-xs`,width:80,height:80}):L(`div`,{className:`bg-muted text-muted-foreground flex size-full items-center justify-center text-xs`,children:`No image`})}),R(`div`,{className:`flex flex-1 flex-col`,children:[L(`div`,{className:`flex justify-between`,children:L(`h3`,{className:`text-text-positive line-clamp-1 text-sm font-medium`,children:s})}),R(`p`,{className:`text-text-positive-weak mb-1 text-xs`,children:[c,d&&` - ${d}: ${u}`]}),R(`div`,{className:`mt-auto flex items-center justify-between`,children:[R(`div`,{className:`flex items-center space-x-1`,children:[L(`button`,{disabled:g<=1,className:`border-border active:bg-muted-muted flex size-6 cursor-pointer items-center justify-center rounded-full border transition-all disabled:opacity-60`,onClick:()=>S(g-1),children:L(me,{size:12})}),L(ee,{value:g,onChange:e=>S(parseInt(e.target.value||`1`)),className:`border-border h-6.5 w-14 rounded-md border p-1 text-center text-sm`,min:1}),L(`button`,{disabled:g>=99,className:`border-border active:bg-muted-muted flex size-6 cursor-pointer items-center justify-center rounded-full border transition-all disabled:opacity-60`,onClick:()=>S(g+1),children:L(he,{size:12})})]}),R(`div`,{className:`text-sm font-semibold`,children:[(p*g).toLocaleString(),` ₫`]})]})]})]})]})]})},W=({items:t=[],cartType:n,className:r})=>{let i=t.reduce((e,t)=>e+t.price*t.quantity,0);return t.length===0?R(`div`,{className:j(`bg-muted-muted flex size-full max-h-80 flex-col items-center justify-center rounded-lg p-8`,r),children:[L(`div`,{className:`text-text-positive-weak bg-card shadow-card mb-4 flex size-20 items-center justify-center rounded-full text-5xl`,children:L(_e,{size:42,strokeWidth:1})}),R(`div`,{className:`flex flex-col space-y-1`,children:[L(`p`,{className:`text-text-positive text-center text-base font-semibold`,children:`Giỏ hàng trống`}),L(`p`,{className:`text-text-positive-weak mb-4 text-center text-sm`,children:n===`in_stock`?`Thêm sản phẩm có sẵn vào giỏ hàng của bạn!`:`Thêm sản phẩm đặt trước vào giỏ hàng của bạn!`})]})]}):R(`div`,{className:j(`flex h-full flex-col space-y-4 overflow-y-auto`,r),children:[L(ae,{className:`h-full flex-1`,children:t.map(e=>L(Te,{...e,type:n},`${e.productUuid}-${e.variantUuid}`))}),R(`div`,{className:`flex-0 space-y-3`,children:[R(`div`,{className:`flex justify-between`,children:[L(`span`,{className:`text-text-positive-weak text-sm`,children:`Tạm tính:`}),R(`span`,{className:`text-sm`,children:[i.toLocaleString(),` ₫`]})]}),L(d,{}),R(`div`,{className:`flex justify-between`,children:[L(`span`,{className:`text-text-positive font-medium`,children:`Tổng cộng:`}),R(`span`,{className:`text-lg font-semibold`,children:[i.toLocaleString(),` ₫`]})]}),L(e,{className:`mt-2 w-full`,children:`Thanh toán ngay`}),n===`pre_order`&&L(`p`,{className:`text-text-positive-weak text-center text-xs italic`,children:`* Sản phẩm đặt trước sẽ được giao sau khi có hàng`})]})]})},G=M(null),K=()=>{let e=P(G);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e};function q({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:a,...s}){let c=Ce(),[l,u]=I(!1),[d,f]=I(e),p=t??d,m=N(e=>{let t=typeof e==`function`?e(p):e;n?n(t):f(t),document.cookie=`sidebar_state=${t}; path=/; max-age=604800`},[n,p]),h=N(()=>c?u(e=>!e):m(e=>!e),[c,m,u]);F(()=>{let e=e=>{e.key===`b`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),h())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[h]);let g=p?`expanded`:`collapsed`,_=be(()=>({state:g,isMobile:c,toggleSidebar:h,open:p,setOpen:m,openMobile:l,setOpenMobile:u}),[g,p,m,c,l,u,h]);return L(G.Provider,{value:_,children:L(o,{delayDuration:0,children:L(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":`16rem`,"--sidebar-width-icon":`3rem`,...i},className:j(`group/sidebar-wrapper`,`has-data-[variant=inset]:bg-sidebar`,`flex h-dvh w-full`,r),...s,children:a})})})}function Ee({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,...a}){let{isMobile:o,state:s,openMobile:c,setOpenMobile:l}=K();return n===`none`?L(`aside`,{"data-slot":`sidebar`,className:j(`bg-sidebar`,`text-sidebar-foreground`,`flex h-full w-(--sidebar-width) flex-col`,r),...a,children:i}):o?L(_,{direction:`left`,open:c,onOpenChange:l,children:R(v,{"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 data-[vaul-drawer-direction=left]:w-3xs data-[vaul-drawer-direction=left]:sm:max-w-3xs [&>button]:hidden`,style:{"--sidebar-width":`16rem`},children:[R(x,{className:`sr-only`,children:[L(S,{children:`Sidebar`}),L(y,{children:`Displays the mobile sidebar.`})]}),R(`div`,{className:`flex size-full flex-col`,children:[R(`div`,{className:`border-border-weak flex flex-0 items-center gap-x-2 border-b p-2 pr-4`,children:[L(J,{}),L(`div`,{className:`bg-sidebar-primary text-sidebar-primary-foreground ml-2 flex aspect-square size-8 items-center justify-center rounded-lg`,children:L(A,{size:20})}),R(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[L(`span`,{className:`truncate font-medium`,children:`Lunas Store`}),L(`span`,{className:`truncate text-xs`,children:`Established 2023`})]})]}),L(`div`,{className:`flex flex-1 flex-col p-2`,children:i})]})]})}):R(`aside`,{className:`group peer text-sidebar-foreground bg-card hidden md:block`,"data-state":s,"data-collapsible":s===`collapsed`?n:``,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[L(`div`,{"data-slot":`sidebar-gap`,className:j(`relative`,`bg-transparent`,`transition-[width] duration-200 ease-linear`,`h-(--header-height) w-(--sidebar-width)`,`sm:h-[calc(var(--header-height) + 0.5rem)]`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,t===`floating`||t===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),L(`div`,{"data-slot":`sidebar-container`,className:j(`hidden md:flex`,`shadow-nav fixed inset-y-0 top-14 z-10`,`h-[calc(100dvh-3.5rem)] w-(--sidebar-width)`,`transition-[left,right,width] duration-200 ease-linear`,e===`left`&&`left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`,e===`right`&&`right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,t===`floating`||t===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,r),...a,children:L(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:j(`flex size-full flex-col`,`group-data-[variant=floating]:rounded-lg`,`group-data-[variant=floating]:border`,`group-data-[variant=floating]:border-sidebar-border`,`group-data-[variant=floating]:shadow-sm`),children:i})})]})}function J({className:t,onClick:n,...r}){let{toggleSidebar:i}=K();return R(e,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,color:`muted`,size:`icon`,className:j(`size-10 rounded-full`,t),onClick:e=>{n?.(e),i()},...r,children:[L(pe,{className:`!size-6`}),L(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function De({className:e,children:t,...n}){return R(`main`,{"data-slot":`sidebar-inset`,className:j(`relative flex w-full flex-1 flex-col`,e),...n,children:[L(`div`,{className:`h-(--header-height) w-full sm:h-[calc(var(--header-height)_+_0.5rem)]`}),L(`div`,{className:j(`flex-1 inset-shadow-sm`),children:t})]})}function Oe({className:e,children:t,...n}){let{open:r}=K(),{onLogout:i}=U();return R(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:j(`flex flex-col gap-2`,e),...n,children:[t,R(Y,{children:[L(X,{children:R(Z,{className:`border-border border`,onClick:i,children:[L(k,{className:`text-text-positive-weak`}),`Đăng xuất`]})}),r&&L(X,{className:`border-t-border mt-2 border-t`,children:L(`p`,{className:`text-muted-foreground pt-2 text-center text-xs`,children:`Copyright © 2025, Lunas.`})})]})]})}function ke({className:e,...t}){return L(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:j(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...t})}function Ae({className:e,...t}){return L(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:j(`relative flex w-full min-w-0 flex-col`,e),...t})}function je({className:e,asChild:t=!1,...n}){let r=t?z.Slot:`div`;return L(r,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:j(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2`,`text-sidebar-foreground/70`,`ring-sidebar-ring`,`[&>svg]:size-4`,`[&>svg]:shrink-0`,`group-data-[collapsible=icon]:-mt-8`,`group-data-[collapsible=icon]:opacity-0`,e),...n})}function Me({className:e,...t}){return L(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:j(`w-full text-sm`,e),...t})}function Y({className:e,...t}){return L(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:j(`flex w-full min-w-0 flex-col gap-1`,e),...t})}function X({className:e,...t}){return L(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:j(`group/menu-item relative`,e),...t})}const Ne=Se(`peer/menu-button.cursor-pointer.flex w-full items-center gap-2.overflow-hidden rounded-md p-2 outline-hidden.text-left truncate.transition-[color,width,height,padding].hover:bg-sidebar-accent.hover:text-sidebar-accent-foreground.active:bg-sidebar-accent.active:text-sidebar-accent-foreground.disabled:pointer-events-none.disabled:opacity-50.group-has-data-[sidebar=menu-action]/menu-item:pr-8.aria-disabled:pointer-events-none.aria-disabled:opacity-50.data-[active=true]:bg-sidebar-primary-muted.data-[active=true]:font-medium.data-[active=true]:text-sidebar-primary.data-[state=open]:hover:bg-sidebar-accent.data-[state=open]:hover:text-sidebar-accent-foreground.group-data-[collapsible=icon]:size-12!.group-data-[collapsible=icon]:p-3!.group-data-[collapsible=icon]:gap-3!.[&>svg]:size-6.[&>svg]:shrink-0.[&>span:last-child]:truncate`.split(`.`),{variants:{variant:{default:`hover:bg-sidebar-accent/60 hover:text-sidebar-accent-foreground/80`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-10 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function Z({asChild:e=!1,isActive:t=!1,variant:n=`default`,size:r=`default`,tooltip:o,className:c,...l}){let u=e?z.Slot:`button`,{isMobile:d,state:f}=K(),p=L(u,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":r,"data-active":t,className:j(Ne({variant:n,size:r}),c),...l});return o?(typeof o==`string`&&(o={children:o}),R(i,{children:[L(s,{asChild:!0,children:p}),L(a,{side:`right`,align:`center`,hidden:f!==`collapsed`||d,...o})]})):p}const Pe=({isLoggedIn:e=!1,username:t,email:n,inStockCarts:r,orderedCarts:i,onGoogleLoginSuccess:a,onUpdatingCart:o,onDeletingCart:s,onLogout:c,children:l})=>L(H.Provider,{value:{isLoggedIn:e,username:t,email:n,inStockCarts:r,orderedCarts:i,onGoogleLoginSuccess:a,onUpdatingCart:o,onDeletingCart:s,onLogout:c},children:l}),Fe=({children:e})=>L(q,{children:e}),Q=({userName:t=`Keith Kennedy`,userEmail:n=`k.kennedy@originui.com`,onLogout:r})=>R(C,{children:[L(ie,{asChild:!0,children:L(e,{size:`icon`,variant:`ghost`,color:`secondary`,className:`size-10 rounded-full`,children:R(c,{className:`size-10`,children:[L(u,{}),L(l,{className:`bg-muted-muted size-full`,children:L(ye,{})})]})})}),R(w,{align:`end`,className:`max-w-64`,children:[R(ne,{className:`flex min-w-0 flex-col`,children:[L(`span`,{className:`text-text-positive truncate text-sm font-medium`,children:t}),L(`span`,{className:`text-text-positive-weak truncate text-xs font-normal`,children:n})]}),L(re,{}),R(te,{onClick:r,children:[L(k,{size:16,"aria-hidden":`true`}),L(`span`,{className:`text-text-positive`,children:`Logout`})]})]})]}),$=()=>{let{inStockCarts:t=[],orderedCarts:n=[]}=U(),r=t.length,i=n.length,a=r+i;return R(oe,{children:[L(ue,{asChild:!0,children:R(e,{size:`icon`,variant:`ghost`,color:`secondary`,className:`relative size-10 rounded-full`,children:[L(A,{}),a>0&&L(`span`,{className:`bg-primary text-primary-foreground absolute -top-1 -right-1 flex h-4 min-w-4 items-center justify-center rounded-full px-1 text-xs font-bold`,children:a})]})}),R(se,{className:`w-[95vw] sm:max-w-md`,children:[L(ce,{className:`border-border-weak flex-0 border-b pb-3`,children:R(le,{className:`flex items-center gap-2`,children:[L(ge,{className:`h-5 w-5`}),L(`span`,{children:`Giỏ hàng của bạn`}),a>0&&R(`span`,{className:`text-text-positive-weak text-sm font-normal`,children:[`(`,a,` sản phẩm)`]})]})}),R(T,{defaultValue:i>0?`pre_order`:`in_stock`,className:`h-full flex-1 overflow-y-auto p-4 pt-0`,children:[R(de,{className:`w-full flex-0`,children:[R(D,{value:`in_stock`,className:`relative`,children:[`Có sẵn`,r>0&&R(`span`,{children:[`(`,r,`)`]})]}),R(D,{value:`pre_order`,className:`relative`,children:[`Đặt trước`,i>0&&R(`span`,{children:[`(`,i,`)`]})]})]}),L(E,{value:`pre_order`,className:`flex-1 overflow-y-auto`,children:L(W,{items:n,cartType:`pre_order`})}),L(E,{value:`in_stock`,className:`flex-1 overflow-y-auto`,children:L(W,{items:t,cartType:`in_stock`})})]})]})]})},Ie=()=>{let{isLoggedIn:t,username:n,email:r,onGoogleLoginSuccess:i,onLogout:a}=U(),o=B(`(min-width: 640px)`),[s,c]=I(!1);return R(`header`,{className:j(`bg-card`,`h-(--header-height)`,`sm:h-[calc(var(--header-height)_+_0.5rem)] sm:px-4 sm:pr-6`,`absolute inset-x-0 top-0 z-20 gap-2 px-2 pr-4.5`,`shadow-nav flex items-center`,`transition-[width,height] ease-linear`),children:[t&&L(J,{}),R(`div`,{className:`flex gap-x-2 sm:ml-2.5`,children:[L(`div`,{className:`bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg`,children:L(A,{size:20})}),R(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[L(`span`,{className:`truncate font-medium`,children:`Lunas Store`}),L(`span`,{className:`truncate text-xs`,children:`Established 2023`})]})]}),R(`div`,{className:`flex flex-1 items-center justify-end gap-x-2`,children:[!t&&R(e,{className:`w-8 sm:w-fit`,onClick:()=>c(!0),children:[L(O,{}),L(`span`,{className:`sr-only sm:not-sr-only`,children:`Đăng nhập`})]}),t&&R(xe,{children:[L(Q,{userName:n,userEmail:r,onLogout:a}),L(d,{orientation:`vertical`,className:`min-h-6 w-px`}),L($,{})]})]}),o&&L(f,{open:s,onOpenChange:c,children:R(p,{showCloseButton:!1,className:`flex flex-col gap-0 border-none p-0 sm:max-w-sm`,children:[L(h,{className:`flex-0 gap-2 p-6`,children:L(g,{className:`text-center`,children:`Chào mừng bạn đến với Lunas Store!`})}),L(`div`,{className:`flex flex-1 flex-col`,children:L(`main`,{className:`bg-card size-full flex-1 p-4 pt-0`,children:R(`div`,{className:`flex flex-col items-center gap-y-1`,children:[L(`p`,{className:`text-text-positive-weak text-sm`,children:`Đăng nhập với Google`}),L(V,{size:`large`,theme:`outline`,width:240,onSuccess:async e=>{!e.clientId||!e.credential||!e.select_by||await i?.(e)}})]})})}),L(m,{className:`p-2`})]})}),!o&&L(_,{open:s,onOpenChange:c,children:R(v,{children:[L(x,{className:`text-left`,children:L(S,{children:`Chào mừng bạn đến với Lunas Store!`})}),L(`div`,{className:`flex flex-1 flex-col`,children:L(`main`,{className:`flex size-full flex-1 flex-col p-4 pt-0`,children:R(`div`,{className:`flex flex-col items-center gap-y-1`,children:[L(`p`,{className:`text-text-positive-weak text-sm`,children:`Đăng nhập với Google`}),L(V,{size:`large`,theme:`outline`,onSuccess:async e=>{!e.clientId||!e.credential||!e.select_by||await i?.(e)}})]})})}),L(b,{})]})})]})},Le=({children:e,...t})=>{let{isLoggedIn:n}=U();return n?L(Ee,{variant:`inset`,collapsible:`icon`,...t,children:e}):null},Re=({children:t})=>{let{isLoggedIn:n,onGoogleLoginSuccess:r}=U(),i=B(`(min-width: 640px)`),[a,o]=I(!1);return n?L(De,{children:L(`section`,{className:`relative size-full`,children:L(`div`,{className:`absolute inset-0 flex flex-col`,children:t})})}):L(`div`,{className:`size-full p-4 pt-[calc(var(--header-height)+1.5rem)]`,children:R(`div`,{className:`bg-card shadow-card flex size-full flex-col items-center justify-center gap-6 rounded-lg p-8 text-center`,children:[L(`div`,{className:`bg-muted-foreground/10 flex size-20 items-center justify-center rounded-full`,children:L(fe,{className:`text-primary size-10`})}),R(`div`,{className:`flex max-w-md flex-col gap-2`,children:[L(`h2`,{className:`text-2xl font-semibold`,children:`Bạn chưa đăng nhập`}),L(`p`,{className:`text-text-positive-weak`,children:`Đăng nhập để khám phá đầy đủ các tính năng của Lunas Store và truy cập vào tài khoản của bạn.`})]}),R(e,{size:`lg`,className:`gap-2`,onClick:()=>o(!0),children:[L(O,{size:18}),L(`span`,{children:`Đăng nhập ngay`})]}),i&&L(f,{open:a,onOpenChange:o,children:R(p,{showCloseButton:!1,className:`flex flex-col gap-0 border-none p-0 sm:max-w-sm`,children:[L(h,{className:`flex-0 gap-2 p-6`,children:L(g,{className:`text-center`,children:`Chào mừng bạn đến với Lunas Store!`})}),L(`div`,{className:`flex flex-1 flex-col`,children:L(`main`,{className:`bg-card size-full flex-1 p-4 pt-0`,children:R(`div`,{className:`flex flex-col items-center gap-y-1`,children:[L(`p`,{className:`text-text-positive-weak text-sm`,children:`Đăng nhập với Google`}),L(V,{size:`large`,theme:`outline`,width:240,onSuccess:async e=>{!e.clientId||!e.credential||!e.select_by||(await r?.(e),o(!1))}})]})})}),L(m,{className:`p-2`})]})}),!i&&L(_,{open:a,onOpenChange:o,children:R(v,{children:[L(x,{className:`text-left`,children:L(S,{children:`Chào mừng bạn đến với Lunas Store!`})}),L(`div`,{className:`flex flex-1 flex-col`,children:L(`main`,{className:`flex size-full flex-1 flex-col p-4 pt-0`,children:R(`div`,{className:`flex flex-col items-center gap-y-1`,children:[L(`p`,{className:`text-text-positive-weak text-sm`,children:`Đăng nhập với Google`}),L(V,{size:`large`,theme:`outline`,onSuccess:async e=>{!e.clientId||!e.credential||!e.select_by||(await r?.(e),o(!1))}})]})})}),L(b,{})]})})]})})},ze=({className:e,children:t})=>L(`div`,{"data-slot":`main-header`,className:j(`flex-0 snap-start`,e),children:t}),Be=({className:e,children:t})=>L(`div`,{"data-slot":`main-content`,className:j(`flex w-full flex-1 flex-col gap-4 overflow-y-auto px-2 sm:px-4`,e),children:t}),Ve=({className:e,children:t})=>L(`div`,{"data-slot":`main-footer`,className:j(`border-border-weak hidden w-full flex-0 border-t pt-2 sm:flex`,e),children:t}),He=({children:e,className:t})=>L(`div`,{"data-slot":`main-group`,className:j(`flex size-full flex-col gap-4`,t),children:e}),Ue=({className:e,children:t})=>L(`div`,{"data-slot":`main-group-content`,className:j(`bg-card shadow-card max-w-8xl size-full flex-1 rounded-md p-4`,e),children:t});export{$ as ServiceLayoutCartInfo,Ie as ServiceLayoutHeader,Re as ServiceLayoutMain,Be as ServiceLayoutMainContent,Ve as ServiceLayoutMainFooter,He as ServiceLayoutMainGroup,Ue as ServiceLayoutMainGroupContent,ze as ServiceLayoutMainHeader,Pe as ServiceLayoutProvider,Le as ServiceLayoutSidebar,ke as ServiceLayoutSidebarContent,Oe as ServiceLayoutSidebarFooter,Ae as ServiceLayoutSidebarGroup,Me as ServiceLayoutSidebarGroupContent,je as ServiceLayoutSidebarGroupLabel,Y as ServiceLayoutSidebarMenu,Z as ServiceLayoutSidebarMenuButton,X as ServiceLayoutSidebarMenuItem,Q as ServiceLayoutUserInfo,Fe as ServiceLayoutWrapper};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime75 from "react/jsx-runtime";
|
|
2
2
|
import { Separator } from "radix-ui";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/separator.d.ts
|
|
@@ -7,7 +7,7 @@ declare function Separator$1({
|
|
|
7
7
|
orientation,
|
|
8
8
|
decorative,
|
|
9
9
|
...props
|
|
10
|
-
}: React.ComponentProps<typeof Separator.Root>):
|
|
10
|
+
}: React.ComponentProps<typeof Separator.Root>): react_jsx_runtime75.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { Separator$1 as Separator };
|
|
13
|
-
//# sourceMappingURL=separator-
|
|
13
|
+
//# sourceMappingURL=separator-3Tqllk9s.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime208 from "react/jsx-runtime";
|
|
2
2
|
import { Separator } from "radix-ui";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/separator.d.ts
|
|
@@ -7,7 +7,7 @@ declare function Separator$1({
|
|
|
7
7
|
orientation,
|
|
8
8
|
decorative,
|
|
9
9
|
...props
|
|
10
|
-
}: React.ComponentProps<typeof Separator.Root>):
|
|
10
|
+
}: React.ComponentProps<typeof Separator.Root>): react_jsx_runtime208.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { Separator$1 as Separator };
|
|
13
|
-
//# sourceMappingURL=separator-
|
|
13
|
+
//# sourceMappingURL=separator-Dxf2wDl5.d.cts.map
|
package/dist/table/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime33 from "react/jsx-runtime";
|
|
2
2
|
import { ColumnDef } from "@tanstack/react-table";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/table/index.d.ts
|
|
@@ -25,7 +25,7 @@ declare function Table<T extends Record<string, unknown>>({
|
|
|
25
25
|
onRefresh,
|
|
26
26
|
onClickRow,
|
|
27
27
|
onFetchNextPage
|
|
28
|
-
}: Props<T>):
|
|
28
|
+
}: Props<T>): react_jsx_runtime33.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { Table };
|
|
31
31
|
//# sourceMappingURL=index.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime270 from "react/jsx-runtime";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
3
|
import { Toggle } from "radix-ui";
|
|
4
4
|
import * as class_variance_authority_types8 from "class-variance-authority/types";
|
|
@@ -13,7 +13,7 @@ declare function Toggle$1({
|
|
|
13
13
|
variant,
|
|
14
14
|
size,
|
|
15
15
|
...props
|
|
16
|
-
}: React.ComponentProps<typeof Toggle.Root> & VariantProps<typeof toggleVariants>):
|
|
16
|
+
}: React.ComponentProps<typeof Toggle.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime270.JSX.Element;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { Toggle$1 as Toggle, toggleVariants };
|
|
19
|
-
//# sourceMappingURL=toggle-
|
|
19
|
+
//# sourceMappingURL=toggle-BNUNuWcd.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime274 from "react/jsx-runtime";
|
|
2
2
|
import * as class_variance_authority_types8 from "class-variance-authority/types";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import { Toggle } from "radix-ui";
|
|
@@ -13,7 +13,7 @@ declare function Toggle$1({
|
|
|
13
13
|
variant,
|
|
14
14
|
size,
|
|
15
15
|
...props
|
|
16
|
-
}: React.ComponentProps<typeof Toggle.Root> & VariantProps<typeof toggleVariants>):
|
|
16
|
+
}: React.ComponentProps<typeof Toggle.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime274.JSX.Element;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { Toggle$1 as Toggle, toggleVariants };
|
|
19
|
-
//# sourceMappingURL=toggle-
|
|
19
|
+
//# sourceMappingURL=toggle-C7HTp7p1.d.cts.map
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime270 from "react/jsx-runtime";
|
|
2
2
|
import { Tooltip } from "radix-ui";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/tooltip.d.ts
|
|
5
5
|
declare function TooltipProvider({
|
|
6
6
|
delayDuration,
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<typeof Tooltip.Provider>):
|
|
8
|
+
}: React.ComponentProps<typeof Tooltip.Provider>): react_jsx_runtime270.JSX.Element;
|
|
9
9
|
declare function Tooltip$1({
|
|
10
10
|
...props
|
|
11
|
-
}: React.ComponentProps<typeof Tooltip.Root>):
|
|
11
|
+
}: React.ComponentProps<typeof Tooltip.Root>): react_jsx_runtime270.JSX.Element;
|
|
12
12
|
declare function TooltipTrigger({
|
|
13
13
|
...props
|
|
14
|
-
}: React.ComponentProps<typeof Tooltip.Trigger>):
|
|
14
|
+
}: React.ComponentProps<typeof Tooltip.Trigger>): react_jsx_runtime270.JSX.Element;
|
|
15
15
|
declare function TooltipContent({
|
|
16
16
|
className,
|
|
17
17
|
sideOffset,
|
|
18
18
|
children,
|
|
19
19
|
...props
|
|
20
|
-
}: React.ComponentProps<typeof Tooltip.Content>):
|
|
20
|
+
}: React.ComponentProps<typeof Tooltip.Content>): react_jsx_runtime270.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { Tooltip$1 as Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
23
|
-
//# sourceMappingURL=tooltip-
|
|
23
|
+
//# sourceMappingURL=tooltip-BNynBa87.d.cts.map
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime272 from "react/jsx-runtime";
|
|
2
2
|
import { Tooltip } from "radix-ui";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/tooltip.d.ts
|
|
5
5
|
declare function TooltipProvider({
|
|
6
6
|
delayDuration,
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<typeof Tooltip.Provider>):
|
|
8
|
+
}: React.ComponentProps<typeof Tooltip.Provider>): react_jsx_runtime272.JSX.Element;
|
|
9
9
|
declare function Tooltip$1({
|
|
10
10
|
...props
|
|
11
|
-
}: React.ComponentProps<typeof Tooltip.Root>):
|
|
11
|
+
}: React.ComponentProps<typeof Tooltip.Root>): react_jsx_runtime272.JSX.Element;
|
|
12
12
|
declare function TooltipTrigger({
|
|
13
13
|
...props
|
|
14
|
-
}: React.ComponentProps<typeof Tooltip.Trigger>):
|
|
14
|
+
}: React.ComponentProps<typeof Tooltip.Trigger>): react_jsx_runtime272.JSX.Element;
|
|
15
15
|
declare function TooltipContent({
|
|
16
16
|
className,
|
|
17
17
|
sideOffset,
|
|
18
18
|
children,
|
|
19
19
|
...props
|
|
20
|
-
}: React.ComponentProps<typeof Tooltip.Content>):
|
|
20
|
+
}: React.ComponentProps<typeof Tooltip.Content>): react_jsx_runtime272.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { Tooltip$1 as Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
23
|
-
//# sourceMappingURL=tooltip-
|
|
23
|
+
//# sourceMappingURL=tooltip-Clkt7Knc.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime26 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region packages/components/typography/paragraph.d.ts
|
|
4
4
|
type Props = {
|
|
@@ -10,7 +10,7 @@ declare const Paragraph: ({
|
|
|
10
10
|
variant,
|
|
11
11
|
className,
|
|
12
12
|
children
|
|
13
|
-
}: Props) =>
|
|
13
|
+
}: Props) => react_jsx_runtime26.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { Paragraph };
|
|
16
16
|
//# sourceMappingURL=paragraph.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime15 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region packages/components/typography/paragraph.d.ts
|
|
4
4
|
type Props = {
|
|
@@ -10,7 +10,7 @@ declare const Paragraph: ({
|
|
|
10
10
|
variant,
|
|
11
11
|
className,
|
|
12
12
|
children
|
|
13
|
-
}: Props) =>
|
|
13
|
+
}: Props) => react_jsx_runtime15.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { Paragraph };
|
|
16
16
|
//# sourceMappingURL=paragraph.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime27 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region packages/components/typography/title.d.ts
|
|
4
4
|
type Props = {
|
|
@@ -10,7 +10,7 @@ declare const Title: ({
|
|
|
10
10
|
level,
|
|
11
11
|
className,
|
|
12
12
|
children
|
|
13
|
-
}: Props) =>
|
|
13
|
+
}: Props) => react_jsx_runtime27.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { Title };
|
|
16
16
|
//# sourceMappingURL=title.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime25 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region packages/components/typography/title.d.ts
|
|
4
4
|
type Props = {
|
|
@@ -10,7 +10,7 @@ declare const Title: ({
|
|
|
10
10
|
level,
|
|
11
11
|
className,
|
|
12
12
|
children
|
|
13
|
-
}: Props) =>
|
|
13
|
+
}: Props) => react_jsx_runtime25.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { Title };
|
|
16
16
|
//# sourceMappingURL=title.d.ts.map
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
2
2
|
import { AlertDialog as AlertDialog$1 } from "radix-ui";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/alert-dialog.d.ts
|
|
5
5
|
declare function AlertDialog({
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<typeof AlertDialog$1.Root>):
|
|
7
|
+
}: React.ComponentProps<typeof AlertDialog$1.Root>): react_jsx_runtime12.JSX.Element;
|
|
8
8
|
declare function AlertDialogTrigger({
|
|
9
9
|
...props
|
|
10
|
-
}: React.ComponentProps<typeof AlertDialog$1.Trigger>):
|
|
10
|
+
}: React.ComponentProps<typeof AlertDialog$1.Trigger>): react_jsx_runtime12.JSX.Element;
|
|
11
11
|
declare function AlertDialogPortal({
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof AlertDialog$1.Portal>):
|
|
13
|
+
}: React.ComponentProps<typeof AlertDialog$1.Portal>): react_jsx_runtime12.JSX.Element;
|
|
14
14
|
declare function AlertDialogOverlay({
|
|
15
15
|
className,
|
|
16
16
|
...props
|
|
17
|
-
}: React.ComponentProps<typeof AlertDialog$1.Overlay>):
|
|
17
|
+
}: React.ComponentProps<typeof AlertDialog$1.Overlay>): react_jsx_runtime12.JSX.Element;
|
|
18
18
|
declare function AlertDialogContent({
|
|
19
19
|
className,
|
|
20
20
|
...props
|
|
21
|
-
}: React.ComponentProps<typeof AlertDialog$1.Content>):
|
|
21
|
+
}: React.ComponentProps<typeof AlertDialog$1.Content>): react_jsx_runtime12.JSX.Element;
|
|
22
22
|
declare function AlertDialogHeader({
|
|
23
23
|
className,
|
|
24
24
|
...props
|
|
25
|
-
}: React.ComponentProps<'div'>):
|
|
25
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime12.JSX.Element;
|
|
26
26
|
declare function AlertDialogFooter({
|
|
27
27
|
className,
|
|
28
28
|
...props
|
|
29
|
-
}: React.ComponentProps<'div'>):
|
|
29
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime12.JSX.Element;
|
|
30
30
|
declare function AlertDialogTitle({
|
|
31
31
|
className,
|
|
32
32
|
...props
|
|
33
|
-
}: React.ComponentProps<typeof AlertDialog$1.Title>):
|
|
33
|
+
}: React.ComponentProps<typeof AlertDialog$1.Title>): react_jsx_runtime12.JSX.Element;
|
|
34
34
|
declare function AlertDialogDescription({
|
|
35
35
|
className,
|
|
36
36
|
...props
|
|
37
|
-
}: React.ComponentProps<typeof AlertDialog$1.Description>):
|
|
37
|
+
}: React.ComponentProps<typeof AlertDialog$1.Description>): react_jsx_runtime12.JSX.Element;
|
|
38
38
|
declare function AlertDialogAction({
|
|
39
39
|
className,
|
|
40
40
|
...props
|
|
41
|
-
}: React.ComponentProps<typeof AlertDialog$1.Action>):
|
|
41
|
+
}: React.ComponentProps<typeof AlertDialog$1.Action>): react_jsx_runtime12.JSX.Element;
|
|
42
42
|
declare function AlertDialogCancel({
|
|
43
43
|
className,
|
|
44
44
|
...props
|
|
45
|
-
}: React.ComponentProps<typeof AlertDialog$1.Cancel>):
|
|
45
|
+
}: React.ComponentProps<typeof AlertDialog$1.Cancel>): react_jsx_runtime12.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger };
|
|
48
48
|
//# sourceMappingURL=alert-dialog.d.cts.map
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime27 from "react/jsx-runtime";
|
|
2
2
|
import { AlertDialog as AlertDialog$1 } from "radix-ui";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/alert-dialog.d.ts
|
|
5
5
|
declare function AlertDialog({
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<typeof AlertDialog$1.Root>):
|
|
7
|
+
}: React.ComponentProps<typeof AlertDialog$1.Root>): react_jsx_runtime27.JSX.Element;
|
|
8
8
|
declare function AlertDialogTrigger({
|
|
9
9
|
...props
|
|
10
|
-
}: React.ComponentProps<typeof AlertDialog$1.Trigger>):
|
|
10
|
+
}: React.ComponentProps<typeof AlertDialog$1.Trigger>): react_jsx_runtime27.JSX.Element;
|
|
11
11
|
declare function AlertDialogPortal({
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof AlertDialog$1.Portal>):
|
|
13
|
+
}: React.ComponentProps<typeof AlertDialog$1.Portal>): react_jsx_runtime27.JSX.Element;
|
|
14
14
|
declare function AlertDialogOverlay({
|
|
15
15
|
className,
|
|
16
16
|
...props
|
|
17
|
-
}: React.ComponentProps<typeof AlertDialog$1.Overlay>):
|
|
17
|
+
}: React.ComponentProps<typeof AlertDialog$1.Overlay>): react_jsx_runtime27.JSX.Element;
|
|
18
18
|
declare function AlertDialogContent({
|
|
19
19
|
className,
|
|
20
20
|
...props
|
|
21
|
-
}: React.ComponentProps<typeof AlertDialog$1.Content>):
|
|
21
|
+
}: React.ComponentProps<typeof AlertDialog$1.Content>): react_jsx_runtime27.JSX.Element;
|
|
22
22
|
declare function AlertDialogHeader({
|
|
23
23
|
className,
|
|
24
24
|
...props
|
|
25
|
-
}: React.ComponentProps<'div'>):
|
|
25
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime27.JSX.Element;
|
|
26
26
|
declare function AlertDialogFooter({
|
|
27
27
|
className,
|
|
28
28
|
...props
|
|
29
|
-
}: React.ComponentProps<'div'>):
|
|
29
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime27.JSX.Element;
|
|
30
30
|
declare function AlertDialogTitle({
|
|
31
31
|
className,
|
|
32
32
|
...props
|
|
33
|
-
}: React.ComponentProps<typeof AlertDialog$1.Title>):
|
|
33
|
+
}: React.ComponentProps<typeof AlertDialog$1.Title>): react_jsx_runtime27.JSX.Element;
|
|
34
34
|
declare function AlertDialogDescription({
|
|
35
35
|
className,
|
|
36
36
|
...props
|
|
37
|
-
}: React.ComponentProps<typeof AlertDialog$1.Description>):
|
|
37
|
+
}: React.ComponentProps<typeof AlertDialog$1.Description>): react_jsx_runtime27.JSX.Element;
|
|
38
38
|
declare function AlertDialogAction({
|
|
39
39
|
className,
|
|
40
40
|
...props
|
|
41
|
-
}: React.ComponentProps<typeof AlertDialog$1.Action>):
|
|
41
|
+
}: React.ComponentProps<typeof AlertDialog$1.Action>): react_jsx_runtime27.JSX.Element;
|
|
42
42
|
declare function AlertDialogCancel({
|
|
43
43
|
className,
|
|
44
44
|
...props
|
|
45
|
-
}: React.ComponentProps<typeof AlertDialog$1.Cancel>):
|
|
45
|
+
}: React.ComponentProps<typeof AlertDialog$1.Cancel>): react_jsx_runtime27.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger };
|
|
48
48
|
//# sourceMappingURL=alert-dialog.d.ts.map
|
package/dist/ui/alert.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime23 from "react/jsx-runtime";
|
|
2
2
|
import * as class_variance_authority_types10 from "class-variance-authority/types";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
|
|
@@ -7,7 +7,7 @@ import { VariantProps } from "class-variance-authority";
|
|
|
7
7
|
* Alert component variants for styling using class-variance-authority
|
|
8
8
|
*/
|
|
9
9
|
declare const alertVariants: (props?: ({
|
|
10
|
-
variant?: "default" | "
|
|
10
|
+
variant?: "default" | "success" | "info" | "warning" | "destructive" | null | undefined;
|
|
11
11
|
} & class_variance_authority_types10.ClassProp) | undefined) => string;
|
|
12
12
|
type AlertVariantProps = VariantProps<typeof alertVariants>;
|
|
13
13
|
//#endregion
|
|
@@ -37,7 +37,7 @@ declare function Alert({
|
|
|
37
37
|
dismissible,
|
|
38
38
|
onDismiss,
|
|
39
39
|
...props
|
|
40
|
-
}: AlertProps):
|
|
40
|
+
}: AlertProps): react_jsx_runtime23.JSX.Element;
|
|
41
41
|
interface AlertTitleProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
42
42
|
/**
|
|
43
43
|
* Title text or elements
|
|
@@ -50,7 +50,7 @@ interface AlertTitleProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
50
50
|
declare function AlertTitle({
|
|
51
51
|
className,
|
|
52
52
|
...props
|
|
53
|
-
}: AlertTitleProps):
|
|
53
|
+
}: AlertTitleProps): react_jsx_runtime23.JSX.Element;
|
|
54
54
|
interface AlertDescriptionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
55
55
|
/**
|
|
56
56
|
* Description text or elements
|
|
@@ -63,7 +63,7 @@ interface AlertDescriptionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
63
63
|
declare function AlertDescription({
|
|
64
64
|
className,
|
|
65
65
|
...props
|
|
66
|
-
}: AlertDescriptionProps):
|
|
66
|
+
}: AlertDescriptionProps): react_jsx_runtime23.JSX.Element;
|
|
67
67
|
//#endregion
|
|
68
68
|
export { Alert, AlertDescription, AlertDescriptionProps, AlertProps, AlertTitle, AlertTitleProps };
|
|
69
69
|
//# sourceMappingURL=alert.d.cts.map
|
package/dist/ui/alert.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime38 from "react/jsx-runtime";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
|
-
import * as
|
|
3
|
+
import * as class_variance_authority_types11 from "class-variance-authority/types";
|
|
4
4
|
|
|
5
5
|
//#region packages/components/ui/alert-variants.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* Alert component variants for styling using class-variance-authority
|
|
8
8
|
*/
|
|
9
9
|
declare const alertVariants: (props?: ({
|
|
10
|
-
variant?: "default" | "
|
|
11
|
-
} &
|
|
10
|
+
variant?: "default" | "success" | "info" | "warning" | "destructive" | null | undefined;
|
|
11
|
+
} & class_variance_authority_types11.ClassProp) | undefined) => string;
|
|
12
12
|
type AlertVariantProps = VariantProps<typeof alertVariants>;
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region packages/components/ui/alert.d.ts
|
|
@@ -37,7 +37,7 @@ declare function Alert({
|
|
|
37
37
|
dismissible,
|
|
38
38
|
onDismiss,
|
|
39
39
|
...props
|
|
40
|
-
}: AlertProps):
|
|
40
|
+
}: AlertProps): react_jsx_runtime38.JSX.Element;
|
|
41
41
|
interface AlertTitleProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
42
42
|
/**
|
|
43
43
|
* Title text or elements
|
|
@@ -50,7 +50,7 @@ interface AlertTitleProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
50
50
|
declare function AlertTitle({
|
|
51
51
|
className,
|
|
52
52
|
...props
|
|
53
|
-
}: AlertTitleProps):
|
|
53
|
+
}: AlertTitleProps): react_jsx_runtime38.JSX.Element;
|
|
54
54
|
interface AlertDescriptionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
55
55
|
/**
|
|
56
56
|
* Description text or elements
|
|
@@ -63,7 +63,7 @@ interface AlertDescriptionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
63
63
|
declare function AlertDescription({
|
|
64
64
|
className,
|
|
65
65
|
...props
|
|
66
|
-
}: AlertDescriptionProps):
|
|
66
|
+
}: AlertDescriptionProps): react_jsx_runtime38.JSX.Element;
|
|
67
67
|
//#endregion
|
|
68
68
|
export { Alert, AlertDescription, AlertDescriptionProps, AlertProps, AlertTitle, AlertTitleProps };
|
|
69
69
|
//# sourceMappingURL=alert.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime28 from "react/jsx-runtime";
|
|
2
2
|
import { AspectRatio as AspectRatio$1 } from "radix-ui";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/aspect-ratio.d.ts
|
|
5
5
|
declare function AspectRatio({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<typeof AspectRatio$1.Root>):
|
|
8
|
+
}: React.ComponentProps<typeof AspectRatio$1.Root>): react_jsx_runtime28.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { AspectRatio };
|
|
11
11
|
//# sourceMappingURL=aspect-ratio.d.cts.map
|