create-auto-app 1.33.0 → 1.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/templates/typical/.context/components-db.json +4006 -0
- package/templates/typical/.gitignore +1 -1
- package/templates/typical/auto.config.ts +85 -80
- package/templates/typical/client/.claude-auto/.claude.hooks.json +0 -28
- package/templates/typical/client/.gitignore +0 -4
- package/templates/typical/client/.storybook/main.ts +0 -66
- package/templates/typical/client/.storybook/manager-head.html +0 -154
- package/templates/typical/client/.storybook/manager.ts +0 -164
- package/templates/typical/client/.storybook/preview-head.html +0 -31
- package/templates/typical/client/.storybook/preview.tsx +0 -120
- package/templates/typical/client/codegen.ts +0 -17
- package/templates/typical/client/components.json +0 -29
- package/templates/typical/client/index.html +0 -12
- package/templates/typical/client/package.json +0 -69
- package/templates/typical/client/pnpm-lock.yaml +0 -7868
- package/templates/typical/client/public/blank.svg +0 -1
- package/templates/typical/client/public/mockServiceWorker.js +0 -336
- package/templates/typical/client/src/App.tsx +0 -29
- package/templates/typical/client/src/components/.gitkeep +0 -0
- package/templates/typical/client/src/components/ui/Accordion.stories.tsx +0 -47
- package/templates/typical/client/src/components/ui/Accordion.tsx +0 -51
- package/templates/typical/client/src/components/ui/Alert.stories.tsx +0 -27
- package/templates/typical/client/src/components/ui/Alert.tsx +0 -49
- package/templates/typical/client/src/components/ui/AlertDialog.stories.tsx +0 -65
- package/templates/typical/client/src/components/ui/AlertDialog.tsx +0 -163
- package/templates/typical/client/src/components/ui/AspectRatio.stories.tsx +0 -33
- package/templates/typical/client/src/components/ui/AspectRatio.tsx +0 -9
- package/templates/typical/client/src/components/ui/Avatar.stories.tsx +0 -42
- package/templates/typical/client/src/components/ui/Avatar.tsx +0 -87
- package/templates/typical/client/src/components/ui/Badge.stories.tsx +0 -36
- package/templates/typical/client/src/components/ui/Badge.tsx +0 -40
- package/templates/typical/client/src/components/ui/Breadcrumb.stories.tsx +0 -52
- package/templates/typical/client/src/components/ui/Breadcrumb.tsx +0 -92
- package/templates/typical/client/src/components/ui/Button.stories.tsx +0 -92
- package/templates/typical/client/src/components/ui/Button.tsx +0 -62
- package/templates/typical/client/src/components/ui/ButtonGroup.stories.tsx +0 -30
- package/templates/typical/client/src/components/ui/ButtonGroup.tsx +0 -75
- package/templates/typical/client/src/components/ui/Calendar.stories.tsx +0 -38
- package/templates/typical/client/src/components/ui/Calendar.tsx +0 -159
- package/templates/typical/client/src/components/ui/Card.stories.tsx +0 -42
- package/templates/typical/client/src/components/ui/Card.tsx +0 -56
- package/templates/typical/client/src/components/ui/Carousel.stories.tsx +0 -54
- package/templates/typical/client/src/components/ui/Carousel.tsx +0 -216
- package/templates/typical/client/src/components/ui/Chart.stories.tsx +0 -38
- package/templates/typical/client/src/components/ui/Chart.tsx +0 -296
- package/templates/typical/client/src/components/ui/Checkbox.stories.tsx +0 -31
- package/templates/typical/client/src/components/ui/Checkbox.tsx +0 -29
- package/templates/typical/client/src/components/ui/Collapsible.stories.tsx +0 -56
- package/templates/typical/client/src/components/ui/Collapsible.tsx +0 -15
- package/templates/typical/client/src/components/ui/Combobox.stories.tsx +0 -73
- package/templates/typical/client/src/components/ui/Combobox.tsx +0 -267
- package/templates/typical/client/src/components/ui/Command.stories.tsx +0 -69
- package/templates/typical/client/src/components/ui/Command.tsx +0 -137
- package/templates/typical/client/src/components/ui/ContextMenu.stories.tsx +0 -66
- package/templates/typical/client/src/components/ui/ContextMenu.tsx +0 -211
- package/templates/typical/client/src/components/ui/DesignSystem-Colors.mdx +0 -68
- package/templates/typical/client/src/components/ui/DesignSystem-Colors.stories.tsx +0 -117
- package/templates/typical/client/src/components/ui/DesignSystem-Layout.mdx +0 -64
- package/templates/typical/client/src/components/ui/DesignSystem-Layout.stories.tsx +0 -167
- package/templates/typical/client/src/components/ui/DesignSystem-Overview.stories.tsx +0 -748
- package/templates/typical/client/src/components/ui/DesignSystem-Typography.mdx +0 -31
- package/templates/typical/client/src/components/ui/DesignSystem-Typography.stories.tsx +0 -80
- package/templates/typical/client/src/components/ui/Dialog.stories.tsx +0 -72
- package/templates/typical/client/src/components/ui/Dialog.tsx +0 -136
- package/templates/typical/client/src/components/ui/Direction.stories.tsx +0 -36
- package/templates/typical/client/src/components/ui/Direction.tsx +0 -18
- package/templates/typical/client/src/components/ui/Drawer.stories.tsx +0 -68
- package/templates/typical/client/src/components/ui/Drawer.tsx +0 -106
- package/templates/typical/client/src/components/ui/DropdownMenu.stories.tsx +0 -72
- package/templates/typical/client/src/components/ui/DropdownMenu.tsx +0 -219
- package/templates/typical/client/src/components/ui/Empty.stories.tsx +0 -35
- package/templates/typical/client/src/components/ui/Empty.tsx +0 -85
- package/templates/typical/client/src/components/ui/Field.stories.tsx +0 -47
- package/templates/typical/client/src/components/ui/Field.tsx +0 -226
- package/templates/typical/client/src/components/ui/Form.stories.tsx +0 -44
- package/templates/typical/client/src/components/ui/Form.tsx +0 -136
- package/templates/typical/client/src/components/ui/HoverCard.stories.tsx +0 -47
- package/templates/typical/client/src/components/ui/HoverCard.tsx +0 -36
- package/templates/typical/client/src/components/ui/Input.stories.tsx +0 -38
- package/templates/typical/client/src/components/ui/Input.tsx +0 -21
- package/templates/typical/client/src/components/ui/InputGroup.stories.tsx +0 -50
- package/templates/typical/client/src/components/ui/InputGroup.tsx +0 -147
- package/templates/typical/client/src/components/ui/InputOTP.stories.tsx +0 -40
- package/templates/typical/client/src/components/ui/InputOTP.tsx +0 -68
- package/templates/typical/client/src/components/ui/Item.stories.tsx +0 -61
- package/templates/typical/client/src/components/ui/Item.tsx +0 -158
- package/templates/typical/client/src/components/ui/Kbd.stories.tsx +0 -54
- package/templates/typical/client/src/components/ui/Kbd.tsx +0 -18
- package/templates/typical/client/src/components/ui/Label.stories.tsx +0 -85
- package/templates/typical/client/src/components/ui/Label.tsx +0 -40
- package/templates/typical/client/src/components/ui/Menubar.stories.tsx +0 -76
- package/templates/typical/client/src/components/ui/Menubar.tsx +0 -236
- package/templates/typical/client/src/components/ui/NativeSelect.stories.tsx +0 -42
- package/templates/typical/client/src/components/ui/NativeSelect.tsx +0 -44
- package/templates/typical/client/src/components/ui/NavigationMenu.stories.tsx +0 -78
- package/templates/typical/client/src/components/ui/NavigationMenu.tsx +0 -142
- package/templates/typical/client/src/components/ui/Pagination.stories.tsx +0 -75
- package/templates/typical/client/src/components/ui/Pagination.tsx +0 -100
- package/templates/typical/client/src/components/ui/Popover.stories.tsx +0 -51
- package/templates/typical/client/src/components/ui/Popover.tsx +0 -52
- package/templates/typical/client/src/components/ui/Progress.stories.tsx +0 -28
- package/templates/typical/client/src/components/ui/Progress.tsx +0 -24
- package/templates/typical/client/src/components/ui/RadioGroup.stories.tsx +0 -48
- package/templates/typical/client/src/components/ui/RadioGroup.tsx +0 -31
- package/templates/typical/client/src/components/ui/Resizable.stories.tsx +0 -69
- package/templates/typical/client/src/components/ui/Resizable.tsx +0 -47
- package/templates/typical/client/src/components/ui/ScrollArea.stories.tsx +0 -43
- package/templates/typical/client/src/components/ui/ScrollArea.tsx +0 -46
- package/templates/typical/client/src/components/ui/Select.stories.tsx +0 -57
- package/templates/typical/client/src/components/ui/Select.tsx +0 -162
- package/templates/typical/client/src/components/ui/Separator.stories.tsx +0 -40
- package/templates/typical/client/src/components/ui/Separator.tsx +0 -26
- package/templates/typical/client/src/components/ui/Sheet.stories.tsx +0 -66
- package/templates/typical/client/src/components/ui/Sheet.tsx +0 -107
- package/templates/typical/client/src/components/ui/Sidebar.stories.tsx +0 -94
- package/templates/typical/client/src/components/ui/Sidebar.tsx +0 -675
- package/templates/typical/client/src/components/ui/Skeleton.stories.tsx +0 -38
- package/templates/typical/client/src/components/ui/Skeleton.tsx +0 -7
- package/templates/typical/client/src/components/ui/Slider.stories.tsx +0 -21
- package/templates/typical/client/src/components/ui/Slider.tsx +0 -54
- package/templates/typical/client/src/components/ui/Sonner.stories.tsx +0 -44
- package/templates/typical/client/src/components/ui/Sonner.tsx +0 -34
- package/templates/typical/client/src/components/ui/Spinner.stories.tsx +0 -23
- package/templates/typical/client/src/components/ui/Spinner.tsx +0 -9
- package/templates/typical/client/src/components/ui/Switch.stories.tsx +0 -35
- package/templates/typical/client/src/components/ui/Switch.tsx +0 -33
- package/templates/typical/client/src/components/ui/Table.stories.tsx +0 -65
- package/templates/typical/client/src/components/ui/Table.tsx +0 -75
- package/templates/typical/client/src/components/ui/Tabs.stories.tsx +0 -51
- package/templates/typical/client/src/components/ui/Tabs.tsx +0 -69
- package/templates/typical/client/src/components/ui/Textarea.stories.tsx +0 -24
- package/templates/typical/client/src/components/ui/Textarea.tsx +0 -18
- package/templates/typical/client/src/components/ui/Toast.stories.tsx +0 -112
- package/templates/typical/client/src/components/ui/Toast.tsx +0 -114
- package/templates/typical/client/src/components/ui/Toaster.tsx +0 -28
- package/templates/typical/client/src/components/ui/Toggle.stories.tsx +0 -40
- package/templates/typical/client/src/components/ui/Toggle.tsx +0 -41
- package/templates/typical/client/src/components/ui/ToggleGroup.stories.tsx +0 -58
- package/templates/typical/client/src/components/ui/ToggleGroup.tsx +0 -80
- package/templates/typical/client/src/components/ui/Tooltip.stories.tsx +0 -40
- package/templates/typical/client/src/components/ui/Tooltip.tsx +0 -42
- package/templates/typical/client/src/gql/execute.ts +0 -11
- package/templates/typical/client/src/gql/fragment-masking.ts +0 -83
- package/templates/typical/client/src/gql/gql.ts +0 -9
- package/templates/typical/client/src/gql/graphql.ts +0 -182
- package/templates/typical/client/src/gql/index.ts +0 -2
- package/templates/typical/client/src/graphql/mutations.ts +0 -0
- package/templates/typical/client/src/graphql/queries.ts +0 -0
- package/templates/typical/client/src/hooks/.gitkeep +0 -0
- package/templates/typical/client/src/hooks/use-mobile.ts +0 -19
- package/templates/typical/client/src/hooks/use-toast.ts +0 -186
- package/templates/typical/client/src/index.css +0 -121
- package/templates/typical/client/src/lib/utils.ts +0 -6
- package/templates/typical/client/src/main.tsx +0 -5
- package/templates/typical/client/tsconfig.app.json +0 -26
- package/templates/typical/client/tsconfig.json +0 -10
- package/templates/typical/client/tsconfig.staging.json +0 -8
- package/templates/typical/client/vite.config.ts +0 -50
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { XIcon } from 'lucide-react';
|
|
5
|
-
import { Dialog as SheetPrimitive } from 'radix-ui';
|
|
6
|
-
|
|
7
|
-
import { cn } from '@/lib/utils';
|
|
8
|
-
|
|
9
|
-
function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {
|
|
10
|
-
return <SheetPrimitive.Root data-slot="sheet" {...props} />;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
function SheetTrigger({ ...props }: React.ComponentProps<typeof SheetPrimitive.Trigger>) {
|
|
14
|
-
return <SheetPrimitive.Trigger data-slot="sheet-trigger" {...props} />;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
function SheetClose({ ...props }: React.ComponentProps<typeof SheetPrimitive.Close>) {
|
|
18
|
-
return <SheetPrimitive.Close data-slot="sheet-close" {...props} />;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function SheetPortal({ ...props }: React.ComponentProps<typeof SheetPrimitive.Portal>) {
|
|
22
|
-
return <SheetPrimitive.Portal data-slot="sheet-portal" {...props} />;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
function SheetOverlay({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Overlay>) {
|
|
26
|
-
return (
|
|
27
|
-
<SheetPrimitive.Overlay
|
|
28
|
-
data-slot="sheet-overlay"
|
|
29
|
-
className={cn(
|
|
30
|
-
'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50',
|
|
31
|
-
className,
|
|
32
|
-
)}
|
|
33
|
-
{...props}
|
|
34
|
-
/>
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
function SheetContent({
|
|
39
|
-
className,
|
|
40
|
-
children,
|
|
41
|
-
side = 'right',
|
|
42
|
-
showCloseButton = true,
|
|
43
|
-
...props
|
|
44
|
-
}: React.ComponentProps<typeof SheetPrimitive.Content> & {
|
|
45
|
-
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
46
|
-
showCloseButton?: boolean;
|
|
47
|
-
}) {
|
|
48
|
-
return (
|
|
49
|
-
<SheetPortal>
|
|
50
|
-
<SheetOverlay />
|
|
51
|
-
<SheetPrimitive.Content
|
|
52
|
-
data-slot="sheet-content"
|
|
53
|
-
className={cn(
|
|
54
|
-
'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500',
|
|
55
|
-
side === 'right' &&
|
|
56
|
-
'data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm',
|
|
57
|
-
side === 'left' &&
|
|
58
|
-
'data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm',
|
|
59
|
-
side === 'top' &&
|
|
60
|
-
'data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b',
|
|
61
|
-
side === 'bottom' &&
|
|
62
|
-
'data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t',
|
|
63
|
-
className,
|
|
64
|
-
)}
|
|
65
|
-
{...props}
|
|
66
|
-
>
|
|
67
|
-
{children}
|
|
68
|
-
{showCloseButton && (
|
|
69
|
-
<SheetPrimitive.Close className="ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none">
|
|
70
|
-
<XIcon className="size-4" />
|
|
71
|
-
<span className="sr-only">Close</span>
|
|
72
|
-
</SheetPrimitive.Close>
|
|
73
|
-
)}
|
|
74
|
-
</SheetPrimitive.Content>
|
|
75
|
-
</SheetPortal>
|
|
76
|
-
);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
function SheetHeader({ className, ...props }: React.ComponentProps<'div'>) {
|
|
80
|
-
return <div data-slot="sheet-header" className={cn('flex flex-col gap-1.5 p-4', className)} {...props} />;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
function SheetFooter({ className, ...props }: React.ComponentProps<'div'>) {
|
|
84
|
-
return <div data-slot="sheet-footer" className={cn('mt-auto flex flex-col gap-2 p-4', className)} {...props} />;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
function SheetTitle({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Title>) {
|
|
88
|
-
return (
|
|
89
|
-
<SheetPrimitive.Title
|
|
90
|
-
data-slot="sheet-title"
|
|
91
|
-
className={cn('text-foreground font-semibold', className)}
|
|
92
|
-
{...props}
|
|
93
|
-
/>
|
|
94
|
-
);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
function SheetDescription({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Description>) {
|
|
98
|
-
return (
|
|
99
|
-
<SheetPrimitive.Description
|
|
100
|
-
data-slot="sheet-description"
|
|
101
|
-
className={cn('text-muted-foreground text-sm', className)}
|
|
102
|
-
{...props}
|
|
103
|
-
/>
|
|
104
|
-
);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription };
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { HomeIcon, SettingsIcon, UsersIcon, InboxIcon } from 'lucide-react';
|
|
3
|
-
import {
|
|
4
|
-
Sidebar,
|
|
5
|
-
SidebarContent,
|
|
6
|
-
SidebarFooter,
|
|
7
|
-
SidebarGroup,
|
|
8
|
-
SidebarGroupLabel,
|
|
9
|
-
SidebarHeader,
|
|
10
|
-
SidebarMenu,
|
|
11
|
-
SidebarMenuButton,
|
|
12
|
-
SidebarMenuItem,
|
|
13
|
-
SidebarProvider,
|
|
14
|
-
SidebarTrigger,
|
|
15
|
-
} from '@/components/ui/Sidebar';
|
|
16
|
-
|
|
17
|
-
const meta: Meta<typeof Sidebar> = {
|
|
18
|
-
title: 'UI Components/Sidebar',
|
|
19
|
-
component: Sidebar,
|
|
20
|
-
};
|
|
21
|
-
export default meta;
|
|
22
|
-
type Story = StoryObj<typeof Sidebar>;
|
|
23
|
-
|
|
24
|
-
const menuItems = [
|
|
25
|
-
{ label: 'Home', icon: HomeIcon },
|
|
26
|
-
{ label: 'Inbox', icon: InboxIcon },
|
|
27
|
-
{ label: 'Users', icon: UsersIcon },
|
|
28
|
-
{ label: 'Settings', icon: SettingsIcon },
|
|
29
|
-
];
|
|
30
|
-
|
|
31
|
-
export const Default: Story = {
|
|
32
|
-
render: () => (
|
|
33
|
-
<SidebarProvider>
|
|
34
|
-
<Sidebar>
|
|
35
|
-
<SidebarHeader>
|
|
36
|
-
<span className="px-2 text-lg font-semibold">My App</span>
|
|
37
|
-
</SidebarHeader>
|
|
38
|
-
<SidebarContent>
|
|
39
|
-
<SidebarGroup>
|
|
40
|
-
<SidebarGroupLabel>Navigation</SidebarGroupLabel>
|
|
41
|
-
<SidebarMenu>
|
|
42
|
-
{menuItems.map((item) => (
|
|
43
|
-
<SidebarMenuItem key={item.label}>
|
|
44
|
-
<SidebarMenuButton>
|
|
45
|
-
<item.icon />
|
|
46
|
-
<span>{item.label}</span>
|
|
47
|
-
</SidebarMenuButton>
|
|
48
|
-
</SidebarMenuItem>
|
|
49
|
-
))}
|
|
50
|
-
</SidebarMenu>
|
|
51
|
-
</SidebarGroup>
|
|
52
|
-
</SidebarContent>
|
|
53
|
-
<SidebarFooter>
|
|
54
|
-
<span className="px-2 text-xs text-muted-foreground">v1.0.0</span>
|
|
55
|
-
</SidebarFooter>
|
|
56
|
-
</Sidebar>
|
|
57
|
-
<main className="flex-1 p-4">
|
|
58
|
-
<SidebarTrigger />
|
|
59
|
-
<p className="mt-4 text-sm text-muted-foreground">Main content area</p>
|
|
60
|
-
</main>
|
|
61
|
-
</SidebarProvider>
|
|
62
|
-
),
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
export const WithActiveItem: Story = {
|
|
66
|
-
render: () => (
|
|
67
|
-
<SidebarProvider>
|
|
68
|
-
<Sidebar>
|
|
69
|
-
<SidebarHeader>
|
|
70
|
-
<span className="px-2 text-lg font-semibold">My App</span>
|
|
71
|
-
</SidebarHeader>
|
|
72
|
-
<SidebarContent>
|
|
73
|
-
<SidebarGroup>
|
|
74
|
-
<SidebarGroupLabel>Navigation</SidebarGroupLabel>
|
|
75
|
-
<SidebarMenu>
|
|
76
|
-
{menuItems.map((item, index) => (
|
|
77
|
-
<SidebarMenuItem key={item.label}>
|
|
78
|
-
<SidebarMenuButton isActive={index === 0}>
|
|
79
|
-
<item.icon />
|
|
80
|
-
<span>{item.label}</span>
|
|
81
|
-
</SidebarMenuButton>
|
|
82
|
-
</SidebarMenuItem>
|
|
83
|
-
))}
|
|
84
|
-
</SidebarMenu>
|
|
85
|
-
</SidebarGroup>
|
|
86
|
-
</SidebarContent>
|
|
87
|
-
</Sidebar>
|
|
88
|
-
<main className="flex-1 p-4">
|
|
89
|
-
<SidebarTrigger />
|
|
90
|
-
<p className="mt-4 text-sm text-muted-foreground">Main content area</p>
|
|
91
|
-
</main>
|
|
92
|
-
</SidebarProvider>
|
|
93
|
-
),
|
|
94
|
-
};
|