@hugeicons/core-free-icons 3.1.1 → 3.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/README.md +41 -87
- package/dist/cjs/index.js +280 -7
- package/dist/cjs/index.min.js +1 -1
- package/dist/esm/Activity05Icon.js +7 -0
- package/dist/esm/Activity05Icon.js.map +1 -0
- package/dist/esm/ActivityCircleIcon.js +7 -0
- package/dist/esm/ActivityCircleIcon.js.map +1 -0
- package/dist/esm/ActivitySparkIcon.js +8 -0
- package/dist/esm/ActivitySparkIcon.js.map +1 -0
- package/dist/esm/AdjustPositionIcon.js +9 -0
- package/dist/esm/AdjustPositionIcon.js.map +1 -0
- package/dist/esm/ArrowUpRightStackIcon.js +8 -0
- package/dist/esm/ArrowUpRightStackIcon.js.map +1 -0
- package/dist/esm/Calendar05Icon.js +9 -0
- package/dist/esm/Calendar05Icon.js.map +1 -0
- package/dist/esm/CalendarAnalysisIcon.js +9 -0
- package/dist/esm/CalendarAnalysisIcon.js.map +1 -0
- package/dist/esm/CalendarSyncIcon.js +9 -0
- package/dist/esm/CalendarSyncIcon.js.map +1 -0
- package/dist/esm/ChartAnalysisIcon.js +7 -0
- package/dist/esm/ChartAnalysisIcon.js.map +1 -0
- package/dist/esm/ChartCandleIcon.js +9 -0
- package/dist/esm/ChartCandleIcon.js.map +1 -0
- package/dist/esm/ChevronDoubleCloseIcon.js +7 -0
- package/dist/esm/ChevronDoubleCloseIcon.js.map +1 -0
- package/dist/esm/ClockAddIcon.js +8 -0
- package/dist/esm/ClockAddIcon.js.map +1 -0
- package/dist/esm/CollapseIcon.js +7 -0
- package/dist/esm/CollapseIcon.js.map +1 -0
- package/dist/esm/ElectricityStackIcon.js +8 -0
- package/dist/esm/ElectricityStackIcon.js.map +1 -0
- package/dist/esm/ExchangeBitcoinIcon.js +12 -0
- package/dist/esm/ExchangeBitcoinIcon.js.map +1 -0
- package/dist/esm/ExpandIcon.js +7 -0
- package/dist/esm/ExpandIcon.js.map +1 -0
- package/dist/esm/FirePitIcon.js +4 -4
- package/dist/esm/GoldBuyIcon.js +9 -0
- package/dist/esm/GoldBuyIcon.js.map +1 -0
- package/dist/esm/GoldSellIcon.js +8 -0
- package/dist/esm/GoldSellIcon.js.map +1 -0
- package/dist/esm/MoneyLockIcon.js +12 -0
- package/dist/esm/MoneyLockIcon.js.map +1 -0
- package/dist/esm/NextWeekIcon.js +8 -0
- package/dist/esm/NextWeekIcon.js.map +1 -0
- package/dist/esm/OptionsCallIcon.js +7 -0
- package/dist/esm/OptionsCallIcon.js.map +1 -0
- package/dist/esm/PlusMinus03Icon.js +8 -0
- package/dist/esm/PlusMinus03Icon.js.map +1 -0
- package/dist/esm/ProgressIcon.js +1 -1
- package/dist/esm/Radar03Icon.js +8 -0
- package/dist/esm/Radar03Icon.js.map +1 -0
- package/dist/esm/RupeeShieldIcon.js +9 -0
- package/dist/esm/RupeeShieldIcon.js.map +1 -0
- package/dist/esm/SafeBoxIcon.js +8 -0
- package/dist/esm/SafeBoxIcon.js.map +1 -0
- package/dist/esm/Scroll01Icon.js +10 -0
- package/dist/esm/Scroll01Icon.js.map +1 -0
- package/dist/esm/SecurityWarningIcon.js +8 -0
- package/dist/esm/SecurityWarningIcon.js.map +1 -0
- package/dist/esm/Shapes01Icon.js +8 -0
- package/dist/esm/Shapes01Icon.js.map +1 -0
- package/dist/esm/ShrinkDotIcon.js +10 -0
- package/dist/esm/ShrinkDotIcon.js.map +1 -0
- package/dist/esm/SquareFIcon.js +8 -0
- package/dist/esm/SquareFIcon.js.map +1 -0
- package/dist/esm/UnfoldMoreDownIcon.js +7 -0
- package/dist/esm/UnfoldMoreDownIcon.js.map +1 -0
- package/dist/esm/UnfoldMoreIcon.js +2 -2
- package/dist/esm/UnfoldMoreUpIcon.js +7 -0
- package/dist/esm/UnfoldMoreUpIcon.js.map +1 -0
- package/dist/esm/ViewAgendaIcon.js +7 -0
- package/dist/esm/ViewAgendaIcon.js.map +1 -0
- package/dist/esm/index.js +33 -0
- package/dist/esm/index.min.js +1 -1
- package/dist/esm/loader.native.js +34 -1
- package/dist/esm/loader.node.js +34 -1
- package/dist/esm/loader.web.js +34 -1
- package/dist/types/index.d.ts +67 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,95 +1,52 @@
|
|
|
1
1
|
# @hugeicons/core-free-icons
|
|
2
2
|
|
|
3
|
-
> Hugeicons
|
|
3
|
+
> Hugeicons Core Free Icons Package - Beautiful and customizable icons for your applications
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Hugeicons is a large icon set for modern web and mobile apps. The free package includes 4,600+ Stroke Rounded icons across 59 categories. The Pro package provides 46,000+ icons across 10 styles with multicolor support for Bulk, Duotone, and Twotone styles.
|
|
8
|
-
|
|
9
|
-
## How It Works
|
|
5
|
+

|
|
10
6
|
|
|
11
|
-
|
|
7
|
+
## What is Hugeicons?
|
|
12
8
|
|
|
13
|
-
|
|
14
|
-
|-----------|----------------|
|
|
15
|
-
| React | `@hugeicons/react` |
|
|
16
|
-
| React Native | `@hugeicons/react-native` |
|
|
17
|
-
| Vue | `@hugeicons/vue` |
|
|
18
|
-
| Angular | `@hugeicons/angular` |
|
|
19
|
-
| Svelte | `@hugeicons/svelte` |
|
|
9
|
+
Hugeicons is a comprehensive icon library designed for modern web and mobile applications. The free package includes 4,500+ carefully crafted icons in the Stroke Rounded style, while the pro version offers over 40,000+ icons across 9 unique styles.
|
|
20
10
|
|
|
21
11
|
### Key Highlights
|
|
22
|
-
|
|
23
|
-
- **
|
|
24
|
-
- **
|
|
25
|
-
- **
|
|
26
|
-
- **
|
|
27
|
-
- **TypeScript Support**: Full type definitions included
|
|
12
|
+
- **4,500+ Free Icons**: Extensive collection of Stroke Rounded icons covering essential UI elements, actions, and concepts
|
|
13
|
+
- **Pixel Perfect**: Every icon is crafted on a 24x24 pixel grid ensuring crisp, clear display at any size
|
|
14
|
+
- **Customizable**: Easily adjust colors, sizes, and styles to match your design needs
|
|
15
|
+
- **Tree-Shakeable**: Optimized for modern bundlers with automatic dead code elimination
|
|
16
|
+
- **Optimized Loading**: Individual icon imports reduce bundle size by 99%
|
|
28
17
|
- **Regular Updates**: New icons added regularly to keep up with evolving design trends
|
|
29
18
|
|
|
30
|
-
> **Looking for Pro Icons?** Check out our
|
|
19
|
+
> 📚 **Looking for Pro Icons?** Check out our comprehensive documentation at [docs.hugeicons.com](https://docs.hugeicons.com) for detailed information about pro icons, styles, and advanced usage.
|
|
31
20
|
|
|
32
|
-

|
|
33
22
|
|
|
34
23
|
## Installation
|
|
35
24
|
|
|
36
|
-
|
|
25
|
+
This is a core package that provides the raw icons. To use these icons in your project, you'll need to install both this package and the corresponding framework-specific package:
|
|
37
26
|
|
|
38
27
|
```bash
|
|
39
|
-
#
|
|
40
|
-
npm install @hugeicons/
|
|
41
|
-
|
|
42
|
-
#
|
|
43
|
-
npm install @hugeicons/react
|
|
44
|
-
|
|
45
|
-
#
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
#
|
|
49
|
-
npm install @hugeicons/angular
|
|
50
|
-
|
|
51
|
-
# Svelte
|
|
52
|
-
npm install @hugeicons/svelte @hugeicons/core-free-icons
|
|
28
|
+
# First, install the core package
|
|
29
|
+
npm install @hugeicons/core-free-icons
|
|
30
|
+
|
|
31
|
+
# Then install the framework-specific package
|
|
32
|
+
npm install @hugeicons/react # for React
|
|
33
|
+
# or
|
|
34
|
+
npm install @hugeicons/react-native # for React Native
|
|
35
|
+
# or
|
|
36
|
+
npm install @hugeicons/vue # for Vue
|
|
37
|
+
# or
|
|
38
|
+
npm install @hugeicons/angular # for Angular
|
|
39
|
+
# or
|
|
40
|
+
npm install @hugeicons/svelte # for Svelte
|
|
53
41
|
```
|
|
54
42
|
|
|
55
43
|
## Usage
|
|
56
44
|
|
|
57
|
-
### React Example
|
|
58
|
-
|
|
59
|
-
```jsx
|
|
60
|
-
import { HugeiconsIcon } from '@hugeicons/react';
|
|
61
|
-
import { SearchIcon } from '@hugeicons/core-free-icons';
|
|
62
|
-
|
|
63
|
-
function App() {
|
|
64
|
-
return (
|
|
65
|
-
<HugeiconsIcon
|
|
66
|
-
icon={SearchIcon}
|
|
67
|
-
size={24}
|
|
68
|
-
color="currentColor"
|
|
69
|
-
/>
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
### Vue Example
|
|
75
|
-
|
|
76
|
-
```vue
|
|
77
|
-
<template>
|
|
78
|
-
<HugeiconsIcon :icon="SearchIcon" :size="24" />
|
|
79
|
-
</template>
|
|
80
|
-
|
|
81
|
-
<script setup>
|
|
82
|
-
import { HugeiconsIcon } from '@hugeicons/vue';
|
|
83
|
-
import { SearchIcon } from '@hugeicons/core-free-icons';
|
|
84
|
-
</script>
|
|
85
|
-
```
|
|
86
|
-
|
|
87
45
|
### Import Methods
|
|
88
46
|
|
|
89
47
|
This package now supports multiple import methods for maximum flexibility:
|
|
90
48
|
|
|
91
49
|
#### 1. Static Import (Tree-shakeable)
|
|
92
|
-
|
|
93
50
|
Best for production builds when you know which icons you need:
|
|
94
51
|
|
|
95
52
|
```javascript
|
|
@@ -97,15 +54,13 @@ import { Home01Icon, User01Icon } from '@hugeicons/core-free-icons';
|
|
|
97
54
|
```
|
|
98
55
|
|
|
99
56
|
#### 2. Dynamic Import - Full Bundle
|
|
100
|
-
|
|
101
57
|
Loads the entire icon library (use when you need many icons dynamically):
|
|
102
58
|
|
|
103
59
|
```javascript
|
|
104
60
|
const { Home01Icon } = await import('@hugeicons/core-free-icons');
|
|
105
61
|
```
|
|
106
62
|
|
|
107
|
-
#### 3. Dynamic Import - Individual Icons
|
|
108
|
-
|
|
63
|
+
#### 3. Dynamic Import - Individual Icons (NEW ✨)
|
|
109
64
|
Loads only the specific icon you need (99% smaller bundle size):
|
|
110
65
|
|
|
111
66
|
```javascript
|
|
@@ -136,28 +91,27 @@ import { UserIcon, HomeIcon } from '@hugeicons/core-free-icons';
|
|
|
136
91
|
// Result: Only UserIcon and HomeIcon (~1.5KB) instead of entire library (~5MB)
|
|
137
92
|
```
|
|
138
93
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
94
|
+
**Requirements for tree-shaking:**
|
|
95
|
+
- Use a modern bundler (Webpack 5+, Rollup, Vite, Parcel)
|
|
96
|
+
- Ensure your bundler has tree-shaking enabled
|
|
97
|
+
- The package automatically sets `sideEffects: false` for optimal tree-shaking
|
|
143
98
|
|
|
144
99
|
## Features
|
|
145
100
|
|
|
146
|
-
- **Individual Icon Imports**: Load only what you need with 99% bundle size reduction
|
|
147
|
-
- **Tree-shakeable**: Optimized for modern bundlers
|
|
148
|
-
- **Multiple Import Methods**: Static, dynamic bundle, or dynamic individual
|
|
149
|
-
- **TypeScript Support**: Full type definitions included
|
|
150
|
-
- **Framework Agnostic**: Works with any JavaScript framework
|
|
151
|
-
- **Optimized Performance**: Lazy load icons on demand
|
|
152
|
-
- **Customizable**: Easy to style with CSS or inline styles
|
|
153
|
-
- **ESM & CommonJS**: Support for both module systems
|
|
154
|
-
- **Zero Dependencies**: No external dependencies
|
|
155
|
-
- **Regular Updates**: New icons added frequently
|
|
101
|
+
- 🎯 **Individual Icon Imports**: Load only what you need with 99% bundle size reduction
|
|
102
|
+
- 🌳 **Tree-shakeable**: Optimized for modern bundlers
|
|
103
|
+
- 📦 **Multiple Import Methods**: Static, dynamic bundle, or dynamic individual
|
|
104
|
+
- 🔷 **TypeScript Support**: Full type definitions included
|
|
105
|
+
- 📱 **Framework Agnostic**: Works with any JavaScript framework
|
|
106
|
+
- ⚡ **Optimized Performance**: Lazy load icons on demand
|
|
107
|
+
- 🎨 **Customizable**: Easy to style with CSS or inline styles
|
|
108
|
+
- ✅ **ESM & CommonJS**: Support for both module systems
|
|
109
|
+
- 🚀 **Zero Dependencies**: No external dependencies
|
|
110
|
+
- 🔄 **Regular Updates**: New icons added frequently
|
|
156
111
|
|
|
157
112
|
## Framework Support
|
|
158
113
|
|
|
159
114
|
Hugeicons provides dedicated packages for various frameworks:
|
|
160
|
-
|
|
161
115
|
- [@hugeicons/react](https://www.npmjs.com/package/@hugeicons/react) - For React applications
|
|
162
116
|
- [@hugeicons/react-native](https://www.npmjs.com/package/@hugeicons/react-native) - For React Native applications
|
|
163
117
|
- [@hugeicons/vue](https://www.npmjs.com/package/@hugeicons/vue) - For Vue applications
|
|
@@ -172,4 +126,4 @@ TypeScript types are included and will work out of the box.
|
|
|
172
126
|
|
|
173
127
|
## License
|
|
174
128
|
|
|
175
|
-
Created by Hugeicons. All rights reserved.
|
|
129
|
+
Created by Hugeicons. All rights reserved.
|