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.
Files changed (63) hide show
  1. package/package.json +2 -2
  2. package/templates/typical/client/.storybook/main.ts +42 -32
  3. package/templates/typical/client/.storybook/preview.tsx +12 -0
  4. package/templates/typical/client/package.json +1 -0
  5. package/templates/typical/client/src/components/ui/Accordion.stories.tsx +1 -1
  6. package/templates/typical/client/src/components/ui/Alert.stories.tsx +1 -1
  7. package/templates/typical/client/src/components/ui/AlertDialog.stories.tsx +1 -1
  8. package/templates/typical/client/src/components/ui/AspectRatio.stories.tsx +1 -1
  9. package/templates/typical/client/src/components/ui/Avatar.stories.tsx +1 -1
  10. package/templates/typical/client/src/components/ui/Badge.stories.tsx +1 -1
  11. package/templates/typical/client/src/components/ui/Breadcrumb.stories.tsx +1 -1
  12. package/templates/typical/client/src/components/ui/Button.stories.tsx +1 -1
  13. package/templates/typical/client/src/components/ui/ButtonGroup.stories.tsx +1 -1
  14. package/templates/typical/client/src/components/ui/Calendar.stories.tsx +1 -1
  15. package/templates/typical/client/src/components/ui/Card.stories.tsx +1 -1
  16. package/templates/typical/client/src/components/ui/Carousel.stories.tsx +1 -1
  17. package/templates/typical/client/src/components/ui/Chart.stories.tsx +1 -1
  18. package/templates/typical/client/src/components/ui/Checkbox.stories.tsx +1 -1
  19. package/templates/typical/client/src/components/ui/Collapsible.stories.tsx +1 -1
  20. package/templates/typical/client/src/components/ui/Combobox.stories.tsx +1 -1
  21. package/templates/typical/client/src/components/ui/Command.stories.tsx +1 -1
  22. package/templates/typical/client/src/components/ui/ContextMenu.stories.tsx +1 -1
  23. package/templates/typical/client/src/components/ui/DesignSystem-Overview.stories.tsx +738 -0
  24. package/templates/typical/client/src/components/ui/Dialog.stories.tsx +1 -1
  25. package/templates/typical/client/src/components/ui/Direction.stories.tsx +1 -1
  26. package/templates/typical/client/src/components/ui/Drawer.stories.tsx +1 -1
  27. package/templates/typical/client/src/components/ui/DropdownMenu.stories.tsx +1 -1
  28. package/templates/typical/client/src/components/ui/Empty.stories.tsx +1 -1
  29. package/templates/typical/client/src/components/ui/Field.stories.tsx +1 -1
  30. package/templates/typical/client/src/components/ui/Form.stories.tsx +1 -1
  31. package/templates/typical/client/src/components/ui/HoverCard.stories.tsx +1 -1
  32. package/templates/typical/client/src/components/ui/Input.stories.tsx +1 -1
  33. package/templates/typical/client/src/components/ui/InputGroup.stories.tsx +1 -1
  34. package/templates/typical/client/src/components/ui/InputOTP.stories.tsx +1 -1
  35. package/templates/typical/client/src/components/ui/Item.stories.tsx +1 -1
  36. package/templates/typical/client/src/components/ui/Kbd.stories.tsx +1 -1
  37. package/templates/typical/client/src/components/ui/Label.stories.tsx +1 -1
  38. package/templates/typical/client/src/components/ui/Menubar.stories.tsx +1 -1
  39. package/templates/typical/client/src/components/ui/NativeSelect.stories.tsx +1 -1
  40. package/templates/typical/client/src/components/ui/NavigationMenu.stories.tsx +1 -1
  41. package/templates/typical/client/src/components/ui/Pagination.stories.tsx +1 -1
  42. package/templates/typical/client/src/components/ui/Popover.stories.tsx +1 -1
  43. package/templates/typical/client/src/components/ui/Progress.stories.tsx +1 -1
  44. package/templates/typical/client/src/components/ui/RadioGroup.stories.tsx +1 -1
  45. package/templates/typical/client/src/components/ui/Resizable.stories.tsx +1 -1
  46. package/templates/typical/client/src/components/ui/ScrollArea.stories.tsx +1 -1
  47. package/templates/typical/client/src/components/ui/Select.stories.tsx +1 -1
  48. package/templates/typical/client/src/components/ui/Separator.stories.tsx +1 -1
  49. package/templates/typical/client/src/components/ui/Sheet.stories.tsx +1 -1
  50. package/templates/typical/client/src/components/ui/Sidebar.stories.tsx +1 -1
  51. package/templates/typical/client/src/components/ui/Skeleton.stories.tsx +1 -1
  52. package/templates/typical/client/src/components/ui/Slider.stories.tsx +1 -1
  53. package/templates/typical/client/src/components/ui/Sonner.stories.tsx +1 -1
  54. package/templates/typical/client/src/components/ui/Spinner.stories.tsx +1 -1
  55. package/templates/typical/client/src/components/ui/Switch.stories.tsx +1 -1
  56. package/templates/typical/client/src/components/ui/Table.stories.tsx +1 -1
  57. package/templates/typical/client/src/components/ui/Tabs.stories.tsx +1 -1
  58. package/templates/typical/client/src/components/ui/Textarea.stories.tsx +1 -1
  59. package/templates/typical/client/src/components/ui/Toast.stories.tsx +4 -4
  60. package/templates/typical/client/src/components/ui/Toggle.stories.tsx +1 -1
  61. package/templates/typical/client/src/components/ui/ToggleGroup.stories.tsx +1 -1
  62. package/templates/typical/client/src/components/ui/Tooltip.stories.tsx +1 -1
  63. 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.21.0",
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.21.0"
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 'node:url';
2
- import { dirname } from 'node:path';
3
- import type { StorybookConfig } from '@storybook/react-vite';
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
- stories: ['../src/**/*.mdx', '../src/**/*.stories.@(ts|tsx)'],
7
- addons: [
8
- getAbsolutePath('@storybook/addon-docs'),
9
- {
10
- name: getAbsolutePath('@storybook/addon-mcp'),
11
- options: {
12
- toolsets: {
13
- dev: true,
14
- docs: true,
15
- },
16
- },
17
- },
18
- ],
19
- staticDirs: ['../public'],
20
- features: {
21
- experimentalComponentsManifest: true,
22
- },
23
- framework: {
24
- name: getAbsolutePath('@storybook/react-vite'),
25
- options: {},
26
- },
27
- viteFinal: (config) => {
28
- config.server = {
29
- ...config.server,
30
- allowedHosts: ['.worker.on.auto', '.worker-dev.on.auto'],
31
- };
32
- return config;
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
- return dirname(fileURLToPath(import.meta.resolve(`${value}/package.json`)));
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
  };
@@ -9,6 +9,7 @@
9
9
  "preview": "vite preview",
10
10
  "type-check": "tsc --noEmit -p tsconfig.app.json",
11
11
  "storybook": "storybook dev -p 6006",
12
+ "storybook:fast": "STORYBOOK_FAST=1 storybook dev -p 6006",
12
13
  "build-storybook": "storybook build"
13
14
  },
14
15
  "dependencies": {
@@ -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;
@@ -13,7 +13,7 @@ import {
13
13
  import { Button } from '@/components/ui/Button';
14
14
 
15
15
  const meta: Meta<typeof AlertDialog> = {
16
- title: 'AlertDialog',
16
+ title: 'UI Components/AlertDialog',
17
17
  component: AlertDialog,
18
18
  };
19
19
  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;
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react-vite';
2
2
  import { Badge } from '@/components/ui/Badge';
3
3
 
4
4
  const meta: Meta<typeof Badge> = {
5
- title: 'Badge',
5
+ title: 'UI Components/Badge',
6
6
  component: Badge,
7
7
  };
8
8
  export default meta;
@@ -9,7 +9,7 @@ import {
9
9
  } from '@/components/ui/Breadcrumb';
10
10
 
11
11
  const meta: Meta<typeof Breadcrumb> = {
12
- title: 'Breadcrumb',
12
+ title: 'UI Components/Breadcrumb',
13
13
  component: Breadcrumb,
14
14
  };
15
15
  export default meta;
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react-vite';
2
2
  import { Button } from '@/components/ui/Button';
3
3
 
4
4
  const meta: Meta<typeof Button> = {
5
- title: 'Button',
5
+ title: 'UI Components/Button',
6
6
  component: Button,
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 type { Meta, StoryObj } from '@storybook/react-vite';
3
3
  import { Calendar } from '@/components/ui/Calendar';
4
4
 
5
5
  const meta: Meta<typeof Calendar> = {
6
- title: 'Calendar',
6
+ title: 'UI Components/Calendar',
7
7
  component: Calendar,
8
8
  };
9
9
  export default meta;
@@ -3,7 +3,7 @@ import { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent }
3
3
  import { Button } from '@/components/ui/Button';
4
4
 
5
5
  const meta: Meta<typeof Card> = {
6
- title: 'Card',
6
+ title: 'UI Components/Card',
7
7
  component: Card,
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;
@@ -3,7 +3,7 @@ import { Checkbox } from '@/components/ui/Checkbox';
3
3
  import { Label } from '@/components/ui/Label';
4
4
 
5
5
  const meta: Meta<typeof Checkbox> = {
6
- title: 'Checkbox',
6
+ title: 'UI Components/Checkbox',
7
7
  component: Checkbox,
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;
@@ -58,7 +58,7 @@ function ClearableCombobox() {
58
58
  }
59
59
 
60
60
  const meta: Meta = {
61
- title: 'Combobox',
61
+ title: 'UI Components/Combobox',
62
62
  component: ComboboxInput,
63
63
  };
64
64
  export default meta;
@@ -12,7 +12,7 @@ import {
12
12
  import { CalendarIcon, MailIcon, SettingsIcon, UserIcon, CreditCardIcon } from 'lucide-react';
13
13
 
14
14
  const meta: Meta<typeof Command> = {
15
- title: 'Command',
15
+ title: 'UI Components/Command',
16
16
  component: Command,
17
17
  };
18
18
  export default meta;
@@ -12,7 +12,7 @@ import {
12
12
  } from '@/components/ui/ContextMenu';
13
13
 
14
14
  const meta: Meta<typeof ContextMenu> = {
15
- title: 'ContextMenu',
15
+ title: 'UI Components/ContextMenu',
16
16
  component: ContextMenu,
17
17
  };
18
18
  export default meta;