@notionhive/contacts 0.1.0 → 0.1.2

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/README.md +106 -0
  2. package/package.json +4 -3
package/README.md ADDED
@@ -0,0 +1,106 @@
1
+ # @notionhive/contacts
2
+
3
+ Copy **editable contact sections** into your Next.js project — source you own and can change locally, not a black-box `node_modules` import.
4
+
5
+ Works like `shadcn add`: run once per component to eject files into your app.
6
+
7
+ ## Requirements
8
+
9
+ Your project needs:
10
+
11
+ - **Node.js** 18+
12
+ - **Next.js** 16+
13
+ - **Tailwind CSS** v4
14
+ - **prop-types**
15
+
16
+ Path alias `@/` should resolve to your project root (default in Next.js).
17
+
18
+ ## Quick start
19
+
20
+ ```bash
21
+ npx @notionhive/contacts add contact-01
22
+ ```
23
+
24
+ Target a specific app directory:
25
+
26
+ ```bash
27
+ npx @notionhive/contacts add contact-01 --dir ./my-app
28
+ ```
29
+
30
+ List all available contact sections:
31
+
32
+ ```bash
33
+ npx @notionhive/contacts list
34
+ ```
35
+
36
+ ## Use in your app
37
+
38
+ ```jsx
39
+ import { Contact01 } from "@/components/Contact01";
40
+
41
+ export default function Page() {
42
+ return <Contact01 />;
43
+ }
44
+ ```
45
+
46
+ Props are defined in `Contact01.propTypes.js` inside the copied folder. Override any prop in JSX or spread defaults from that file.
47
+
48
+ ## What gets copied
49
+
50
+ | Path | Description |
51
+ |------|-------------|
52
+ | `components/<Name>/` | Component source + `propTypes` |
53
+ | `components/_shared/` | SafeImage, hooks, molecules (only what the component needs) |
54
+ | `public/contact/...` | Static assets when the design uses them |
55
+
56
+ Re-run with `--force` to overwrite existing files:
57
+
58
+ ```bash
59
+ npx @notionhive/contacts add contact-01 --force
60
+ ```
61
+
62
+ ## Available contact sections
63
+
64
+ - `contact-01` → `Contact01`
65
+ - `contact-02` → `Contact02`
66
+ - `contact-03` → `Contact03`
67
+ - `contact-04` → `Contact04`
68
+ - `contact-05` → `Contact05`
69
+ - `contact-06` → `Contact06`
70
+ - `contact-07` → `Contact07`
71
+ - `contact-08` → `Contact08`
72
+ - `contact-09` → `Contact09`
73
+ - `contact-10` → `Contact10`
74
+
75
+ ## CLI reference
76
+
77
+ ```bash
78
+ npx @notionhive/contacts add <contact section-id> [--dir <path>] [--force]
79
+ npx @notionhive/contacts list
80
+ npx @notionhive/contacts --help
81
+ ```
82
+
83
+ | Flag | Description |
84
+ |------|-------------|
85
+ | `--dir` | Target project root (default: current directory) |
86
+ | `--force` | Overwrite files that already exist |
87
+
88
+ ## Other categories
89
+
90
+ | Package | Example |
91
+ |---------|---------|
92
+ | `@notionhive/heroes` | `npx @notionhive/heroes add hero-05` |
93
+ | `@notionhive/menus` | `npx @notionhive/menus add menu-01` |
94
+ | `@notionhive/about` | `npx @notionhive/about add about-01` |
95
+ | `@notionhive/services` | `npx @notionhive/services add service-01` |
96
+ | `@notionhive/testimonials` | `npx @notionhive/testimonials add testimonial-01` |
97
+ | `@notionhive/footers` | `npx @notionhive/footers add footer-07` |
98
+ | `@notionhive/ctas` | `npx @notionhive/ctas add cta-03` |
99
+
100
+ ## Browse components
101
+
102
+ See the Notionhive component library Storybook for previews, props, and eject commands for every variant.
103
+
104
+ ## License
105
+
106
+ UNLICENSED — internal Notionhive use unless otherwise specified.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@notionhive/contacts",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Add editable contact sections into your Next.js project.",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {
@@ -10,13 +10,14 @@
10
10
  "bin",
11
11
  "registry",
12
12
  "templates",
13
- "category.config.json"
13
+ "category.config.json",
14
+ "README.md"
14
15
  ],
15
16
  "scripts": {
16
17
  "prepublishOnly": "node ../../scripts/sync-templates.js"
17
18
  },
18
19
  "dependencies": {
19
- "@notionhive/core": "0.1.0"
20
+ "@notionhive/core": "0.1.2"
20
21
  },
21
22
  "engines": {
22
23
  "node": ">=18"