@trackunit/ui-icons 0.0.124 → 0.0.126
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/icons-sprite-micro.svg +1 -0
- package/icons-sprite-mini.svg +1 -1
- package/icons-sprite-outline.svg +1 -1
- package/icons-sprite-solid.svg +1 -1
- package/index.cjs.js +44 -8
- package/index.esm.js +44 -9
- package/package.json +1 -1
- package/src/ensureIconWithFallback.d.ts +8 -1
- package/src/icons.generated.d.ts +34 -8
- package/src/scripts/resize-svg.d.ts +0 -0
package/index.cjs.js
CHANGED
|
@@ -6,6 +6,8 @@ const iconNames = {
|
|
|
6
6
|
Timeline: "Timeline",
|
|
7
7
|
Timeline1: "Timeline1",
|
|
8
8
|
Slash: "Slash",
|
|
9
|
+
SidebarOpen: "SidebarOpen",
|
|
10
|
+
SidebarClose: "SidebarClose",
|
|
9
11
|
RawDevice: "RawDevice",
|
|
10
12
|
Plug: "Plug",
|
|
11
13
|
Pin: "Pin",
|
|
@@ -30,6 +32,7 @@ const iconNames = {
|
|
|
30
32
|
Bucket: "Bucket",
|
|
31
33
|
Bluetooth: "Bluetooth",
|
|
32
34
|
BatteryBig: "BatteryBig",
|
|
35
|
+
Asset: "Asset",
|
|
33
36
|
XMark: "XMark",
|
|
34
37
|
XCircle: "XCircle",
|
|
35
38
|
Wrench: "Wrench",
|
|
@@ -48,6 +51,7 @@ const iconNames = {
|
|
|
48
51
|
UserMinus: "UserMinus",
|
|
49
52
|
UserGroup: "UserGroup",
|
|
50
53
|
UserCircle: "UserCircle",
|
|
54
|
+
Underline: "Underline",
|
|
51
55
|
Tv: "Tv",
|
|
52
56
|
Truck: "Truck",
|
|
53
57
|
Trophy: "Trophy",
|
|
@@ -57,6 +61,7 @@ const iconNames = {
|
|
|
57
61
|
TableCells: "TableCells",
|
|
58
62
|
Swatch: "Swatch",
|
|
59
63
|
Sun: "Sun",
|
|
64
|
+
Strikethrough: "Strikethrough",
|
|
60
65
|
Stop: "Stop",
|
|
61
66
|
StopCircle: "StopCircle",
|
|
62
67
|
Star: "Star",
|
|
@@ -94,7 +99,6 @@ const iconNames = {
|
|
|
94
99
|
PresentationChartBar: "PresentationChartBar",
|
|
95
100
|
Power: "Power",
|
|
96
101
|
Plus: "Plus",
|
|
97
|
-
PlusSmall: "PlusSmall",
|
|
98
102
|
PlusCircle: "PlusCircle",
|
|
99
103
|
Play: "Play",
|
|
100
104
|
PlayPause: "PlayPause",
|
|
@@ -104,6 +108,7 @@ const iconNames = {
|
|
|
104
108
|
PhoneXMark: "PhoneXMark",
|
|
105
109
|
PhoneArrowUpRight: "PhoneArrowUpRight",
|
|
106
110
|
PhoneArrowDownLeft: "PhoneArrowDownLeft",
|
|
111
|
+
PercentBadge: "PercentBadge",
|
|
107
112
|
Pencil: "Pencil",
|
|
108
113
|
PencilSquare: "PencilSquare",
|
|
109
114
|
Pause: "Pause",
|
|
@@ -111,12 +116,12 @@ const iconNames = {
|
|
|
111
116
|
PaperClip: "PaperClip",
|
|
112
117
|
PaperAirplane: "PaperAirplane",
|
|
113
118
|
PaintBrush: "PaintBrush",
|
|
119
|
+
NumberedList: "NumberedList",
|
|
114
120
|
NoSymbol: "NoSymbol",
|
|
115
121
|
Newspaper: "Newspaper",
|
|
116
122
|
MusicalNote: "MusicalNote",
|
|
117
123
|
Moon: "Moon",
|
|
118
124
|
Minus: "Minus",
|
|
119
|
-
MinusSmall: "MinusSmall",
|
|
120
125
|
MinusCircle: "MinusCircle",
|
|
121
126
|
Microphone: "Microphone",
|
|
122
127
|
Megaphone: "Megaphone",
|
|
@@ -130,10 +135,12 @@ const iconNames = {
|
|
|
130
135
|
LockClosed: "LockClosed",
|
|
131
136
|
ListBullet: "ListBullet",
|
|
132
137
|
Link: "Link",
|
|
138
|
+
LinkSlash: "LinkSlash",
|
|
133
139
|
LightBulb: "LightBulb",
|
|
134
140
|
Lifebuoy: "Lifebuoy",
|
|
135
141
|
Language: "Language",
|
|
136
142
|
Key: "Key",
|
|
143
|
+
Italic: "Italic",
|
|
137
144
|
InformationCircle: "InformationCircle",
|
|
138
145
|
Inbox: "Inbox",
|
|
139
146
|
InboxStack: "InboxStack",
|
|
@@ -146,6 +153,9 @@ const iconNames = {
|
|
|
146
153
|
HandThumbUp: "HandThumbUp",
|
|
147
154
|
HandThumbDown: "HandThumbDown",
|
|
148
155
|
HandRaised: "HandRaised",
|
|
156
|
+
H3: "H3",
|
|
157
|
+
H2: "H2",
|
|
158
|
+
H1: "H1",
|
|
149
159
|
GlobeEuropeAfrica: "GlobeEuropeAfrica",
|
|
150
160
|
GlobeAsiaAustralia: "GlobeAsiaAustralia",
|
|
151
161
|
GlobeAmericas: "GlobeAmericas",
|
|
@@ -171,6 +181,7 @@ const iconNames = {
|
|
|
171
181
|
EyeDropper: "EyeDropper",
|
|
172
182
|
ExclamationTriangle: "ExclamationTriangle",
|
|
173
183
|
ExclamationCircle: "ExclamationCircle",
|
|
184
|
+
Equals: "Equals",
|
|
174
185
|
Envelope: "Envelope",
|
|
175
186
|
EnvelopeOpen: "EnvelopeOpen",
|
|
176
187
|
EllipsisVertical: "EllipsisVertical",
|
|
@@ -182,10 +193,17 @@ const iconNames = {
|
|
|
182
193
|
DocumentMinus: "DocumentMinus",
|
|
183
194
|
DocumentMagnifyingGlass: "DocumentMagnifyingGlass",
|
|
184
195
|
DocumentDuplicate: "DocumentDuplicate",
|
|
196
|
+
DocumentCurrencyYen: "DocumentCurrencyYen",
|
|
197
|
+
DocumentCurrencyRupee: "DocumentCurrencyRupee",
|
|
198
|
+
DocumentCurrencyPound: "DocumentCurrencyPound",
|
|
199
|
+
DocumentCurrencyEuro: "DocumentCurrencyEuro",
|
|
200
|
+
DocumentCurrencyDollar: "DocumentCurrencyDollar",
|
|
201
|
+
DocumentCurrencyBangladeshi: "DocumentCurrencyBangladeshi",
|
|
185
202
|
DocumentCheck: "DocumentCheck",
|
|
186
203
|
DocumentChartBar: "DocumentChartBar",
|
|
187
204
|
DocumentArrowUp: "DocumentArrowUp",
|
|
188
205
|
DocumentArrowDown: "DocumentArrowDown",
|
|
206
|
+
Divide: "Divide",
|
|
189
207
|
DeviceTablet: "DeviceTablet",
|
|
190
208
|
DevicePhoneMobile: "DevicePhoneMobile",
|
|
191
209
|
CursorArrowRipple: "CursorArrowRipple",
|
|
@@ -241,6 +259,7 @@ const iconNames = {
|
|
|
241
259
|
Camera: "Camera",
|
|
242
260
|
Calendar: "Calendar",
|
|
243
261
|
CalendarDays: "CalendarDays",
|
|
262
|
+
CalendarDateRange: "CalendarDateRange",
|
|
244
263
|
Calculator: "Calculator",
|
|
245
264
|
Cake: "Cake",
|
|
246
265
|
BuildingStorefront: "BuildingStorefront",
|
|
@@ -255,6 +274,7 @@ const iconNames = {
|
|
|
255
274
|
BookOpen: "BookOpen",
|
|
256
275
|
Bolt: "Bolt",
|
|
257
276
|
BoltSlash: "BoltSlash",
|
|
277
|
+
Bold: "Bold",
|
|
258
278
|
Bell: "Bell",
|
|
259
279
|
BellSnooze: "BellSnooze",
|
|
260
280
|
BellSlash: "BellSlash",
|
|
@@ -290,15 +310,20 @@ const iconNames = {
|
|
|
290
310
|
ArrowUpOnSquareStack: "ArrowUpOnSquareStack",
|
|
291
311
|
ArrowUpLeft: "ArrowUpLeft",
|
|
292
312
|
ArrowUpCircle: "ArrowUpCircle",
|
|
313
|
+
ArrowTurnUpRight: "ArrowTurnUpRight",
|
|
314
|
+
ArrowTurnUpLeft: "ArrowTurnUpLeft",
|
|
315
|
+
ArrowTurnRightUp: "ArrowTurnRightUp",
|
|
316
|
+
ArrowTurnRightDown: "ArrowTurnRightDown",
|
|
317
|
+
ArrowTurnLeftUp: "ArrowTurnLeftUp",
|
|
318
|
+
ArrowTurnLeftDown: "ArrowTurnLeftDown",
|
|
319
|
+
ArrowTurnDownRight: "ArrowTurnDownRight",
|
|
320
|
+
ArrowTurnDownLeft: "ArrowTurnDownLeft",
|
|
293
321
|
ArrowTrendingUp: "ArrowTrendingUp",
|
|
294
322
|
ArrowTrendingDown: "ArrowTrendingDown",
|
|
295
323
|
ArrowTopRightOnSquare: "ArrowTopRightOnSquare",
|
|
296
|
-
ArrowSmallUp: "ArrowSmallUp",
|
|
297
|
-
ArrowSmallRight: "ArrowSmallRight",
|
|
298
|
-
ArrowSmallLeft: "ArrowSmallLeft",
|
|
299
|
-
ArrowSmallDown: "ArrowSmallDown",
|
|
300
324
|
ArrowRight: "ArrowRight",
|
|
301
|
-
|
|
325
|
+
ArrowRightStartOnRectangle: "ArrowRightStartOnRectangle",
|
|
326
|
+
ArrowRightEndOnRectangle: "ArrowRightEndOnRectangle",
|
|
302
327
|
ArrowRightCircle: "ArrowRightCircle",
|
|
303
328
|
ArrowPath: "ArrowPath",
|
|
304
329
|
ArrowPathRoundedSquare: "ArrowPathRoundedSquare",
|
|
@@ -307,7 +332,8 @@ const iconNames = {
|
|
|
307
332
|
ArrowLongLeft: "ArrowLongLeft",
|
|
308
333
|
ArrowLongDown: "ArrowLongDown",
|
|
309
334
|
ArrowLeft: "ArrowLeft",
|
|
310
|
-
|
|
335
|
+
ArrowLeftStartOnRectangle: "ArrowLeftStartOnRectangle",
|
|
336
|
+
ArrowLeftEndOnRectangle: "ArrowLeftEndOnRectangle",
|
|
311
337
|
ArrowLeftCircle: "ArrowLeftCircle",
|
|
312
338
|
ArrowDown: "ArrowDown",
|
|
313
339
|
ArrowDownTray: "ArrowDownTray",
|
|
@@ -329,6 +355,15 @@ const validateIconName = (name) => {
|
|
|
329
355
|
const found = Object.keys(iconNames).find(i => i === name) ? true : false;
|
|
330
356
|
return found;
|
|
331
357
|
};
|
|
358
|
+
/**
|
|
359
|
+
* Checks if the icon name is valid.
|
|
360
|
+
*
|
|
361
|
+
* @param name - The icon name to validate.
|
|
362
|
+
* @returns {boolean} - Returns true if the icon name is valid, otherwise it returns false.
|
|
363
|
+
*/
|
|
364
|
+
const isIconName = (name) => {
|
|
365
|
+
return typeof name === "string" && Object.prototype.hasOwnProperty.call(iconNames, name);
|
|
366
|
+
};
|
|
332
367
|
/**
|
|
333
368
|
* Ensures that the icon name is valid, otherwise it returns the fallback icon name.
|
|
334
369
|
*
|
|
@@ -362,3 +397,4 @@ const ensureIconWithFallback = (name, fallbackIconName = FALLBACK_ICON_NAME) =>
|
|
|
362
397
|
|
|
363
398
|
exports.ensureIconWithFallback = ensureIconWithFallback;
|
|
364
399
|
exports.iconNames = iconNames;
|
|
400
|
+
exports.isIconName = isIconName;
|
package/index.esm.js
CHANGED
|
@@ -4,6 +4,8 @@ const iconNames = {
|
|
|
4
4
|
Timeline: "Timeline",
|
|
5
5
|
Timeline1: "Timeline1",
|
|
6
6
|
Slash: "Slash",
|
|
7
|
+
SidebarOpen: "SidebarOpen",
|
|
8
|
+
SidebarClose: "SidebarClose",
|
|
7
9
|
RawDevice: "RawDevice",
|
|
8
10
|
Plug: "Plug",
|
|
9
11
|
Pin: "Pin",
|
|
@@ -28,6 +30,7 @@ const iconNames = {
|
|
|
28
30
|
Bucket: "Bucket",
|
|
29
31
|
Bluetooth: "Bluetooth",
|
|
30
32
|
BatteryBig: "BatteryBig",
|
|
33
|
+
Asset: "Asset",
|
|
31
34
|
XMark: "XMark",
|
|
32
35
|
XCircle: "XCircle",
|
|
33
36
|
Wrench: "Wrench",
|
|
@@ -46,6 +49,7 @@ const iconNames = {
|
|
|
46
49
|
UserMinus: "UserMinus",
|
|
47
50
|
UserGroup: "UserGroup",
|
|
48
51
|
UserCircle: "UserCircle",
|
|
52
|
+
Underline: "Underline",
|
|
49
53
|
Tv: "Tv",
|
|
50
54
|
Truck: "Truck",
|
|
51
55
|
Trophy: "Trophy",
|
|
@@ -55,6 +59,7 @@ const iconNames = {
|
|
|
55
59
|
TableCells: "TableCells",
|
|
56
60
|
Swatch: "Swatch",
|
|
57
61
|
Sun: "Sun",
|
|
62
|
+
Strikethrough: "Strikethrough",
|
|
58
63
|
Stop: "Stop",
|
|
59
64
|
StopCircle: "StopCircle",
|
|
60
65
|
Star: "Star",
|
|
@@ -92,7 +97,6 @@ const iconNames = {
|
|
|
92
97
|
PresentationChartBar: "PresentationChartBar",
|
|
93
98
|
Power: "Power",
|
|
94
99
|
Plus: "Plus",
|
|
95
|
-
PlusSmall: "PlusSmall",
|
|
96
100
|
PlusCircle: "PlusCircle",
|
|
97
101
|
Play: "Play",
|
|
98
102
|
PlayPause: "PlayPause",
|
|
@@ -102,6 +106,7 @@ const iconNames = {
|
|
|
102
106
|
PhoneXMark: "PhoneXMark",
|
|
103
107
|
PhoneArrowUpRight: "PhoneArrowUpRight",
|
|
104
108
|
PhoneArrowDownLeft: "PhoneArrowDownLeft",
|
|
109
|
+
PercentBadge: "PercentBadge",
|
|
105
110
|
Pencil: "Pencil",
|
|
106
111
|
PencilSquare: "PencilSquare",
|
|
107
112
|
Pause: "Pause",
|
|
@@ -109,12 +114,12 @@ const iconNames = {
|
|
|
109
114
|
PaperClip: "PaperClip",
|
|
110
115
|
PaperAirplane: "PaperAirplane",
|
|
111
116
|
PaintBrush: "PaintBrush",
|
|
117
|
+
NumberedList: "NumberedList",
|
|
112
118
|
NoSymbol: "NoSymbol",
|
|
113
119
|
Newspaper: "Newspaper",
|
|
114
120
|
MusicalNote: "MusicalNote",
|
|
115
121
|
Moon: "Moon",
|
|
116
122
|
Minus: "Minus",
|
|
117
|
-
MinusSmall: "MinusSmall",
|
|
118
123
|
MinusCircle: "MinusCircle",
|
|
119
124
|
Microphone: "Microphone",
|
|
120
125
|
Megaphone: "Megaphone",
|
|
@@ -128,10 +133,12 @@ const iconNames = {
|
|
|
128
133
|
LockClosed: "LockClosed",
|
|
129
134
|
ListBullet: "ListBullet",
|
|
130
135
|
Link: "Link",
|
|
136
|
+
LinkSlash: "LinkSlash",
|
|
131
137
|
LightBulb: "LightBulb",
|
|
132
138
|
Lifebuoy: "Lifebuoy",
|
|
133
139
|
Language: "Language",
|
|
134
140
|
Key: "Key",
|
|
141
|
+
Italic: "Italic",
|
|
135
142
|
InformationCircle: "InformationCircle",
|
|
136
143
|
Inbox: "Inbox",
|
|
137
144
|
InboxStack: "InboxStack",
|
|
@@ -144,6 +151,9 @@ const iconNames = {
|
|
|
144
151
|
HandThumbUp: "HandThumbUp",
|
|
145
152
|
HandThumbDown: "HandThumbDown",
|
|
146
153
|
HandRaised: "HandRaised",
|
|
154
|
+
H3: "H3",
|
|
155
|
+
H2: "H2",
|
|
156
|
+
H1: "H1",
|
|
147
157
|
GlobeEuropeAfrica: "GlobeEuropeAfrica",
|
|
148
158
|
GlobeAsiaAustralia: "GlobeAsiaAustralia",
|
|
149
159
|
GlobeAmericas: "GlobeAmericas",
|
|
@@ -169,6 +179,7 @@ const iconNames = {
|
|
|
169
179
|
EyeDropper: "EyeDropper",
|
|
170
180
|
ExclamationTriangle: "ExclamationTriangle",
|
|
171
181
|
ExclamationCircle: "ExclamationCircle",
|
|
182
|
+
Equals: "Equals",
|
|
172
183
|
Envelope: "Envelope",
|
|
173
184
|
EnvelopeOpen: "EnvelopeOpen",
|
|
174
185
|
EllipsisVertical: "EllipsisVertical",
|
|
@@ -180,10 +191,17 @@ const iconNames = {
|
|
|
180
191
|
DocumentMinus: "DocumentMinus",
|
|
181
192
|
DocumentMagnifyingGlass: "DocumentMagnifyingGlass",
|
|
182
193
|
DocumentDuplicate: "DocumentDuplicate",
|
|
194
|
+
DocumentCurrencyYen: "DocumentCurrencyYen",
|
|
195
|
+
DocumentCurrencyRupee: "DocumentCurrencyRupee",
|
|
196
|
+
DocumentCurrencyPound: "DocumentCurrencyPound",
|
|
197
|
+
DocumentCurrencyEuro: "DocumentCurrencyEuro",
|
|
198
|
+
DocumentCurrencyDollar: "DocumentCurrencyDollar",
|
|
199
|
+
DocumentCurrencyBangladeshi: "DocumentCurrencyBangladeshi",
|
|
183
200
|
DocumentCheck: "DocumentCheck",
|
|
184
201
|
DocumentChartBar: "DocumentChartBar",
|
|
185
202
|
DocumentArrowUp: "DocumentArrowUp",
|
|
186
203
|
DocumentArrowDown: "DocumentArrowDown",
|
|
204
|
+
Divide: "Divide",
|
|
187
205
|
DeviceTablet: "DeviceTablet",
|
|
188
206
|
DevicePhoneMobile: "DevicePhoneMobile",
|
|
189
207
|
CursorArrowRipple: "CursorArrowRipple",
|
|
@@ -239,6 +257,7 @@ const iconNames = {
|
|
|
239
257
|
Camera: "Camera",
|
|
240
258
|
Calendar: "Calendar",
|
|
241
259
|
CalendarDays: "CalendarDays",
|
|
260
|
+
CalendarDateRange: "CalendarDateRange",
|
|
242
261
|
Calculator: "Calculator",
|
|
243
262
|
Cake: "Cake",
|
|
244
263
|
BuildingStorefront: "BuildingStorefront",
|
|
@@ -253,6 +272,7 @@ const iconNames = {
|
|
|
253
272
|
BookOpen: "BookOpen",
|
|
254
273
|
Bolt: "Bolt",
|
|
255
274
|
BoltSlash: "BoltSlash",
|
|
275
|
+
Bold: "Bold",
|
|
256
276
|
Bell: "Bell",
|
|
257
277
|
BellSnooze: "BellSnooze",
|
|
258
278
|
BellSlash: "BellSlash",
|
|
@@ -288,15 +308,20 @@ const iconNames = {
|
|
|
288
308
|
ArrowUpOnSquareStack: "ArrowUpOnSquareStack",
|
|
289
309
|
ArrowUpLeft: "ArrowUpLeft",
|
|
290
310
|
ArrowUpCircle: "ArrowUpCircle",
|
|
311
|
+
ArrowTurnUpRight: "ArrowTurnUpRight",
|
|
312
|
+
ArrowTurnUpLeft: "ArrowTurnUpLeft",
|
|
313
|
+
ArrowTurnRightUp: "ArrowTurnRightUp",
|
|
314
|
+
ArrowTurnRightDown: "ArrowTurnRightDown",
|
|
315
|
+
ArrowTurnLeftUp: "ArrowTurnLeftUp",
|
|
316
|
+
ArrowTurnLeftDown: "ArrowTurnLeftDown",
|
|
317
|
+
ArrowTurnDownRight: "ArrowTurnDownRight",
|
|
318
|
+
ArrowTurnDownLeft: "ArrowTurnDownLeft",
|
|
291
319
|
ArrowTrendingUp: "ArrowTrendingUp",
|
|
292
320
|
ArrowTrendingDown: "ArrowTrendingDown",
|
|
293
321
|
ArrowTopRightOnSquare: "ArrowTopRightOnSquare",
|
|
294
|
-
ArrowSmallUp: "ArrowSmallUp",
|
|
295
|
-
ArrowSmallRight: "ArrowSmallRight",
|
|
296
|
-
ArrowSmallLeft: "ArrowSmallLeft",
|
|
297
|
-
ArrowSmallDown: "ArrowSmallDown",
|
|
298
322
|
ArrowRight: "ArrowRight",
|
|
299
|
-
|
|
323
|
+
ArrowRightStartOnRectangle: "ArrowRightStartOnRectangle",
|
|
324
|
+
ArrowRightEndOnRectangle: "ArrowRightEndOnRectangle",
|
|
300
325
|
ArrowRightCircle: "ArrowRightCircle",
|
|
301
326
|
ArrowPath: "ArrowPath",
|
|
302
327
|
ArrowPathRoundedSquare: "ArrowPathRoundedSquare",
|
|
@@ -305,7 +330,8 @@ const iconNames = {
|
|
|
305
330
|
ArrowLongLeft: "ArrowLongLeft",
|
|
306
331
|
ArrowLongDown: "ArrowLongDown",
|
|
307
332
|
ArrowLeft: "ArrowLeft",
|
|
308
|
-
|
|
333
|
+
ArrowLeftStartOnRectangle: "ArrowLeftStartOnRectangle",
|
|
334
|
+
ArrowLeftEndOnRectangle: "ArrowLeftEndOnRectangle",
|
|
309
335
|
ArrowLeftCircle: "ArrowLeftCircle",
|
|
310
336
|
ArrowDown: "ArrowDown",
|
|
311
337
|
ArrowDownTray: "ArrowDownTray",
|
|
@@ -327,6 +353,15 @@ const validateIconName = (name) => {
|
|
|
327
353
|
const found = Object.keys(iconNames).find(i => i === name) ? true : false;
|
|
328
354
|
return found;
|
|
329
355
|
};
|
|
356
|
+
/**
|
|
357
|
+
* Checks if the icon name is valid.
|
|
358
|
+
*
|
|
359
|
+
* @param name - The icon name to validate.
|
|
360
|
+
* @returns {boolean} - Returns true if the icon name is valid, otherwise it returns false.
|
|
361
|
+
*/
|
|
362
|
+
const isIconName = (name) => {
|
|
363
|
+
return typeof name === "string" && Object.prototype.hasOwnProperty.call(iconNames, name);
|
|
364
|
+
};
|
|
330
365
|
/**
|
|
331
366
|
* Ensures that the icon name is valid, otherwise it returns the fallback icon name.
|
|
332
367
|
*
|
|
@@ -358,4 +393,4 @@ const ensureIconWithFallback = (name, fallbackIconName = FALLBACK_ICON_NAME) =>
|
|
|
358
393
|
}
|
|
359
394
|
};
|
|
360
395
|
|
|
361
|
-
export { ensureIconWithFallback, iconNames };
|
|
396
|
+
export { ensureIconWithFallback, iconNames, isIconName };
|
package/package.json
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { IconName } from "./icons.generated";
|
|
2
|
+
/**
|
|
3
|
+
* Checks if the icon name is valid.
|
|
4
|
+
*
|
|
5
|
+
* @param name - The icon name to validate.
|
|
6
|
+
* @returns {boolean} - Returns true if the icon name is valid, otherwise it returns false.
|
|
7
|
+
*/
|
|
8
|
+
export declare const isIconName: (name: unknown) => name is IconName;
|
|
2
9
|
/**
|
|
3
10
|
* Ensures that the icon name is valid, otherwise it returns the fallback icon name.
|
|
4
11
|
*
|
|
@@ -6,4 +13,4 @@ import { IconName } from "./icons.generated";
|
|
|
6
13
|
* @param fallbackIconName - The fallback icon name to use if the icon name is invalid.
|
|
7
14
|
* @returns {IconName} - Returns the icon name if it is valid, otherwise it returns the fallback icon name.
|
|
8
15
|
*/
|
|
9
|
-
export declare const ensureIconWithFallback: (name: string | undefined, fallbackIconName?: IconName) => IconName;
|
|
16
|
+
export declare const ensureIconWithFallback: (name: IconName | string | undefined, fallbackIconName?: IconName) => IconName;
|
package/src/icons.generated.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ export declare const iconNames: {
|
|
|
4
4
|
readonly Timeline: "Timeline";
|
|
5
5
|
readonly Timeline1: "Timeline1";
|
|
6
6
|
readonly Slash: "Slash";
|
|
7
|
+
readonly SidebarOpen: "SidebarOpen";
|
|
8
|
+
readonly SidebarClose: "SidebarClose";
|
|
7
9
|
readonly RawDevice: "RawDevice";
|
|
8
10
|
readonly Plug: "Plug";
|
|
9
11
|
readonly Pin: "Pin";
|
|
@@ -28,6 +30,7 @@ export declare const iconNames: {
|
|
|
28
30
|
readonly Bucket: "Bucket";
|
|
29
31
|
readonly Bluetooth: "Bluetooth";
|
|
30
32
|
readonly BatteryBig: "BatteryBig";
|
|
33
|
+
readonly Asset: "Asset";
|
|
31
34
|
readonly XMark: "XMark";
|
|
32
35
|
readonly XCircle: "XCircle";
|
|
33
36
|
readonly Wrench: "Wrench";
|
|
@@ -46,6 +49,7 @@ export declare const iconNames: {
|
|
|
46
49
|
readonly UserMinus: "UserMinus";
|
|
47
50
|
readonly UserGroup: "UserGroup";
|
|
48
51
|
readonly UserCircle: "UserCircle";
|
|
52
|
+
readonly Underline: "Underline";
|
|
49
53
|
readonly Tv: "Tv";
|
|
50
54
|
readonly Truck: "Truck";
|
|
51
55
|
readonly Trophy: "Trophy";
|
|
@@ -55,6 +59,7 @@ export declare const iconNames: {
|
|
|
55
59
|
readonly TableCells: "TableCells";
|
|
56
60
|
readonly Swatch: "Swatch";
|
|
57
61
|
readonly Sun: "Sun";
|
|
62
|
+
readonly Strikethrough: "Strikethrough";
|
|
58
63
|
readonly Stop: "Stop";
|
|
59
64
|
readonly StopCircle: "StopCircle";
|
|
60
65
|
readonly Star: "Star";
|
|
@@ -92,7 +97,6 @@ export declare const iconNames: {
|
|
|
92
97
|
readonly PresentationChartBar: "PresentationChartBar";
|
|
93
98
|
readonly Power: "Power";
|
|
94
99
|
readonly Plus: "Plus";
|
|
95
|
-
readonly PlusSmall: "PlusSmall";
|
|
96
100
|
readonly PlusCircle: "PlusCircle";
|
|
97
101
|
readonly Play: "Play";
|
|
98
102
|
readonly PlayPause: "PlayPause";
|
|
@@ -102,6 +106,7 @@ export declare const iconNames: {
|
|
|
102
106
|
readonly PhoneXMark: "PhoneXMark";
|
|
103
107
|
readonly PhoneArrowUpRight: "PhoneArrowUpRight";
|
|
104
108
|
readonly PhoneArrowDownLeft: "PhoneArrowDownLeft";
|
|
109
|
+
readonly PercentBadge: "PercentBadge";
|
|
105
110
|
readonly Pencil: "Pencil";
|
|
106
111
|
readonly PencilSquare: "PencilSquare";
|
|
107
112
|
readonly Pause: "Pause";
|
|
@@ -109,12 +114,12 @@ export declare const iconNames: {
|
|
|
109
114
|
readonly PaperClip: "PaperClip";
|
|
110
115
|
readonly PaperAirplane: "PaperAirplane";
|
|
111
116
|
readonly PaintBrush: "PaintBrush";
|
|
117
|
+
readonly NumberedList: "NumberedList";
|
|
112
118
|
readonly NoSymbol: "NoSymbol";
|
|
113
119
|
readonly Newspaper: "Newspaper";
|
|
114
120
|
readonly MusicalNote: "MusicalNote";
|
|
115
121
|
readonly Moon: "Moon";
|
|
116
122
|
readonly Minus: "Minus";
|
|
117
|
-
readonly MinusSmall: "MinusSmall";
|
|
118
123
|
readonly MinusCircle: "MinusCircle";
|
|
119
124
|
readonly Microphone: "Microphone";
|
|
120
125
|
readonly Megaphone: "Megaphone";
|
|
@@ -128,10 +133,12 @@ export declare const iconNames: {
|
|
|
128
133
|
readonly LockClosed: "LockClosed";
|
|
129
134
|
readonly ListBullet: "ListBullet";
|
|
130
135
|
readonly Link: "Link";
|
|
136
|
+
readonly LinkSlash: "LinkSlash";
|
|
131
137
|
readonly LightBulb: "LightBulb";
|
|
132
138
|
readonly Lifebuoy: "Lifebuoy";
|
|
133
139
|
readonly Language: "Language";
|
|
134
140
|
readonly Key: "Key";
|
|
141
|
+
readonly Italic: "Italic";
|
|
135
142
|
readonly InformationCircle: "InformationCircle";
|
|
136
143
|
readonly Inbox: "Inbox";
|
|
137
144
|
readonly InboxStack: "InboxStack";
|
|
@@ -144,6 +151,9 @@ export declare const iconNames: {
|
|
|
144
151
|
readonly HandThumbUp: "HandThumbUp";
|
|
145
152
|
readonly HandThumbDown: "HandThumbDown";
|
|
146
153
|
readonly HandRaised: "HandRaised";
|
|
154
|
+
readonly H3: "H3";
|
|
155
|
+
readonly H2: "H2";
|
|
156
|
+
readonly H1: "H1";
|
|
147
157
|
readonly GlobeEuropeAfrica: "GlobeEuropeAfrica";
|
|
148
158
|
readonly GlobeAsiaAustralia: "GlobeAsiaAustralia";
|
|
149
159
|
readonly GlobeAmericas: "GlobeAmericas";
|
|
@@ -169,6 +179,7 @@ export declare const iconNames: {
|
|
|
169
179
|
readonly EyeDropper: "EyeDropper";
|
|
170
180
|
readonly ExclamationTriangle: "ExclamationTriangle";
|
|
171
181
|
readonly ExclamationCircle: "ExclamationCircle";
|
|
182
|
+
readonly Equals: "Equals";
|
|
172
183
|
readonly Envelope: "Envelope";
|
|
173
184
|
readonly EnvelopeOpen: "EnvelopeOpen";
|
|
174
185
|
readonly EllipsisVertical: "EllipsisVertical";
|
|
@@ -180,10 +191,17 @@ export declare const iconNames: {
|
|
|
180
191
|
readonly DocumentMinus: "DocumentMinus";
|
|
181
192
|
readonly DocumentMagnifyingGlass: "DocumentMagnifyingGlass";
|
|
182
193
|
readonly DocumentDuplicate: "DocumentDuplicate";
|
|
194
|
+
readonly DocumentCurrencyYen: "DocumentCurrencyYen";
|
|
195
|
+
readonly DocumentCurrencyRupee: "DocumentCurrencyRupee";
|
|
196
|
+
readonly DocumentCurrencyPound: "DocumentCurrencyPound";
|
|
197
|
+
readonly DocumentCurrencyEuro: "DocumentCurrencyEuro";
|
|
198
|
+
readonly DocumentCurrencyDollar: "DocumentCurrencyDollar";
|
|
199
|
+
readonly DocumentCurrencyBangladeshi: "DocumentCurrencyBangladeshi";
|
|
183
200
|
readonly DocumentCheck: "DocumentCheck";
|
|
184
201
|
readonly DocumentChartBar: "DocumentChartBar";
|
|
185
202
|
readonly DocumentArrowUp: "DocumentArrowUp";
|
|
186
203
|
readonly DocumentArrowDown: "DocumentArrowDown";
|
|
204
|
+
readonly Divide: "Divide";
|
|
187
205
|
readonly DeviceTablet: "DeviceTablet";
|
|
188
206
|
readonly DevicePhoneMobile: "DevicePhoneMobile";
|
|
189
207
|
readonly CursorArrowRipple: "CursorArrowRipple";
|
|
@@ -239,6 +257,7 @@ export declare const iconNames: {
|
|
|
239
257
|
readonly Camera: "Camera";
|
|
240
258
|
readonly Calendar: "Calendar";
|
|
241
259
|
readonly CalendarDays: "CalendarDays";
|
|
260
|
+
readonly CalendarDateRange: "CalendarDateRange";
|
|
242
261
|
readonly Calculator: "Calculator";
|
|
243
262
|
readonly Cake: "Cake";
|
|
244
263
|
readonly BuildingStorefront: "BuildingStorefront";
|
|
@@ -253,6 +272,7 @@ export declare const iconNames: {
|
|
|
253
272
|
readonly BookOpen: "BookOpen";
|
|
254
273
|
readonly Bolt: "Bolt";
|
|
255
274
|
readonly BoltSlash: "BoltSlash";
|
|
275
|
+
readonly Bold: "Bold";
|
|
256
276
|
readonly Bell: "Bell";
|
|
257
277
|
readonly BellSnooze: "BellSnooze";
|
|
258
278
|
readonly BellSlash: "BellSlash";
|
|
@@ -288,15 +308,20 @@ export declare const iconNames: {
|
|
|
288
308
|
readonly ArrowUpOnSquareStack: "ArrowUpOnSquareStack";
|
|
289
309
|
readonly ArrowUpLeft: "ArrowUpLeft";
|
|
290
310
|
readonly ArrowUpCircle: "ArrowUpCircle";
|
|
311
|
+
readonly ArrowTurnUpRight: "ArrowTurnUpRight";
|
|
312
|
+
readonly ArrowTurnUpLeft: "ArrowTurnUpLeft";
|
|
313
|
+
readonly ArrowTurnRightUp: "ArrowTurnRightUp";
|
|
314
|
+
readonly ArrowTurnRightDown: "ArrowTurnRightDown";
|
|
315
|
+
readonly ArrowTurnLeftUp: "ArrowTurnLeftUp";
|
|
316
|
+
readonly ArrowTurnLeftDown: "ArrowTurnLeftDown";
|
|
317
|
+
readonly ArrowTurnDownRight: "ArrowTurnDownRight";
|
|
318
|
+
readonly ArrowTurnDownLeft: "ArrowTurnDownLeft";
|
|
291
319
|
readonly ArrowTrendingUp: "ArrowTrendingUp";
|
|
292
320
|
readonly ArrowTrendingDown: "ArrowTrendingDown";
|
|
293
321
|
readonly ArrowTopRightOnSquare: "ArrowTopRightOnSquare";
|
|
294
|
-
readonly ArrowSmallUp: "ArrowSmallUp";
|
|
295
|
-
readonly ArrowSmallRight: "ArrowSmallRight";
|
|
296
|
-
readonly ArrowSmallLeft: "ArrowSmallLeft";
|
|
297
|
-
readonly ArrowSmallDown: "ArrowSmallDown";
|
|
298
322
|
readonly ArrowRight: "ArrowRight";
|
|
299
|
-
readonly
|
|
323
|
+
readonly ArrowRightStartOnRectangle: "ArrowRightStartOnRectangle";
|
|
324
|
+
readonly ArrowRightEndOnRectangle: "ArrowRightEndOnRectangle";
|
|
300
325
|
readonly ArrowRightCircle: "ArrowRightCircle";
|
|
301
326
|
readonly ArrowPath: "ArrowPath";
|
|
302
327
|
readonly ArrowPathRoundedSquare: "ArrowPathRoundedSquare";
|
|
@@ -305,7 +330,8 @@ export declare const iconNames: {
|
|
|
305
330
|
readonly ArrowLongLeft: "ArrowLongLeft";
|
|
306
331
|
readonly ArrowLongDown: "ArrowLongDown";
|
|
307
332
|
readonly ArrowLeft: "ArrowLeft";
|
|
308
|
-
readonly
|
|
333
|
+
readonly ArrowLeftStartOnRectangle: "ArrowLeftStartOnRectangle";
|
|
334
|
+
readonly ArrowLeftEndOnRectangle: "ArrowLeftEndOnRectangle";
|
|
309
335
|
readonly ArrowLeftCircle: "ArrowLeftCircle";
|
|
310
336
|
readonly ArrowDown: "ArrowDown";
|
|
311
337
|
readonly ArrowDownTray: "ArrowDownTray";
|
|
File without changes
|