trinil-react 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.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +11 -40
  3. package/dist/index.js +765 -765
  4. package/package.json +4 -2
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Trinil Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,23 +1,11 @@
1
1
  # trinil-react
2
2
 
3
- React 16.8+ icon components from the Trinil library. Tree-shakeable, zero dependencies.
3
+ React 16.8+ icon components. Tree-shakeable, zero dependencies, 765 outline icons with locked stroke styles.
4
4
 
5
5
  ## Installation
6
6
 
7
- These packages are not yet published to npm. To use during development:
8
-
9
- ```json
10
- {
11
- "dependencies": {
12
- "trinil-react": "file:../trinil/packages/trinil-react"
13
- }
14
- }
15
- ```
16
-
17
- Or after building, import from the local repo:
18
-
19
7
  ```bash
20
- npm install ../../trinil/packages/trinil-react
8
+ npm install trinil-react
21
9
  ```
22
10
 
23
11
  ## Quick Start
@@ -38,23 +26,21 @@ export function App() {
38
26
 
39
27
  ## Props
40
28
 
41
- All icon components accept:
42
-
43
29
  | Prop | Type | Default | Description |
44
30
  |------|------|---------|-------------|
45
31
  | `size` | `number` | `24` | Width/height in pixels |
46
- | `color` | `string` | `"currentColor"` | Stroke color |
47
- | `className` | `string` | - | CSS classes |
48
- | `title` | `string` | - | SVG `<title>` (accessibility) |
49
- | `ariaLabel` | `string` | - | `aria-label` attribute |
32
+ | `color` | `string` | `"currentColor"` | Stroke color (inherits from CSS) |
33
+ | `className` | `string` | | CSS classes |
34
+ | `title` | `string` | | SVG `<title>` (accessibility) |
35
+ | `ariaLabel` | `string` | | `aria-label` attribute |
50
36
 
51
37
  ## Styling
52
38
 
53
- Icons inherit color from CSS:
39
+ Inherit color from CSS:
54
40
 
55
41
  ```tsx
56
42
  <div style={{ color: 'blue' }}>
57
- <ArrowDown /> {/* Renders in blue */}
43
+ <ArrowDown /> {/* Blue */}
58
44
  </div>
59
45
  ```
60
46
 
@@ -64,34 +50,19 @@ Or set directly:
64
50
  <ArrowDown color="#ff5733" size={40} className="my-icon" />
65
51
  ```
66
52
 
67
- ## Design
68
-
69
- ⚠️ **Stroke properties are locked** (stroke-width, stroke-linecap, stroke-linejoin). This ensures visual consistency.
70
-
71
- Only `size`, `color`, `className`, `title`, and `ariaLabel` can be customized.
72
-
73
53
  ## Accessibility
74
54
 
75
- Always provide `ariaLabel` or `title` for standalone icons:
55
+ Add `ariaLabel` or `title` for standalone icons:
76
56
 
77
57
  ```tsx
78
58
  <button>
79
59
  <ArrowDown ariaLabel="Scroll down" />
80
60
  </button>
81
-
82
- <ArrowDown title="Download" />
83
61
  ```
84
62
 
85
- ## All Available Icons
86
-
87
- 765 icons including:
88
- - Navigation: ArrowDown, ArrowUp, ChevronLeft, etc.
89
- - UI: Check, Cross, AlertCircle, etc.
90
- - Media: Play, Pause, Volume, etc.
91
- - Social: Heart, Share, etc.
92
- - And many more...
63
+ ## Note
93
64
 
94
- See the repository for a complete list.
65
+ Stroke properties (`stroke-width`, `stroke-linecap`, `stroke-linejoin`) are **locked** to ensure visual consistency. Only `size`, `color`, `className`, `title`, and `ariaLabel` are customizable.
95
66
 
96
67
  ## License
97
68