@exhaustive-ui/icons 0.0.0-stage → 22.13.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/LICENSE +23 -0
- package/README.md +50 -2
- package/dist/icon-D_Dm0m3T.mjs +17 -0
- package/dist/icon-r9fS8_ED.d.mts +18 -0
- package/dist/names/index.d.mts +15 -0
- package/dist/names/index.mjs +284 -0
- package/dist/round/index.d.mts +1116 -0
- package/dist/round/index.mjs +657 -0
- package/dist/sharp/index.d.mts +1116 -0
- package/dist/sharp/index.mjs +657 -0
- package/package.json +58 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 e-xiste
|
|
4
|
+
Copyright (c) 2026 OpenNG (as per the Optimus UI license)
|
|
5
|
+
Copyright (c) 2016-2026 PrimeTek (as per the PrimeNG community version license)
|
|
6
|
+
|
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
in the Software without restriction, including without limitation the rights
|
|
10
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
furnished to do so, subject to the following conditions:
|
|
13
|
+
|
|
14
|
+
The above copyright notice and this permission notice shall be included in
|
|
15
|
+
all copies or substantial portions of the Software.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
|
+
THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,51 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @exhaustive-ui/icons
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
SVG icons for [ExhaustiveUI](https://exhaustive-ui.com/exhaustive-icons): 278 icons in two styles, **Round** and **Sharp**, each with Light, Regular, Bold and Solid variants, drawn inline by the `p-icon` component of `@exhaustive-ui/core/icon`.
|
|
4
|
+
|
|
5
|
+
- No font, no CSS file, no extra request: an app bundles only the icons it imports (about 45 bytes gzip each).
|
|
6
|
+
- No layout shift: the svg has its size as attributes.
|
|
7
|
+
- Size and color follow the text; with the `@exhaustive-ui/tailwindcss` plugin, the stroke weight follows `font-light` / `font-semibold`...
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @exhaustive-ui/icons
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import { Icon } from '@exhaustive-ui/core/icon';
|
|
15
|
+
import { check, starSolid } from '@exhaustive-ui/icons/round';
|
|
16
|
+
|
|
17
|
+
@Component({
|
|
18
|
+
imports: [Icon],
|
|
19
|
+
template: `<p-icon [icon]="check" weight="bold" /> <p-icon [icon]="starSolid" />`
|
|
20
|
+
})
|
|
21
|
+
export class Example {
|
|
22
|
+
check = check;
|
|
23
|
+
starSolid = starSolid;
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Entry points
|
|
28
|
+
|
|
29
|
+
| Path | Exports |
|
|
30
|
+
| --- | --- |
|
|
31
|
+
| `@exhaustive-ui/icons/round` | two constants per icon: `check` (stroke) and `checkSolid` (fill; for a linear icon such as `check`, the same path drawn at the Bold width) |
|
|
32
|
+
| `@exhaustive-ui/icons/sharp` | the same names in the Sharp style |
|
|
33
|
+
| `@exhaustive-ui/icons/names` | `ICON_NAMES` and the `IconName` type, for tooling; never needed by an app |
|
|
34
|
+
|
|
35
|
+
An icon is a frozen `{ n, d, s, b }` object: `n` its kebab case name, `d` the path data on a 24×24 grid, `s` `'r'` or `'s'` for a stroke icon (absent for a filled one), `b` `1` for the solid of a linear icon, drawn at the Bold width. A linear icon and its solid share one path string in the bundle.
|
|
36
|
+
|
|
37
|
+
## Adding icons
|
|
38
|
+
|
|
39
|
+
The sources in `src/` are generated from `data/round.json` and `data/sharp.json` (`{ "<kebab-name>": { "stroke": "<d>", "solid": "<d>" | null } }`):
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
node scripts/import.mjs <group folder | folder of groups | icons.json ...> # merge drawn icons, then regenerate
|
|
43
|
+
node scripts/generate.mjs # regenerate after editing data/*.json
|
|
44
|
+
pnpm test # budgets, generated sources in sync, tree-shaking
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
A stroke path must stay under 700 bytes. `solid: null` marks a linear icon: its `Solid` constant reuses the stroke path, drawn at the Bold width. `data/aliases.json` maps the OpenNG Icons font names that changed.
|
|
48
|
+
|
|
49
|
+
## License
|
|
50
|
+
|
|
51
|
+
MIT
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region src/icon.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Data of one icon, as consumed by the `p-icon` component of `@exhaustive-ui/core/icon`.
|
|
4
|
+
*
|
|
5
|
+
* - `n`: name in kebab case (`check`, `check-solid`)
|
|
6
|
+
* - `d`: path data, drawn on a 24×24 grid
|
|
7
|
+
* - `s`: `'r'` (round) or `'s'` (sharp) for a stroke icon, rendered with `stroke="currentColor"` at the weight of the text;
|
|
8
|
+
* absent for a solid icon, rendered with `fill="currentColor"`
|
|
9
|
+
* - `b`: `1` for the solid variant of a linear icon (check, arrows...): the stroke drawn at the Bold width of its style, whatever the weight of the text
|
|
10
|
+
*/
|
|
11
|
+
interface IconData {
|
|
12
|
+
readonly n: string;
|
|
13
|
+
readonly d: string;
|
|
14
|
+
readonly s?: 'r' | 's';
|
|
15
|
+
readonly b?: 1;
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { IconData as t };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/names/index.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* @file
|
|
4
|
+
* THIS FILE IS AUTO-GENERATED by scripts/generate.mjs from data/*.json. PLEASE DO NOT MODIFY.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Names of every icon, in kebab case. Kept in its own entry point so the list never lands in an app bundle by accident.
|
|
8
|
+
*/
|
|
9
|
+
declare const ICON_NAMES: readonly ["address-book", "align-center", "align-justify", "align-left", "align-right", "angle-double-down", "angle-double-left", "angle-double-right", "angle-double-up", "angle-down", "angle-left", "angle-right", "angle-up", "arrow-circle-down", "arrow-circle-left", "arrow-circle-right", "arrow-circle-up", "arrow-down", "arrow-down-left", "arrow-down-left-and-arrow-up-right-to-center", "arrow-down-right", "arrow-left", "arrow-right", "arrow-right-arrow-left", "arrow-up", "arrow-up-left", "arrow-up-right", "arrow-up-right-and-arrow-down-left-from-center", "arrows-alt", "arrows-h", "arrows-v", "asterisk", "at", "backward", "ban", "barcode", "bars", "bell", "bell-slash", "bolt", "book", "bookmark", "box", "briefcase", "building", "building-columns", "bullseye", "calculator", "calendar", "calendar-clock", "calendar-minus", "calendar-plus", "calendar-times", "camera", "car", "caret-down", "caret-left", "caret-right", "caret-up", "cart-arrow-down", "cart-minus", "cart-plus", "chart-bar", "chart-line", "chart-pie", "chart-scatter", "check", "check-circle", "check-square", "chevron-circle-down", "chevron-circle-left", "chevron-circle-right", "chevron-circle-up", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "circle", "circle-off", "circle-on", "clipboard", "clock", "clone", "cloud", "cloud-download", "cloud-upload", "code", "cog", "comment", "comments", "compass", "copy", "credit-card", "crown", "database", "delete-left", "desktop", "directions", "directions-alt", "dollar", "download", "eject", "ellipsis-h", "ellipsis-v", "envelope", "equals", "eraser", "euro", "exclamation-circle", "exclamation-triangle", "expand", "external-link", "eye", "eye-slash", "face-smile", "fast-backward", "fast-forward", "file", "file-arrow-up", "file-check", "file-edit", "file-excel", "file-export", "file-import", "file-pdf", "file-plus", "file-word", "filter", "filter-slash", "flag", "folder", "folder-open", "folder-plus", "forward", "gauge", "gift", "globe", "graduation-cap", "hammer", "hashtag", "headphones", "heart", "history", "home", "hourglass", "id-card", "image", "images", "inbox", "indian-rupee", "info", "info-circle", "key", "language", "lightbulb", "link", "list", "list-check", "lock", "lock-open", "map", "map-marker", "mars", "megaphone", "microchip", "microchip-ai", "microphone", "minus", "minus-circle", "mobile", "money-bill", "moon", "objects-column", "palette", "paperclip", "pause", "pause-circle", "pen-to-square", "pencil", "percentage", "phone", "play", "play-circle", "plus", "plus-circle", "pound", "power-off", "print", "qrcode", "question", "question-circle", "receipt", "refresh", "replay", "reply", "save", "search", "search-minus", "search-plus", "send", "server", "share-alt", "shield", "shop", "shopping-bag", "shopping-cart", "sign-in", "sign-out", "sitemap", "sliders-h", "sliders-v", "sort", "sort-alpha-down", "sort-alpha-down-alt", "sort-alpha-up", "sort-alpha-up-alt", "sort-alt", "sort-alt-slash", "sort-amount-down", "sort-amount-down-alt", "sort-amount-up", "sort-amount-up-alt", "sort-down", "sort-numeric-down", "sort-numeric-down-alt", "sort-numeric-up", "sort-numeric-up-alt", "sort-up", "sparkles", "spinner", "spinner-dotted", "star", "star-half", "step-backward", "step-backward-alt", "step-forward", "step-forward-alt", "stop", "stop-circle", "stopwatch", "sun", "sync", "table", "tablet", "tag", "tags", "th-large", "thumbs-down", "thumbs-up", "thumbtack", "ticket", "times", "times-circle", "trash", "trophy", "truck", "turkish-lira", "undo", "unlock", "upload", "user", "user-edit", "user-minus", "user-plus", "users", "venus", "verified", "video", "volume-down", "volume-off", "volume-up", "wallet", "warehouse", "wave-pulse", "wifi", "window-maximize", "window-minimize", "wrench"];
|
|
10
|
+
/**
|
|
11
|
+
* Name of an icon, in kebab case.
|
|
12
|
+
*/
|
|
13
|
+
type IconName = (typeof ICON_NAMES)[number];
|
|
14
|
+
//#endregion
|
|
15
|
+
export { ICON_NAMES, IconName };
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
//#region src/names/index.ts
|
|
2
|
+
const ICON_NAMES = [
|
|
3
|
+
"address-book",
|
|
4
|
+
"align-center",
|
|
5
|
+
"align-justify",
|
|
6
|
+
"align-left",
|
|
7
|
+
"align-right",
|
|
8
|
+
"angle-double-down",
|
|
9
|
+
"angle-double-left",
|
|
10
|
+
"angle-double-right",
|
|
11
|
+
"angle-double-up",
|
|
12
|
+
"angle-down",
|
|
13
|
+
"angle-left",
|
|
14
|
+
"angle-right",
|
|
15
|
+
"angle-up",
|
|
16
|
+
"arrow-circle-down",
|
|
17
|
+
"arrow-circle-left",
|
|
18
|
+
"arrow-circle-right",
|
|
19
|
+
"arrow-circle-up",
|
|
20
|
+
"arrow-down",
|
|
21
|
+
"arrow-down-left",
|
|
22
|
+
"arrow-down-left-and-arrow-up-right-to-center",
|
|
23
|
+
"arrow-down-right",
|
|
24
|
+
"arrow-left",
|
|
25
|
+
"arrow-right",
|
|
26
|
+
"arrow-right-arrow-left",
|
|
27
|
+
"arrow-up",
|
|
28
|
+
"arrow-up-left",
|
|
29
|
+
"arrow-up-right",
|
|
30
|
+
"arrow-up-right-and-arrow-down-left-from-center",
|
|
31
|
+
"arrows-alt",
|
|
32
|
+
"arrows-h",
|
|
33
|
+
"arrows-v",
|
|
34
|
+
"asterisk",
|
|
35
|
+
"at",
|
|
36
|
+
"backward",
|
|
37
|
+
"ban",
|
|
38
|
+
"barcode",
|
|
39
|
+
"bars",
|
|
40
|
+
"bell",
|
|
41
|
+
"bell-slash",
|
|
42
|
+
"bolt",
|
|
43
|
+
"book",
|
|
44
|
+
"bookmark",
|
|
45
|
+
"box",
|
|
46
|
+
"briefcase",
|
|
47
|
+
"building",
|
|
48
|
+
"building-columns",
|
|
49
|
+
"bullseye",
|
|
50
|
+
"calculator",
|
|
51
|
+
"calendar",
|
|
52
|
+
"calendar-clock",
|
|
53
|
+
"calendar-minus",
|
|
54
|
+
"calendar-plus",
|
|
55
|
+
"calendar-times",
|
|
56
|
+
"camera",
|
|
57
|
+
"car",
|
|
58
|
+
"caret-down",
|
|
59
|
+
"caret-left",
|
|
60
|
+
"caret-right",
|
|
61
|
+
"caret-up",
|
|
62
|
+
"cart-arrow-down",
|
|
63
|
+
"cart-minus",
|
|
64
|
+
"cart-plus",
|
|
65
|
+
"chart-bar",
|
|
66
|
+
"chart-line",
|
|
67
|
+
"chart-pie",
|
|
68
|
+
"chart-scatter",
|
|
69
|
+
"check",
|
|
70
|
+
"check-circle",
|
|
71
|
+
"check-square",
|
|
72
|
+
"chevron-circle-down",
|
|
73
|
+
"chevron-circle-left",
|
|
74
|
+
"chevron-circle-right",
|
|
75
|
+
"chevron-circle-up",
|
|
76
|
+
"chevron-down",
|
|
77
|
+
"chevron-left",
|
|
78
|
+
"chevron-right",
|
|
79
|
+
"chevron-up",
|
|
80
|
+
"circle",
|
|
81
|
+
"circle-off",
|
|
82
|
+
"circle-on",
|
|
83
|
+
"clipboard",
|
|
84
|
+
"clock",
|
|
85
|
+
"clone",
|
|
86
|
+
"cloud",
|
|
87
|
+
"cloud-download",
|
|
88
|
+
"cloud-upload",
|
|
89
|
+
"code",
|
|
90
|
+
"cog",
|
|
91
|
+
"comment",
|
|
92
|
+
"comments",
|
|
93
|
+
"compass",
|
|
94
|
+
"copy",
|
|
95
|
+
"credit-card",
|
|
96
|
+
"crown",
|
|
97
|
+
"database",
|
|
98
|
+
"delete-left",
|
|
99
|
+
"desktop",
|
|
100
|
+
"directions",
|
|
101
|
+
"directions-alt",
|
|
102
|
+
"dollar",
|
|
103
|
+
"download",
|
|
104
|
+
"eject",
|
|
105
|
+
"ellipsis-h",
|
|
106
|
+
"ellipsis-v",
|
|
107
|
+
"envelope",
|
|
108
|
+
"equals",
|
|
109
|
+
"eraser",
|
|
110
|
+
"euro",
|
|
111
|
+
"exclamation-circle",
|
|
112
|
+
"exclamation-triangle",
|
|
113
|
+
"expand",
|
|
114
|
+
"external-link",
|
|
115
|
+
"eye",
|
|
116
|
+
"eye-slash",
|
|
117
|
+
"face-smile",
|
|
118
|
+
"fast-backward",
|
|
119
|
+
"fast-forward",
|
|
120
|
+
"file",
|
|
121
|
+
"file-arrow-up",
|
|
122
|
+
"file-check",
|
|
123
|
+
"file-edit",
|
|
124
|
+
"file-excel",
|
|
125
|
+
"file-export",
|
|
126
|
+
"file-import",
|
|
127
|
+
"file-pdf",
|
|
128
|
+
"file-plus",
|
|
129
|
+
"file-word",
|
|
130
|
+
"filter",
|
|
131
|
+
"filter-slash",
|
|
132
|
+
"flag",
|
|
133
|
+
"folder",
|
|
134
|
+
"folder-open",
|
|
135
|
+
"folder-plus",
|
|
136
|
+
"forward",
|
|
137
|
+
"gauge",
|
|
138
|
+
"gift",
|
|
139
|
+
"globe",
|
|
140
|
+
"graduation-cap",
|
|
141
|
+
"hammer",
|
|
142
|
+
"hashtag",
|
|
143
|
+
"headphones",
|
|
144
|
+
"heart",
|
|
145
|
+
"history",
|
|
146
|
+
"home",
|
|
147
|
+
"hourglass",
|
|
148
|
+
"id-card",
|
|
149
|
+
"image",
|
|
150
|
+
"images",
|
|
151
|
+
"inbox",
|
|
152
|
+
"indian-rupee",
|
|
153
|
+
"info",
|
|
154
|
+
"info-circle",
|
|
155
|
+
"key",
|
|
156
|
+
"language",
|
|
157
|
+
"lightbulb",
|
|
158
|
+
"link",
|
|
159
|
+
"list",
|
|
160
|
+
"list-check",
|
|
161
|
+
"lock",
|
|
162
|
+
"lock-open",
|
|
163
|
+
"map",
|
|
164
|
+
"map-marker",
|
|
165
|
+
"mars",
|
|
166
|
+
"megaphone",
|
|
167
|
+
"microchip",
|
|
168
|
+
"microchip-ai",
|
|
169
|
+
"microphone",
|
|
170
|
+
"minus",
|
|
171
|
+
"minus-circle",
|
|
172
|
+
"mobile",
|
|
173
|
+
"money-bill",
|
|
174
|
+
"moon",
|
|
175
|
+
"objects-column",
|
|
176
|
+
"palette",
|
|
177
|
+
"paperclip",
|
|
178
|
+
"pause",
|
|
179
|
+
"pause-circle",
|
|
180
|
+
"pen-to-square",
|
|
181
|
+
"pencil",
|
|
182
|
+
"percentage",
|
|
183
|
+
"phone",
|
|
184
|
+
"play",
|
|
185
|
+
"play-circle",
|
|
186
|
+
"plus",
|
|
187
|
+
"plus-circle",
|
|
188
|
+
"pound",
|
|
189
|
+
"power-off",
|
|
190
|
+
"print",
|
|
191
|
+
"qrcode",
|
|
192
|
+
"question",
|
|
193
|
+
"question-circle",
|
|
194
|
+
"receipt",
|
|
195
|
+
"refresh",
|
|
196
|
+
"replay",
|
|
197
|
+
"reply",
|
|
198
|
+
"save",
|
|
199
|
+
"search",
|
|
200
|
+
"search-minus",
|
|
201
|
+
"search-plus",
|
|
202
|
+
"send",
|
|
203
|
+
"server",
|
|
204
|
+
"share-alt",
|
|
205
|
+
"shield",
|
|
206
|
+
"shop",
|
|
207
|
+
"shopping-bag",
|
|
208
|
+
"shopping-cart",
|
|
209
|
+
"sign-in",
|
|
210
|
+
"sign-out",
|
|
211
|
+
"sitemap",
|
|
212
|
+
"sliders-h",
|
|
213
|
+
"sliders-v",
|
|
214
|
+
"sort",
|
|
215
|
+
"sort-alpha-down",
|
|
216
|
+
"sort-alpha-down-alt",
|
|
217
|
+
"sort-alpha-up",
|
|
218
|
+
"sort-alpha-up-alt",
|
|
219
|
+
"sort-alt",
|
|
220
|
+
"sort-alt-slash",
|
|
221
|
+
"sort-amount-down",
|
|
222
|
+
"sort-amount-down-alt",
|
|
223
|
+
"sort-amount-up",
|
|
224
|
+
"sort-amount-up-alt",
|
|
225
|
+
"sort-down",
|
|
226
|
+
"sort-numeric-down",
|
|
227
|
+
"sort-numeric-down-alt",
|
|
228
|
+
"sort-numeric-up",
|
|
229
|
+
"sort-numeric-up-alt",
|
|
230
|
+
"sort-up",
|
|
231
|
+
"sparkles",
|
|
232
|
+
"spinner",
|
|
233
|
+
"spinner-dotted",
|
|
234
|
+
"star",
|
|
235
|
+
"star-half",
|
|
236
|
+
"step-backward",
|
|
237
|
+
"step-backward-alt",
|
|
238
|
+
"step-forward",
|
|
239
|
+
"step-forward-alt",
|
|
240
|
+
"stop",
|
|
241
|
+
"stop-circle",
|
|
242
|
+
"stopwatch",
|
|
243
|
+
"sun",
|
|
244
|
+
"sync",
|
|
245
|
+
"table",
|
|
246
|
+
"tablet",
|
|
247
|
+
"tag",
|
|
248
|
+
"tags",
|
|
249
|
+
"th-large",
|
|
250
|
+
"thumbs-down",
|
|
251
|
+
"thumbs-up",
|
|
252
|
+
"thumbtack",
|
|
253
|
+
"ticket",
|
|
254
|
+
"times",
|
|
255
|
+
"times-circle",
|
|
256
|
+
"trash",
|
|
257
|
+
"trophy",
|
|
258
|
+
"truck",
|
|
259
|
+
"turkish-lira",
|
|
260
|
+
"undo",
|
|
261
|
+
"unlock",
|
|
262
|
+
"upload",
|
|
263
|
+
"user",
|
|
264
|
+
"user-edit",
|
|
265
|
+
"user-minus",
|
|
266
|
+
"user-plus",
|
|
267
|
+
"users",
|
|
268
|
+
"venus",
|
|
269
|
+
"verified",
|
|
270
|
+
"video",
|
|
271
|
+
"volume-down",
|
|
272
|
+
"volume-off",
|
|
273
|
+
"volume-up",
|
|
274
|
+
"wallet",
|
|
275
|
+
"warehouse",
|
|
276
|
+
"wave-pulse",
|
|
277
|
+
"wifi",
|
|
278
|
+
"window-maximize",
|
|
279
|
+
"window-minimize",
|
|
280
|
+
"wrench"
|
|
281
|
+
];
|
|
282
|
+
|
|
283
|
+
//#endregion
|
|
284
|
+
export { ICON_NAMES };
|