create-auto-app 1.21.0 → 1.23.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/.storybook/main.ts +42 -32
- package/templates/typical/client/.storybook/preview.tsx +12 -0
- package/templates/typical/client/package.json +1 -0
- package/templates/typical/client/src/components/ui/Accordion.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Alert.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/AlertDialog.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/AspectRatio.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Avatar.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Badge.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Breadcrumb.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Button.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/ButtonGroup.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Calendar.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Card.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Carousel.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Chart.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Checkbox.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Collapsible.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Combobox.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Command.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/ContextMenu.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/DesignSystem-Overview.stories.tsx +738 -0
- package/templates/typical/client/src/components/ui/Dialog.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Direction.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Drawer.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/DropdownMenu.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Empty.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Field.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Form.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/HoverCard.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Input.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/InputGroup.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/InputOTP.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Item.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Kbd.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Label.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Menubar.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/NativeSelect.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/NavigationMenu.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Pagination.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Popover.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Progress.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/RadioGroup.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Resizable.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/ScrollArea.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Select.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Separator.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Sheet.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Sidebar.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Skeleton.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Slider.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Sonner.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Spinner.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Switch.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Table.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Tabs.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Textarea.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Toast.stories.tsx +4 -4
- package/templates/typical/client/src/components/ui/Toggle.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/ToggleGroup.stories.tsx +1 -1
- package/templates/typical/client/src/components/ui/Tooltip.stories.tsx +1 -1
- package/templates/typical/client/src/index.css +62 -62
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-auto-app",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.23.0",
|
|
4
4
|
"description": "Create Auto Engineer apps with no configuration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"fs-extra": "^11.2.0",
|
|
34
34
|
"inquirer": "^9.2.15",
|
|
35
35
|
"ora": "^8.0.1",
|
|
36
|
-
"@auto-engineer/id": "1.
|
|
36
|
+
"@auto-engineer/id": "1.23.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/fs-extra": "^11.0.4",
|
|
@@ -1,40 +1,50 @@
|
|
|
1
|
-
import { fileURLToPath } from
|
|
2
|
-
import { dirname } from
|
|
3
|
-
import type { StorybookConfig } from
|
|
1
|
+
import { fileURLToPath } from "node:url";
|
|
2
|
+
import { dirname } from "node:path";
|
|
3
|
+
import type { StorybookConfig } from "@storybook/react-vite";
|
|
4
|
+
|
|
5
|
+
const isFastMode = !!process.env.STORYBOOK_FAST;
|
|
4
6
|
|
|
5
7
|
const config: StorybookConfig = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
8
|
+
stories: isFastMode
|
|
9
|
+
? ["../src/**/*.stories.@(ts|tsx)"]
|
|
10
|
+
: ["../src/**/*.mdx", "../src/**/*.stories.@(ts|tsx)"],
|
|
11
|
+
addons: [
|
|
12
|
+
...(isFastMode ? [] : [getAbsolutePath("@storybook/addon-docs")]),
|
|
13
|
+
{
|
|
14
|
+
name: getAbsolutePath("@storybook/addon-mcp"),
|
|
15
|
+
options: {
|
|
16
|
+
toolsets: {
|
|
17
|
+
dev: true,
|
|
18
|
+
docs: true,
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
staticDirs: ["../public"],
|
|
24
|
+
features: {
|
|
25
|
+
experimentalComponentsManifest: true,
|
|
26
|
+
},
|
|
27
|
+
core: {
|
|
28
|
+
disableWhatsNewNotifications: true,
|
|
29
|
+
},
|
|
30
|
+
framework: {
|
|
31
|
+
name: getAbsolutePath("@storybook/react-vite"),
|
|
32
|
+
options: {},
|
|
33
|
+
},
|
|
34
|
+
typescript: {
|
|
35
|
+
reactDocgen: isFastMode ? false : "react-docgen",
|
|
36
|
+
},
|
|
37
|
+
viteFinal: (config) => {
|
|
38
|
+
config.server = {
|
|
39
|
+
...config.server,
|
|
40
|
+
allowedHosts: [".worker.on.auto", ".worker-dev.on.auto"],
|
|
41
|
+
};
|
|
42
|
+
return config;
|
|
43
|
+
},
|
|
34
44
|
};
|
|
35
45
|
|
|
36
46
|
export default config;
|
|
37
47
|
|
|
38
48
|
function getAbsolutePath(value: string): any {
|
|
39
|
-
|
|
49
|
+
return dirname(fileURLToPath(import.meta.resolve(`${value}/package.json`)));
|
|
40
50
|
}
|
|
@@ -28,6 +28,18 @@ const preview: Preview = {
|
|
|
28
28
|
date: /Date$/i,
|
|
29
29
|
},
|
|
30
30
|
},
|
|
31
|
+
viewport: {
|
|
32
|
+
defaultViewport: 'desktop',
|
|
33
|
+
},
|
|
34
|
+
layout: 'padded',
|
|
35
|
+
options: {
|
|
36
|
+
storySort: {
|
|
37
|
+
order: ['Design System', 'UI Components'],
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
initialGlobals: {
|
|
42
|
+
showPanel: false,
|
|
31
43
|
},
|
|
32
44
|
loaders: [mswLoader],
|
|
33
45
|
};
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
|
2
2
|
import { Accordion, AccordionItem, AccordionTrigger, AccordionContent } from '@/components/ui/Accordion';
|
|
3
3
|
|
|
4
4
|
const meta: Meta<typeof Accordion> = {
|
|
5
|
-
title: 'Accordion',
|
|
5
|
+
title: 'UI Components/Accordion',
|
|
6
6
|
component: Accordion,
|
|
7
7
|
};
|
|
8
8
|
export default meta;
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
|
2
2
|
import { Alert, AlertTitle, AlertDescription } from '@/components/ui/Alert';
|
|
3
3
|
|
|
4
4
|
const meta: Meta<typeof Alert> = {
|
|
5
|
-
title: 'Alert',
|
|
5
|
+
title: 'UI Components/Alert',
|
|
6
6
|
component: Alert,
|
|
7
7
|
};
|
|
8
8
|
export default meta;
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
|
2
2
|
import { AspectRatio } from '@/components/ui/AspectRatio';
|
|
3
3
|
|
|
4
4
|
const meta: Meta<typeof AspectRatio> = {
|
|
5
|
-
title: 'AspectRatio',
|
|
5
|
+
title: 'UI Components/AspectRatio',
|
|
6
6
|
component: AspectRatio,
|
|
7
7
|
};
|
|
8
8
|
export default meta;
|
|
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
|
2
2
|
import { Avatar, AvatarImage, AvatarFallback } from '@/components/ui/Avatar';
|
|
3
3
|
|
|
4
4
|
const meta: Meta<typeof Avatar> = {
|
|
5
|
-
title: 'Avatar',
|
|
5
|
+
title: 'UI Components/Avatar',
|
|
6
6
|
component: Avatar,
|
|
7
7
|
};
|
|
8
8
|
export default meta;
|
|
@@ -3,7 +3,7 @@ import { ButtonGroup } from '@/components/ui/ButtonGroup';
|
|
|
3
3
|
import { Button } from '@/components/ui/Button';
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof ButtonGroup> = {
|
|
6
|
-
title: 'ButtonGroup',
|
|
6
|
+
title: 'UI Components/ButtonGroup',
|
|
7
7
|
component: ButtonGroup,
|
|
8
8
|
};
|
|
9
9
|
export default meta;
|
|
@@ -3,7 +3,7 @@ import { Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext
|
|
|
3
3
|
import { Card, CardContent } from '@/components/ui/Card';
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof Carousel> = {
|
|
6
|
-
title: 'Carousel',
|
|
6
|
+
title: 'UI Components/Carousel',
|
|
7
7
|
component: Carousel,
|
|
8
8
|
};
|
|
9
9
|
export default meta;
|
|
@@ -3,7 +3,7 @@ import { Bar, BarChart, XAxis, YAxis } from 'recharts';
|
|
|
3
3
|
import { type ChartConfig, ChartContainer, ChartTooltip, ChartTooltipContent } from '@/components/ui/Chart';
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof ChartContainer> = {
|
|
6
|
-
title: 'Chart',
|
|
6
|
+
title: 'UI Components/Chart',
|
|
7
7
|
component: ChartContainer,
|
|
8
8
|
};
|
|
9
9
|
export default meta;
|
|
@@ -4,7 +4,7 @@ import { Collapsible, CollapsibleTrigger, CollapsibleContent } from '@/component
|
|
|
4
4
|
import { Button } from '@/components/ui/Button';
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof Collapsible> = {
|
|
7
|
-
title: 'Collapsible',
|
|
7
|
+
title: 'UI Components/Collapsible',
|
|
8
8
|
component: Collapsible,
|
|
9
9
|
};
|
|
10
10
|
export default meta;
|