@zentrades-ui/components 0.2.0 → 0.2.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/CHANGELOG.md +53 -0
- package/package.json +6 -4
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# @zentrades-ui/components
|
|
2
|
+
|
|
3
|
+
## 0.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fixed npm package to include README.md and CHANGELOG.md files
|
|
8
|
+
|
|
9
|
+
## 0.2.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- **Standardized form component API**: All form components now share a consistent API for labels, validation, and helper text.
|
|
14
|
+
|
|
15
|
+
Common props across Input, TextArea, Checkbox, and Switch:
|
|
16
|
+
- `label` - Label text displayed with the input
|
|
17
|
+
- `required` - Shows required indicator (*)
|
|
18
|
+
- `helperText` - Helper text displayed below the input
|
|
19
|
+
- `error` - Error state styling
|
|
20
|
+
- `errorMessage` - Error message (replaces helperText when error is true)
|
|
21
|
+
|
|
22
|
+
- **Enhanced Checkbox component**:
|
|
23
|
+
- Added `required`, `error`, `errorMessage`, and `helperText` props
|
|
24
|
+
- Added `aria-invalid` for accessibility
|
|
25
|
+
- Consistent styling with other form components
|
|
26
|
+
|
|
27
|
+
- **Enhanced Switch component**:
|
|
28
|
+
- Added `label` prop for displaying text next to the switch
|
|
29
|
+
- Added `required`, `error`, `errorMessage`, and `helperText` props
|
|
30
|
+
- Improved accessibility with proper label association
|
|
31
|
+
|
|
32
|
+
- **Comprehensive documentation**: Added detailed README with:
|
|
33
|
+
- Usage examples for all components
|
|
34
|
+
- Form component API reference table
|
|
35
|
+
- Code examples for Input, TextArea, Checkbox, Switch, Select
|
|
36
|
+
- Layout components (Stack, Inline, Box)
|
|
37
|
+
- Feedback components (Button, Toast, Dialog)
|
|
38
|
+
- Data display (Avatar, Badge, Chip)
|
|
39
|
+
- Navigation (Tabs, Breadcrumb, Menu)
|
|
40
|
+
- Overlay components (Drawer, Popover, Tooltip)
|
|
41
|
+
- Loading states (Spinner, Skeleton)
|
|
42
|
+
- Accessibility information
|
|
43
|
+
|
|
44
|
+
### Deprecations
|
|
45
|
+
|
|
46
|
+
- `mandatory` prop on Input and TextArea is deprecated. Use `required` instead.
|
|
47
|
+
- `description` prop on Checkbox is deprecated. Use `helperText` instead.
|
|
48
|
+
|
|
49
|
+
## 0.1.7
|
|
50
|
+
|
|
51
|
+
- Initial stable release
|
|
52
|
+
- Core component library with Radix UI primitives
|
|
53
|
+
- Vanilla Extract CSS-in-JS styling
|
package/package.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zentrades-ui/components",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
|
-
"dist"
|
|
8
|
+
"dist",
|
|
9
|
+
"README.md",
|
|
10
|
+
"CHANGELOG.md"
|
|
9
11
|
],
|
|
10
12
|
"publishConfig": {
|
|
11
13
|
"access": "public"
|
|
@@ -54,8 +56,8 @@
|
|
|
54
56
|
"@types/react": "^18.3.12",
|
|
55
57
|
"tsup": "^8.5.0",
|
|
56
58
|
"typescript": "^5.9.3",
|
|
57
|
-
"@zentrades-ui/
|
|
58
|
-
"@zentrades-ui/
|
|
59
|
+
"@zentrades-ui/tokens": "0.2.1",
|
|
60
|
+
"@zentrades-ui/theme": "0.2.1"
|
|
59
61
|
},
|
|
60
62
|
"scripts": {
|
|
61
63
|
"build": "tsup"
|