trinil-react 1.0.1 → 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 +10 -29
  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,8 +1,6 @@
1
1
  # trinil-react
2
2
 
3
- React 16.8+ icon components from the Trinil icon library. Tree-shakeable, zero dependencies, 765 beautifully designed outline icons.
4
-
5
- **Now available on npm!** → https://www.npmjs.com/package/trinil-react
3
+ React 16.8+ icon components. Tree-shakeable, zero dependencies, 765 outline icons with locked stroke styles.
6
4
 
7
5
  ## Installation
8
6
 
@@ -28,23 +26,21 @@ export function App() {
28
26
 
29
27
  ## Props
30
28
 
31
- All icon components accept:
32
-
33
29
  | Prop | Type | Default | Description |
34
30
  |------|------|---------|-------------|
35
31
  | `size` | `number` | `24` | Width/height in pixels |
36
- | `color` | `string` | `"currentColor"` | Stroke color |
37
- | `className` | `string` | - | CSS classes |
38
- | `title` | `string` | - | SVG `<title>` (accessibility) |
39
- | `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 |
40
36
 
41
37
  ## Styling
42
38
 
43
- Icons inherit color from CSS:
39
+ Inherit color from CSS:
44
40
 
45
41
  ```tsx
46
42
  <div style={{ color: 'blue' }}>
47
- <ArrowDown /> {/* Renders in blue */}
43
+ <ArrowDown /> {/* Blue */}
48
44
  </div>
49
45
  ```
50
46
 
@@ -54,34 +50,19 @@ Or set directly:
54
50
  <ArrowDown color="#ff5733" size={40} className="my-icon" />
55
51
  ```
56
52
 
57
- ## Design
58
-
59
- ⚠️ **Stroke properties are locked** (stroke-width, stroke-linecap, stroke-linejoin). This ensures visual consistency.
60
-
61
- Only `size`, `color`, `className`, `title`, and `ariaLabel` can be customized.
62
-
63
53
  ## Accessibility
64
54
 
65
- Always provide `ariaLabel` or `title` for standalone icons:
55
+ Add `ariaLabel` or `title` for standalone icons:
66
56
 
67
57
  ```tsx
68
58
  <button>
69
59
  <ArrowDown ariaLabel="Scroll down" />
70
60
  </button>
71
-
72
- <ArrowDown title="Download" />
73
61
  ```
74
62
 
75
- ## All Available Icons
76
-
77
- 765 icons including:
78
- - Navigation: ArrowDown, ArrowUp, ChevronLeft, etc.
79
- - UI: Check, Cross, AlertCircle, etc.
80
- - Media: Play, Pause, Volume, etc.
81
- - Social: Heart, Share, etc.
82
- - And many more...
63
+ ## Note
83
64
 
84
- 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.
85
66
 
86
67
  ## License
87
68