create-auto-app 1.32.0 → 1.34.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/client/.gitignore +0 -1
- package/templates/typical/client/.storybook/main.ts +4 -1
- package/templates/typical/client/.storybook/manager.ts +4 -5
- package/templates/typical/client/.storybook/preview.tsx +1 -1
- package/templates/typical/client/src/components/ui/Accordion.stories.tsx +2 -0
- package/templates/typical/client/src/components/ui/Accordion.tsx +4 -0
- package/templates/typical/client/src/components/ui/Alert.stories.tsx +2 -0
- package/templates/typical/client/src/components/ui/Alert.tsx +7 -0
- package/templates/typical/client/src/components/ui/AlertDialog.stories.tsx +2 -0
- package/templates/typical/client/src/components/ui/AlertDialog.tsx +15 -0
- package/templates/typical/client/src/components/ui/AspectRatio.stories.tsx +2 -0
- package/templates/typical/client/src/components/ui/AspectRatio.tsx +4 -0
- package/templates/typical/client/src/components/ui/Avatar.stories.tsx +3 -0
- package/templates/typical/client/src/components/ui/Avatar.tsx +11 -0
- package/templates/typical/client/src/components/ui/Badge.stories.tsx +5 -0
- package/templates/typical/client/src/components/ui/Badge.tsx +5 -0
- package/templates/typical/client/src/components/ui/Breadcrumb.stories.tsx +2 -0
- package/templates/typical/client/src/components/ui/Breadcrumb.tsx +12 -0
- package/templates/typical/client/src/components/ui/Button.stories.tsx +10 -0
- package/templates/typical/client/src/components/ui/Button.tsx +5 -0
- package/templates/typical/client/src/components/ui/ButtonGroup.stories.tsx +2 -0
- package/templates/typical/client/src/components/ui/ButtonGroup.tsx +6 -0
- package/templates/typical/client/src/components/ui/Calendar.stories.tsx +2 -0
- package/templates/typical/client/src/components/ui/Calendar.tsx +6 -0
- package/templates/typical/client/src/components/ui/Card.stories.tsx +2 -0
- package/templates/typical/client/src/components/ui/Card.tsx +10 -0
- package/templates/typical/client/src/components/ui/Carousel.stories.tsx +2 -0
- package/templates/typical/client/src/components/ui/Carousel.tsx +9 -0
- package/templates/typical/client/src/components/ui/Chart.stories.tsx +1 -0
- package/templates/typical/client/src/components/ui/Chart.tsx +9 -0
- package/templates/typical/client/src/components/ui/Checkbox.stories.tsx +4 -0
- package/templates/typical/client/src/components/ui/Checkbox.tsx +1 -0
- package/templates/typical/client/src/components/ui/Collapsible.stories.tsx +2 -0
- package/templates/typical/client/src/components/ui/Collapsible.tsx +3 -0
- package/templates/typical/client/src/components/ui/Combobox.stories.tsx +2 -0
- package/templates/typical/client/src/components/ui/Combobox.tsx +29 -0
- package/templates/typical/client/src/components/ui/Command.stories.tsx +2 -0
- package/templates/typical/client/src/components/ui/Command.tsx +20 -0
- package/templates/typical/client/src/components/ui/ContextMenu.stories.tsx +2 -0
- package/templates/typical/client/src/components/ui/ContextMenu.tsx +20 -0
- package/templates/typical/client/src/components/ui/DesignSystem-Colors.stories.tsx +1 -0
- package/templates/typical/client/src/components/ui/DesignSystem-Layout.stories.tsx +1 -0
- package/templates/typical/client/src/components/ui/DesignSystem-Overview.stories.tsx +1 -0
- package/templates/typical/client/src/components/ui/DesignSystem-Typography.stories.tsx +1 -0
- package/templates/typical/client/src/components/ui/Dialog.stories.tsx +2 -0
- package/templates/typical/client/src/components/ui/Dialog.tsx +18 -0
- package/templates/typical/client/src/components/ui/Direction.stories.tsx +2 -0
- package/templates/typical/client/src/components/ui/Direction.tsx +6 -0
- package/templates/typical/client/src/components/ui/Drawer.stories.tsx +2 -0
- package/templates/typical/client/src/components/ui/Drawer.tsx +18 -0
- package/templates/typical/client/src/components/ui/DropdownMenu.stories.tsx +2 -0
- package/templates/typical/client/src/components/ui/DropdownMenu.tsx +20 -0
- package/templates/typical/client/src/components/ui/Empty.stories.tsx +2 -0
- package/templates/typical/client/src/components/ui/Empty.tsx +13 -0
- package/templates/typical/client/src/components/ui/Field.stories.tsx +3 -0
- package/templates/typical/client/src/components/ui/Field.tsx +25 -0
- package/templates/typical/client/src/components/ui/Form.stories.tsx +1 -0
- package/templates/typical/client/src/components/ui/Form.tsx +15 -3
- package/templates/typical/client/src/components/ui/HoverCard.stories.tsx +2 -0
- package/templates/typical/client/src/components/ui/HoverCard.tsx +3 -0
- package/templates/typical/client/src/components/ui/Input.stories.tsx +4 -0
- package/templates/typical/client/src/components/ui/Input.tsx +1 -0
- package/templates/typical/client/src/components/ui/InputGroup.stories.tsx +3 -0
- package/templates/typical/client/src/components/ui/InputGroup.tsx +6 -0
- package/templates/typical/client/src/components/ui/InputOTP.stories.tsx +2 -0
- package/templates/typical/client/src/components/ui/InputOTP.tsx +4 -0
- package/templates/typical/client/src/components/ui/Item.stories.tsx +3 -0
- package/templates/typical/client/src/components/ui/Item.tsx +10 -0
- package/templates/typical/client/src/components/ui/Kbd.stories.tsx +5 -0
- package/templates/typical/client/src/components/ui/Kbd.tsx +4 -0
- package/templates/typical/client/src/components/ui/Label.stories.tsx +5 -0
- package/templates/typical/client/src/components/ui/Label.tsx +4 -0
- package/templates/typical/client/src/components/ui/Menubar.stories.tsx +2 -0
- package/templates/typical/client/src/components/ui/Menubar.tsx +15 -0
- package/templates/typical/client/src/components/ui/NativeSelect.stories.tsx +3 -0
- package/templates/typical/client/src/components/ui/NativeSelect.tsx +6 -0
- package/templates/typical/client/src/components/ui/NavigationMenu.stories.tsx +2 -0
- package/templates/typical/client/src/components/ui/NavigationMenu.tsx +10 -0
- package/templates/typical/client/src/components/ui/Pagination.stories.tsx +2 -0
- package/templates/typical/client/src/components/ui/Pagination.tsx +8 -0
- package/templates/typical/client/src/components/ui/Popover.stories.tsx +2 -0
- package/templates/typical/client/src/components/ui/Popover.tsx +5 -0
- package/templates/typical/client/src/components/ui/Progress.stories.tsx +4 -0
- package/templates/typical/client/src/components/ui/Progress.tsx +1 -0
- package/templates/typical/client/src/components/ui/RadioGroup.stories.tsx +2 -0
- package/templates/typical/client/src/components/ui/RadioGroup.tsx +5 -0
- package/templates/typical/client/src/components/ui/Resizable.stories.tsx +3 -0
- package/templates/typical/client/src/components/ui/Resizable.tsx +7 -0
- package/templates/typical/client/src/components/ui/ScrollArea.stories.tsx +2 -0
- package/templates/typical/client/src/components/ui/ScrollArea.tsx +5 -0
- package/templates/typical/client/src/components/ui/Select.stories.tsx +2 -0
- package/templates/typical/client/src/components/ui/Select.tsx +9 -0
- package/templates/typical/client/src/components/ui/Separator.stories.tsx +2 -0
- package/templates/typical/client/src/components/ui/Separator.tsx +1 -0
- package/templates/typical/client/src/components/ui/Sheet.stories.tsx +2 -0
- package/templates/typical/client/src/components/ui/Sheet.tsx +8 -0
- package/templates/typical/client/src/components/ui/Sidebar.stories.tsx +2 -0
- package/templates/typical/client/src/components/ui/Sidebar.tsx +20 -0
- package/templates/typical/client/src/components/ui/Skeleton.stories.tsx +2 -0
- package/templates/typical/client/src/components/ui/Skeleton.tsx +4 -0
- package/templates/typical/client/src/components/ui/Slider.stories.tsx +3 -0
- package/templates/typical/client/src/components/ui/Slider.tsx +1 -0
- package/templates/typical/client/src/components/ui/Sonner.stories.tsx +1 -0
- package/templates/typical/client/src/components/ui/Sonner.tsx +4 -0
- package/templates/typical/client/src/components/ui/Spinner.stories.tsx +3 -0
- package/templates/typical/client/src/components/ui/Spinner.tsx +4 -0
- package/templates/typical/client/src/components/ui/Switch.stories.tsx +4 -0
- package/templates/typical/client/src/components/ui/Switch.tsx +2 -0
- package/templates/typical/client/src/components/ui/Table.stories.tsx +2 -0
- package/templates/typical/client/src/components/ui/Table.tsx +11 -0
- package/templates/typical/client/src/components/ui/Tabs.stories.tsx +2 -0
- package/templates/typical/client/src/components/ui/Tabs.tsx +6 -0
- package/templates/typical/client/src/components/ui/Textarea.stories.tsx +3 -0
- package/templates/typical/client/src/components/ui/Textarea.tsx +4 -0
- package/templates/typical/client/src/components/ui/Toast.stories.tsx +4 -0
- package/templates/typical/client/src/components/ui/Toast.tsx +9 -0
- package/templates/typical/client/src/components/ui/Toaster.tsx +4 -0
- package/templates/typical/client/src/components/ui/Toggle.stories.tsx +4 -0
- package/templates/typical/client/src/components/ui/Toggle.tsx +1 -0
- package/templates/typical/client/src/components/ui/ToggleGroup.stories.tsx +3 -0
- package/templates/typical/client/src/components/ui/ToggleGroup.tsx +3 -0
- package/templates/typical/client/src/components/ui/Tooltip.stories.tsx +2 -0
- package/templates/typical/client/src/components/ui/Tooltip.tsx +6 -0
- package/templates/typical/client/tsconfig.json +6 -0
- package/templates/typical/client/.claude-auto/.claude.hooks.json +0 -28
- package/templates/typical/client/tsconfig.staging.json +0 -8
|
@@ -2,6 +2,10 @@ import * as React from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { cn } from '@/lib/utils';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* A multi-line text input that auto-sizes to its content via field-sizing-content.
|
|
7
|
+
* Supports aria-invalid styling for form validation errors.
|
|
8
|
+
*/
|
|
5
9
|
function Textarea({ className, ...props }: React.ComponentProps<'textarea'>) {
|
|
6
10
|
return (
|
|
7
11
|
<textarea
|
|
@@ -40,6 +40,7 @@ function ToastDemo() {
|
|
|
40
40
|
);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
/** Demonstrates triggering a basic toast notification with a title and description. */
|
|
43
44
|
export const Default: Story = {
|
|
44
45
|
render: () => <ToastDemo />,
|
|
45
46
|
};
|
|
@@ -66,6 +67,7 @@ function ToastDestructiveDemo() {
|
|
|
66
67
|
);
|
|
67
68
|
}
|
|
68
69
|
|
|
70
|
+
/** Shows a destructive-variant toast for error or warning scenarios. */
|
|
69
71
|
export const Destructive: Story = {
|
|
70
72
|
render: () => <ToastDestructiveDemo />,
|
|
71
73
|
};
|
|
@@ -92,10 +94,12 @@ function ToastWithActionDemo() {
|
|
|
92
94
|
);
|
|
93
95
|
}
|
|
94
96
|
|
|
97
|
+
/** Shows a toast with an action button (e.g., "Undo") alongside the message. */
|
|
95
98
|
export const WithAction: Story = {
|
|
96
99
|
render: () => <ToastWithActionDemo />,
|
|
97
100
|
};
|
|
98
101
|
|
|
102
|
+
/** Shows a toast rendered inline (always open) using the primitive subcomponents directly. */
|
|
99
103
|
export const Inline: Story = {
|
|
100
104
|
render: () => (
|
|
101
105
|
<ToastProvider>
|
|
@@ -7,10 +7,14 @@ import { Toast as ToastPrimitive } from 'radix-ui';
|
|
|
7
7
|
|
|
8
8
|
import { cn } from '@/lib/utils';
|
|
9
9
|
|
|
10
|
+
/** Temporary notification at screen edge with swipe-to-dismiss. Supports default and destructive variants. */
|
|
11
|
+
|
|
12
|
+
/** Provides the toast context for managing toast state and swipe behavior. */
|
|
10
13
|
function ToastProvider({ ...props }: React.ComponentProps<typeof ToastPrimitive.Provider>) {
|
|
11
14
|
return <ToastPrimitive.Provider data-slot="toast-provider" {...props} />;
|
|
12
15
|
}
|
|
13
16
|
|
|
17
|
+
/** The fixed-position viewport where toasts are rendered, positioned at bottom-right on larger screens. */
|
|
14
18
|
function ToastViewport({ className, ...props }: React.ComponentProps<typeof ToastPrimitive.Viewport>) {
|
|
15
19
|
return (
|
|
16
20
|
<ToastPrimitive.Viewport
|
|
@@ -39,6 +43,7 @@ const toastVariants = cva(
|
|
|
39
43
|
},
|
|
40
44
|
);
|
|
41
45
|
|
|
46
|
+
/** An individual toast notification with default or destructive variant styling. */
|
|
42
47
|
function Toast({
|
|
43
48
|
className,
|
|
44
49
|
variant,
|
|
@@ -47,6 +52,7 @@ function Toast({
|
|
|
47
52
|
return <ToastPrimitive.Root data-slot="toast" className={cn(toastVariants({ variant }), className)} {...props} />;
|
|
48
53
|
}
|
|
49
54
|
|
|
55
|
+
/** An action button displayed within a toast, such as "Undo" or "Retry". */
|
|
50
56
|
function ToastAction({ className, ...props }: React.ComponentProps<typeof ToastPrimitive.Action>) {
|
|
51
57
|
return (
|
|
52
58
|
<ToastPrimitive.Action
|
|
@@ -60,6 +66,7 @@ function ToastAction({ className, ...props }: React.ComponentProps<typeof ToastP
|
|
|
60
66
|
);
|
|
61
67
|
}
|
|
62
68
|
|
|
69
|
+
/** A close button positioned in the top-right corner of a toast, visible on hover. */
|
|
63
70
|
function ToastClose({ className, ...props }: React.ComponentProps<typeof ToastPrimitive.Close>) {
|
|
64
71
|
return (
|
|
65
72
|
<ToastPrimitive.Close
|
|
@@ -76,6 +83,7 @@ function ToastClose({ className, ...props }: React.ComponentProps<typeof ToastPr
|
|
|
76
83
|
);
|
|
77
84
|
}
|
|
78
85
|
|
|
86
|
+
/** The bold heading text of a toast notification. */
|
|
79
87
|
function ToastTitle({ className, ...props }: React.ComponentProps<typeof ToastPrimitive.Title>) {
|
|
80
88
|
return (
|
|
81
89
|
<ToastPrimitive.Title
|
|
@@ -86,6 +94,7 @@ function ToastTitle({ className, ...props }: React.ComponentProps<typeof ToastPr
|
|
|
86
94
|
);
|
|
87
95
|
}
|
|
88
96
|
|
|
97
|
+
/** The secondary descriptive text of a toast notification. */
|
|
89
98
|
function ToastDescription({ className, ...props }: React.ComponentProps<typeof ToastPrimitive.Description>) {
|
|
90
99
|
return (
|
|
91
100
|
<ToastPrimitive.Description
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
import { useToast } from '@/hooks/use-toast';
|
|
4
4
|
import { Toast, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport } from '@/components/ui/Toast';
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Renders all active toasts from the useToast hook into a fixed-position viewport.
|
|
8
|
+
* Place once at the app root to enable imperative toast notifications via the useToast hook.
|
|
9
|
+
*/
|
|
6
10
|
function Toaster() {
|
|
7
11
|
const { toasts } = useToast();
|
|
8
12
|
|
|
@@ -9,6 +9,7 @@ const meta: Meta<typeof Toggle> = {
|
|
|
9
9
|
export default meta;
|
|
10
10
|
type Story = StoryObj<typeof Toggle>;
|
|
11
11
|
|
|
12
|
+
/** Shows a toggle button with a bold icon in the default ghost variant. */
|
|
12
13
|
export const Default: Story = {
|
|
13
14
|
args: {
|
|
14
15
|
'aria-label': 'Toggle bold',
|
|
@@ -16,6 +17,7 @@ export const Default: Story = {
|
|
|
16
17
|
},
|
|
17
18
|
};
|
|
18
19
|
|
|
20
|
+
/** Shows the outline variant with a visible border. */
|
|
19
21
|
export const Outline: Story = {
|
|
20
22
|
args: {
|
|
21
23
|
variant: 'outline',
|
|
@@ -24,6 +26,7 @@ export const Outline: Story = {
|
|
|
24
26
|
},
|
|
25
27
|
};
|
|
26
28
|
|
|
29
|
+
/** Shows a toggle with a text label instead of an icon. */
|
|
27
30
|
export const WithText: Story = {
|
|
28
31
|
args: {
|
|
29
32
|
'aria-label': 'Toggle italic',
|
|
@@ -31,6 +34,7 @@ export const WithText: Story = {
|
|
|
31
34
|
},
|
|
32
35
|
};
|
|
33
36
|
|
|
37
|
+
/** Shows a toggle in its initially pressed (on) state. */
|
|
34
38
|
export const Pressed: Story = {
|
|
35
39
|
args: {
|
|
36
40
|
defaultPressed: true,
|
|
@@ -9,6 +9,7 @@ const meta: Meta<typeof ToggleGroup> = {
|
|
|
9
9
|
export default meta;
|
|
10
10
|
type Story = StoryObj<typeof ToggleGroup>;
|
|
11
11
|
|
|
12
|
+
/** Shows a single-selection toggle group where only one item can be active at a time. */
|
|
12
13
|
export const Single: Story = {
|
|
13
14
|
render: () => (
|
|
14
15
|
<ToggleGroup type="single">
|
|
@@ -25,6 +26,7 @@ export const Single: Story = {
|
|
|
25
26
|
),
|
|
26
27
|
};
|
|
27
28
|
|
|
29
|
+
/** Shows a multi-selection toggle group with bold and italic pre-selected. */
|
|
28
30
|
export const Multiple: Story = {
|
|
29
31
|
render: () => (
|
|
30
32
|
<ToggleGroup type="multiple" defaultValue={['bold', 'italic']}>
|
|
@@ -41,6 +43,7 @@ export const Multiple: Story = {
|
|
|
41
43
|
),
|
|
42
44
|
};
|
|
43
45
|
|
|
46
|
+
/** Shows a toggle group using the outline variant with visible borders. */
|
|
44
47
|
export const Outline: Story = {
|
|
45
48
|
render: () => (
|
|
46
49
|
<ToggleGroup type="single" variant="outline">
|
|
@@ -17,10 +17,12 @@ const ToggleGroupContext = React.createContext<
|
|
|
17
17
|
spacing: 0,
|
|
18
18
|
});
|
|
19
19
|
|
|
20
|
+
/** A group of toggles where one (`type="single"`) or multiple (`type="multiple"`) can be active. */
|
|
20
21
|
function ToggleGroup({
|
|
21
22
|
className,
|
|
22
23
|
variant,
|
|
23
24
|
size,
|
|
25
|
+
/** Controls gap between items. When 0, items are visually joined with shared borders. */
|
|
24
26
|
spacing = 0,
|
|
25
27
|
children,
|
|
26
28
|
...props
|
|
@@ -46,6 +48,7 @@ function ToggleGroup({
|
|
|
46
48
|
);
|
|
47
49
|
}
|
|
48
50
|
|
|
51
|
+
/** An individual toggle button within a ToggleGroup. Inherits variant and size from the parent group context. */
|
|
49
52
|
function ToggleGroupItem({
|
|
50
53
|
className,
|
|
51
54
|
children,
|
|
@@ -9,6 +9,7 @@ const meta: Meta<typeof Tooltip> = {
|
|
|
9
9
|
export default meta;
|
|
10
10
|
type Story = StoryObj<typeof Tooltip>;
|
|
11
11
|
|
|
12
|
+
/** Shows a basic tooltip appearing on hover over a button. */
|
|
12
13
|
export const Default: Story = {
|
|
13
14
|
render: () => (
|
|
14
15
|
<TooltipProvider>
|
|
@@ -24,6 +25,7 @@ export const Default: Story = {
|
|
|
24
25
|
),
|
|
25
26
|
};
|
|
26
27
|
|
|
28
|
+
/** Shows a tooltip with additional spacing between the trigger and content via sideOffset. */
|
|
27
29
|
export const WithSideOffset: Story = {
|
|
28
30
|
render: () => (
|
|
29
31
|
<TooltipProvider>
|
|
@@ -3,18 +3,24 @@ import { Tooltip as TooltipPrimitive } from 'radix-ui';
|
|
|
3
3
|
|
|
4
4
|
import { cn } from '@/lib/utils';
|
|
5
5
|
|
|
6
|
+
/** Brief descriptive popup on hover/focus. Has enter/exit animations and arrow indicator. Wrap app in TooltipProvider first. */
|
|
7
|
+
|
|
8
|
+
/** Provides shared tooltip configuration (e.g., delay duration) for all nested Tooltip instances. */
|
|
6
9
|
function TooltipProvider({ delayDuration = 0, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>) {
|
|
7
10
|
return <TooltipPrimitive.Provider data-slot="tooltip-provider" delayDuration={delayDuration} {...props} />;
|
|
8
11
|
}
|
|
9
12
|
|
|
13
|
+
/** The root component that manages open/close state for a single tooltip. */
|
|
10
14
|
function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>) {
|
|
11
15
|
return <TooltipPrimitive.Root data-slot="tooltip" {...props} />;
|
|
12
16
|
}
|
|
13
17
|
|
|
18
|
+
/** The element that triggers the tooltip on hover or focus. */
|
|
14
19
|
function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>) {
|
|
15
20
|
return <TooltipPrimitive.Trigger data-slot="tooltip-trigger" {...props} />;
|
|
16
21
|
}
|
|
17
22
|
|
|
23
|
+
/** The popup content panel rendered via a portal with an arrow indicator. */
|
|
18
24
|
function TooltipContent({
|
|
19
25
|
className,
|
|
20
26
|
sideOffset = 0,
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"autoContinue": {
|
|
3
|
-
"mode": "smart",
|
|
4
|
-
"maxIterations": 0,
|
|
5
|
-
"iteration": 0,
|
|
6
|
-
"skipModes": [
|
|
7
|
-
"plan"
|
|
8
|
-
]
|
|
9
|
-
},
|
|
10
|
-
"validateCommit": {
|
|
11
|
-
"mode": "strict",
|
|
12
|
-
"batchCount": 3
|
|
13
|
-
},
|
|
14
|
-
"denyList": {
|
|
15
|
-
"enabled": true,
|
|
16
|
-
"extraPatterns": []
|
|
17
|
-
},
|
|
18
|
-
"promptReminder": {
|
|
19
|
-
"enabled": true
|
|
20
|
-
},
|
|
21
|
-
"subagentHooks": {
|
|
22
|
-
"validateCommitOnExplore": false,
|
|
23
|
-
"validateCommitOnWork": true,
|
|
24
|
-
"validateCommitOnUnknown": true
|
|
25
|
-
},
|
|
26
|
-
"updatedAt": "2026-02-17T21:29:16.970Z",
|
|
27
|
-
"updatedBy": "init"
|
|
28
|
-
}
|