@threadlabs/looma 0.13.5 → 0.14.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.
Files changed (65) hide show
  1. package/components/ui-button/ui-button.html +2 -1
  2. package/components/ui-checkbox/ui-checkbox.html +35 -0
  3. package/components/ui-combobox/ui-combobox.html +38 -3
  4. package/components/ui-icon/ui-icon.html +67 -7
  5. package/components/ui-input/ui-input.html +27 -0
  6. package/components/ui-input-group/ui-input-group.html +15 -0
  7. package/components/ui-radio/ui-radio.html +35 -0
  8. package/components/ui-select/ui-select.html +29 -3
  9. package/components/ui-switch/ui-switch.html +36 -0
  10. package/components/ui-textarea/ui-textarea.html +20 -0
  11. package/dist/index.js +17 -18
  12. package/package.json +1 -1
  13. package/styles/ui-button.css +3 -1
  14. package/styles/ui-checkbox.css +38 -0
  15. package/styles/ui-combobox.css +38 -1
  16. package/styles/ui-input-group.css +20 -0
  17. package/styles/ui-input.css +29 -0
  18. package/styles/ui-radio.css +38 -0
  19. package/styles/ui-select.css +29 -3
  20. package/styles/ui-switch.css +41 -0
  21. package/styles/ui-textarea.css +21 -0
  22. package/vanilla/UiCheckbox.d.ts +1 -0
  23. package/vanilla/UiCheckbox.js +1 -1
  24. package/vanilla/UiCombobox.d.ts +1 -1
  25. package/vanilla/UiCombobox.js +1 -1
  26. package/vanilla/UiIcon.js +1 -3
  27. package/vanilla/UiInput.d.ts +1 -0
  28. package/vanilla/UiInput.js +1 -1
  29. package/vanilla/UiRadio.d.ts +1 -0
  30. package/vanilla/UiRadio.js +1 -1
  31. package/vanilla/UiSelect.d.ts +1 -0
  32. package/vanilla/UiSelect.js +1 -1
  33. package/vanilla/UiSwitch.d.ts +1 -0
  34. package/vanilla/UiSwitch.js +1 -1
  35. package/vanilla/UiTextarea.d.ts +1 -0
  36. package/vanilla/UiTextarea.js +1 -1
  37. package/vue/UiButton.vue +2 -1
  38. package/vue/UiCheckbox.d.ts +2 -0
  39. package/vue/UiCheckbox.vue +34 -0
  40. package/vue/UiCombobox.d.ts +2 -2
  41. package/vue/UiCombobox.vue +39 -2
  42. package/vue/UiIcon.vue +337 -42
  43. package/vue/UiInput.d.ts +2 -0
  44. package/vue/UiInput.vue +41 -0
  45. package/vue/UiInputGroup.vue +15 -0
  46. package/vue/UiRadio.d.ts +2 -0
  47. package/vue/UiRadio.vue +34 -0
  48. package/vue/UiSelect.d.ts +2 -0
  49. package/vue/UiSelect.vue +34 -3
  50. package/vue/UiSwitch.d.ts +2 -0
  51. package/vue/UiSwitch.vue +35 -0
  52. package/vue/UiTextarea.d.ts +2 -0
  53. package/vue/UiTextarea.vue +27 -0
  54. package/vue/chunks/UiButton.js +1 -1
  55. package/vue/chunks/UiCheckbox.js +3 -2
  56. package/vue/chunks/UiCombobox.js +1 -1
  57. package/vue/chunks/UiIcon.js +950 -32
  58. package/vue/chunks/UiInput.js +7 -2
  59. package/vue/chunks/UiInputGroup.js +1 -1
  60. package/vue/chunks/UiRadio.js +3 -2
  61. package/vue/chunks/UiSelect.js +7 -2
  62. package/vue/chunks/UiSwitch.js +3 -2
  63. package/vue/chunks/UiTextarea.js +7 -2
  64. package/vue/components.css +368 -168
  65. package/components/ui-icon/ui-icon.js +0 -8
@@ -1,7 +1,5 @@
1
1
  import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
2
- import { n as useComponentHost, t as createDispatch } from "./host.js";
3
- import { Fragment, createCommentVNode, createElementBlock, defineComponent, mergeProps, openBlock, ref, renderList } from "vue";
4
- import * as controllerModule from "@threadlabs/looma/components/ui-icon/ui-icon.js";
2
+ import { Fragment, computed, createCommentVNode, createElementBlock, defineComponent, mergeProps, openBlock, renderList } from "vue";
5
3
  //#region .build/vue/UiIcon.vue?vue&type=script&setup=true&lang.ts
6
4
  var _hoisted_1 = {
7
5
  viewBox: "0 0 24 24",
@@ -23,12 +21,13 @@ var _hoisted_4 = [
23
21
  "y",
24
22
  "width",
25
23
  "height",
26
- "rx"
24
+ "rx",
25
+ "ry"
27
26
  ];
28
27
  var _hoisted_5 = [
29
28
  "x1",
30
- "x2",
31
29
  "y1",
30
+ "x2",
32
31
  "y2"
33
32
  ];
34
33
  //#endregion
@@ -39,53 +38,972 @@ var UiIcon_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
39
38
  props: { name: { default: "" } },
40
39
  setup(__props) {
41
40
  const props = __props;
42
- const root = ref(null);
43
- const shapes = ref([]);
44
- const dispatch = createDispatch(root);
45
- useComponentHost(controllerModule.default, {
46
- root,
47
- dispatch,
48
- props,
49
- state: { shapes }
50
- });
41
+ const shapes = computed(() => ({
42
+ "align-center": [
43
+ {
44
+ tag: "path",
45
+ d: "M21 5H3"
46
+ },
47
+ {
48
+ tag: "path",
49
+ d: "M17 12H7"
50
+ },
51
+ {
52
+ tag: "path",
53
+ d: "M19 19H5"
54
+ }
55
+ ],
56
+ "align-left": [
57
+ {
58
+ tag: "path",
59
+ d: "M21 5H3"
60
+ },
61
+ {
62
+ tag: "path",
63
+ d: "M15 12H3"
64
+ },
65
+ {
66
+ tag: "path",
67
+ d: "M17 19H3"
68
+ }
69
+ ],
70
+ "align-right": [
71
+ {
72
+ tag: "path",
73
+ d: "M21 5H3"
74
+ },
75
+ {
76
+ tag: "path",
77
+ d: "M21 12H9"
78
+ },
79
+ {
80
+ tag: "path",
81
+ d: "M21 19H7"
82
+ }
83
+ ],
84
+ "arrow-left": [{
85
+ tag: "path",
86
+ d: "m12 19-7-7 7-7"
87
+ }, {
88
+ tag: "path",
89
+ d: "M19 12H5"
90
+ }],
91
+ bold: [{
92
+ tag: "path",
93
+ d: "M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8"
94
+ }],
95
+ "book-user": [
96
+ {
97
+ tag: "path",
98
+ d: "M15 13a3 3 0 1 0-6 0"
99
+ },
100
+ {
101
+ tag: "path",
102
+ d: "M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"
103
+ },
104
+ {
105
+ tag: "circle",
106
+ cx: "12",
107
+ cy: "8",
108
+ r: "2"
109
+ }
110
+ ],
111
+ braces: [{
112
+ tag: "path",
113
+ d: "M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1"
114
+ }, {
115
+ tag: "path",
116
+ d: "M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1"
117
+ }],
118
+ calculator: [
119
+ {
120
+ tag: "rect",
121
+ width: "16",
122
+ height: "20",
123
+ x: "4",
124
+ y: "2",
125
+ rx: "2"
126
+ },
127
+ {
128
+ tag: "line",
129
+ x1: "8",
130
+ x2: "16",
131
+ y1: "6",
132
+ y2: "6"
133
+ },
134
+ {
135
+ tag: "line",
136
+ x1: "16",
137
+ x2: "16",
138
+ y1: "14",
139
+ y2: "18"
140
+ },
141
+ {
142
+ tag: "path",
143
+ d: "M16 10h.01"
144
+ },
145
+ {
146
+ tag: "path",
147
+ d: "M12 10h.01"
148
+ },
149
+ {
150
+ tag: "path",
151
+ d: "M8 10h.01"
152
+ },
153
+ {
154
+ tag: "path",
155
+ d: "M12 14h.01"
156
+ },
157
+ {
158
+ tag: "path",
159
+ d: "M8 14h.01"
160
+ },
161
+ {
162
+ tag: "path",
163
+ d: "M12 18h.01"
164
+ },
165
+ {
166
+ tag: "path",
167
+ d: "M8 18h.01"
168
+ }
169
+ ],
170
+ "chevron-down": [{
171
+ tag: "path",
172
+ d: "m6 9 6 6 6-6"
173
+ }],
174
+ "chevron-left": [{
175
+ tag: "path",
176
+ d: "m15 18-6-6 6-6"
177
+ }],
178
+ "chevron-right": [{
179
+ tag: "path",
180
+ d: "m9 18 6-6-6-6"
181
+ }],
182
+ "circle-check": [{
183
+ tag: "circle",
184
+ cx: "12",
185
+ cy: "12",
186
+ r: "10"
187
+ }, {
188
+ tag: "path",
189
+ d: "m9 12 2 2 4-4"
190
+ }],
191
+ "circle-x": [
192
+ {
193
+ tag: "circle",
194
+ cx: "12",
195
+ cy: "12",
196
+ r: "10"
197
+ },
198
+ {
199
+ tag: "path",
200
+ d: "m15 9-6 6"
201
+ },
202
+ {
203
+ tag: "path",
204
+ d: "m9 9 6 6"
205
+ }
206
+ ],
207
+ "code-xml": [
208
+ {
209
+ tag: "path",
210
+ d: "m18 16 4-4-4-4"
211
+ },
212
+ {
213
+ tag: "path",
214
+ d: "m6 8-4 4 4 4"
215
+ },
216
+ {
217
+ tag: "path",
218
+ d: "m14.5 4-5 16"
219
+ }
220
+ ],
221
+ columns: [
222
+ {
223
+ tag: "rect",
224
+ width: "18",
225
+ height: "18",
226
+ x: "3",
227
+ y: "3",
228
+ rx: "2"
229
+ },
230
+ {
231
+ tag: "path",
232
+ d: "M9 3v18"
233
+ },
234
+ {
235
+ tag: "path",
236
+ d: "M15 3v18"
237
+ }
238
+ ],
239
+ "credit-card": [{
240
+ tag: "rect",
241
+ width: "20",
242
+ height: "14",
243
+ x: "2",
244
+ y: "5",
245
+ rx: "2"
246
+ }, {
247
+ tag: "line",
248
+ x1: "2",
249
+ x2: "22",
250
+ y1: "10",
251
+ y2: "10"
252
+ }],
253
+ ellipsis: [
254
+ {
255
+ tag: "circle",
256
+ cx: "12",
257
+ cy: "12",
258
+ r: "1"
259
+ },
260
+ {
261
+ tag: "circle",
262
+ cx: "19",
263
+ cy: "12",
264
+ r: "1"
265
+ },
266
+ {
267
+ tag: "circle",
268
+ cx: "5",
269
+ cy: "12",
270
+ r: "1"
271
+ }
272
+ ],
273
+ eraser: [{
274
+ tag: "path",
275
+ d: "M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21"
276
+ }, {
277
+ tag: "path",
278
+ d: "m5.082 11.09 8.828 8.828"
279
+ }],
280
+ "file-text": [
281
+ {
282
+ tag: "path",
283
+ d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"
284
+ },
285
+ {
286
+ tag: "path",
287
+ d: "M14 2v5a1 1 0 0 0 1 1h5"
288
+ },
289
+ {
290
+ tag: "path",
291
+ d: "M10 9H8"
292
+ },
293
+ {
294
+ tag: "path",
295
+ d: "M16 13H8"
296
+ },
297
+ {
298
+ tag: "path",
299
+ d: "M16 17H8"
300
+ }
301
+ ],
302
+ folder: [{
303
+ tag: "path",
304
+ d: "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"
305
+ }],
306
+ "grip-horizontal": [
307
+ {
308
+ tag: "circle",
309
+ cx: "12",
310
+ cy: "9",
311
+ r: "1"
312
+ },
313
+ {
314
+ tag: "circle",
315
+ cx: "19",
316
+ cy: "9",
317
+ r: "1"
318
+ },
319
+ {
320
+ tag: "circle",
321
+ cx: "5",
322
+ cy: "9",
323
+ r: "1"
324
+ },
325
+ {
326
+ tag: "circle",
327
+ cx: "12",
328
+ cy: "15",
329
+ r: "1"
330
+ },
331
+ {
332
+ tag: "circle",
333
+ cx: "19",
334
+ cy: "15",
335
+ r: "1"
336
+ },
337
+ {
338
+ tag: "circle",
339
+ cx: "5",
340
+ cy: "15",
341
+ r: "1"
342
+ }
343
+ ],
344
+ "grip-vertical": [
345
+ {
346
+ tag: "circle",
347
+ cx: "9",
348
+ cy: "12",
349
+ r: "1"
350
+ },
351
+ {
352
+ tag: "circle",
353
+ cx: "9",
354
+ cy: "5",
355
+ r: "1"
356
+ },
357
+ {
358
+ tag: "circle",
359
+ cx: "9",
360
+ cy: "19",
361
+ r: "1"
362
+ },
363
+ {
364
+ tag: "circle",
365
+ cx: "15",
366
+ cy: "12",
367
+ r: "1"
368
+ },
369
+ {
370
+ tag: "circle",
371
+ cx: "15",
372
+ cy: "5",
373
+ r: "1"
374
+ },
375
+ {
376
+ tag: "circle",
377
+ cx: "15",
378
+ cy: "19",
379
+ r: "1"
380
+ }
381
+ ],
382
+ "heading-1": [
383
+ {
384
+ tag: "path",
385
+ d: "M4 12h8"
386
+ },
387
+ {
388
+ tag: "path",
389
+ d: "M4 18V6"
390
+ },
391
+ {
392
+ tag: "path",
393
+ d: "M12 18V6"
394
+ },
395
+ {
396
+ tag: "path",
397
+ d: "m17 12 3-2v8"
398
+ }
399
+ ],
400
+ "heading-2": [
401
+ {
402
+ tag: "path",
403
+ d: "M4 12h8"
404
+ },
405
+ {
406
+ tag: "path",
407
+ d: "M4 18V6"
408
+ },
409
+ {
410
+ tag: "path",
411
+ d: "M12 18V6"
412
+ },
413
+ {
414
+ tag: "path",
415
+ d: "M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1"
416
+ }
417
+ ],
418
+ "heading-3": [
419
+ {
420
+ tag: "path",
421
+ d: "M4 12h8"
422
+ },
423
+ {
424
+ tag: "path",
425
+ d: "M4 18V6"
426
+ },
427
+ {
428
+ tag: "path",
429
+ d: "M12 18V6"
430
+ },
431
+ {
432
+ tag: "path",
433
+ d: "M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2"
434
+ },
435
+ {
436
+ tag: "path",
437
+ d: "M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2"
438
+ }
439
+ ],
440
+ help: [
441
+ {
442
+ tag: "circle",
443
+ cx: "12",
444
+ cy: "12",
445
+ r: "10"
446
+ },
447
+ {
448
+ tag: "path",
449
+ d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"
450
+ },
451
+ {
452
+ tag: "path",
453
+ d: "M12 17h.01"
454
+ }
455
+ ],
456
+ highlighter: [{
457
+ tag: "path",
458
+ d: "m9 11-6 6v3h9l3-3"
459
+ }, {
460
+ tag: "path",
461
+ d: "m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4"
462
+ }],
463
+ image: [
464
+ {
465
+ tag: "rect",
466
+ width: "18",
467
+ height: "18",
468
+ x: "3",
469
+ y: "3",
470
+ rx: "2",
471
+ ry: "2"
472
+ },
473
+ {
474
+ tag: "circle",
475
+ cx: "9",
476
+ cy: "9",
477
+ r: "2"
478
+ },
479
+ {
480
+ tag: "path",
481
+ d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"
482
+ }
483
+ ],
484
+ info: [
485
+ {
486
+ tag: "circle",
487
+ cx: "12",
488
+ cy: "12",
489
+ r: "10"
490
+ },
491
+ {
492
+ tag: "path",
493
+ d: "M12 16v-4"
494
+ },
495
+ {
496
+ tag: "path",
497
+ d: "M12 8h.01"
498
+ }
499
+ ],
500
+ italic: [
501
+ {
502
+ tag: "line",
503
+ x1: "19",
504
+ x2: "10",
505
+ y1: "4",
506
+ y2: "4"
507
+ },
508
+ {
509
+ tag: "line",
510
+ x1: "14",
511
+ x2: "5",
512
+ y1: "20",
513
+ y2: "20"
514
+ },
515
+ {
516
+ tag: "line",
517
+ x1: "15",
518
+ x2: "9",
519
+ y1: "4",
520
+ y2: "20"
521
+ }
522
+ ],
523
+ "layout-dashboard": [
524
+ {
525
+ tag: "rect",
526
+ width: "7",
527
+ height: "9",
528
+ x: "3",
529
+ y: "3",
530
+ rx: "1"
531
+ },
532
+ {
533
+ tag: "rect",
534
+ width: "7",
535
+ height: "5",
536
+ x: "14",
537
+ y: "3",
538
+ rx: "1"
539
+ },
540
+ {
541
+ tag: "rect",
542
+ width: "7",
543
+ height: "9",
544
+ x: "14",
545
+ y: "12",
546
+ rx: "1"
547
+ },
548
+ {
549
+ tag: "rect",
550
+ width: "7",
551
+ height: "5",
552
+ x: "3",
553
+ y: "16",
554
+ rx: "1"
555
+ }
556
+ ],
557
+ list: [
558
+ {
559
+ tag: "path",
560
+ d: "M3 5h.01"
561
+ },
562
+ {
563
+ tag: "path",
564
+ d: "M3 12h.01"
565
+ },
566
+ {
567
+ tag: "path",
568
+ d: "M3 19h.01"
569
+ },
570
+ {
571
+ tag: "path",
572
+ d: "M8 5h13"
573
+ },
574
+ {
575
+ tag: "path",
576
+ d: "M8 12h13"
577
+ },
578
+ {
579
+ tag: "path",
580
+ d: "M8 19h13"
581
+ }
582
+ ],
583
+ "list-ordered": [
584
+ {
585
+ tag: "path",
586
+ d: "M11 5h10"
587
+ },
588
+ {
589
+ tag: "path",
590
+ d: "M11 12h10"
591
+ },
592
+ {
593
+ tag: "path",
594
+ d: "M11 19h10"
595
+ },
596
+ {
597
+ tag: "path",
598
+ d: "M4 4h1v5"
599
+ },
600
+ {
601
+ tag: "path",
602
+ d: "M4 9h2"
603
+ },
604
+ {
605
+ tag: "path",
606
+ d: "M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02"
607
+ }
608
+ ],
609
+ "list-todo": [
610
+ {
611
+ tag: "path",
612
+ d: "M13 5h8"
613
+ },
614
+ {
615
+ tag: "path",
616
+ d: "M13 12h8"
617
+ },
618
+ {
619
+ tag: "path",
620
+ d: "M13 19h8"
621
+ },
622
+ {
623
+ tag: "path",
624
+ d: "m3 17 2 2 4-4"
625
+ },
626
+ {
627
+ tag: "rect",
628
+ x: "3",
629
+ y: "4",
630
+ width: "6",
631
+ height: "6",
632
+ rx: "1"
633
+ }
634
+ ],
635
+ loader: [{
636
+ tag: "path",
637
+ d: "M21 12a9 9 0 1 1-6.219-8.56"
638
+ }],
639
+ merge: [
640
+ {
641
+ tag: "path",
642
+ d: "m8 6 4-4 4 4"
643
+ },
644
+ {
645
+ tag: "path",
646
+ d: "M12 2v10.3a4 4 0 0 1-1.172 2.872L4 22"
647
+ },
648
+ {
649
+ tag: "path",
650
+ d: "m20 22-5-5"
651
+ }
652
+ ],
653
+ minus: [{
654
+ tag: "path",
655
+ d: "M5 12h14"
656
+ }],
657
+ "notebook-pen": [
658
+ {
659
+ tag: "path",
660
+ d: "M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4"
661
+ },
662
+ {
663
+ tag: "path",
664
+ d: "M2 6h4"
665
+ },
666
+ {
667
+ tag: "path",
668
+ d: "M2 10h4"
669
+ },
670
+ {
671
+ tag: "path",
672
+ d: "M2 14h4"
673
+ },
674
+ {
675
+ tag: "path",
676
+ d: "M2 18h4"
677
+ },
678
+ {
679
+ tag: "path",
680
+ d: "M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z"
681
+ }
682
+ ],
683
+ "paint-bucket": [
684
+ {
685
+ tag: "path",
686
+ d: "m19 11-8-8-8.6 8.6a2 2 0 0 0 0 2.8l5.2 5.2c.8.8 2 .8 2.8 0L19 11Z"
687
+ },
688
+ {
689
+ tag: "path",
690
+ d: "m5 2 5 5"
691
+ },
692
+ {
693
+ tag: "path",
694
+ d: "M2 13h15"
695
+ },
696
+ {
697
+ tag: "path",
698
+ d: "M22 20a2 2 0 1 1-4 0c0-1.6 1.7-2.4 2-4 .3 1.6 2 2.4 2 4Z"
699
+ }
700
+ ],
701
+ "panel-bottom": [{
702
+ tag: "rect",
703
+ width: "18",
704
+ height: "18",
705
+ x: "3",
706
+ y: "3",
707
+ rx: "2"
708
+ }, {
709
+ tag: "path",
710
+ d: "M3 15h18"
711
+ }],
712
+ "panel-left": [{
713
+ tag: "rect",
714
+ width: "18",
715
+ height: "18",
716
+ x: "3",
717
+ y: "3",
718
+ rx: "2"
719
+ }, {
720
+ tag: "path",
721
+ d: "M9 3v18"
722
+ }],
723
+ "panel-right": [{
724
+ tag: "rect",
725
+ width: "18",
726
+ height: "18",
727
+ x: "3",
728
+ y: "3",
729
+ rx: "2"
730
+ }, {
731
+ tag: "path",
732
+ d: "M15 3v18"
733
+ }],
734
+ "panel-top": [{
735
+ tag: "rect",
736
+ width: "18",
737
+ height: "18",
738
+ x: "3",
739
+ y: "3",
740
+ rx: "2"
741
+ }, {
742
+ tag: "path",
743
+ d: "M3 9h18"
744
+ }],
745
+ pilcrow: [
746
+ {
747
+ tag: "path",
748
+ d: "M13 4v16"
749
+ },
750
+ {
751
+ tag: "path",
752
+ d: "M17 4v16"
753
+ },
754
+ {
755
+ tag: "path",
756
+ d: "M19 4H9.5a4.5 4.5 0 0 0 0 9H13"
757
+ }
758
+ ],
759
+ plus: [{
760
+ tag: "path",
761
+ d: "M5 12h14"
762
+ }, {
763
+ tag: "path",
764
+ d: "M12 5v14"
765
+ }],
766
+ quote: [{
767
+ tag: "path",
768
+ d: "M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z"
769
+ }, {
770
+ tag: "path",
771
+ d: "M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z"
772
+ }],
773
+ receipt: [
774
+ {
775
+ tag: "path",
776
+ d: "M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z"
777
+ },
778
+ {
779
+ tag: "path",
780
+ d: "M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8"
781
+ },
782
+ {
783
+ tag: "path",
784
+ d: "M12 17.5v-11"
785
+ }
786
+ ],
787
+ redo: [{
788
+ tag: "path",
789
+ d: "m15 14 5-5-5-5"
790
+ }, {
791
+ tag: "path",
792
+ d: "M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13"
793
+ }],
794
+ rows: [
795
+ {
796
+ tag: "rect",
797
+ width: "18",
798
+ height: "18",
799
+ x: "3",
800
+ y: "3",
801
+ rx: "2"
802
+ },
803
+ {
804
+ tag: "path",
805
+ d: "M21 9H3"
806
+ },
807
+ {
808
+ tag: "path",
809
+ d: "M21 15H3"
810
+ }
811
+ ],
812
+ settings: [{
813
+ tag: "path",
814
+ d: "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"
815
+ }, {
816
+ tag: "circle",
817
+ cx: "12",
818
+ cy: "12",
819
+ r: "3"
820
+ }],
821
+ split: [
822
+ {
823
+ tag: "path",
824
+ d: "M16 3h5v5"
825
+ },
826
+ {
827
+ tag: "path",
828
+ d: "M8 3H3v5"
829
+ },
830
+ {
831
+ tag: "path",
832
+ d: "M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3"
833
+ },
834
+ {
835
+ tag: "path",
836
+ d: "m15 9 6-6"
837
+ }
838
+ ],
839
+ strikethrough: [
840
+ {
841
+ tag: "path",
842
+ d: "M16 4H9a3 3 0 0 0-2.83 4"
843
+ },
844
+ {
845
+ tag: "path",
846
+ d: "M14 12a4 4 0 0 1 0 8H6"
847
+ },
848
+ {
849
+ tag: "line",
850
+ x1: "4",
851
+ x2: "20",
852
+ y1: "12",
853
+ y2: "12"
854
+ }
855
+ ],
856
+ table: [{
857
+ tag: "path",
858
+ d: "M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"
859
+ }],
860
+ trash: [
861
+ {
862
+ tag: "path",
863
+ d: "M10 11v6"
864
+ },
865
+ {
866
+ tag: "path",
867
+ d: "M14 11v6"
868
+ },
869
+ {
870
+ tag: "path",
871
+ d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"
872
+ },
873
+ {
874
+ tag: "path",
875
+ d: "M3 6h18"
876
+ },
877
+ {
878
+ tag: "path",
879
+ d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"
880
+ }
881
+ ],
882
+ "triangle-alert": [
883
+ {
884
+ tag: "path",
885
+ d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"
886
+ },
887
+ {
888
+ tag: "path",
889
+ d: "M12 9v4"
890
+ },
891
+ {
892
+ tag: "path",
893
+ d: "M12 17h.01"
894
+ }
895
+ ],
896
+ truck: [
897
+ {
898
+ tag: "path",
899
+ d: "M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2"
900
+ },
901
+ {
902
+ tag: "path",
903
+ d: "M15 18H9"
904
+ },
905
+ {
906
+ tag: "path",
907
+ d: "M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14"
908
+ },
909
+ {
910
+ tag: "circle",
911
+ cx: "17",
912
+ cy: "18",
913
+ r: "2"
914
+ },
915
+ {
916
+ tag: "circle",
917
+ cx: "7",
918
+ cy: "18",
919
+ r: "2"
920
+ }
921
+ ],
922
+ underline: [{
923
+ tag: "path",
924
+ d: "M6 4v6a6 6 0 0 0 12 0V4"
925
+ }, {
926
+ tag: "line",
927
+ x1: "4",
928
+ x2: "20",
929
+ y1: "20",
930
+ y2: "20"
931
+ }],
932
+ undo: [{
933
+ tag: "path",
934
+ d: "M9 14 4 9l5-5"
935
+ }, {
936
+ tag: "path",
937
+ d: "M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11"
938
+ }],
939
+ users: [
940
+ {
941
+ tag: "path",
942
+ d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"
943
+ },
944
+ {
945
+ tag: "path",
946
+ d: "M16 3.128a4 4 0 0 1 0 7.744"
947
+ },
948
+ {
949
+ tag: "path",
950
+ d: "M22 21v-2a4 4 0 0 0-3-3.87"
951
+ },
952
+ {
953
+ tag: "circle",
954
+ cx: "9",
955
+ cy: "7",
956
+ r: "4"
957
+ }
958
+ ]
959
+ })[props.name]);
960
+ function text(value) {
961
+ if (Array.isArray(value)) return value.map(text).join(" ");
962
+ return value === null || value === void 0 || typeof value === "object" ? "" : String(value);
963
+ }
964
+ function attribute(value) {
965
+ if (value === null || value === void 0 || value === false || typeof value === "object" && !Array.isArray(value)) return void 0;
966
+ return value === true ? "" : text(value);
967
+ }
968
+ function list(value) {
969
+ return Array.isArray(value) ? value : [];
970
+ }
51
971
  return (_ctx, _cache) => {
52
972
  return openBlock(), createElementBlock("span", mergeProps({
53
973
  "data-component": "ui-icon",
54
974
  "aria-hidden": "true"
55
- }, _ctx.$attrs, {
56
- ref_key: "root",
57
- ref: root
58
- }), [(openBlock(), createElementBlock("svg", _hoisted_1, [(openBlock(true), createElementBlock(Fragment, null, renderList(shapes.value, (shape, index) => {
975
+ }, _ctx.$attrs), [(openBlock(), createElementBlock("svg", _hoisted_1, [(openBlock(true), createElementBlock(Fragment, null, renderList(list(shapes.value), (shape, index) => {
59
976
  return openBlock(), createElementBlock("g", { key: index }, [
60
977
  shape.tag === "path" ? (openBlock(), createElementBlock("path", {
61
978
  key: 0,
62
- d: shape.d
979
+ d: attribute(shape.d)
63
980
  }, null, 8, _hoisted_2)) : createCommentVNode("v-if", true),
64
981
  shape.tag === "circle" ? (openBlock(), createElementBlock("circle", {
65
982
  key: 1,
66
- cx: shape.cx,
67
- cy: shape.cy,
68
- r: shape.r
983
+ cx: attribute(shape.cx),
984
+ cy: attribute(shape.cy),
985
+ r: attribute(shape.r)
69
986
  }, null, 8, _hoisted_3)) : createCommentVNode("v-if", true),
70
987
  shape.tag === "rect" ? (openBlock(), createElementBlock("rect", {
71
988
  key: 2,
72
- x: shape.x,
73
- y: shape.y,
74
- width: shape.width,
75
- height: shape.height,
76
- rx: shape.rx
989
+ x: attribute(shape.x),
990
+ y: attribute(shape.y),
991
+ width: attribute(shape.width),
992
+ height: attribute(shape.height),
993
+ rx: attribute(shape.rx),
994
+ ry: attribute(shape.ry)
77
995
  }, null, 8, _hoisted_4)) : createCommentVNode("v-if", true),
78
996
  shape.tag === "line" ? (openBlock(), createElementBlock("line", {
79
997
  key: 3,
80
- x1: shape.x1,
81
- x2: shape.x2,
82
- y1: shape.y1,
83
- y2: shape.y2
998
+ x1: attribute(shape.x1),
999
+ y1: attribute(shape.y1),
1000
+ x2: attribute(shape.x2),
1001
+ y2: attribute(shape.y2)
84
1002
  }, null, 8, _hoisted_5)) : createCommentVNode("v-if", true)
85
1003
  ]);
86
1004
  }), 128))]))], 16);
87
1005
  };
88
1006
  }
89
- }), [["__scopeId", "data-v-0a5aa1a0"]]);
1007
+ }), [["__scopeId", "data-v-fdb8162b"]]);
90
1008
  //#endregion
91
1009
  export { UiIcon_default as t };