@the12company/ui 0.0.1 → 0.1.1

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
@@ -1,42 +1,32 @@
1
1
  # `@the12company/ui`
2
2
 
3
- Shared **tokens + components** (Vite / Next). Lives in this monorepo at `packages/ui`.
3
+ Shared **tokens + components** (Vite / Next). Lives in `packages/ui`.
4
4
 
5
5
  ## Local use (this repo)
6
6
 
7
- Resolved via Vite/TS aliases — no publish needed day to day.
7
+ Vite/TS aliases resolve to source — no publish needed day to day.
8
8
 
9
9
  ```tsx
10
- import { Button } from "@the12company/ui";
10
+ import { Button, Card } from "@the12company/ui";
11
+ // or keep existing paths:
12
+ import { Button } from "@/components/ui/button";
11
13
  ```
12
14
 
13
15
  ```css
14
16
  @import "@the12company/ui/tokens/theme.css";
15
17
  ```
16
18
 
17
- ## Per-product colors
19
+ ## Republish after changes
18
20
 
19
- ```css
20
- :root {
21
- --primary: 160 84% 39%;
22
- --primary-foreground: 0 0% 100%;
23
- }
24
- ```
25
-
26
- ## First publish (checklist)
27
-
28
- 1. npm org **`the12company`** exists and you have 2FA on.
29
- 2. Token created (e.g. named `capivara-ui-kit-token`) — copy the **value**, not only the name.
30
- 3. GitHub → this repo → **Settings → Secrets and variables → Actions → New repository secret**
31
- - Name: `NPM_TOKEN`
32
- - Value: paste the token
33
- 4. From the repo root (logged in / token configured):
21
+ 1. Edit components under `packages/ui/src/`
22
+ 2. Bump version in `packages/ui/package.json` (e.g. `0.1.0` → `0.1.1`)
23
+ 3. From repo root:
34
24
 
35
25
  ```bash
36
26
  npm run publish:ui
37
27
  ```
38
28
 
39
- Or: Actions **Publish @the12company/ui** Run workflow.
29
+ (`NPM_TOKEN` / `npm login` is only required for this publish step.)
40
30
 
41
31
  ## Install in another repo
42
32
 
@@ -44,6 +34,4 @@ Or: Actions → **Publish @the12company/ui** → Run workflow.
44
34
  npm install @the12company/ui
45
35
  ```
46
36
 
47
- Peer deps: `react`, `react-dom`, `@radix-ui/react-slot`, `class-variance-authority`, `clsx`, `tailwind-merge`.
48
-
49
- > Free npm orgs only allow **public** packages (`--access public`). For private packages you’d need a paid npm plan or GitHub Packages.
37
+ Install peer deps your app needs (React, Radix primitives used by the components you import, etc.).