@sio-group/form-react 0.1.3 → 0.3.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/CHANGELOG.md +12 -96
- package/README.md +2 -2
- package/package.json +3 -3
- package/src/components/Form.tsx +5 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 370b198: Update render method to render buttons outside of container
|
|
8
|
+
|
|
9
|
+
## 0.2.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- d1d7d64: Upgrade react peer dependancy
|
|
14
|
+
|
|
3
15
|
## 0.1.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -30,99 +42,3 @@
|
|
|
30
42
|
All notable changes to this project will be documented in this file.
|
|
31
43
|
|
|
32
44
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
33
|
-
|
|
34
|
-
## [Unreleased]
|
|
35
|
-
|
|
36
|
-
### Added
|
|
37
|
-
|
|
38
|
-
- Initial release of `@sio-group/form-react` package
|
|
39
|
-
- **Form Component** - Complete form renderer with layout support
|
|
40
|
-
- **useForm Hook** - Central form state management
|
|
41
|
-
- **Individual Field Components**
|
|
42
|
-
- **Button Components**
|
|
43
|
-
- **Layout System**
|
|
44
|
-
- **Form State Tracking**
|
|
45
|
-
- **File Upload Features**
|
|
46
|
-
|
|
47
|
-
### Changed
|
|
48
|
-
|
|
49
|
-
- N/A (initial release)
|
|
50
|
-
|
|
51
|
-
### Deprecated
|
|
52
|
-
|
|
53
|
-
- N/A (initial release)
|
|
54
|
-
|
|
55
|
-
### Removed
|
|
56
|
-
|
|
57
|
-
- N/A (initial release)
|
|
58
|
-
|
|
59
|
-
### Fixed
|
|
60
|
-
|
|
61
|
-
- N/A (initial release)
|
|
62
|
-
|
|
63
|
-
### Security
|
|
64
|
-
|
|
65
|
-
- N/A (initial release)
|
|
66
|
-
- ***
|
|
67
|
-
|
|
68
|
-
## [0.1.0] - 2024-03-13
|
|
69
|
-
|
|
70
|
-
### Added
|
|
71
|
-
|
|
72
|
-
- Initial beta release
|
|
73
|
-
- Complete form rendering system
|
|
74
|
-
- All core field components
|
|
75
|
-
- useForm hook with full state management
|
|
76
|
-
- Responsive layout grid
|
|
77
|
-
- Button system with variants and colors
|
|
78
|
-
- File upload handling
|
|
79
|
-
- Comprehensive test coverage
|
|
80
|
-
- Documentation with examples
|
|
81
|
-
- TypeScript definitions
|
|
82
|
-
|
|
83
|
-
---
|
|
84
|
-
|
|
85
|
-
## Versioning Guidelines
|
|
86
|
-
|
|
87
|
-
This project follows [SemVer](https://semver.org/):
|
|
88
|
-
|
|
89
|
-
- **MAJOR** version for incompatible API changes
|
|
90
|
-
- **MINOR** version for new functionality in a backward compatible manner
|
|
91
|
-
- **PATCH** version for backward compatible bug fixes
|
|
92
|
-
|
|
93
|
-
## Release History
|
|
94
|
-
|
|
95
|
-
| Version | Date | Highlights |
|
|
96
|
-
| ------- | ---------- | -------------------- |
|
|
97
|
-
| 0.1.0 | 2024-03-13 | Initial beta release |
|
|
98
|
-
| 1.0.0 | TBD | Stable release |
|
|
99
|
-
|
|
100
|
-
---
|
|
101
|
-
|
|
102
|
-
## Upgrade Guides
|
|
103
|
-
|
|
104
|
-
### From 0.x to 1.x
|
|
105
|
-
|
|
106
|
-
_Coming soon_
|
|
107
|
-
|
|
108
|
-
---
|
|
109
|
-
|
|
110
|
-
## Migration Notes
|
|
111
|
-
|
|
112
|
-
### Beta Users
|
|
113
|
-
|
|
114
|
-
If you're using the beta version (0.x), please note that the API is considered stable, but minor changes may occur before the 1.0.0 release. Check the release notes for any breaking changes.
|
|
115
|
-
|
|
116
|
-
### Breaking Changes in Future Versions
|
|
117
|
-
|
|
118
|
-
- **1.0.0** - First stable release (no breaking changes planned)
|
|
119
|
-
|
|
120
|
-
---
|
|
121
|
-
|
|
122
|
-
## Dependencies
|
|
123
|
-
|
|
124
|
-
### Internal Dependencies
|
|
125
|
-
|
|
126
|
-
- `@sio-group/form-types` - Shared type definitions
|
|
127
|
-
- `@sio-group/form-builder` - Form structure builder (optional)
|
|
128
|
-
- `@sio-group/form-validation` - Validation rules (optional)
|
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sio-group/form-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"@sio-group/form-validation": "0.1.3"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"react": "^
|
|
35
|
-
"react-dom": "^
|
|
34
|
+
"react": "^19",
|
|
35
|
+
"react-dom": "^19"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@vitejs/plugin-react": "^4",
|
package/src/components/Form.tsx
CHANGED
|
@@ -155,9 +155,11 @@ export const Form = ({
|
|
|
155
155
|
};
|
|
156
156
|
|
|
157
157
|
return (
|
|
158
|
-
<
|
|
159
|
-
|
|
158
|
+
<form className={className} style={style} noValidate>
|
|
159
|
+
<Container>
|
|
160
|
+
{renderFields()}
|
|
161
|
+
</Container>
|
|
160
162
|
{renderButtons()}
|
|
161
|
-
</
|
|
163
|
+
</form>
|
|
162
164
|
);
|
|
163
165
|
}
|