bejamas 0.0.0-canary.752bdde → 0.0.0-canary.76df0ee

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/README.md CHANGED
@@ -8,6 +8,8 @@ Use the `init` command to initialize dependencies for a new project.
8
8
 
9
9
  The `init` command installs dependencies, adds the `cn` util, and configures CSS variables for the project.
10
10
 
11
+ Bejamas currently runs exact `shadcn` v4.6.0 for managed CLI commands. The Bejamas-specific `init`, `apply`, and `preset` flows preserve Astro preset switching, style support, and the legacy `--base-color` option.
12
+
11
13
  ```bash
12
14
  npx bejamas init
13
15
  ```
@@ -26,14 +28,40 @@ npx bejamas add [component]
26
28
 
27
29
  ```bash
28
30
  npx bejamas add button
31
+ npx bejamas add navigation-headers-01
32
+ npx bejamas add @bejamas/footer-01
29
33
  ```
30
34
 
31
- You can also run the command without any arguments to view a list of all available components:
35
+ Blocks are installed under `src/components/blocks/<block-id>` together with
36
+ their required UI components. In a monorepo, run the command from the app so
37
+ the block lands in the app while its UI dependencies go to the shared UI
38
+ package.
39
+
40
+ You can also run the command without any arguments to view a list of all available components and blocks:
32
41
 
33
42
  ```bash
34
43
  npx bejamas add
35
44
  ```
36
45
 
46
+ ## apply
47
+
48
+ Use the `apply` command to switch an existing project to a new preset.
49
+
50
+ ```bash
51
+ npx bejamas apply --preset <preset>
52
+ npx bejamas apply <preset> --only theme,font
53
+ ```
54
+
55
+ ## preset
56
+
57
+ Use the `preset` command to decode preset codes, create share URLs, open presets in the builder, or resolve the active preset from an existing project.
58
+
59
+ ```bash
60
+ npx bejamas preset decode <preset>
61
+ npx bejamas preset url <preset>
62
+ npx bejamas preset resolve
63
+ ```
64
+
37
65
  ## Documentation
38
66
 
39
67
  Visit https://ui.bejamas.com/docs/cli to view the documentation.