create-disposabl-app 0.9.1 → 0.10.1
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/disposabl.js +1 -1
- package/dist/index.js +2 -2
- package/dist/templates/default/.github/workflows/pipeline.yml +1 -1
- package/dist/templates/default/apps/web/src/router/_authenticated/dashboard.api-keys.tsx +1 -1
- package/dist/templates/default/bun.lock +77 -1397
- package/dist/templates/default/package.json +1 -2
- package/dist/templates/default/packages/backend/README.md +3 -1
- package/dist/templates/default/packages/backend/convex/_generated/api.d.ts +6 -0
- package/dist/templates/default/packages/backend/convex/_generated/server.d.ts +0 -2
- package/dist/templates/default/packages/backend/convex/auth.config.ts +2 -10
- package/dist/templates/default/packages/backend/convex/convex.config.ts +3 -14
- package/dist/templates/default/packages/backend/convex/mcpEnterprise/README.md +42 -0
- package/dist/templates/default/packages/backend/convex/mcpEnterprise/internal.ts +153 -0
- package/dist/templates/default/packages/backend/convex/mcpEnterprise/provision.ts +102 -0
- package/dist/templates/default/packages/backend/convex/mcpEnterprise/validator.ts +35 -0
- package/dist/templates/default/packages/backend/convex/schema.ts +18 -0
- package/dist/templates/default/packages/backend/package.json +0 -1
- package/dist/templates/default/packages/cli/README.md +9 -24
- package/dist/templates/default/packages/disposabl-kit/client/routes/_auth-pages/login.tsx +1 -1
- package/dist/templates/default/packages/disposabl-kit/client/routes/_auth-pages/signUp.tsx +1 -1
- package/dist/templates/default/packages/disposabl-kit/client/routes/consent.tsx +71 -13
- package/dist/templates/default/packages/disposabl-kit/package.json +4 -14
- package/dist/templates/default/packages/disposabl-kit/server/http.ts +19 -12
- package/dist/templates/default/packages/disposabl-kit/server/lib/functions.ts +12 -0
- package/dist/templates/default/packages/disposabl-kit/server/mcp/enterprise.ts +267 -0
- package/dist/templates/default/packages/disposabl-kit/server/mcp/identity.ts +33 -0
- package/dist/templates/default/vendor/README.md +30 -0
- package/dist/templates/default/vendor/convex-auth-6c0ebf3f.tgz +0 -0
- package/package.json +1 -1
- package/dist/templates/default/apps/web/src/components/connections/expo-connection.tsx +0 -97
- package/dist/templates/default/apps/web/src/components/connections/provider-logo.tsx +0 -44
- package/dist/templates/default/apps/web/src/components/connections/use-connection-setup.ts +0 -169
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/accordion.tsx +0 -77
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/alert-dialog.tsx +0 -185
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/alert.tsx +0 -75
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/aspect-ratio.tsx +0 -22
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/attachment.tsx +0 -207
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/avatar.tsx +0 -106
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/badge.tsx +0 -51
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/breadcrumb.tsx +0 -121
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/bubble.tsx +0 -127
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/button-group.tsx +0 -87
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/calendar.tsx +0 -241
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/carousel.tsx +0 -239
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/chart.tsx +0 -368
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/checkbox.tsx +0 -27
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/code-block.tsx +0 -243
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/collapsible.tsx +0 -19
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/combobox.tsx +0 -300
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/command.tsx +0 -194
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/context-menu.tsx +0 -271
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/dialog.tsx +0 -156
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/direction.tsx +0 -4
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/drawer.tsx +0 -224
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/dropdown-menu.tsx +0 -269
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/empty.tsx +0 -103
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/hover-card.tsx +0 -50
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/input-group.tsx +0 -158
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/input-otp.tsx +0 -83
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/item.tsx +0 -201
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/kbd.tsx +0 -26
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/marker.tsx +0 -70
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/menubar.tsx +0 -284
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/message-scroller.tsx +0 -128
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/message.tsx +0 -91
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/native-select.tsx +0 -64
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/navigation-menu.tsx +0 -170
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/pagination.tsx +0 -133
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/popover.tsx +0 -87
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/progress.tsx +0 -82
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/questionnaire.tsx +0 -330
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/radio-group.tsx +0 -35
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/resizable.tsx +0 -49
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/scroll-area.tsx +0 -51
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/select.tsx +0 -201
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/sheet.tsx +0 -132
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/sidebar.tsx +0 -723
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/skeleton.tsx +0 -13
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/slider.tsx +0 -51
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/switch.tsx +0 -31
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/table.tsx +0 -113
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/tabs.tsx +0 -81
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/textarea.tsx +0 -17
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/toast.tsx +0 -229
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/toggle-group.tsx +0 -87
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/toggle.tsx +0 -42
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/tooltip.tsx +0 -65
- package/dist/templates/default/packages/disposabl-kit/client/components/ui/trace.tsx +0 -161
- package/dist/templates/default/packages/disposabl-kit/client/hooks/use-mobile.ts +0 -21
- package/dist/templates/default/patches/@convex-dev%2Fauth@2.0.0-beta.0.patch +0 -310
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { cn } from "@disposabl/disposabl-kit/client/lib/utils";
|
|
3
|
-
|
|
4
|
-
function MessageGroup({ className, ...props }: React.ComponentProps<"div">) {
|
|
5
|
-
return (
|
|
6
|
-
<div
|
|
7
|
-
data-slot="message-group"
|
|
8
|
-
className={cn("flex min-w-0 flex-col gap-2", className)}
|
|
9
|
-
{...props}
|
|
10
|
-
/>
|
|
11
|
-
);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
function Message({
|
|
15
|
-
className,
|
|
16
|
-
align = "start",
|
|
17
|
-
...props
|
|
18
|
-
}: React.ComponentProps<"div"> & { align?: "start" | "end" }) {
|
|
19
|
-
return (
|
|
20
|
-
<div
|
|
21
|
-
data-slot="message"
|
|
22
|
-
data-align={align}
|
|
23
|
-
className={cn(
|
|
24
|
-
"group/message relative flex w-full min-w-0 gap-2 text-sm data-[align=end]:flex-row-reverse",
|
|
25
|
-
className,
|
|
26
|
-
)}
|
|
27
|
-
{...props}
|
|
28
|
-
/>
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
function MessageAvatar({ className, ...props }: React.ComponentProps<"div">) {
|
|
33
|
-
return (
|
|
34
|
-
<div
|
|
35
|
-
data-slot="message-avatar"
|
|
36
|
-
className={cn(
|
|
37
|
-
"flex w-fit min-w-8 shrink-0 items-center justify-center self-end overflow-hidden rounded-full bg-muted group-has-data-[slot=message-footer]/message:-translate-y-8",
|
|
38
|
-
className,
|
|
39
|
-
)}
|
|
40
|
-
{...props}
|
|
41
|
-
/>
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
function MessageContent({ className, ...props }: React.ComponentProps<"div">) {
|
|
46
|
-
return (
|
|
47
|
-
<div
|
|
48
|
-
data-slot="message-content"
|
|
49
|
-
className={cn(
|
|
50
|
-
"flex w-full min-w-0 flex-col gap-2.5 wrap-break-word group-data-[align=end]/message:*:data-slot:self-end",
|
|
51
|
-
className,
|
|
52
|
-
)}
|
|
53
|
-
{...props}
|
|
54
|
-
/>
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
function MessageHeader({ className, ...props }: React.ComponentProps<"div">) {
|
|
59
|
-
return (
|
|
60
|
-
<div
|
|
61
|
-
data-slot="message-header"
|
|
62
|
-
className={cn(
|
|
63
|
-
"flex max-w-full min-w-0 items-center px-3 text-xs font-medium text-muted-foreground group-has-data-[variant=ghost]/message:px-0",
|
|
64
|
-
className,
|
|
65
|
-
)}
|
|
66
|
-
{...props}
|
|
67
|
-
/>
|
|
68
|
-
);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
function MessageFooter({ className, ...props }: React.ComponentProps<"div">) {
|
|
72
|
-
return (
|
|
73
|
-
<div
|
|
74
|
-
data-slot="message-footer"
|
|
75
|
-
className={cn(
|
|
76
|
-
"flex max-w-full min-w-0 items-center px-3 text-xs font-medium text-muted-foreground group-has-data-[variant=ghost]/message:px-0 group-data-[align=end]/message:justify-end",
|
|
77
|
-
className,
|
|
78
|
-
)}
|
|
79
|
-
{...props}
|
|
80
|
-
/>
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export {
|
|
85
|
-
MessageGroup,
|
|
86
|
-
Message,
|
|
87
|
-
MessageAvatar,
|
|
88
|
-
MessageContent,
|
|
89
|
-
MessageFooter,
|
|
90
|
-
MessageHeader,
|
|
91
|
-
};
|
package/dist/templates/default/packages/disposabl-kit/client/components/ui/native-select.tsx
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { cn } from "@disposabl/disposabl-kit/client/lib/utils";
|
|
3
|
-
import { ChevronDownIcon } from "lucide-react";
|
|
4
|
-
|
|
5
|
-
type NativeSelectProps = Omit<React.ComponentProps<"select">, "size"> & {
|
|
6
|
-
size?: "sm" | "default";
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
function NativeSelect({
|
|
10
|
-
className,
|
|
11
|
-
size = "default",
|
|
12
|
-
...props
|
|
13
|
-
}: NativeSelectProps) {
|
|
14
|
-
return (
|
|
15
|
-
<div
|
|
16
|
-
className={cn(
|
|
17
|
-
"group/native-select relative w-fit has-[select:disabled]:opacity-50",
|
|
18
|
-
className,
|
|
19
|
-
)}
|
|
20
|
-
data-slot="native-select-wrapper"
|
|
21
|
-
data-size={size}
|
|
22
|
-
>
|
|
23
|
-
<select
|
|
24
|
-
data-slot="native-select"
|
|
25
|
-
data-size={size}
|
|
26
|
-
className="h-9 w-full min-w-0 appearance-none rounded-md border border-input bg-transparent py-1 pr-8 pl-2.5 text-sm shadow-xs transition-[color,box-shadow] outline-none select-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=sm]:h-8 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40"
|
|
27
|
-
{...props}
|
|
28
|
-
/>
|
|
29
|
-
<ChevronDownIcon
|
|
30
|
-
className="pointer-events-none absolute top-1/2 right-2.5 size-4 -translate-y-1/2 text-muted-foreground select-none"
|
|
31
|
-
aria-hidden="true"
|
|
32
|
-
data-slot="native-select-icon"
|
|
33
|
-
/>
|
|
34
|
-
</div>
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
function NativeSelectOption({
|
|
39
|
-
className,
|
|
40
|
-
...props
|
|
41
|
-
}: React.ComponentProps<"option">) {
|
|
42
|
-
return (
|
|
43
|
-
<option
|
|
44
|
-
data-slot="native-select-option"
|
|
45
|
-
className={cn("bg-[Canvas] text-[CanvasText]", className)}
|
|
46
|
-
{...props}
|
|
47
|
-
/>
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function NativeSelectOptGroup({
|
|
52
|
-
className,
|
|
53
|
-
...props
|
|
54
|
-
}: React.ComponentProps<"optgroup">) {
|
|
55
|
-
return (
|
|
56
|
-
<optgroup
|
|
57
|
-
data-slot="native-select-optgroup"
|
|
58
|
-
className={cn("bg-[Canvas] text-[CanvasText]", className)}
|
|
59
|
-
{...props}
|
|
60
|
-
/>
|
|
61
|
-
);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export { NativeSelect, NativeSelectOptGroup, NativeSelectOption };
|
package/dist/templates/default/packages/disposabl-kit/client/components/ui/navigation-menu.tsx
DELETED
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
import { NavigationMenu as NavigationMenuPrimitive } from "@base-ui/react/navigation-menu";
|
|
2
|
-
import { cva } from "class-variance-authority";
|
|
3
|
-
import { cn } from "@disposabl/disposabl-kit/client/lib/utils";
|
|
4
|
-
import { ChevronDownIcon } from "lucide-react";
|
|
5
|
-
|
|
6
|
-
function NavigationMenu({
|
|
7
|
-
align = "start",
|
|
8
|
-
className,
|
|
9
|
-
children,
|
|
10
|
-
...props
|
|
11
|
-
}: NavigationMenuPrimitive.Root.Props &
|
|
12
|
-
Pick<NavigationMenuPrimitive.Positioner.Props, "align">) {
|
|
13
|
-
return (
|
|
14
|
-
<NavigationMenuPrimitive.Root
|
|
15
|
-
data-slot="navigation-menu"
|
|
16
|
-
className={cn(
|
|
17
|
-
"group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
|
|
18
|
-
className,
|
|
19
|
-
)}
|
|
20
|
-
{...props}
|
|
21
|
-
>
|
|
22
|
-
{children}
|
|
23
|
-
<NavigationMenuPositioner align={align} />
|
|
24
|
-
</NavigationMenuPrimitive.Root>
|
|
25
|
-
);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
function NavigationMenuList({
|
|
29
|
-
className,
|
|
30
|
-
...props
|
|
31
|
-
}: React.ComponentPropsWithRef<typeof NavigationMenuPrimitive.List>) {
|
|
32
|
-
return (
|
|
33
|
-
<NavigationMenuPrimitive.List
|
|
34
|
-
data-slot="navigation-menu-list"
|
|
35
|
-
className={cn(
|
|
36
|
-
"group flex flex-1 list-none items-center justify-center gap-0",
|
|
37
|
-
className,
|
|
38
|
-
)}
|
|
39
|
-
{...props}
|
|
40
|
-
/>
|
|
41
|
-
);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
function NavigationMenuItem({
|
|
45
|
-
className,
|
|
46
|
-
...props
|
|
47
|
-
}: React.ComponentPropsWithRef<typeof NavigationMenuPrimitive.Item>) {
|
|
48
|
-
return (
|
|
49
|
-
<NavigationMenuPrimitive.Item
|
|
50
|
-
data-slot="navigation-menu-item"
|
|
51
|
-
className={cn("relative", className)}
|
|
52
|
-
{...props}
|
|
53
|
-
/>
|
|
54
|
-
);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
const navigationMenuTriggerStyle = cva(
|
|
58
|
-
"group/navigation-menu-trigger inline-flex h-9 w-max items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-all outline-none hover:bg-muted focus:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 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",
|
|
59
|
-
);
|
|
60
|
-
|
|
61
|
-
function NavigationMenuTrigger({
|
|
62
|
-
className,
|
|
63
|
-
children,
|
|
64
|
-
...props
|
|
65
|
-
}: NavigationMenuPrimitive.Trigger.Props) {
|
|
66
|
-
return (
|
|
67
|
-
<NavigationMenuPrimitive.Trigger
|
|
68
|
-
data-slot="navigation-menu-trigger"
|
|
69
|
-
className={cn(navigationMenuTriggerStyle(), "group", className)}
|
|
70
|
-
{...props}
|
|
71
|
-
>
|
|
72
|
-
{children}{" "}
|
|
73
|
-
<ChevronDownIcon
|
|
74
|
-
className="relative top-px ml-1 size-3 transition duration-300 group-data-popup-open/navigation-menu-trigger:rotate-180 group-data-open/navigation-menu-trigger:rotate-180"
|
|
75
|
-
aria-hidden="true"
|
|
76
|
-
/>
|
|
77
|
-
</NavigationMenuPrimitive.Trigger>
|
|
78
|
-
);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
function NavigationMenuContent({
|
|
82
|
-
className,
|
|
83
|
-
...props
|
|
84
|
-
}: NavigationMenuPrimitive.Content.Props) {
|
|
85
|
-
return (
|
|
86
|
-
<NavigationMenuPrimitive.Content
|
|
87
|
-
data-slot="navigation-menu-content"
|
|
88
|
-
className={cn(
|
|
89
|
-
"data-ending-style:data-activation-direction=left:translate-x-[50%] data-ending-style:data-activation-direction=right:translate-x-[-50%] data-starting-style:data-activation-direction=left:translate-x-[-50%] data-starting-style:data-activation-direction=right:translate-x-[50%] h-full w-auto p-2 pr-2.5 transition-[opacity,transform,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:ring-foreground/10 group-data-[viewport=false]/navigation-menu:duration-300 data-ending-style:opacity-0 data-starting-style:opacity-0 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 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none 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",
|
|
90
|
-
className,
|
|
91
|
-
)}
|
|
92
|
-
{...props}
|
|
93
|
-
/>
|
|
94
|
-
);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
function NavigationMenuPositioner({
|
|
98
|
-
className,
|
|
99
|
-
side = "bottom",
|
|
100
|
-
sideOffset = 8,
|
|
101
|
-
align = "start",
|
|
102
|
-
alignOffset = 0,
|
|
103
|
-
...props
|
|
104
|
-
}: NavigationMenuPrimitive.Positioner.Props) {
|
|
105
|
-
return (
|
|
106
|
-
<NavigationMenuPrimitive.Portal>
|
|
107
|
-
<NavigationMenuPrimitive.Positioner
|
|
108
|
-
side={side}
|
|
109
|
-
sideOffset={sideOffset}
|
|
110
|
-
align={align}
|
|
111
|
-
alignOffset={alignOffset}
|
|
112
|
-
className={cn(
|
|
113
|
-
"isolate z-50 h-(--positioner-height) w-(--positioner-width) max-w-(--available-width) transition-[top,left,right,bottom] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-instant:transition-none data-[side=bottom]:before:top-[-10px] data-[side=bottom]:before:right-0 data-[side=bottom]:before:left-0",
|
|
114
|
-
className,
|
|
115
|
-
)}
|
|
116
|
-
{...props}
|
|
117
|
-
>
|
|
118
|
-
<NavigationMenuPrimitive.Popup className="data-[ending-style]:easing-[ease] xs:w-(--popup-width) relative h-(--popup-height) w-(--popup-width) origin-(--transform-origin) rounded-lg bg-popover text-popover-foreground shadow ring-1 ring-foreground/10 transition-[opacity,transform,width,height,scale,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] outline-none data-ending-style:scale-90 data-ending-style:opacity-0 data-ending-style:duration-150 data-starting-style:scale-90 data-starting-style:opacity-0">
|
|
119
|
-
<NavigationMenuPrimitive.Viewport className="relative size-full overflow-hidden" />
|
|
120
|
-
</NavigationMenuPrimitive.Popup>
|
|
121
|
-
</NavigationMenuPrimitive.Positioner>
|
|
122
|
-
</NavigationMenuPrimitive.Portal>
|
|
123
|
-
);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
function NavigationMenuLink({
|
|
127
|
-
className,
|
|
128
|
-
...props
|
|
129
|
-
}: NavigationMenuPrimitive.Link.Props) {
|
|
130
|
-
return (
|
|
131
|
-
<NavigationMenuPrimitive.Link
|
|
132
|
-
data-slot="navigation-menu-link"
|
|
133
|
-
className={cn(
|
|
134
|
-
"flex items-center gap-1.5 rounded-md p-2 text-sm transition-all outline-none hover:bg-muted focus:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1 in-data-[slot=navigation-menu-content]:rounded-sm data-[active=true]:bg-muted/50 data-[active=true]:hover:bg-muted data-[active=true]:focus:bg-muted [&_svg:not([class*='size-'])]:size-4",
|
|
135
|
-
className,
|
|
136
|
-
)}
|
|
137
|
-
{...props}
|
|
138
|
-
/>
|
|
139
|
-
);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
function NavigationMenuIndicator({
|
|
143
|
-
className,
|
|
144
|
-
...props
|
|
145
|
-
}: React.ComponentPropsWithRef<typeof NavigationMenuPrimitive.Icon>) {
|
|
146
|
-
return (
|
|
147
|
-
<NavigationMenuPrimitive.Icon
|
|
148
|
-
data-slot="navigation-menu-indicator"
|
|
149
|
-
className={cn(
|
|
150
|
-
"top-full z-1 flex h-1.5 items-end justify-center overflow-hidden data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:animate-in data-[state=visible]:fade-in",
|
|
151
|
-
className,
|
|
152
|
-
)}
|
|
153
|
-
{...props}
|
|
154
|
-
>
|
|
155
|
-
<div className="relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" />
|
|
156
|
-
</NavigationMenuPrimitive.Icon>
|
|
157
|
-
);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
export {
|
|
161
|
-
NavigationMenu,
|
|
162
|
-
NavigationMenuContent,
|
|
163
|
-
NavigationMenuIndicator,
|
|
164
|
-
NavigationMenuItem,
|
|
165
|
-
NavigationMenuLink,
|
|
166
|
-
NavigationMenuList,
|
|
167
|
-
NavigationMenuTrigger,
|
|
168
|
-
navigationMenuTriggerStyle,
|
|
169
|
-
NavigationMenuPositioner,
|
|
170
|
-
};
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { cn } from "@disposabl/disposabl-kit/client/lib/utils";
|
|
3
|
-
|
|
4
|
-
import { Button } from "@disposabl/disposabl-kit/client/components/ui/button";
|
|
5
|
-
import {
|
|
6
|
-
ChevronLeftIcon,
|
|
7
|
-
ChevronRightIcon,
|
|
8
|
-
MoreHorizontalIcon,
|
|
9
|
-
} from "lucide-react";
|
|
10
|
-
|
|
11
|
-
function Pagination({ className, ...props }: React.ComponentProps<"nav">) {
|
|
12
|
-
return (
|
|
13
|
-
<nav
|
|
14
|
-
role="navigation"
|
|
15
|
-
aria-label="pagination"
|
|
16
|
-
data-slot="pagination"
|
|
17
|
-
className={cn("mx-auto flex w-full justify-center", className)}
|
|
18
|
-
{...props}
|
|
19
|
-
/>
|
|
20
|
-
);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
function PaginationContent({
|
|
24
|
-
className,
|
|
25
|
-
...props
|
|
26
|
-
}: React.ComponentProps<"ul">) {
|
|
27
|
-
return (
|
|
28
|
-
<ul
|
|
29
|
-
data-slot="pagination-content"
|
|
30
|
-
className={cn("flex items-center gap-1", className)}
|
|
31
|
-
{...props}
|
|
32
|
-
/>
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
function PaginationItem({ ...props }: React.ComponentProps<"li">) {
|
|
37
|
-
return <li data-slot="pagination-item" {...props} />;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
type PaginationLinkProps = {
|
|
41
|
-
isActive?: boolean;
|
|
42
|
-
} & Pick<React.ComponentProps<typeof Button>, "size"> &
|
|
43
|
-
React.ComponentProps<"a">;
|
|
44
|
-
|
|
45
|
-
function PaginationLink({
|
|
46
|
-
className,
|
|
47
|
-
isActive,
|
|
48
|
-
size = "icon",
|
|
49
|
-
...props
|
|
50
|
-
}: PaginationLinkProps) {
|
|
51
|
-
return (
|
|
52
|
-
<Button
|
|
53
|
-
variant={isActive ? "outline" : "ghost"}
|
|
54
|
-
size={size}
|
|
55
|
-
className={cn(className)}
|
|
56
|
-
nativeButton={false}
|
|
57
|
-
render={
|
|
58
|
-
<a
|
|
59
|
-
aria-current={isActive ? "page" : undefined}
|
|
60
|
-
data-slot="pagination-link"
|
|
61
|
-
data-active={isActive}
|
|
62
|
-
{...props}
|
|
63
|
-
/>
|
|
64
|
-
}
|
|
65
|
-
/>
|
|
66
|
-
);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
function PaginationPrevious({
|
|
70
|
-
className,
|
|
71
|
-
text = "Previous",
|
|
72
|
-
...props
|
|
73
|
-
}: React.ComponentProps<typeof PaginationLink> & { text?: string }) {
|
|
74
|
-
return (
|
|
75
|
-
<PaginationLink
|
|
76
|
-
aria-label="Go to previous page"
|
|
77
|
-
size="default"
|
|
78
|
-
className={cn("pl-2!", className)}
|
|
79
|
-
{...props}
|
|
80
|
-
>
|
|
81
|
-
<ChevronLeftIcon data-icon="inline-start" />
|
|
82
|
-
<span className="hidden sm:block">{text}</span>
|
|
83
|
-
</PaginationLink>
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
function PaginationNext({
|
|
88
|
-
className,
|
|
89
|
-
text = "Next",
|
|
90
|
-
...props
|
|
91
|
-
}: React.ComponentProps<typeof PaginationLink> & { text?: string }) {
|
|
92
|
-
return (
|
|
93
|
-
<PaginationLink
|
|
94
|
-
aria-label="Go to next page"
|
|
95
|
-
size="default"
|
|
96
|
-
className={cn("pr-2!", className)}
|
|
97
|
-
{...props}
|
|
98
|
-
>
|
|
99
|
-
<span className="hidden sm:block">{text}</span>
|
|
100
|
-
<ChevronRightIcon data-icon="inline-end" />
|
|
101
|
-
</PaginationLink>
|
|
102
|
-
);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
function PaginationEllipsis({
|
|
106
|
-
className,
|
|
107
|
-
...props
|
|
108
|
-
}: React.ComponentProps<"span">) {
|
|
109
|
-
return (
|
|
110
|
-
<span
|
|
111
|
-
aria-hidden
|
|
112
|
-
data-slot="pagination-ellipsis"
|
|
113
|
-
className={cn(
|
|
114
|
-
"flex size-9 items-center justify-center [&_svg:not([class*='size-'])]:size-4",
|
|
115
|
-
className,
|
|
116
|
-
)}
|
|
117
|
-
{...props}
|
|
118
|
-
>
|
|
119
|
-
<MoreHorizontalIcon />
|
|
120
|
-
<span className="sr-only">More pages</span>
|
|
121
|
-
</span>
|
|
122
|
-
);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export {
|
|
126
|
-
Pagination,
|
|
127
|
-
PaginationContent,
|
|
128
|
-
PaginationEllipsis,
|
|
129
|
-
PaginationItem,
|
|
130
|
-
PaginationLink,
|
|
131
|
-
PaginationNext,
|
|
132
|
-
PaginationPrevious,
|
|
133
|
-
};
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { Popover as PopoverPrimitive } from "@base-ui/react/popover";
|
|
3
|
-
import { cn } from "@disposabl/disposabl-kit/client/lib/utils";
|
|
4
|
-
|
|
5
|
-
function Popover({ ...props }: PopoverPrimitive.Root.Props) {
|
|
6
|
-
return <PopoverPrimitive.Root data-slot="popover" {...props} />;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
function PopoverTrigger({ ...props }: PopoverPrimitive.Trigger.Props) {
|
|
10
|
-
return <PopoverPrimitive.Trigger data-slot="popover-trigger" {...props} />;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
function PopoverContent({
|
|
14
|
-
className,
|
|
15
|
-
align = "center",
|
|
16
|
-
alignOffset = 0,
|
|
17
|
-
side = "bottom",
|
|
18
|
-
sideOffset = 4,
|
|
19
|
-
...props
|
|
20
|
-
}: PopoverPrimitive.Popup.Props &
|
|
21
|
-
Pick<
|
|
22
|
-
PopoverPrimitive.Positioner.Props,
|
|
23
|
-
"align" | "alignOffset" | "side" | "sideOffset"
|
|
24
|
-
>) {
|
|
25
|
-
return (
|
|
26
|
-
<PopoverPrimitive.Portal>
|
|
27
|
-
<PopoverPrimitive.Positioner
|
|
28
|
-
align={align}
|
|
29
|
-
alignOffset={alignOffset}
|
|
30
|
-
side={side}
|
|
31
|
-
sideOffset={sideOffset}
|
|
32
|
-
className="isolate z-50"
|
|
33
|
-
>
|
|
34
|
-
<PopoverPrimitive.Popup
|
|
35
|
-
data-slot="popover-content"
|
|
36
|
-
className={cn(
|
|
37
|
-
"z-50 flex w-72 origin-(--transform-origin) flex-col gap-4 rounded-md bg-popover p-4 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-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",
|
|
38
|
-
className,
|
|
39
|
-
)}
|
|
40
|
-
{...props}
|
|
41
|
-
/>
|
|
42
|
-
</PopoverPrimitive.Positioner>
|
|
43
|
-
</PopoverPrimitive.Portal>
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
function PopoverHeader({ className, ...props }: React.ComponentProps<"div">) {
|
|
48
|
-
return (
|
|
49
|
-
<div
|
|
50
|
-
data-slot="popover-header"
|
|
51
|
-
className={cn("flex flex-col gap-1 text-sm", className)}
|
|
52
|
-
{...props}
|
|
53
|
-
/>
|
|
54
|
-
);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
function PopoverTitle({ className, ...props }: PopoverPrimitive.Title.Props) {
|
|
58
|
-
return (
|
|
59
|
-
<PopoverPrimitive.Title
|
|
60
|
-
data-slot="popover-title"
|
|
61
|
-
className={cn("font-medium", className)}
|
|
62
|
-
{...props}
|
|
63
|
-
/>
|
|
64
|
-
);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
function PopoverDescription({
|
|
68
|
-
className,
|
|
69
|
-
...props
|
|
70
|
-
}: PopoverPrimitive.Description.Props) {
|
|
71
|
-
return (
|
|
72
|
-
<PopoverPrimitive.Description
|
|
73
|
-
data-slot="popover-description"
|
|
74
|
-
className={cn("text-muted-foreground", className)}
|
|
75
|
-
{...props}
|
|
76
|
-
/>
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export {
|
|
81
|
-
Popover,
|
|
82
|
-
PopoverContent,
|
|
83
|
-
PopoverDescription,
|
|
84
|
-
PopoverHeader,
|
|
85
|
-
PopoverTitle,
|
|
86
|
-
PopoverTrigger,
|
|
87
|
-
};
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { Progress as ProgressPrimitive } from "@base-ui/react/progress";
|
|
4
|
-
import { cn } from "@disposabl/disposabl-kit/client/lib/utils";
|
|
5
|
-
|
|
6
|
-
function Progress({
|
|
7
|
-
className,
|
|
8
|
-
children,
|
|
9
|
-
value,
|
|
10
|
-
...props
|
|
11
|
-
}: ProgressPrimitive.Root.Props) {
|
|
12
|
-
return (
|
|
13
|
-
<ProgressPrimitive.Root
|
|
14
|
-
value={value}
|
|
15
|
-
data-slot="progress"
|
|
16
|
-
className={cn("flex flex-wrap gap-3", className)}
|
|
17
|
-
{...props}
|
|
18
|
-
>
|
|
19
|
-
{children}
|
|
20
|
-
<ProgressTrack>
|
|
21
|
-
<ProgressIndicator />
|
|
22
|
-
</ProgressTrack>
|
|
23
|
-
</ProgressPrimitive.Root>
|
|
24
|
-
);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
function ProgressTrack({ className, ...props }: ProgressPrimitive.Track.Props) {
|
|
28
|
-
return (
|
|
29
|
-
<ProgressPrimitive.Track
|
|
30
|
-
className={cn(
|
|
31
|
-
"relative flex h-1.5 w-full items-center overflow-x-hidden rounded-full bg-muted",
|
|
32
|
-
className,
|
|
33
|
-
)}
|
|
34
|
-
data-slot="progress-track"
|
|
35
|
-
{...props}
|
|
36
|
-
/>
|
|
37
|
-
);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
function ProgressIndicator({
|
|
41
|
-
className,
|
|
42
|
-
...props
|
|
43
|
-
}: ProgressPrimitive.Indicator.Props) {
|
|
44
|
-
return (
|
|
45
|
-
<ProgressPrimitive.Indicator
|
|
46
|
-
data-slot="progress-indicator"
|
|
47
|
-
className={cn("h-full bg-primary transition-all", className)}
|
|
48
|
-
{...props}
|
|
49
|
-
/>
|
|
50
|
-
);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
function ProgressLabel({ className, ...props }: ProgressPrimitive.Label.Props) {
|
|
54
|
-
return (
|
|
55
|
-
<ProgressPrimitive.Label
|
|
56
|
-
className={cn("text-sm font-medium", className)}
|
|
57
|
-
data-slot="progress-label"
|
|
58
|
-
{...props}
|
|
59
|
-
/>
|
|
60
|
-
);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
function ProgressValue({ className, ...props }: ProgressPrimitive.Value.Props) {
|
|
64
|
-
return (
|
|
65
|
-
<ProgressPrimitive.Value
|
|
66
|
-
className={cn(
|
|
67
|
-
"ml-auto text-sm text-muted-foreground tabular-nums",
|
|
68
|
-
className,
|
|
69
|
-
)}
|
|
70
|
-
data-slot="progress-value"
|
|
71
|
-
{...props}
|
|
72
|
-
/>
|
|
73
|
-
);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export {
|
|
77
|
-
Progress,
|
|
78
|
-
ProgressTrack,
|
|
79
|
-
ProgressIndicator,
|
|
80
|
-
ProgressLabel,
|
|
81
|
-
ProgressValue,
|
|
82
|
-
};
|