vibe-design-system 2.5.7 → 2.5.9

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 (2) hide show
  1. package/bin/init.js +27 -5
  2. package/package.json +1 -1
package/bin/init.js CHANGED
@@ -22,6 +22,11 @@ const INSTALLER_ROOT = path.join(__dirname, "..");
22
22
  const TEMPLATE_DIR = path.join(INSTALLER_ROOT, "vds-core-template");
23
23
 
24
24
  const STORYBOOK_MAIN_TS = `import type { StorybookConfig } from "@storybook/react-vite";
25
+ import { mergeConfig } from "vite";
26
+ import path from "path";
27
+ import { fileURLToPath } from "url";
28
+
29
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
25
30
 
26
31
  const config: StorybookConfig = {
27
32
  stories: ["../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
@@ -31,11 +36,13 @@ const config: StorybookConfig = {
31
36
  options: {},
32
37
  },
33
38
  async viteFinal(config) {
34
- const { default: tailwindcss } = await import("tailwindcss");
35
- const { default: autoprefixer } = await import("autoprefixer");
36
- config.css = config.css ?? {};
37
- config.css.postcss = { plugins: [tailwindcss, autoprefixer] };
38
- return config;
39
+ return mergeConfig(config, {
40
+ resolve: {
41
+ alias: {
42
+ "@": path.resolve(__dirname, "../src"),
43
+ },
44
+ },
45
+ });
39
46
  },
40
47
  };
41
48
 
@@ -50,6 +57,21 @@ import "../src/index.css";
50
57
  const preview: Preview = {
51
58
  parameters: {
52
59
  layout: "fullscreen",
60
+ options: {
61
+ storySort: {
62
+ order: [
63
+ "Foundations",
64
+ ["Introduction", "Page to Components", "Colors", "Typography", "Brand", "Icons", "Component Suggestions", "Changelog"],
65
+ "Layout",
66
+ ["Navigation", "Footer", "ScrollToTop"],
67
+ "Components",
68
+ "Actions",
69
+ "Data Display",
70
+ "Examples",
71
+ ["Pages"],
72
+ ],
73
+ },
74
+ },
53
75
  },
54
76
  decorators: [
55
77
  (Story) => React.createElement(MemoryRouter, null, React.createElement(Story, null)),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibe-design-system",
3
- "version": "2.5.7",
3
+ "version": "2.5.9",
4
4
  "description": "Auto-generate design systems for vibe coding projects",
5
5
  "type": "module",
6
6
  "bin": {