domify-ui 1.0.0 → 1.0.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.
- package/README.md +74 -0
- package/package.json +16 -3
- package/tsup.config.ts +16 -0
package/README.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# domify-ui
|
|
2
|
+
|
|
3
|
+
Shared UI components library for Domify frontend applications.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install domify-ui
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```tsx
|
|
14
|
+
import { Button, Input } from 'domify-ui'
|
|
15
|
+
|
|
16
|
+
function MyComponent() {
|
|
17
|
+
return (
|
|
18
|
+
<div>
|
|
19
|
+
<Input placeholder="Enter text" />
|
|
20
|
+
<Button>Click me</Button>
|
|
21
|
+
</div>
|
|
22
|
+
)
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Components
|
|
27
|
+
|
|
28
|
+
### Button
|
|
29
|
+
A customizable button component with variants and sizes.
|
|
30
|
+
|
|
31
|
+
```tsx
|
|
32
|
+
<Button variant="primary" size="md">Primary Button</Button>
|
|
33
|
+
<Button variant="outline">Outline Button</Button>
|
|
34
|
+
<Button variant="ghost">Ghost Button</Button>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Input
|
|
38
|
+
A styled input component.
|
|
39
|
+
|
|
40
|
+
```tsx
|
|
41
|
+
<Input placeholder="Enter your name" />
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Development
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
# Install dependencies
|
|
48
|
+
npm install
|
|
49
|
+
|
|
50
|
+
# Start development mode
|
|
51
|
+
npm run dev
|
|
52
|
+
|
|
53
|
+
# Build for production
|
|
54
|
+
npm run build
|
|
55
|
+
|
|
56
|
+
# Type checking
|
|
57
|
+
npm run type-check
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Publishing
|
|
61
|
+
|
|
62
|
+
To publish a new version:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
# Update version
|
|
66
|
+
npm version patch|minor|major
|
|
67
|
+
|
|
68
|
+
# Build and publish
|
|
69
|
+
npm publish
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## License
|
|
73
|
+
|
|
74
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "domify-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Domify - Shared UI Library",
|
|
6
6
|
"author": "Hilthermann Viegas",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"ui",
|
|
11
11
|
"library"
|
|
12
12
|
],
|
|
13
|
-
"main": "./
|
|
14
|
-
"types": "./
|
|
13
|
+
"main": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"next": "^15.1.0",
|
|
17
17
|
"react": "^19.0.0",
|
|
@@ -21,5 +21,18 @@
|
|
|
21
21
|
"clsx": "^2.1.1",
|
|
22
22
|
"lucide-react": "^0.460.0",
|
|
23
23
|
"tailwind-merge": "^2.5.4"
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "tsup",
|
|
27
|
+
"dev": "tsup --watch",
|
|
28
|
+
"type-check": "tsc --noEmit"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@types/react": "^19.0.0",
|
|
32
|
+
"@types/react-dom": "^19.0.0",
|
|
33
|
+
"react": "^19.0.0",
|
|
34
|
+
"react-dom": "^19.0.0",
|
|
35
|
+
"tsup": "^8.3.0",
|
|
36
|
+
"typescript": "^5.6.3"
|
|
24
37
|
}
|
|
25
38
|
}
|
package/tsup.config.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineConfig } from 'tsup'
|
|
2
|
+
|
|
3
|
+
export default defineConfig({
|
|
4
|
+
entry: ['src/index.ts'],
|
|
5
|
+
format: ['esm', 'cjs'],
|
|
6
|
+
dts: true,
|
|
7
|
+
splitting: false,
|
|
8
|
+
sourcemap: true,
|
|
9
|
+
clean: true,
|
|
10
|
+
external: ['react', 'react-dom'],
|
|
11
|
+
outExtension({ format }) {
|
|
12
|
+
return {
|
|
13
|
+
js: format === 'esm' ? '.js' : '.cjs',
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
})
|