@devopness/ui-react 2.159.0 → 2.161.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.
@@ -1,435 +1,438 @@
1
+ import { Icon } from './types';
1
2
  declare const iconList: readonly [{
2
3
  readonly type: "icon";
3
- readonly accessor: "link";
4
+ readonly name: "add";
4
5
  readonly component: import('react-icons/lib').IconType;
5
6
  }, {
6
7
  readonly type: "icon";
7
- readonly accessor: "unlink";
8
+ readonly name: "alarm";
8
9
  readonly component: import('react-icons/lib').IconType;
9
10
  }, {
10
11
  readonly type: "icon";
11
- readonly accessor: "tag";
12
+ readonly name: "arrowDown";
12
13
  readonly component: import('react-icons/lib').IconType;
13
14
  }, {
14
15
  readonly type: "icon";
15
- readonly accessor: "help";
16
+ readonly name: "arrowLeft";
16
17
  readonly component: import('react-icons/lib').IconType;
17
18
  }, {
18
19
  readonly type: "icon";
19
- readonly accessor: "key";
20
+ readonly name: "arrowRight";
20
21
  readonly component: import('react-icons/lib').IconType;
21
22
  }, {
22
23
  readonly type: "icon";
23
- readonly accessor: "skip";
24
+ readonly name: "arrowUp";
24
25
  readonly component: import('react-icons/lib').IconType;
25
26
  }, {
26
27
  readonly type: "icon";
27
- readonly accessor: "pending";
28
+ readonly name: "branch";
28
29
  readonly component: import('react-icons/lib').IconType;
29
30
  }, {
30
31
  readonly type: "icon";
31
- readonly accessor: "loading";
32
- readonly component: ({ color, size }: {
33
- color: string;
34
- size: number;
35
- }) => import("react/jsx-runtime").JSX.Element;
32
+ readonly name: "checkOutline";
33
+ readonly component: import('react-icons/lib').IconType;
34
+ }, {
35
+ readonly type: "image";
36
+ readonly name: "children";
37
+ readonly component: string;
36
38
  }, {
37
39
  readonly type: "icon";
38
- readonly accessor: "server";
40
+ readonly name: "close";
39
41
  readonly component: import('react-icons/lib').IconType;
40
42
  }, {
41
43
  readonly type: "icon";
42
- readonly accessor: "self-hosted";
44
+ readonly name: "cloudWarning";
43
45
  readonly component: import('react-icons/lib').IconType;
44
46
  }, {
45
47
  readonly type: "icon";
46
- readonly accessor: "sortIcon";
48
+ readonly name: "codeBadge";
47
49
  readonly component: import('react-icons/lib').IconType;
48
50
  }, {
49
51
  readonly type: "icon";
50
- readonly accessor: "add";
52
+ readonly name: "commit";
51
53
  readonly component: import('react-icons/lib').IconType;
52
54
  }, {
53
55
  readonly type: "icon";
54
- readonly accessor: "plus";
56
+ readonly name: "config";
55
57
  readonly component: import('react-icons/lib').IconType;
56
58
  }, {
57
59
  readonly type: "icon";
58
- readonly accessor: "downArrow";
60
+ readonly name: "connect";
59
61
  readonly component: import('react-icons/lib').IconType;
60
62
  }, {
61
63
  readonly type: "icon";
62
- readonly accessor: "upArrow";
64
+ readonly name: "copy";
63
65
  readonly component: import('react-icons/lib').IconType;
64
66
  }, {
65
67
  readonly type: "icon";
66
- readonly accessor: "leftArrow";
68
+ readonly name: "copyOutline";
67
69
  readonly component: import('react-icons/lib').IconType;
68
70
  }, {
69
71
  readonly type: "icon";
70
- readonly accessor: "rightArrow";
72
+ readonly name: "cubes";
71
73
  readonly component: import('react-icons/lib').IconType;
72
74
  }, {
73
75
  readonly type: "icon";
74
- readonly accessor: "config";
76
+ readonly name: "currencyCircle";
75
77
  readonly component: import('react-icons/lib').IconType;
76
78
  }, {
77
79
  readonly type: "icon";
78
- readonly accessor: "userCheck";
80
+ readonly name: "delete";
79
81
  readonly component: import('react-icons/lib').IconType;
80
82
  }, {
81
83
  readonly type: "icon";
82
- readonly accessor: "userClock";
84
+ readonly name: "deploy";
83
85
  readonly component: import('react-icons/lib').IconType;
84
86
  }, {
85
87
  readonly type: "icon";
86
- readonly accessor: "userTimes";
88
+ readonly name: "description";
87
89
  readonly component: import('react-icons/lib').IconType;
88
90
  }, {
89
91
  readonly type: "icon";
90
- readonly accessor: "warningCloud";
92
+ readonly name: "devices";
91
93
  readonly component: import('react-icons/lib').IconType;
92
94
  }, {
93
95
  readonly type: "icon";
94
- readonly accessor: "error";
96
+ readonly name: "dragHandle";
95
97
  readonly component: import('react-icons/lib').IconType;
96
98
  }, {
97
99
  readonly type: "icon";
98
- readonly accessor: "warning";
100
+ readonly name: "edit";
99
101
  readonly component: import('react-icons/lib').IconType;
100
102
  }, {
101
103
  readonly type: "icon";
102
- readonly accessor: "checkCircle";
104
+ readonly name: "error";
103
105
  readonly component: import('react-icons/lib').IconType;
104
106
  }, {
105
107
  readonly type: "icon";
106
- readonly accessor: "alarmOn";
108
+ readonly name: "eyeClosed";
107
109
  readonly component: import('react-icons/lib').IconType;
108
110
  }, {
109
111
  readonly type: "icon";
110
- readonly accessor: "dragHandle";
112
+ readonly name: "eyeOpen";
111
113
  readonly component: import('react-icons/lib').IconType;
112
114
  }, {
113
115
  readonly type: "icon";
114
- readonly accessor: "delete";
116
+ readonly name: "eyeOutline";
115
117
  readonly component: import('react-icons/lib').IconType;
116
118
  }, {
117
119
  readonly type: "icon";
118
- readonly accessor: "edit";
120
+ readonly name: "folder";
119
121
  readonly component: import('react-icons/lib').IconType;
120
122
  }, {
121
123
  readonly type: "icon";
122
- readonly accessor: "lockOpen";
124
+ readonly name: "gear";
123
125
  readonly component: import('react-icons/lib').IconType;
124
126
  }, {
125
127
  readonly type: "icon";
126
- readonly accessor: "lock";
128
+ readonly name: "globe";
127
129
  readonly component: import('react-icons/lib').IconType;
128
130
  }, {
129
131
  readonly type: "icon";
130
- readonly accessor: "eye2Line";
132
+ readonly name: "group";
131
133
  readonly component: import('react-icons/lib').IconType;
132
134
  }, {
133
135
  readonly type: "icon";
134
- readonly accessor: "cubes";
136
+ readonly name: "help";
135
137
  readonly component: import('react-icons/lib').IconType;
136
138
  }, {
137
139
  readonly type: "icon";
138
- readonly accessor: "security";
140
+ readonly name: "info";
139
141
  readonly component: import('react-icons/lib').IconType;
140
142
  }, {
141
143
  readonly type: "icon";
142
- readonly accessor: "fillGearFill";
144
+ readonly name: "key";
143
145
  readonly component: import('react-icons/lib').IconType;
144
146
  }, {
145
147
  readonly type: "icon";
146
- readonly accessor: "devices";
148
+ readonly name: "launch";
147
149
  readonly component: import('react-icons/lib').IconType;
148
150
  }, {
149
151
  readonly type: "icon";
150
- readonly accessor: "logout";
152
+ readonly name: "lens";
151
153
  readonly component: import('react-icons/lib').IconType;
152
154
  }, {
153
155
  readonly type: "icon";
154
- readonly accessor: "codeBadge";
156
+ readonly name: "link";
155
157
  readonly component: import('react-icons/lib').IconType;
156
158
  }, {
157
159
  readonly type: "icon";
158
- readonly accessor: "logout";
159
- readonly component: import('react-icons/lib').IconType;
160
+ readonly name: "loading";
161
+ readonly component: ({ color, size }: {
162
+ color: string;
163
+ size: number;
164
+ }) => import("react/jsx-runtime").JSX.Element;
160
165
  }, {
161
166
  readonly type: "icon";
162
- readonly accessor: "snooze";
167
+ readonly name: "lock";
163
168
  readonly component: import('react-icons/lib').IconType;
164
169
  }, {
165
170
  readonly type: "icon";
166
- readonly accessor: "timeroff";
171
+ readonly name: "lockOpen";
167
172
  readonly component: import('react-icons/lib').IconType;
168
173
  }, {
169
174
  readonly type: "icon";
170
- readonly accessor: "deploy";
175
+ readonly name: "logout";
171
176
  readonly component: import('react-icons/lib').IconType;
172
177
  }, {
173
178
  readonly type: "icon";
174
- readonly accessor: "outlineCheck";
179
+ readonly name: "mapPin";
175
180
  readonly component: import('react-icons/lib').IconType;
176
181
  }, {
177
182
  readonly type: "icon";
178
- readonly accessor: "filledCheck";
183
+ readonly name: "more";
179
184
  readonly component: import('react-icons/lib').IconType;
180
185
  }, {
181
186
  readonly type: "icon";
182
- readonly accessor: "settings";
187
+ readonly name: "network";
183
188
  readonly component: import('react-icons/lib').IconType;
184
189
  }, {
185
190
  readonly type: "icon";
186
- readonly accessor: "branch";
191
+ readonly name: "openInNewWindow";
187
192
  readonly component: import('react-icons/lib').IconType;
188
193
  }, {
189
194
  readonly type: "icon";
190
- readonly accessor: "commit";
195
+ readonly name: "organization";
191
196
  readonly component: import('react-icons/lib').IconType;
197
+ }, {
198
+ readonly type: "image";
199
+ readonly name: "parent";
200
+ readonly component: string;
192
201
  }, {
193
202
  readonly type: "icon";
194
- readonly accessor: "user";
203
+ readonly name: "passkey";
195
204
  readonly component: import('react-icons/lib').IconType;
196
205
  }, {
197
206
  readonly type: "icon";
198
- readonly accessor: "copy";
207
+ readonly name: "pending";
199
208
  readonly component: import('react-icons/lib').IconType;
200
209
  }, {
201
210
  readonly type: "icon";
202
- readonly accessor: "outlineCopy";
211
+ readonly name: "plus";
203
212
  readonly component: import('react-icons/lib').IconType;
204
213
  }, {
205
214
  readonly type: "icon";
206
- readonly accessor: "lens";
215
+ readonly name: "plusCircle";
207
216
  readonly component: import('react-icons/lib').IconType;
208
217
  }, {
209
218
  readonly type: "icon";
210
- readonly accessor: "more";
219
+ readonly name: "remove";
211
220
  readonly component: import('react-icons/lib').IconType;
212
221
  }, {
213
222
  readonly type: "icon";
214
- readonly accessor: "launch";
223
+ readonly name: "security";
215
224
  readonly component: import('react-icons/lib').IconType;
216
225
  }, {
217
226
  readonly type: "icon";
218
- readonly accessor: "connect";
227
+ readonly name: "server";
219
228
  readonly component: import('react-icons/lib').IconType;
220
229
  }, {
221
230
  readonly type: "icon";
222
- readonly accessor: "cloudServer";
231
+ readonly name: "serverCloud";
223
232
  readonly component: import('react-icons/lib').IconType;
224
233
  }, {
225
234
  readonly type: "icon";
226
- readonly accessor: "gitBranch";
235
+ readonly name: "serverOutline";
227
236
  readonly component: import('react-icons/lib').IconType;
228
237
  }, {
229
238
  readonly type: "icon";
230
- readonly accessor: "outlineServer";
239
+ readonly name: "settings";
231
240
  readonly component: import('react-icons/lib').IconType;
232
241
  }, {
233
242
  readonly type: "icon";
234
- readonly accessor: "storage";
243
+ readonly name: "shield";
235
244
  readonly component: import('react-icons/lib').IconType;
236
245
  }, {
237
246
  readonly type: "icon";
238
- readonly accessor: "mapPinLine";
239
- readonly component: import('react-icons/lib').IconType;
247
+ readonly name: "shieldLock";
248
+ readonly component: string;
240
249
  }, {
241
250
  readonly type: "icon";
242
- readonly accessor: "outlineSafety";
251
+ readonly name: "shieldOutline";
243
252
  readonly component: import('react-icons/lib').IconType;
244
253
  }, {
245
254
  readonly type: "icon";
246
- readonly accessor: "plusCircle";
255
+ readonly name: "skip";
247
256
  readonly component: import('react-icons/lib').IconType;
248
257
  }, {
249
258
  readonly type: "icon";
250
- readonly accessor: "riTeamLine";
259
+ readonly name: "snooze";
251
260
  readonly component: import('react-icons/lib').IconType;
252
261
  }, {
253
262
  readonly type: "icon";
254
- readonly accessor: "aiOutlineDollarCircle";
263
+ readonly name: "sort";
255
264
  readonly component: import('react-icons/lib').IconType;
256
265
  }, {
257
266
  readonly type: "icon";
258
- readonly accessor: "network";
267
+ readonly name: "storage";
259
268
  readonly component: import('react-icons/lib').IconType;
260
269
  }, {
261
270
  readonly type: "icon";
262
- readonly accessor: "subnet";
271
+ readonly name: "subnet";
263
272
  readonly component: import('react-icons/lib').IconType;
264
273
  }, {
265
274
  readonly type: "icon";
266
- readonly accessor: "mdGroup";
275
+ readonly name: "success";
267
276
  readonly component: import('react-icons/lib').IconType;
268
277
  }, {
269
278
  readonly type: "icon";
270
- readonly accessor: "faGlobe";
279
+ readonly name: "tag";
271
280
  readonly component: import('react-icons/lib').IconType;
272
281
  }, {
273
282
  readonly type: "icon";
274
- readonly accessor: "openInNewWindow";
283
+ readonly name: "teamOutline";
275
284
  readonly component: import('react-icons/lib').IconType;
276
285
  }, {
277
- readonly type: "image";
278
- readonly accessor: "github";
279
- readonly component: string;
280
- }, {
281
- readonly type: "image";
282
- readonly accessor: "github-white";
283
- readonly component: string;
286
+ readonly type: "icon";
287
+ readonly name: "terminal";
288
+ readonly component: import('react-icons/lib').IconType;
284
289
  }, {
285
- readonly type: "image";
286
- readonly accessor: "gitlab";
287
- readonly component: string;
290
+ readonly type: "icon";
291
+ readonly name: "treeView";
292
+ readonly component: import('react-icons/lib').IconType;
288
293
  }, {
289
- readonly type: "image";
290
- readonly accessor: "bitbucket";
291
- readonly component: string;
294
+ readonly type: "icon";
295
+ readonly name: "unlink";
296
+ readonly component: import('react-icons/lib').IconType;
292
297
  }, {
293
- readonly type: "image";
294
- readonly accessor: "bitbucket-white";
295
- readonly component: string;
298
+ readonly type: "icon";
299
+ readonly name: "user";
300
+ readonly component: import('react-icons/lib').IconType;
296
301
  }, {
297
- readonly type: "image";
298
- readonly accessor: "docker";
299
- readonly component: string;
302
+ readonly type: "icon";
303
+ readonly name: "warning";
304
+ readonly component: import('react-icons/lib').IconType;
300
305
  }, {
301
306
  readonly type: "image";
302
- readonly accessor: "c-sharp";
307
+ readonly name: "aws";
303
308
  readonly component: string;
304
309
  }, {
305
310
  readonly type: "image";
306
- readonly accessor: "dotnetcore";
311
+ readonly name: "azure";
307
312
  readonly component: string;
308
313
  }, {
309
314
  readonly type: "image";
310
- readonly accessor: "dotnetcore-aspnetcore";
315
+ readonly name: "bitbucket";
311
316
  readonly component: string;
312
317
  }, {
313
318
  readonly type: "image";
314
- readonly accessor: "html";
319
+ readonly name: "c-sharp";
315
320
  readonly component: string;
316
321
  }, {
317
322
  readonly type: "image";
318
- readonly accessor: "nodejs";
323
+ readonly name: "centos";
319
324
  readonly component: string;
320
325
  }, {
321
326
  readonly type: "image";
322
- readonly accessor: "php";
327
+ readonly name: "devopness";
323
328
  readonly component: string;
324
329
  }, {
325
330
  readonly type: "image";
326
- readonly accessor: "php-laravel";
331
+ readonly name: "digitalocean";
327
332
  readonly component: string;
328
333
  }, {
329
334
  readonly type: "image";
330
- readonly accessor: "python";
335
+ readonly name: "docker";
331
336
  readonly component: string;
332
337
  }, {
333
338
  readonly type: "image";
334
- readonly accessor: "python-django";
339
+ readonly name: "dotnetcore";
335
340
  readonly component: string;
336
341
  }, {
337
342
  readonly type: "image";
338
- readonly accessor: "python-flask";
343
+ readonly name: "dotnetcore-aspnetcore";
339
344
  readonly component: string;
340
345
  }, {
341
346
  readonly type: "image";
342
- readonly accessor: "python-fastapi";
347
+ readonly name: "gcp";
343
348
  readonly component: string;
344
349
  }, {
345
350
  readonly type: "image";
346
- readonly accessor: "ubuntu";
351
+ readonly name: "github";
347
352
  readonly component: string;
348
353
  }, {
349
354
  readonly type: "image";
350
- readonly accessor: "centos";
355
+ readonly name: "gitlab";
351
356
  readonly component: string;
352
357
  }, {
353
358
  readonly type: "image";
354
- readonly accessor: "aws";
359
+ readonly name: "html";
355
360
  readonly component: string;
356
361
  }, {
357
362
  readonly type: "image";
358
- readonly accessor: "azure";
363
+ readonly name: "java";
359
364
  readonly component: string;
360
365
  }, {
361
366
  readonly type: "image";
362
- readonly accessor: "digitalocean";
367
+ readonly name: "nodejs";
363
368
  readonly component: string;
364
369
  }, {
365
370
  readonly type: "image";
366
- readonly accessor: "gcp";
371
+ readonly name: "php";
367
372
  readonly component: string;
368
373
  }, {
369
374
  readonly type: "image";
370
- readonly accessor: "parent";
375
+ readonly name: "php-laravel";
371
376
  readonly component: string;
372
377
  }, {
373
378
  readonly type: "image";
374
- readonly accessor: "children";
379
+ readonly name: "python";
375
380
  readonly component: string;
376
381
  }, {
377
382
  readonly type: "image";
378
- readonly accessor: "java";
383
+ readonly name: "python-django";
379
384
  readonly component: string;
380
385
  }, {
381
386
  readonly type: "image";
382
- readonly accessor: "ruby";
387
+ readonly name: "python-fastapi";
383
388
  readonly component: string;
384
389
  }, {
385
390
  readonly type: "image";
386
- readonly accessor: "shieldLock";
391
+ readonly name: "python-flask";
387
392
  readonly component: string;
388
393
  }, {
389
394
  readonly type: "image";
390
- readonly accessor: "devopness";
395
+ readonly name: "ruby";
391
396
  readonly component: string;
392
397
  }, {
393
398
  readonly type: "icon";
394
- readonly accessor: "close";
395
- readonly component: import('react-icons/lib').IconType;
396
- }, {
397
- readonly type: "icon";
398
- readonly accessor: "eye";
399
- readonly component: import('react-icons/lib').IconType;
400
- }, {
401
- readonly type: "icon";
402
- readonly accessor: "eyeOff";
403
- readonly component: import('react-icons/lib').IconType;
404
- }, {
405
- readonly type: "icon";
406
- readonly accessor: "passkey";
399
+ readonly name: "self-hosted";
407
400
  readonly component: import('react-icons/lib').IconType;
408
401
  }, {
409
- readonly type: "icon";
410
- readonly accessor: "info";
411
- readonly component: import('react-icons/lib').IconType;
412
- }, {
413
- readonly type: "icon";
414
- readonly accessor: "description";
415
- readonly component: import('react-icons/lib').IconType;
416
- }, {
417
- readonly type: "icon";
418
- readonly accessor: "terminal";
419
- readonly component: import('react-icons/lib').IconType;
420
- }, {
421
- readonly type: "icon";
422
- readonly accessor: "treeView";
423
- readonly component: import('react-icons/lib').IconType;
424
- }, {
425
- readonly type: "icon";
426
- readonly accessor: "folder";
427
- readonly component: import('react-icons/lib').IconType;
402
+ readonly type: "image";
403
+ readonly name: "ubuntu";
404
+ readonly component: string;
428
405
  }];
429
406
  /**
430
- * Lists all valid icon accessors
407
+ * Maps deprecated icon names to their new names.
408
+ *
409
+ * This object helps migrate from old icon names to new ones by providing
410
+ * a lookup table where:
411
+ * - Keys are the old/deprecated icon names
412
+ * - Values are the new icon names that should be used instead
413
+ *
414
+ * @example
415
+ * // The object looks like this:
416
+ * {
417
+ * 'downArrow': 'arrowDown',
418
+ * 'eye': 'eyeOpen',
419
+ * // ... more mappings
420
+ * }
421
+ *
422
+ * @example
423
+ * // Usage:
424
+ * const newName = deprecatedToNewIconMap['downArrow'] // returns 'arrowDown'
431
425
  */
432
- type Icon = (typeof iconList)[number]['accessor'];
433
- declare const iconLoader: (accessorName?: Icon, size?: number, color?: string, opacity?: number, label?: string) => React.JSX.Element;
434
- export type { Icon };
435
- export { iconLoader, iconList };
426
+ declare const deprecatedToNewIconMap: DeprecatedToNewIconMap;
427
+ type DeprecatedIcon = Extract<(typeof iconList)[number], {
428
+ type: 'deprecated-icon';
429
+ } | {
430
+ type: 'deprecated-image';
431
+ }>;
432
+ type DeprecatedToNewIconMap = {
433
+ [K in DeprecatedIcon['name']]: Extract<DeprecatedIcon, {
434
+ name: K;
435
+ }>['newName'];
436
+ };
437
+ declare const iconLoader: (name?: Icon, size?: number, color?: string, opacity?: number, label?: string) => React.JSX.Element;
438
+ export { deprecatedToNewIconMap, iconLoader, iconList };
@@ -1,3 +1,3 @@
1
1
  export * from './getImageAssetUrl';
2
- export type { Icon } from './iconLoader';
2
+ export type { Icon } from './types';
3
3
  export { iconLoader } from './iconLoader';
@@ -0,0 +1,15 @@
1
+ import { deprecatedToNewIconMap, iconList } from './iconLoader';
2
+ /**
3
+ * Lists all valid icon names available in the iconList
4
+ */
5
+ type Icon = (typeof iconList)[number]['name'];
6
+ /**
7
+ * Lists all valid icon names, filtered out the deprecated ones
8
+ *
9
+ * If you need to migrate from a deprecated icon, you can use the
10
+ * deprecatedToNewIconMap object to find the new icon name.
11
+ *
12
+ * @see {deprecatedToNewIconMap}
13
+ */
14
+ type ValidIcon = Exclude<Icon, keyof typeof deprecatedToNewIconMap>;
15
+ export type { ValidIcon as Icon };