@bizapps/design-system-testing 1.0.1 → 1.0.3
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/main.cjs +53 -38
- package/dist/main.cjs.map +1 -1
- package/dist/main.d.cts +215 -212
- package/dist/main.d.ts +215 -212
- package/dist/main.js +55 -40
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -270,12 +270,11 @@ var badgeVariants2 = classVarianceAuthority.cva(
|
|
|
270
270
|
{
|
|
271
271
|
variants: {
|
|
272
272
|
variant: {
|
|
273
|
-
default: "bg-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
link: "text-primary underline-offset-4 hover:underline"
|
|
273
|
+
default: "bg-muted text-muted-foreground",
|
|
274
|
+
info: "bg-blue-100 text-blue-500",
|
|
275
|
+
success: "bg-green-100 text-green-800",
|
|
276
|
+
warning: "bg-yellow-200 text-yellow-800",
|
|
277
|
+
error: "bg-red-100 text-red-600"
|
|
279
278
|
},
|
|
280
279
|
size: {
|
|
281
280
|
sm: "h-4 text-xs px-1.5 py-0.5 rounded-md",
|
|
@@ -2186,7 +2185,7 @@ function ToggleGroupItem({
|
|
|
2186
2185
|
);
|
|
2187
2186
|
}
|
|
2188
2187
|
var tooltipContentVariants = classVarianceAuthority.cva(
|
|
2189
|
-
"z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-xl text-xs has-data-[slot=kbd]:pr-1.5 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-lg data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
2188
|
+
"z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-xl text-xs has-data-[slot=kbd]:pr-1.5 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-lg data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
2190
2189
|
{
|
|
2191
2190
|
variants: {
|
|
2192
2191
|
variant: {
|
|
@@ -2278,7 +2277,7 @@ function PopoverContent({
|
|
|
2278
2277
|
align,
|
|
2279
2278
|
sideOffset,
|
|
2280
2279
|
className: cn(
|
|
2281
|
-
"bg-popover text-popover-foreground ring-foreground/5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-1 rounded-3xl p-4 text-sm shadow-lg ring-1 outline-hidden duration-100",
|
|
2280
|
+
"bg-popover text-popover-foreground ring-foreground/5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-1 rounded-3xl p-4 text-sm shadow-lg ring-1 outline-hidden duration-100",
|
|
2282
2281
|
className
|
|
2283
2282
|
),
|
|
2284
2283
|
...props
|
|
@@ -2872,7 +2871,7 @@ function DropdownMenuContent({
|
|
|
2872
2871
|
sideOffset,
|
|
2873
2872
|
align,
|
|
2874
2873
|
className: cn(
|
|
2875
|
-
"bg-popover text-popover-foreground ring-foreground/5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:ring-foreground/10 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) min-w-48 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-3xl p-1.5 shadow-lg ring-1 duration-100 data-[state=closed]:overflow-hidden",
|
|
2874
|
+
"bg-popover text-popover-foreground ring-foreground/5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:ring-foreground/10 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) min-w-48 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-3xl p-1.5 shadow-lg ring-1 duration-100 data-[state=closed]:overflow-hidden",
|
|
2876
2875
|
className
|
|
2877
2876
|
),
|
|
2878
2877
|
...props
|
|
@@ -3025,7 +3024,7 @@ function DropdownMenuSubTrigger({
|
|
|
3025
3024
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
3026
3025
|
"data-inset": inset,
|
|
3027
3026
|
className: cn(
|
|
3028
|
-
"focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground flex cursor-default items-center gap-2 rounded-2xl px-3 py-2 text-sm font-medium outline-hidden select-none data-inset:pl-9.5 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
3027
|
+
"focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center gap-2 rounded-2xl px-3 py-2 text-sm font-medium outline-hidden select-none data-inset:pl-9.5 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
3029
3028
|
className
|
|
3030
3029
|
),
|
|
3031
3030
|
...props,
|
|
@@ -3045,7 +3044,7 @@ function DropdownMenuSubContent({
|
|
|
3045
3044
|
{
|
|
3046
3045
|
"data-slot": "dropdown-menu-sub-content",
|
|
3047
3046
|
className: cn(
|
|
3048
|
-
"bg-popover text-popover-foreground ring-foreground/5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:ring-foreground/10 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 min-w-36 origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-3xl p-1.5 shadow-lg ring-1 duration-100",
|
|
3047
|
+
"bg-popover text-popover-foreground ring-foreground/5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:ring-foreground/10 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 z-50 min-w-36 origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-3xl p-1.5 shadow-lg ring-1 duration-100",
|
|
3049
3048
|
className
|
|
3050
3049
|
),
|
|
3051
3050
|
...props
|
|
@@ -3467,7 +3466,7 @@ function RadioGroupItem({
|
|
|
3467
3466
|
{
|
|
3468
3467
|
"data-slot": "radio-group-item",
|
|
3469
3468
|
className: cn(
|
|
3470
|
-
"group/radio-group-item peer border-input/60 bg-input/20 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary relative flex aspect-square size-4 shrink-0 rounded-full border outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3",
|
|
3469
|
+
"group/radio-group-item peer border-input/60 bg-input/20 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary relative flex aspect-square size-4 shrink-0 rounded-full border outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3",
|
|
3471
3470
|
className
|
|
3472
3471
|
),
|
|
3473
3472
|
...props,
|
|
@@ -3699,7 +3698,7 @@ function SelectContent2({
|
|
|
3699
3698
|
"data-slot": "select-content",
|
|
3700
3699
|
"data-align-trigger": position === "item-aligned",
|
|
3701
3700
|
className: cn(
|
|
3702
|
-
"bg-popover text-popover-foreground ring-foreground/5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:ring-foreground/10 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 relative z-50 max-h-(--radix-select-content-available-height) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-3xl shadow-lg ring-1 duration-100 data-[align-trigger=true]:animate-none",
|
|
3701
|
+
"bg-popover text-popover-foreground ring-foreground/5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:ring-foreground/10 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 relative z-50 max-h-(--radix-select-content-available-height) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-3xl shadow-lg ring-1 duration-100 data-[align-trigger=true]:animate-none",
|
|
3703
3702
|
position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
3704
3703
|
className
|
|
3705
3704
|
),
|
|
@@ -4330,9 +4329,12 @@ var Navbar = react.forwardRef(
|
|
|
4330
4329
|
utilityLinks = defaultUtilityLinks,
|
|
4331
4330
|
navigationLinks = defaultNavigationLinks,
|
|
4332
4331
|
notificationCount = 1,
|
|
4332
|
+
avatarSrc,
|
|
4333
|
+
avatarFallback,
|
|
4333
4334
|
onNavLinkClick,
|
|
4334
4335
|
onSearchClick,
|
|
4335
4336
|
onHelpClick,
|
|
4337
|
+
onAvatarClick,
|
|
4336
4338
|
...props
|
|
4337
4339
|
}, ref) => {
|
|
4338
4340
|
const containerRef = react.useRef(null);
|
|
@@ -4366,6 +4368,25 @@ var Navbar = react.forwardRef(
|
|
|
4366
4368
|
),
|
|
4367
4369
|
...props,
|
|
4368
4370
|
children: [
|
|
4371
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-background border-border border-b px-4 md:px-6", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative mx-auto flex h-14 max-w-screen-2xl items-center gap-6 overflow-visible", children: [
|
|
4372
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex shrink-0 items-center gap-3", children: [
|
|
4373
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex size-30 items-center justify-center text-xl text-white", children: logo }),
|
|
4374
|
+
!isMobile && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-primary font-bold", children: brandName })
|
|
4375
|
+
] }),
|
|
4376
|
+
!isMobile && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative w-80", children: [
|
|
4377
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.SearchIcon, { className: "text-muted-foreground/50 pointer-events-none absolute top-1/2 left-3 size-3.5 -translate-y-1/2" }),
|
|
4378
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4379
|
+
"input",
|
|
4380
|
+
{
|
|
4381
|
+
type: "text",
|
|
4382
|
+
placeholder: "Search people, apps, requests ...",
|
|
4383
|
+
onClick: onSearchClick,
|
|
4384
|
+
className: "border-border bg-muted text-foreground placeholder:text-muted-foreground/60 focus:border-primary h-8 w-full rounded-full border pr-4 pl-10 text-sm transition-colors outline-none"
|
|
4385
|
+
}
|
|
4386
|
+
)
|
|
4387
|
+
] }),
|
|
4388
|
+
/* @__PURE__ */ jsxRuntime.jsx("nav", { className: "ml-auto flex h-full items-center", children: navigationLinks.map((link, i) => /* @__PURE__ */ jsxRuntime.jsx(NavLinkItem, { link, onNavLinkClick }, i)) })
|
|
4389
|
+
] }) }),
|
|
4369
4390
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-background border-border border-b px-4 md:px-6", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mx-auto flex h-9 max-w-screen-2xl items-center justify-between", children: [
|
|
4370
4391
|
/* @__PURE__ */ jsxRuntime.jsx("nav", { className: "flex items-center", children: utilityLinks.map((link, i) => /* @__PURE__ */ jsxRuntime.jsxs(react.Fragment, { children: [
|
|
4371
4392
|
i > 0 && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-border mx-3 select-none", children: "|" }),
|
|
@@ -4398,27 +4419,20 @@ var Navbar = react.forwardRef(
|
|
|
4398
4419
|
className: "text-muted-foreground hover:text-foreground hover:bg-muted flex size-7 cursor-pointer items-center justify-center rounded-md transition-colors",
|
|
4399
4420
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CircleHelpIcon, { className: "size-3.5" })
|
|
4400
4421
|
}
|
|
4401
|
-
)
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-background border-border border-b px-4 md:px-6", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative mx-auto flex h-14 max-w-screen-2xl items-center gap-6 overflow-visible", children: [
|
|
4405
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex shrink-0 items-center gap-3", children: [
|
|
4406
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex size-30 items-center justify-center text-xl text-white", children: logo }),
|
|
4407
|
-
!isMobile && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-primary font-bold", children: brandName })
|
|
4408
|
-
] }),
|
|
4409
|
-
!isMobile && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative w-80", children: [
|
|
4410
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.SearchIcon, { className: "text-muted-foreground/50 pointer-events-none absolute top-1/2 left-3 size-3.5 -translate-y-1/2" }),
|
|
4411
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4412
|
-
"input",
|
|
4422
|
+
),
|
|
4423
|
+
(avatarSrc || avatarFallback) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4424
|
+
"button",
|
|
4413
4425
|
{
|
|
4414
|
-
type: "
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
|
|
4426
|
+
type: "button",
|
|
4427
|
+
onClick: onAvatarClick,
|
|
4428
|
+
className: "ml-1 cursor-pointer rounded-full",
|
|
4429
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(Avatar, { size: "sm", children: [
|
|
4430
|
+
avatarSrc && /* @__PURE__ */ jsxRuntime.jsx(AvatarImage, { src: avatarSrc, alt: avatarFallback ?? "User avatar" }),
|
|
4431
|
+
/* @__PURE__ */ jsxRuntime.jsx(AvatarFallback, { children: avatarFallback })
|
|
4432
|
+
] })
|
|
4418
4433
|
}
|
|
4419
4434
|
)
|
|
4420
|
-
] })
|
|
4421
|
-
/* @__PURE__ */ jsxRuntime.jsx("nav", { className: "ml-auto flex h-full items-center", children: navigationLinks.map((link, i) => /* @__PURE__ */ jsxRuntime.jsx(NavLinkItem, { link, onNavLinkClick }, i)) })
|
|
4435
|
+
] })
|
|
4422
4436
|
] }) })
|
|
4423
4437
|
]
|
|
4424
4438
|
}
|
|
@@ -4479,7 +4493,7 @@ function NavigationMenuItem({
|
|
|
4479
4493
|
);
|
|
4480
4494
|
}
|
|
4481
4495
|
var navigationMenuTriggerStyle = classVarianceAuthority.cva(
|
|
4482
|
-
"group/navigation-menu-trigger inline-flex h-9 w-max items-center justify-center rounded-3xl px-4.5 py-2.5 text-sm font-medium transition-all outline-none hover:bg-muted focus:bg-muted focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-popup-open:bg-muted/50 data-popup-open:hover:bg-muted data-open:bg-muted/50 data-open:hover:bg-muted data-open:focus:bg-muted"
|
|
4496
|
+
"group/navigation-menu-trigger inline-flex h-9 w-max items-center justify-center rounded-3xl px-4.5 py-2.5 text-sm font-medium transition-all outline-none hover:bg-muted focus:bg-muted focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-popup-open:bg-muted/50 data-popup-open:hover:bg-muted data-[state=open]:bg-muted/50 data-[state=open]:hover:bg-muted data-[state=open]:focus:bg-muted"
|
|
4483
4497
|
);
|
|
4484
4498
|
function NavigationMenuTrigger({
|
|
4485
4499
|
className,
|
|
@@ -4515,7 +4529,7 @@ function NavigationMenuContent({
|
|
|
4515
4529
|
{
|
|
4516
4530
|
"data-slot": "navigation-menu-content",
|
|
4517
4531
|
className: cn(
|
|
4518
|
-
"group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:ring-foreground/5 data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out group-data-[viewport=false]/navigation-menu:dark:ring-foreground/10 group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95 top-0 left-0 w-full p-2.5 pr-3 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-3xl group-data-[viewport=false]/navigation-menu:shadow-lg group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none md:absolute md:w-auto",
|
|
4532
|
+
"group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:ring-foreground/5 data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out group-data-[viewport=false]/navigation-menu:dark:ring-foreground/10 group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 top-0 left-0 w-full p-2.5 pr-3 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-3xl group-data-[viewport=false]/navigation-menu:shadow-lg group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none md:absolute md:w-auto",
|
|
4519
4533
|
className
|
|
4520
4534
|
),
|
|
4521
4535
|
...props
|
|
@@ -4531,7 +4545,7 @@ function NavigationMenuViewport({
|
|
|
4531
4545
|
{
|
|
4532
4546
|
"data-slot": "navigation-menu-viewport",
|
|
4533
4547
|
className: cn(
|
|
4534
|
-
"origin-top-center bg-popover text-popover-foreground ring-foreground/5 dark:ring-foreground/10 data-open:animate-in data-open:zoom-in-90 data-closed:animate-out data-closed:zoom-out-90 relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full overflow-hidden rounded-3xl shadow-lg ring-1 duration-100 md:w-(--radix-navigation-menu-viewport-width)",
|
|
4548
|
+
"origin-top-center bg-popover text-popover-foreground ring-foreground/5 dark:ring-foreground/10 data-[state=open]:animate-in data-[state=open]:zoom-in-90 data-[state=closed]:animate-out data-[state=closed]:zoom-out-90 relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full overflow-hidden rounded-3xl shadow-lg ring-1 duration-100 md:w-(--radix-navigation-menu-viewport-width)",
|
|
4535
4549
|
className
|
|
4536
4550
|
),
|
|
4537
4551
|
...props
|
|
@@ -4804,6 +4818,7 @@ function SideBar({
|
|
|
4804
4818
|
activeItem,
|
|
4805
4819
|
onItemClick,
|
|
4806
4820
|
brandName = "Total Portal",
|
|
4821
|
+
showHeader = true,
|
|
4807
4822
|
className,
|
|
4808
4823
|
children
|
|
4809
4824
|
}) {
|
|
@@ -4829,8 +4844,8 @@ function SideBar({
|
|
|
4829
4844
|
) }, item.label)) }) }) }) })
|
|
4830
4845
|
] }),
|
|
4831
4846
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-1 flex-col", children: [
|
|
4832
|
-
/* @__PURE__ */ jsxRuntime.jsx("header", { className: "flex h-14 items-center justify-between border-b px-4", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium", children: brandName }) }),
|
|
4833
|
-
/* @__PURE__ */ jsxRuntime.jsx("main", { className: "flex-1 p-6", children })
|
|
4847
|
+
showHeader && /* @__PURE__ */ jsxRuntime.jsx("header", { className: "flex h-14 items-center justify-between border-b px-4", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium", children: brandName }) }),
|
|
4848
|
+
/* @__PURE__ */ jsxRuntime.jsx("main", { className: "overflow-y-auto flex-1 p-6", children })
|
|
4834
4849
|
] })
|
|
4835
4850
|
] });
|
|
4836
4851
|
}
|
|
@@ -5543,7 +5558,7 @@ function Checkbox({
|
|
|
5543
5558
|
"data-slot": "checkbox",
|
|
5544
5559
|
checked,
|
|
5545
5560
|
className: cn(
|
|
5546
|
-
"peer border-input bg-background focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary relative flex size-4 shrink-0 items-center justify-center rounded-[5px] border transition-shadow outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3",
|
|
5561
|
+
"peer border-input bg-background focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground dark:data-[state=checked]:bg-primary relative flex size-4 shrink-0 items-center justify-center rounded-[5px] border transition-shadow outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3",
|
|
5547
5562
|
className
|
|
5548
5563
|
),
|
|
5549
5564
|
...props,
|
|
@@ -7214,7 +7229,7 @@ function DataTableToolbar({
|
|
|
7214
7229
|
children: [
|
|
7215
7230
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-1 items-center gap-2", children: [
|
|
7216
7231
|
leading,
|
|
7217
|
-
activeFilterCount > 0 && /* @__PURE__ */ jsxRuntime.jsxs(Badge2, { variant: "
|
|
7232
|
+
activeFilterCount > 0 && /* @__PURE__ */ jsxRuntime.jsxs(Badge2, { variant: "default", className: "h-6 text-xs", children: [
|
|
7218
7233
|
activeFilterCount,
|
|
7219
7234
|
" filter",
|
|
7220
7235
|
activeFilterCount > 1 ? "s" : "",
|