@iroco/ui 0.16.0 → 0.17.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/lib/index.mjs CHANGED
@@ -4211,8 +4211,9 @@ function create_each_block$1(ctx) {
4211
4211
  ? /*item*/ ctx[7].hrefOrCallback
4212
4212
  : "#");
4213
4213
 
4214
- attr(a, "class", "svelte-1c8sozl");
4215
- attr(li, "class", li_class_value = "nav__" + /*type*/ ctx[1] + "__item" + " svelte-1c8sozl");
4214
+ attr(a, "class", "svelte-v0jihd");
4215
+ toggle_class(a, "iroco-ui-button", /*item*/ ctx[7].isButton());
4216
+ attr(li, "class", li_class_value = "nav__" + /*type*/ ctx[1] + "__item" + " svelte-v0jihd");
4216
4217
  toggle_class(li, "active", /*active*/ ctx[2] === /*item*/ ctx[7].name);
4217
4218
  },
4218
4219
  m(target, anchor) {
@@ -4236,7 +4237,11 @@ function create_each_block$1(ctx) {
4236
4237
  attr(a, "href", a_href_value);
4237
4238
  }
4238
4239
 
4239
- if (dirty & /*type*/ 2 && li_class_value !== (li_class_value = "nav__" + /*type*/ ctx[1] + "__item" + " svelte-1c8sozl")) {
4240
+ if (dirty & /*navigationItems*/ 1) {
4241
+ toggle_class(a, "iroco-ui-button", /*item*/ ctx[7].isButton());
4242
+ }
4243
+
4244
+ if (dirty & /*type*/ 2 && li_class_value !== (li_class_value = "nav__" + /*type*/ ctx[1] + "__item" + " svelte-v0jihd")) {
4240
4245
  attr(li, "class", li_class_value);
4241
4246
  }
4242
4247
 
@@ -4284,10 +4289,10 @@ function create_fragment$8(ctx) {
4284
4289
  each_blocks[i].c();
4285
4290
  }
4286
4291
 
4287
- attr(button, "class", button_class_value = "nav__" + /*type*/ ctx[1] + "__close" + " svelte-1c8sozl");
4288
- attr(ul, "class", ul_class_value = "nav__" + /*type*/ ctx[1] + "__item-container" + " svelte-1c8sozl");
4292
+ attr(button, "class", button_class_value = "nav__" + /*type*/ ctx[1] + "__close" + " svelte-v0jihd");
4293
+ attr(ul, "class", ul_class_value = "nav__" + /*type*/ ctx[1] + "__item-container" + " svelte-v0jihd");
4289
4294
  attr(nav, "data-testid", /*type*/ ctx[1]);
4290
- attr(nav, "class", nav_class_value = "nav__" + /*type*/ ctx[1] + " svelte-1c8sozl");
4295
+ attr(nav, "class", nav_class_value = "nav__" + /*type*/ ctx[1] + " svelte-v0jihd");
4291
4296
  },
4292
4297
  m(target, anchor) {
4293
4298
  insert(target, nav, anchor);
@@ -4308,7 +4313,7 @@ function create_fragment$8(ctx) {
4308
4313
  }
4309
4314
  },
4310
4315
  p(ctx, [dirty]) {
4311
- if (!current || dirty & /*type*/ 2 && button_class_value !== (button_class_value = "nav__" + /*type*/ ctx[1] + "__close" + " svelte-1c8sozl")) {
4316
+ if (!current || dirty & /*type*/ 2 && button_class_value !== (button_class_value = "nav__" + /*type*/ ctx[1] + "__close" + " svelte-v0jihd")) {
4312
4317
  attr(button, "class", button_class_value);
4313
4318
  }
4314
4319
 
@@ -4335,7 +4340,7 @@ function create_fragment$8(ctx) {
4335
4340
  each_blocks.length = each_value.length;
4336
4341
  }
4337
4342
 
4338
- if (!current || dirty & /*type*/ 2 && ul_class_value !== (ul_class_value = "nav__" + /*type*/ ctx[1] + "__item-container" + " svelte-1c8sozl")) {
4343
+ if (!current || dirty & /*type*/ 2 && ul_class_value !== (ul_class_value = "nav__" + /*type*/ ctx[1] + "__item-container" + " svelte-v0jihd")) {
4339
4344
  attr(ul, "class", ul_class_value);
4340
4345
  }
4341
4346
 
@@ -4343,7 +4348,7 @@ function create_fragment$8(ctx) {
4343
4348
  attr(nav, "data-testid", /*type*/ ctx[1]);
4344
4349
  }
4345
4350
 
4346
- if (!current || dirty & /*type*/ 2 && nav_class_value !== (nav_class_value = "nav__" + /*type*/ ctx[1] + " svelte-1c8sozl")) {
4351
+ if (!current || dirty & /*type*/ 2 && nav_class_value !== (nav_class_value = "nav__" + /*type*/ ctx[1] + " svelte-v0jihd")) {
4347
4352
  attr(nav, "class", nav_class_value);
4348
4353
  }
4349
4354
  },
@@ -5732,4 +5737,19 @@ class Alert extends SvelteComponent {
5732
5737
  }
5733
5738
  }
5734
5739
 
5735
- export { Alert, Button, DataTable, Icon, IconFloppyDisk, IconInfo, IconIrocoLogo, IconMastodon, IconMoreSign as IconMore, IconTrashCan, IrocoLogo, Loader, NavBar, Navigation, NumberInput, RadioButton, TextInput };
5740
+ class NavigationItem {
5741
+ constructor(name, hrefOrCallback) {
5742
+ this.hrefOrCallback = hrefOrCallback;
5743
+ this.name = name;
5744
+ }
5745
+ isButton() {
5746
+ return typeof this.hrefOrCallback === 'function';
5747
+ }
5748
+ }
5749
+ var ButtonKind;
5750
+ (function (ButtonKind) {
5751
+ ButtonKind["REGULAR"] = "regular";
5752
+ ButtonKind["DANGER"] = "danger";
5753
+ })(ButtonKind || (ButtonKind = {}));
5754
+
5755
+ export { Alert, Button, ButtonKind, DataTable, Icon, IconFloppyDisk, IconInfo, IconIrocoLogo, IconMastodon, IconMoreSign as IconMore, IconTrashCan, IrocoLogo, Loader, NavBar, Navigation, NavigationItem, NumberInput, RadioButton, TextInput };
package/lib/index.mjs.css CHANGED
@@ -16,6 +16,21 @@ svg.svelte-1cuxg7m {
16
16
  to {
17
17
  transform: rotate(359deg); } }
18
18
 
19
+ .data-table.svelte-1ju5y8t {
20
+ border: 1px solid #464452;
21
+ width: 100%; }
22
+
23
+ .data-table__header.svelte-1ju5y8t {
24
+ font-size: 1.5em;
25
+ height: 4rem; }
26
+
27
+ .data-table__header__cell.svelte-1ju5y8t {
28
+ border-bottom: 1px solid #464452; }
29
+
30
+ .data-table__body__cell.svelte-1ju5y8t {
31
+ text-align: center;
32
+ vertical-align: middle; }
33
+
19
34
  .iroco-ui-radio.svelte-156c82q.svelte-156c82q.svelte-156c82q {
20
35
  color: #f2ebe3;
21
36
  position: relative;
@@ -133,45 +148,6 @@ input.svelte-1y0402x.svelte-1y0402x:focus {
133
148
  .navigation--mobile__title-container.svelte-lqwgm1 h1.svelte-lqwgm1 {
134
149
  padding-left: 0.5em; } }
135
150
 
136
- @use "colors";
137
- @use "containers";
138
- @use "fonts";
139
- @use "forms";
140
- @use "layouts";
141
- .data-table.svelte-1ju5y8t {
142
- border: 1px solid #464452;
143
- width: 100%; }
144
-
145
- .data-table__header.svelte-1ju5y8t {
146
- font-size: 1.5em;
147
- height: 4rem; }
148
-
149
- .data-table__header__cell.svelte-1ju5y8t {
150
- border-bottom: 1px solid #464452; }
151
-
152
- .data-table__body__cell.svelte-1ju5y8t {
153
- text-align: center;
154
- vertical-align: middle; }
155
-
156
- .alert.svelte-itln7g {
157
- min-height: 2em;
158
- display: inline-flex;
159
- align-items: center;
160
- border-radius: 0.3em;
161
- padding: 0 1em 0 1em;
162
- font-size: 1.2em;
163
- justify-content: center;
164
- margin-bottom: 1em;
165
- cursor: pointer; }
166
-
167
- .alert--danger.svelte-itln7g {
168
- background-color: rgba(255, 80, 77, 0.5);
169
- border: 1px solid #ff504d; }
170
-
171
- .alert--success.svelte-itln7g {
172
- background-color: rgba(0, 214, 146, 0.5);
173
- border: 1px solid #00D692; }
174
-
175
151
  .container-wide.svelte-5qkkwb {
176
152
  width: calc(100% - 20px);
177
153
  max-width: 2360px;
@@ -351,7 +327,135 @@ input.svelte-1y0402x.svelte-1y0402x:focus {
351
327
  .iroco-ui-button.disabled.svelte-5qkkwb:hover {
352
328
  box-shadow: none; }
353
329
 
354
- .container-wide.svelte-1c8sozl.svelte-1c8sozl {
330
+ .container-wide.svelte-v0jihd.svelte-v0jihd {
331
+ width: calc(100% - 20px);
332
+ max-width: 2360px;
333
+ margin-left: auto;
334
+ margin-right: auto;
335
+ transition: max-width ease-out 200ms; }
336
+
337
+ @media all and (max-width: 2560px) {
338
+ .container-wide.svelte-v0jihd.svelte-v0jihd {
339
+ max-width: 1620px; } }
340
+
341
+ @media all and (max-width: 1800px) {
342
+ .container-wide.svelte-v0jihd.svelte-v0jihd {
343
+ max-width: 1280px; } }
344
+
345
+ @media all and (max-width: 1440px) {
346
+ .container-wide.svelte-v0jihd.svelte-v0jihd {
347
+ max-width: 884px; } }
348
+
349
+ @media all and (max-width: 1024px) {
350
+ .container-wide.svelte-v0jihd.svelte-v0jihd {
351
+ max-width: 648px; } }
352
+
353
+ @media all and (max-width: 768px) {
354
+ .container-wide.svelte-v0jihd.svelte-v0jihd {
355
+ max-width: 496px; } }
356
+
357
+ @media all and (max-width: 596px) {
358
+ .container-wide.svelte-v0jihd.svelte-v0jihd {
359
+ max-width: 365px; } }
360
+
361
+ @media all and (max-width: 425px) {
362
+ .container-wide.svelte-v0jihd.svelte-v0jihd {
363
+ max-width: calc(100% - 60px); } }
364
+
365
+ @media all and (max-width: 375px) {
366
+ .container-wide.svelte-v0jihd.svelte-v0jihd {
367
+ max-width: calc(100% - 40px); } }
368
+
369
+ @media all and (max-width: 320px) {
370
+ .container-wide.svelte-v0jihd.svelte-v0jihd {
371
+ max-width: calc(100% - 20px); } }
372
+
373
+ .container-large.svelte-v0jihd.svelte-v0jihd {
374
+ width: calc(100% - 20px);
375
+ max-width: 1280px;
376
+ margin-left: auto;
377
+ margin-right: auto;
378
+ transition: max-width ease-out 200ms; }
379
+
380
+ @media all and (max-width: 1440px) {
381
+ .container-large.svelte-v0jihd.svelte-v0jihd {
382
+ max-width: 884px; } }
383
+
384
+ @media all and (max-width: 1024px) {
385
+ .container-large.svelte-v0jihd.svelte-v0jihd {
386
+ max-width: 648px; } }
387
+
388
+ @media all and (max-width: 768px) {
389
+ .container-large.svelte-v0jihd.svelte-v0jihd {
390
+ max-width: 496px; } }
391
+
392
+ @media all and (max-width: 596px) {
393
+ .container-large.svelte-v0jihd.svelte-v0jihd {
394
+ max-width: 365px; } }
395
+
396
+ @media all and (max-width: 425px) {
397
+ .container-large.svelte-v0jihd.svelte-v0jihd {
398
+ max-width: calc(100% - 60px); } }
399
+
400
+ @media all and (max-width: 375px) {
401
+ .container-large.svelte-v0jihd.svelte-v0jihd {
402
+ max-width: calc(100% - 40px); } }
403
+
404
+ @media all and (max-width: 320px) {
405
+ .container-large.svelte-v0jihd.svelte-v0jihd {
406
+ max-width: calc(100% - 20px); } }
407
+
408
+ .container-medium.svelte-v0jihd.svelte-v0jihd {
409
+ width: calc(100% - 20px);
410
+ max-width: 884px;
411
+ margin-left: auto;
412
+ margin-right: auto;
413
+ transition: max-width ease-out 200ms; }
414
+
415
+ @media all and (max-width: 1024px) {
416
+ .container-medium.svelte-v0jihd.svelte-v0jihd {
417
+ max-width: 648px; } }
418
+
419
+ @media all and (max-width: 768px) {
420
+ .container-medium.svelte-v0jihd.svelte-v0jihd {
421
+ max-width: 496px; } }
422
+
423
+ @media all and (max-width: 596px) {
424
+ .container-medium.svelte-v0jihd.svelte-v0jihd {
425
+ max-width: 365px; } }
426
+
427
+ @media all and (max-width: 425px) {
428
+ .container-medium.svelte-v0jihd.svelte-v0jihd {
429
+ max-width: calc(100% - 60px); } }
430
+
431
+ @media all and (max-width: 375px) {
432
+ .container-medium.svelte-v0jihd.svelte-v0jihd {
433
+ max-width: calc(100% - 40px); } }
434
+
435
+ @media all and (max-width: 320px) {
436
+ .container-medium.svelte-v0jihd.svelte-v0jihd {
437
+ max-width: calc(100% - 20px); } }
438
+
439
+ .container-small.svelte-v0jihd.svelte-v0jihd {
440
+ width: calc(100% - 20px);
441
+ max-width: 496px;
442
+ margin-left: auto;
443
+ margin-right: auto;
444
+ transition: max-width ease-out 200ms; }
445
+
446
+ @media all and (max-width: 425px) {
447
+ .container-small.svelte-v0jihd.svelte-v0jihd {
448
+ max-width: calc(100% - 60px); } }
449
+
450
+ @media all and (max-width: 375px) {
451
+ .container-small.svelte-v0jihd.svelte-v0jihd {
452
+ max-width: calc(100% - 40px); } }
453
+
454
+ @media all and (max-width: 320px) {
455
+ .container-small.svelte-v0jihd.svelte-v0jihd {
456
+ max-width: calc(100% - 20px); } }
457
+
458
+ .container-wide.svelte-v0jihd.svelte-v0jihd {
355
459
  width: calc(100% - 20px);
356
460
  max-width: 2360px;
357
461
  margin-left: auto;
@@ -359,42 +463,42 @@ input.svelte-1y0402x.svelte-1y0402x:focus {
359
463
  transition: max-width ease-out 200ms; }
360
464
 
361
465
  @media all and (max-width: 2560px) {
362
- .container-wide.svelte-1c8sozl.svelte-1c8sozl {
466
+ .container-wide.svelte-v0jihd.svelte-v0jihd {
363
467
  max-width: 1620px; } }
364
468
 
365
469
  @media all and (max-width: 1800px) {
366
- .container-wide.svelte-1c8sozl.svelte-1c8sozl {
470
+ .container-wide.svelte-v0jihd.svelte-v0jihd {
367
471
  max-width: 1280px; } }
368
472
 
369
473
  @media all and (max-width: 1440px) {
370
- .container-wide.svelte-1c8sozl.svelte-1c8sozl {
474
+ .container-wide.svelte-v0jihd.svelte-v0jihd {
371
475
  max-width: 884px; } }
372
476
 
373
477
  @media all and (max-width: 1024px) {
374
- .container-wide.svelte-1c8sozl.svelte-1c8sozl {
478
+ .container-wide.svelte-v0jihd.svelte-v0jihd {
375
479
  max-width: 648px; } }
376
480
 
377
481
  @media all and (max-width: 768px) {
378
- .container-wide.svelte-1c8sozl.svelte-1c8sozl {
482
+ .container-wide.svelte-v0jihd.svelte-v0jihd {
379
483
  max-width: 496px; } }
380
484
 
381
485
  @media all and (max-width: 596px) {
382
- .container-wide.svelte-1c8sozl.svelte-1c8sozl {
486
+ .container-wide.svelte-v0jihd.svelte-v0jihd {
383
487
  max-width: 365px; } }
384
488
 
385
489
  @media all and (max-width: 425px) {
386
- .container-wide.svelte-1c8sozl.svelte-1c8sozl {
490
+ .container-wide.svelte-v0jihd.svelte-v0jihd {
387
491
  max-width: calc(100% - 60px); } }
388
492
 
389
493
  @media all and (max-width: 375px) {
390
- .container-wide.svelte-1c8sozl.svelte-1c8sozl {
494
+ .container-wide.svelte-v0jihd.svelte-v0jihd {
391
495
  max-width: calc(100% - 40px); } }
392
496
 
393
497
  @media all and (max-width: 320px) {
394
- .container-wide.svelte-1c8sozl.svelte-1c8sozl {
498
+ .container-wide.svelte-v0jihd.svelte-v0jihd {
395
499
  max-width: calc(100% - 20px); } }
396
500
 
397
- .container-large.svelte-1c8sozl.svelte-1c8sozl {
501
+ .container-large.svelte-v0jihd.svelte-v0jihd {
398
502
  width: calc(100% - 20px);
399
503
  max-width: 1280px;
400
504
  margin-left: auto;
@@ -402,34 +506,34 @@ input.svelte-1y0402x.svelte-1y0402x:focus {
402
506
  transition: max-width ease-out 200ms; }
403
507
 
404
508
  @media all and (max-width: 1440px) {
405
- .container-large.svelte-1c8sozl.svelte-1c8sozl {
509
+ .container-large.svelte-v0jihd.svelte-v0jihd {
406
510
  max-width: 884px; } }
407
511
 
408
512
  @media all and (max-width: 1024px) {
409
- .container-large.svelte-1c8sozl.svelte-1c8sozl {
513
+ .container-large.svelte-v0jihd.svelte-v0jihd {
410
514
  max-width: 648px; } }
411
515
 
412
516
  @media all and (max-width: 768px) {
413
- .container-large.svelte-1c8sozl.svelte-1c8sozl {
517
+ .container-large.svelte-v0jihd.svelte-v0jihd {
414
518
  max-width: 496px; } }
415
519
 
416
520
  @media all and (max-width: 596px) {
417
- .container-large.svelte-1c8sozl.svelte-1c8sozl {
521
+ .container-large.svelte-v0jihd.svelte-v0jihd {
418
522
  max-width: 365px; } }
419
523
 
420
524
  @media all and (max-width: 425px) {
421
- .container-large.svelte-1c8sozl.svelte-1c8sozl {
525
+ .container-large.svelte-v0jihd.svelte-v0jihd {
422
526
  max-width: calc(100% - 60px); } }
423
527
 
424
528
  @media all and (max-width: 375px) {
425
- .container-large.svelte-1c8sozl.svelte-1c8sozl {
529
+ .container-large.svelte-v0jihd.svelte-v0jihd {
426
530
  max-width: calc(100% - 40px); } }
427
531
 
428
532
  @media all and (max-width: 320px) {
429
- .container-large.svelte-1c8sozl.svelte-1c8sozl {
533
+ .container-large.svelte-v0jihd.svelte-v0jihd {
430
534
  max-width: calc(100% - 20px); } }
431
535
 
432
- .container-medium.svelte-1c8sozl.svelte-1c8sozl {
536
+ .container-medium.svelte-v0jihd.svelte-v0jihd {
433
537
  width: calc(100% - 20px);
434
538
  max-width: 884px;
435
539
  margin-left: auto;
@@ -437,30 +541,30 @@ input.svelte-1y0402x.svelte-1y0402x:focus {
437
541
  transition: max-width ease-out 200ms; }
438
542
 
439
543
  @media all and (max-width: 1024px) {
440
- .container-medium.svelte-1c8sozl.svelte-1c8sozl {
544
+ .container-medium.svelte-v0jihd.svelte-v0jihd {
441
545
  max-width: 648px; } }
442
546
 
443
547
  @media all and (max-width: 768px) {
444
- .container-medium.svelte-1c8sozl.svelte-1c8sozl {
548
+ .container-medium.svelte-v0jihd.svelte-v0jihd {
445
549
  max-width: 496px; } }
446
550
 
447
551
  @media all and (max-width: 596px) {
448
- .container-medium.svelte-1c8sozl.svelte-1c8sozl {
552
+ .container-medium.svelte-v0jihd.svelte-v0jihd {
449
553
  max-width: 365px; } }
450
554
 
451
555
  @media all and (max-width: 425px) {
452
- .container-medium.svelte-1c8sozl.svelte-1c8sozl {
556
+ .container-medium.svelte-v0jihd.svelte-v0jihd {
453
557
  max-width: calc(100% - 60px); } }
454
558
 
455
559
  @media all and (max-width: 375px) {
456
- .container-medium.svelte-1c8sozl.svelte-1c8sozl {
560
+ .container-medium.svelte-v0jihd.svelte-v0jihd {
457
561
  max-width: calc(100% - 40px); } }
458
562
 
459
563
  @media all and (max-width: 320px) {
460
- .container-medium.svelte-1c8sozl.svelte-1c8sozl {
564
+ .container-medium.svelte-v0jihd.svelte-v0jihd {
461
565
  max-width: calc(100% - 20px); } }
462
566
 
463
- .container-small.svelte-1c8sozl.svelte-1c8sozl {
567
+ .container-small.svelte-v0jihd.svelte-v0jihd {
464
568
  width: calc(100% - 20px);
465
569
  max-width: 496px;
466
570
  margin-left: auto;
@@ -468,30 +572,81 @@ input.svelte-1y0402x.svelte-1y0402x:focus {
468
572
  transition: max-width ease-out 200ms; }
469
573
 
470
574
  @media all and (max-width: 425px) {
471
- .container-small.svelte-1c8sozl.svelte-1c8sozl {
575
+ .container-small.svelte-v0jihd.svelte-v0jihd {
472
576
  max-width: calc(100% - 60px); } }
473
577
 
474
578
  @media all and (max-width: 375px) {
475
- .container-small.svelte-1c8sozl.svelte-1c8sozl {
579
+ .container-small.svelte-v0jihd.svelte-v0jihd {
476
580
  max-width: calc(100% - 40px); } }
477
581
 
478
582
  @media all and (max-width: 320px) {
479
- .container-small.svelte-1c8sozl.svelte-1c8sozl {
583
+ .container-small.svelte-v0jihd.svelte-v0jihd {
480
584
  max-width: calc(100% - 20px); } }
481
585
 
482
- .nav__sidebar__item.svelte-1c8sozl.svelte-1c8sozl, .nav__topbar__item.svelte-1c8sozl.svelte-1c8sozl {
586
+ .iroco-ui-button.svelte-v0jihd.svelte-v0jihd {
587
+ cursor: pointer;
588
+ -webkit-touch-callout: none;
589
+ -webkit-user-select: none;
590
+ -khtml-user-select: none;
591
+ -moz-user-select: none;
592
+ -ms-user-select: none;
593
+ user-select: none;
594
+ border: none;
595
+ flex-shrink: 0;
596
+ margin: 1em 0em;
597
+ position: relative;
598
+ text-transform: uppercase;
599
+ border-radius: 0.3em; }
600
+
601
+ .iroco-ui-button--basic.svelte-v0jihd.svelte-v0jihd {
602
+ background: #f2ebe3;
603
+ border: 1px solid #18151E; }
604
+
605
+ .iroco-ui-button--dark.svelte-v0jihd.svelte-v0jihd {
606
+ background: #18151E;
607
+ color: #f2ebe3; }
608
+
609
+ .iroco-ui-button--success.svelte-v0jihd.svelte-v0jihd {
610
+ background: #00D692; }
611
+
612
+ .iroco-ui-button--danger.svelte-v0jihd.svelte-v0jihd {
613
+ background: #ff504d; }
614
+
615
+ .iroco-ui-button--regular.svelte-v0jihd.svelte-v0jihd {
616
+ padding: 1em 2em; }
617
+
618
+ .iroco-ui-button--small.svelte-v0jihd.svelte-v0jihd {
619
+ padding: 0.5em 1em; }
620
+
621
+ .iroco-ui-button--basic.svelte-v0jihd.svelte-v0jihd:hover, .iroco-ui-button--success.svelte-v0jihd.svelte-v0jihd:hover, .iroco-ui-button--danger.svelte-v0jihd.svelte-v0jihd:hover {
622
+ box-shadow: inset 0 0 0 10em rgba(0, 0, 0, 0.2); }
623
+
624
+ .iroco-ui-button--dark.svelte-v0jihd.svelte-v0jihd:hover {
625
+ box-shadow: inset 0 0 0 10em rgba(255, 255, 255, 0.2); }
626
+
627
+ .iroco-ui-button.svelte-v0jihd.svelte-v0jihd:active {
628
+ box-shadow: none; }
629
+
630
+ .iroco-ui-button.disabled.svelte-v0jihd.svelte-v0jihd {
631
+ background-color: #f5f5f5;
632
+ cursor: default; }
633
+
634
+ .iroco-ui-button.disabled.svelte-v0jihd.svelte-v0jihd:hover {
635
+ box-shadow: none; }
636
+
637
+ .nav__sidebar__item.svelte-v0jihd.svelte-v0jihd, .nav__topbar__item.svelte-v0jihd.svelte-v0jihd {
483
638
  text-decoration: none;
484
639
  font-size: 0.75em;
485
640
  display: block; }
486
641
 
487
- .nav__sidebar__item.svelte-1c8sozl a.svelte-1c8sozl, .nav__topbar__item.svelte-1c8sozl a.svelte-1c8sozl {
642
+ .nav__sidebar__item.svelte-v0jihd a.svelte-v0jihd, .nav__topbar__item.svelte-v0jihd a.svelte-v0jihd {
488
643
  color: #f2ebe3;
489
644
  font-size: 2em; }
490
645
 
491
- .nav__sidebar__close.svelte-1c8sozl.svelte-1c8sozl, .nav__topbar__close.svelte-1c8sozl.svelte-1c8sozl {
646
+ .nav__sidebar__close.svelte-v0jihd.svelte-v0jihd, .nav__topbar__close.svelte-v0jihd.svelte-v0jihd {
492
647
  display: none; }
493
648
 
494
- .nav__sidebar.svelte-1c8sozl.svelte-1c8sozl {
649
+ .nav__sidebar.svelte-v0jihd.svelte-v0jihd {
495
650
  height: 100%;
496
651
  width: 300px;
497
652
  position: absolute;
@@ -499,38 +654,38 @@ input.svelte-1y0402x.svelte-1y0402x:focus {
499
654
  left: 0;
500
655
  overflow-x: hidden; }
501
656
 
502
- .nav__sidebar__item-container.svelte-1c8sozl.svelte-1c8sozl {
657
+ .nav__sidebar__item-container.svelte-v0jihd.svelte-v0jihd {
503
658
  margin: 0;
504
659
  padding: 0;
505
660
  width: 100%;
506
661
  height: 100%; }
507
662
 
508
- .nav__sidebar__item.svelte-1c8sozl.svelte-1c8sozl {
663
+ .nav__sidebar__item.svelte-v0jihd.svelte-v0jihd {
509
664
  padding: 2em;
510
665
  border-top: 1px solid #464452; }
511
666
 
512
- .nav__sidebar__item.svelte-1c8sozl.svelte-1c8sozl:first-child {
667
+ .nav__sidebar__item.svelte-v0jihd.svelte-v0jihd:first-child {
513
668
  border-top: none; }
514
669
 
515
- .nav__sidebar.svelte-1c8sozl .active.svelte-1c8sozl {
670
+ .nav__sidebar.svelte-v0jihd .active.svelte-v0jihd {
516
671
  border-top: 1px solid #00D692;
517
672
  border-bottom: 1px solid #00D692; }
518
673
 
519
- .nav__topbar.svelte-1c8sozl.svelte-1c8sozl {
674
+ .nav__topbar.svelte-v0jihd.svelte-v0jihd {
520
675
  flex-grow: 1;
521
676
  display: flex;
522
677
  justify-content: flex-end; }
523
678
 
524
- .nav__topbar.svelte-1c8sozl ul.svelte-1c8sozl, .nav__topbar.svelte-1c8sozl li.svelte-1c8sozl {
679
+ .nav__topbar.svelte-v0jihd ul.svelte-v0jihd, .nav__topbar.svelte-v0jihd li.svelte-v0jihd {
525
680
  display: inline; }
526
681
 
527
- .nav__topbar.svelte-1c8sozl ul.svelte-1c8sozl {
682
+ .nav__topbar.svelte-v0jihd ul.svelte-v0jihd {
528
683
  display: flex;
529
684
  flex-grow: 1;
530
685
  justify-content: space-around; }
531
686
 
532
687
  @media all and (max-width: 768px) {
533
- .nav__sidebar.svelte-1c8sozl.svelte-1c8sozl, .nav__topbar.svelte-1c8sozl.svelte-1c8sozl {
688
+ .nav__sidebar.svelte-v0jihd.svelte-v0jihd, .nav__topbar.svelte-v0jihd.svelte-v0jihd {
534
689
  position: fixed;
535
690
  background-color: #211D28;
536
691
  top: 0;
@@ -540,12 +695,12 @@ input.svelte-1y0402x.svelte-1y0402x:focus {
540
695
  padding-top: 2em;
541
696
  margin: 0;
542
697
  border-right: none; }
543
- .nav__sidebar__item-container.svelte-1c8sozl.svelte-1c8sozl, .nav__topbar__item-container.svelte-1c8sozl.svelte-1c8sozl {
698
+ .nav__sidebar__item-container.svelte-v0jihd.svelte-v0jihd, .nav__topbar__item-container.svelte-v0jihd.svelte-v0jihd {
544
699
  padding: 0em;
545
700
  margin-top: 2rem; }
546
- .nav__sidebar.svelte-1c8sozl ul.svelte-1c8sozl, .nav__sidebar.svelte-1c8sozl li.svelte-1c8sozl, .nav__topbar.svelte-1c8sozl ul.svelte-1c8sozl, .nav__topbar.svelte-1c8sozl li.svelte-1c8sozl {
701
+ .nav__sidebar.svelte-v0jihd ul.svelte-v0jihd, .nav__sidebar.svelte-v0jihd li.svelte-v0jihd, .nav__topbar.svelte-v0jihd ul.svelte-v0jihd, .nav__topbar.svelte-v0jihd li.svelte-v0jihd {
547
702
  display: block; }
548
- .nav__sidebar__close.svelte-1c8sozl.svelte-1c8sozl, .nav__topbar__close.svelte-1c8sozl.svelte-1c8sozl {
703
+ .nav__sidebar__close.svelte-v0jihd.svelte-v0jihd, .nav__topbar__close.svelte-v0jihd.svelte-v0jihd {
549
704
  display: block;
550
705
  position: absolute;
551
706
  right: 0;
@@ -553,13 +708,37 @@ input.svelte-1y0402x.svelte-1y0402x:focus {
553
708
  background-color: transparent;
554
709
  border: none;
555
710
  color: #a9a29e; }
556
- .nav__sidebar.svelte-1c8sozl.svelte-1c8sozl {
711
+ .nav__sidebar.svelte-v0jihd.svelte-v0jihd {
557
712
  top: 0;
558
713
  left: 0; }
559
- .nav__sidebar__item.svelte-1c8sozl.svelte-1c8sozl:first-child {
714
+ .nav__sidebar__item.svelte-v0jihd.svelte-v0jihd:first-child {
560
715
  border-top: 1px solid #464452; }
561
- .nav__topbar.svelte-1c8sozl.svelte-1c8sozl {
716
+ .nav__topbar.svelte-v0jihd.svelte-v0jihd {
562
717
  height: 100%; }
563
- .nav__topbar__item.svelte-1c8sozl.svelte-1c8sozl {
718
+ .nav__topbar__item.svelte-v0jihd.svelte-v0jihd {
564
719
  padding: 2em;
565
720
  border-top: 1px solid #464452; } }
721
+
722
+ @use "colors";
723
+ @use "containers";
724
+ @use "fonts";
725
+ @use "forms";
726
+ @use "layouts";
727
+ .alert.svelte-itln7g {
728
+ min-height: 2em;
729
+ display: inline-flex;
730
+ align-items: center;
731
+ border-radius: 0.3em;
732
+ padding: 0 1em 0 1em;
733
+ font-size: 1.2em;
734
+ justify-content: center;
735
+ margin-bottom: 1em;
736
+ cursor: pointer; }
737
+
738
+ .alert--danger.svelte-itln7g {
739
+ background-color: rgba(255, 80, 77, 0.5);
740
+ border: 1px solid #ff504d; }
741
+
742
+ .alert--success.svelte-itln7g {
743
+ background-color: rgba(0, 214, 146, 0.5);
744
+ border: 1px solid #00D692; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iroco/ui",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "description": "Iroco design system based on Svelte",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.mjs",
package/src/NavBar.svelte CHANGED
@@ -26,10 +26,11 @@
26
26
 
27
27
  <ul class="nav__{type}__item-container">
28
28
  {#each navigationItems as item}
29
- <li class="nav__{type}__item" class:active={active === item.name}>
29
+ <li class="nav__{type}__item" class:active={active === item.name} >
30
30
  <a
31
31
  on:click={() => handleClickLink(item)}
32
32
  href={typeof item.hrefOrCallback === 'string' ? item.hrefOrCallback : '#'}
33
+ class:iroco-ui-button= { item.isButton() }
33
34
  >
34
35
  {item.name}</a
35
36
  >
@@ -42,6 +43,7 @@
42
43
  @use '../scss/colors';
43
44
  @use '../scss/constants';
44
45
  @import '../scss/containers';
46
+ @import '../scss/button';
45
47
 
46
48
  .nav {
47
49
  &__sidebar,
package/src/definition.ts CHANGED
@@ -12,7 +12,6 @@ export class NavigationItem {
12
12
  }
13
13
  };
14
14
 
15
-
16
15
  export enum ButtonKind {
17
16
  REGULAR = "regular",
18
17
  DANGER = "danger"
package/src/index.ts CHANGED
@@ -16,5 +16,6 @@ export { default as IconTrashCan } from './IconTrashCan.svelte'
16
16
  export { default as Alert } from './Alert.svelte'
17
17
  export { default as IconIrocoLogo } from './IconIrocoLogo.svelte'
18
18
  export { default as IrocoLogo } from './IrocoLogo.svelte'
19
+ export * from './definition'
19
20
 
20
21