@the12company/ui 0.0.1 → 0.1.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/README.md +11 -23
- package/dist/index.d.ts +747 -5
- package/dist/index.js +3476 -5
- package/dist/index.js.map +1 -1
- package/package.json +58 -12
package/README.md
CHANGED
|
@@ -1,42 +1,32 @@
|
|
|
1
1
|
# `@the12company/ui`
|
|
2
2
|
|
|
3
|
-
Shared **tokens + components** (Vite / Next). Lives in
|
|
3
|
+
Shared **tokens + components** (Vite / Next). Lives in `packages/ui`.
|
|
4
4
|
|
|
5
5
|
## Local use (this repo)
|
|
6
6
|
|
|
7
|
-
|
|
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
|
-
##
|
|
19
|
+
## Republish after changes
|
|
18
20
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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:
|
|
29
|
+
Or tag: `git tag ui-v0.1.1 && git push origin ui-v0.1.1`
|
|
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
|
-
|
|
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.).
|