@larose-ui/forms 0.1.0 → 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 +56 -0
- package/package.json +12 -7
package/README.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# @larose-ui/forms
|
|
2
|
+
|
|
3
|
+
> Schema-driven forms with validation and conditional fields.
|
|
4
|
+
|
|
5
|
+
Part of **[laRose UI](https://github.com/hamdymohamedak/larose-ui)** — the UI Operating System for modern SaaS applications.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @larose-ui/forms
|
|
11
|
+
# or
|
|
12
|
+
pnpm add @larose-ui/forms
|
|
13
|
+
# or
|
|
14
|
+
yarn add @larose-ui/forms
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
**Peer dependency:** `react >=18`
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
## Quick start
|
|
22
|
+
|
|
23
|
+
```tsx
|
|
24
|
+
import { Form } from '@larose-ui/forms';
|
|
25
|
+
|
|
26
|
+
<Form
|
|
27
|
+
schema={{ id: 'user', fields: [{ name: 'email', type: 'text', label: 'Email', required: true }] }}
|
|
28
|
+
onSubmit={async (values) => saveUser(values)}
|
|
29
|
+
/>
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Features
|
|
33
|
+
|
|
34
|
+
- Declarative field schemas
|
|
35
|
+
- Conditional visibility (`showWhen`)
|
|
36
|
+
- Observability integration for funnel metrics
|
|
37
|
+
|
|
38
|
+
## Related packages
|
|
39
|
+
|
|
40
|
+
| Layer | Packages |
|
|
41
|
+
|-------|----------|
|
|
42
|
+
| Foundation | `@larose-ui/core`, `@larose-ui/tokens`, `@larose-ui/react` |
|
|
43
|
+
| Runtime | `@larose-ui/runtime`, `@larose-ui/network`, `@larose-ui/offline` |
|
|
44
|
+
| Intelligence | `@larose-ui/data`, `@larose-ui/forms`, `@larose-ui/permissions` |
|
|
45
|
+
| Platform | `@larose-ui/observability`, `@larose-ui/enterprise`, `@larose-ui/ai` |
|
|
46
|
+
|
|
47
|
+
## Documentation
|
|
48
|
+
|
|
49
|
+
- [Monorepo README](https://github.com/hamdymohamedak/larose-ui#readme)
|
|
50
|
+
- [Architecture](https://github.com/hamdymohamedak/larose-ui/blob/main/docs/architecture/ARCHITECTURE.md)
|
|
51
|
+
- [Roadmap](https://github.com/hamdymohamedak/larose-ui/blob/main/docs/ROADMAP.md)
|
|
52
|
+
- [Report an issue](https://github.com/hamdymohamedak/larose-ui/issues)
|
|
53
|
+
|
|
54
|
+
## License
|
|
55
|
+
|
|
56
|
+
MIT © [laRose UI](https://github.com/hamdymohamedak/larose-ui)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@larose-ui/forms",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Schema-driven forms for laRose UI platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -13,13 +13,14 @@
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"files": [
|
|
16
|
-
"dist"
|
|
16
|
+
"dist",
|
|
17
|
+
"README.md"
|
|
17
18
|
],
|
|
18
19
|
"dependencies": {
|
|
19
|
-
"@larose-ui/core": "0.1.
|
|
20
|
-
"@larose-ui/data": "0.1.
|
|
21
|
-
"@larose-ui/observability": "0.1.
|
|
22
|
-
"@larose-ui/react": "0.1.
|
|
20
|
+
"@larose-ui/core": "0.1.1",
|
|
21
|
+
"@larose-ui/data": "0.1.1",
|
|
22
|
+
"@larose-ui/observability": "0.1.1",
|
|
23
|
+
"@larose-ui/react": "0.1.1"
|
|
23
24
|
},
|
|
24
25
|
"peerDependencies": {
|
|
25
26
|
"react": ">=18"
|
|
@@ -42,7 +43,7 @@
|
|
|
42
43
|
},
|
|
43
44
|
"repository": {
|
|
44
45
|
"type": "git",
|
|
45
|
-
"url": "https://github.com/larose-ui
|
|
46
|
+
"url": "git+https://github.com/hamdymohamedak/larose-ui.git",
|
|
46
47
|
"directory": "packages/forms"
|
|
47
48
|
},
|
|
48
49
|
"keywords": [
|
|
@@ -52,6 +53,10 @@
|
|
|
52
53
|
"design-system",
|
|
53
54
|
"saas"
|
|
54
55
|
],
|
|
56
|
+
"homepage": "https://github.com/hamdymohamedak/larose-ui/blob/main/packages/forms#readme",
|
|
57
|
+
"bugs": {
|
|
58
|
+
"url": "https://github.com/hamdymohamedak/larose-ui/issues"
|
|
59
|
+
},
|
|
55
60
|
"scripts": {
|
|
56
61
|
"build": "tsup",
|
|
57
62
|
"dev": "tsup --watch",
|