@iroco/ui 1.0.0-4 → 1.0.0-6

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 (39) hide show
  1. package/README.md +9 -14
  2. package/dist/Alert.stories.svelte +5 -4
  3. package/dist/Alert.svelte +1 -98
  4. package/dist/Button.stories.svelte +2 -2
  5. package/dist/Button.svelte +1 -98
  6. package/dist/DataTable.stories.svelte +13 -15
  7. package/dist/DataTable.svelte +1 -98
  8. package/dist/IconBurger.stories.svelte +3 -5
  9. package/dist/IconClose.stories.svelte +2 -4
  10. package/dist/IconFloppyDisk.stories.svelte +4 -7
  11. package/dist/IconInfo.stories.svelte +2 -5
  12. package/dist/IconIrocoLogo.stories.svelte +2 -5
  13. package/dist/IconMoreSign.stories.svelte +2 -5
  14. package/dist/IconTrashCan.stories.svelte +2 -5
  15. package/dist/ImageArticle.stories.svelte +49 -0
  16. package/dist/ImageArticle.stories.svelte.d.ts +57 -0
  17. package/dist/ImageArticle.svelte +438 -0
  18. package/dist/ImageArticle.svelte.d.ts +22 -0
  19. package/dist/IrocoLogo.stories.svelte +2 -8
  20. package/dist/Loader.stories.svelte +3 -7
  21. package/dist/NavBar.stories.svelte +13 -14
  22. package/dist/NavBar.svelte +1 -278
  23. package/dist/Navigation.stories.svelte +14 -15
  24. package/dist/Navigation.svelte +9 -139
  25. package/dist/NumberInput.stories.svelte +3 -6
  26. package/dist/NumberInput.svelte +1 -98
  27. package/dist/RadioButton.stories.svelte +4 -18
  28. package/dist/RadioButton.svelte +1 -98
  29. package/dist/TextInput.stories.svelte +11 -9
  30. package/dist/TextInput.svelte +1 -98
  31. package/dist/definition.d.ts +5 -0
  32. package/dist/definition.js +8 -0
  33. package/dist/scss/button.scss +1 -1
  34. package/dist/scss/colors.scss +2 -60
  35. package/dist/scss/fields/_checkbox.scss +3 -3
  36. package/dist/scss/fields/_input.scss +7 -7
  37. package/dist/scss/forms.scss +1 -1
  38. package/dist/scss/style.scss +1 -1
  39. package/package.json +3 -1
@@ -54,165 +54,58 @@ $:
54
54
  <div class="nav__version">{version == null ? '' : version}</div>
55
55
  </nav>
56
56
 
57
- <style>.font-color-blue {
58
- color: #00b9ff;
59
- }
60
-
61
- .font-color-darkBlue {
62
- color: #211d28;
63
- }
64
-
65
- .font-color-nightBlue {
66
- color: #18151e;
67
- }
68
-
69
- .font-color-green {
70
- color: #00d692;
71
- }
72
-
73
- .font-color-red {
74
- color: #ff504d;
75
- }
76
-
77
- .font-color-yellow {
78
- color: #ffe032;
79
- }
80
-
81
- .font-color-beige {
82
- color: #f2ebe3;
83
- }
84
-
85
- .font-color-darkBeige {
86
- color: #a9a29e;
87
- }
88
-
89
- .font-color-mediumGrey {
90
- color: #464452;
91
- }
92
-
93
- .font-color-darkGrey {
94
- color: #33323a;
95
- }
96
-
97
- .font-color-lightGrey {
98
- color: #f5f5f5;
99
- }
100
-
101
- :root {
102
- --color-white-op-20: rgba(255, 255, 255, 0.2);
103
- --color-white-op-30: rgba(255, 255, 255, 0.3);
104
- --color-black-op-20: rgba(0, 0, 0, 0.2);
105
- --color-black-op-40: rgba(0, 0, 0, 0.4);
106
- --color-black-op-60: rgba(0, 0, 0, 0.6);
107
- --color-dark-blue-op-30: #211d284d;
108
- /* semantic colors */
109
- --color-primary-light: #82eec7;
110
- --color-primary: #00d692;
111
- --color-primary-bg: #00d69280;
112
- --color-primary-dark: #00a873;
113
- --color-secondary-light: #ffffff;
114
- --color-secondary: #f2ebe3;
115
- --color-secondary-dark: #a9a29e;
116
- /* feedback */
117
- --color-success: #00d692;
118
- --color-success-bg: #00d69280;
119
- --color-danger: #ff504d;
120
- --color-danger-bg: #ff504d80;
121
- --color-warning: #ffe032;
122
- --color-warning-bg: #ffe03280;
123
- /* typography */
124
- --color-text-light: #ffffff;
125
- --color-text: #f2ebe3;
126
- --color-text-op-50: #f2ebe380;
127
- --color-text-op-60: #f2ebe399;
128
- --color-text-dark: #464452;
129
- /* border */
130
- --color-border: #464452;
131
- /* body */
132
- --color-body: #211d28;
133
- /* forms */
134
- --form-element-border: var(--color-border);
135
- --form-element-bg: #f2ebe3;
136
- --form-text-placeholder: #a9a29e;
137
- /* buttons */
138
- --btn-primary-bg: #f2ebe3;
139
- --btn-primary-border: #18151e;
140
- --btn-primary-label: #f2ebe3;
141
- --dark-btn-primary-label: #f2ebe3;
142
- --dark-btn-primary-bg: #18151e;
143
- --btn-basic-label: #18151e;
144
- --btn-basic-bg: #f2ebe3;
145
- --btn-basic-border: #18151e;
146
- --btn-disabled-label: var(--color-black-op-60);
147
- --btn-disabled-bg: #a9a29e;
148
- --btn-disabled-border: var(--color-black-op-60);
149
- /* icons */
150
- --color-icon-primary: #a9a29e;
151
- --color-icon-secondary: inherit;
152
- }
153
-
154
- .container-wide {
57
+ <style>.container-wide {
155
58
  width: calc(100% - 20px);
156
59
  max-width: 2360px;
157
60
  margin-left: auto;
158
61
  margin-right: auto;
159
62
  transition: max-width ease-out 200ms;
160
63
  }
161
-
162
64
  @media all and (max-width: 2560px) {
163
65
  .container-wide {
164
66
  max-width: 1620px;
165
67
  }
166
68
  }
167
-
168
69
  @media all and (max-width: 1800px) {
169
70
  .container-wide {
170
71
  max-width: 1280px;
171
72
  }
172
73
  }
173
-
174
74
  @media all and (max-width: 1440px) {
175
75
  .container-wide {
176
76
  max-width: 884px;
177
77
  }
178
78
  }
179
-
180
79
  @media all and (max-width: 1024px) {
181
80
  .container-wide {
182
81
  max-width: 648px;
183
82
  }
184
83
  }
185
-
186
84
  @media all and (max-width: 768px) {
187
85
  .container-wide {
188
86
  max-width: 496px;
189
87
  }
190
88
  }
191
-
192
89
  @media all and (max-width: 596px) {
193
90
  .container-wide {
194
91
  max-width: 365px;
195
92
  }
196
93
  }
197
-
198
94
  @media all and (max-width: 425px) {
199
95
  .container-wide {
200
96
  max-width: calc(100% - 60px);
201
97
  }
202
98
  }
203
-
204
99
  @media all and (max-width: 375px) {
205
100
  .container-wide {
206
101
  max-width: calc(100% - 40px);
207
102
  }
208
103
  }
209
-
210
104
  @media all and (max-width: 320px) {
211
105
  .container-wide {
212
106
  max-width: calc(100% - 20px);
213
107
  }
214
108
  }
215
-
216
109
  .container-large {
217
110
  width: calc(100% - 20px);
218
111
  max-width: 1280px;
@@ -220,49 +113,41 @@ $:
220
113
  margin-right: auto;
221
114
  transition: max-width ease-out 200ms;
222
115
  }
223
-
224
116
  @media all and (max-width: 1440px) {
225
117
  .container-large {
226
118
  max-width: 884px;
227
119
  }
228
120
  }
229
-
230
121
  @media all and (max-width: 1024px) {
231
122
  .container-large {
232
123
  max-width: 648px;
233
124
  }
234
125
  }
235
-
236
126
  @media all and (max-width: 768px) {
237
127
  .container-large {
238
128
  max-width: 496px;
239
129
  }
240
130
  }
241
-
242
131
  @media all and (max-width: 596px) {
243
132
  .container-large {
244
133
  max-width: 365px;
245
134
  }
246
135
  }
247
-
248
136
  @media all and (max-width: 425px) {
249
137
  .container-large {
250
138
  max-width: calc(100% - 60px);
251
139
  }
252
140
  }
253
-
254
141
  @media all and (max-width: 375px) {
255
142
  .container-large {
256
143
  max-width: calc(100% - 40px);
257
144
  }
258
145
  }
259
-
260
146
  @media all and (max-width: 320px) {
261
147
  .container-large {
262
148
  max-width: calc(100% - 20px);
263
149
  }
264
150
  }
265
-
266
151
  .container-medium {
267
152
  width: calc(100% - 20px);
268
153
  max-width: 884px;
@@ -270,43 +155,36 @@ $:
270
155
  margin-right: auto;
271
156
  transition: max-width ease-out 200ms;
272
157
  }
273
-
274
158
  @media all and (max-width: 1024px) {
275
159
  .container-medium {
276
160
  max-width: 648px;
277
161
  }
278
162
  }
279
-
280
163
  @media all and (max-width: 768px) {
281
164
  .container-medium {
282
165
  max-width: 496px;
283
166
  }
284
167
  }
285
-
286
168
  @media all and (max-width: 596px) {
287
169
  .container-medium {
288
170
  max-width: 365px;
289
171
  }
290
172
  }
291
-
292
173
  @media all and (max-width: 425px) {
293
174
  .container-medium {
294
175
  max-width: calc(100% - 60px);
295
176
  }
296
177
  }
297
-
298
178
  @media all and (max-width: 375px) {
299
179
  .container-medium {
300
180
  max-width: calc(100% - 40px);
301
181
  }
302
182
  }
303
-
304
183
  @media all and (max-width: 320px) {
305
184
  .container-medium {
306
185
  max-width: calc(100% - 20px);
307
186
  }
308
187
  }
309
-
310
188
  .container-small {
311
189
  width: calc(100% - 20px);
312
190
  max-width: 496px;
@@ -314,122 +192,21 @@ $:
314
192
  margin-right: auto;
315
193
  transition: max-width ease-out 200ms;
316
194
  }
317
-
318
195
  @media all and (max-width: 425px) {
319
196
  .container-small {
320
197
  max-width: calc(100% - 60px);
321
198
  }
322
199
  }
323
-
324
200
  @media all and (max-width: 375px) {
325
201
  .container-small {
326
202
  max-width: calc(100% - 40px);
327
203
  }
328
204
  }
329
-
330
205
  @media all and (max-width: 320px) {
331
206
  .container-small {
332
207
  max-width: calc(100% - 20px);
333
208
  }
334
209
  }
335
-
336
- .font-color-blue {
337
- color: #00b9ff;
338
- }
339
-
340
- .font-color-darkBlue {
341
- color: #211d28;
342
- }
343
-
344
- .font-color-nightBlue {
345
- color: #18151e;
346
- }
347
-
348
- .font-color-green {
349
- color: #00d692;
350
- }
351
-
352
- .font-color-red {
353
- color: #ff504d;
354
- }
355
-
356
- .font-color-yellow {
357
- color: #ffe032;
358
- }
359
-
360
- .font-color-beige {
361
- color: #f2ebe3;
362
- }
363
-
364
- .font-color-darkBeige {
365
- color: #a9a29e;
366
- }
367
-
368
- .font-color-mediumGrey {
369
- color: #464452;
370
- }
371
-
372
- .font-color-darkGrey {
373
- color: #33323a;
374
- }
375
-
376
- .font-color-lightGrey {
377
- color: #f5f5f5;
378
- }
379
-
380
- :root {
381
- --color-white-op-20: rgba(255, 255, 255, 0.2);
382
- --color-white-op-30: rgba(255, 255, 255, 0.3);
383
- --color-black-op-20: rgba(0, 0, 0, 0.2);
384
- --color-black-op-40: rgba(0, 0, 0, 0.4);
385
- --color-black-op-60: rgba(0, 0, 0, 0.6);
386
- --color-dark-blue-op-30: #211d284d;
387
- /* semantic colors */
388
- --color-primary-light: #82eec7;
389
- --color-primary: #00d692;
390
- --color-primary-bg: #00d69280;
391
- --color-primary-dark: #00a873;
392
- --color-secondary-light: #ffffff;
393
- --color-secondary: #f2ebe3;
394
- --color-secondary-dark: #a9a29e;
395
- /* feedback */
396
- --color-success: #00d692;
397
- --color-success-bg: #00d69280;
398
- --color-danger: #ff504d;
399
- --color-danger-bg: #ff504d80;
400
- --color-warning: #ffe032;
401
- --color-warning-bg: #ffe03280;
402
- /* typography */
403
- --color-text-light: #ffffff;
404
- --color-text: #f2ebe3;
405
- --color-text-op-50: #f2ebe380;
406
- --color-text-op-60: #f2ebe399;
407
- --color-text-dark: #464452;
408
- /* border */
409
- --color-border: #464452;
410
- /* body */
411
- --color-body: #211d28;
412
- /* forms */
413
- --form-element-border: var(--color-border);
414
- --form-element-bg: #f2ebe3;
415
- --form-text-placeholder: #a9a29e;
416
- /* buttons */
417
- --btn-primary-bg: #f2ebe3;
418
- --btn-primary-border: #18151e;
419
- --btn-primary-label: #f2ebe3;
420
- --dark-btn-primary-label: #f2ebe3;
421
- --dark-btn-primary-bg: #18151e;
422
- --btn-basic-label: #18151e;
423
- --btn-basic-bg: #f2ebe3;
424
- --btn-basic-border: #18151e;
425
- --btn-disabled-label: var(--color-black-op-60);
426
- --btn-disabled-bg: #a9a29e;
427
- --btn-disabled-border: var(--color-black-op-60);
428
- /* icons */
429
- --color-icon-primary: #a9a29e;
430
- --color-icon-secondary: inherit;
431
- }
432
-
433
210
  .container-wide {
434
211
  width: calc(100% - 20px);
435
212
  max-width: 2360px;
@@ -437,61 +214,51 @@ $:
437
214
  margin-right: auto;
438
215
  transition: max-width ease-out 200ms;
439
216
  }
440
-
441
217
  @media all and (max-width: 2560px) {
442
218
  .container-wide {
443
219
  max-width: 1620px;
444
220
  }
445
221
  }
446
-
447
222
  @media all and (max-width: 1800px) {
448
223
  .container-wide {
449
224
  max-width: 1280px;
450
225
  }
451
226
  }
452
-
453
227
  @media all and (max-width: 1440px) {
454
228
  .container-wide {
455
229
  max-width: 884px;
456
230
  }
457
231
  }
458
-
459
232
  @media all and (max-width: 1024px) {
460
233
  .container-wide {
461
234
  max-width: 648px;
462
235
  }
463
236
  }
464
-
465
237
  @media all and (max-width: 768px) {
466
238
  .container-wide {
467
239
  max-width: 496px;
468
240
  }
469
241
  }
470
-
471
242
  @media all and (max-width: 596px) {
472
243
  .container-wide {
473
244
  max-width: 365px;
474
245
  }
475
246
  }
476
-
477
247
  @media all and (max-width: 425px) {
478
248
  .container-wide {
479
249
  max-width: calc(100% - 60px);
480
250
  }
481
251
  }
482
-
483
252
  @media all and (max-width: 375px) {
484
253
  .container-wide {
485
254
  max-width: calc(100% - 40px);
486
255
  }
487
256
  }
488
-
489
257
  @media all and (max-width: 320px) {
490
258
  .container-wide {
491
259
  max-width: calc(100% - 20px);
492
260
  }
493
261
  }
494
-
495
262
  .container-large {
496
263
  width: calc(100% - 20px);
497
264
  max-width: 1280px;
@@ -499,49 +266,41 @@ $:
499
266
  margin-right: auto;
500
267
  transition: max-width ease-out 200ms;
501
268
  }
502
-
503
269
  @media all and (max-width: 1440px) {
504
270
  .container-large {
505
271
  max-width: 884px;
506
272
  }
507
273
  }
508
-
509
274
  @media all and (max-width: 1024px) {
510
275
  .container-large {
511
276
  max-width: 648px;
512
277
  }
513
278
  }
514
-
515
279
  @media all and (max-width: 768px) {
516
280
  .container-large {
517
281
  max-width: 496px;
518
282
  }
519
283
  }
520
-
521
284
  @media all and (max-width: 596px) {
522
285
  .container-large {
523
286
  max-width: 365px;
524
287
  }
525
288
  }
526
-
527
289
  @media all and (max-width: 425px) {
528
290
  .container-large {
529
291
  max-width: calc(100% - 60px);
530
292
  }
531
293
  }
532
-
533
294
  @media all and (max-width: 375px) {
534
295
  .container-large {
535
296
  max-width: calc(100% - 40px);
536
297
  }
537
298
  }
538
-
539
299
  @media all and (max-width: 320px) {
540
300
  .container-large {
541
301
  max-width: calc(100% - 20px);
542
302
  }
543
303
  }
544
-
545
304
  .container-medium {
546
305
  width: calc(100% - 20px);
547
306
  max-width: 884px;
@@ -549,43 +308,36 @@ $:
549
308
  margin-right: auto;
550
309
  transition: max-width ease-out 200ms;
551
310
  }
552
-
553
311
  @media all and (max-width: 1024px) {
554
312
  .container-medium {
555
313
  max-width: 648px;
556
314
  }
557
315
  }
558
-
559
316
  @media all and (max-width: 768px) {
560
317
  .container-medium {
561
318
  max-width: 496px;
562
319
  }
563
320
  }
564
-
565
321
  @media all and (max-width: 596px) {
566
322
  .container-medium {
567
323
  max-width: 365px;
568
324
  }
569
325
  }
570
-
571
326
  @media all and (max-width: 425px) {
572
327
  .container-medium {
573
328
  max-width: calc(100% - 60px);
574
329
  }
575
330
  }
576
-
577
331
  @media all and (max-width: 375px) {
578
332
  .container-medium {
579
333
  max-width: calc(100% - 40px);
580
334
  }
581
335
  }
582
-
583
336
  @media all and (max-width: 320px) {
584
337
  .container-medium {
585
338
  max-width: calc(100% - 20px);
586
339
  }
587
340
  }
588
-
589
341
  .container-small {
590
342
  width: calc(100% - 20px);
591
343
  max-width: 496px;
@@ -593,25 +345,21 @@ $:
593
345
  margin-right: auto;
594
346
  transition: max-width ease-out 200ms;
595
347
  }
596
-
597
348
  @media all and (max-width: 425px) {
598
349
  .container-small {
599
350
  max-width: calc(100% - 60px);
600
351
  }
601
352
  }
602
-
603
353
  @media all and (max-width: 375px) {
604
354
  .container-small {
605
355
  max-width: calc(100% - 40px);
606
356
  }
607
357
  }
608
-
609
358
  @media all and (max-width: 320px) {
610
359
  .container-small {
611
360
  max-width: calc(100% - 20px);
612
361
  }
613
362
  }
614
-
615
363
  .iroco-ui-button {
616
364
  cursor: pointer;
617
365
  -webkit-touch-callout: none;
@@ -626,58 +374,46 @@ $:
626
374
  text-transform: uppercase;
627
375
  border-radius: 0.3em;
628
376
  }
629
-
630
377
  .iroco-ui-button--basic {
631
378
  color: var(--btn-basic-label);
632
379
  background: var(--btn-basic-bg);
633
380
  border: 1px solid var(--btn-basic-border);
634
381
  }
635
-
636
382
  .iroco-ui-button--dark {
637
383
  background: var(--dark-btn-primary-bg);
638
384
  color: var(--dark-btn-primary-label);
639
385
  }
640
-
641
386
  .iroco-ui-button--success {
642
387
  background: var(--color-success);
643
388
  color: var(--btn-secondary-label);
644
389
  }
645
-
646
390
  .iroco-ui-button--danger {
647
391
  background: var(--color-danger);
648
392
  }
649
-
650
393
  .iroco-ui-button--regular {
651
394
  padding: 1em 2em;
652
395
  }
653
-
654
396
  .iroco-ui-button--small {
655
397
  padding: 0.5em 1em;
656
398
  }
657
-
658
399
  .iroco-ui-button--basic:hover, .iroco-ui-button--success:hover, .iroco-ui-button--danger:hover {
659
400
  box-shadow: inset 0 0 0 10em var(--color-black-op-20);
660
401
  }
661
-
662
402
  .iroco-ui-button--dark:hover {
663
403
  box-shadow: inset 0 0 0 10em var(--color-white-op-20);
664
404
  }
665
-
666
405
  .iroco-ui-button:active {
667
406
  box-shadow: none;
668
407
  }
669
-
670
408
  .iroco-ui-button.disabled, .iroco-ui-button:disabled {
671
409
  background-color: var(--btn-disabled-bg);
672
410
  color: var(--btn-disabled-label);
673
411
  border-color: var(--btn-disabled-border);
674
412
  cursor: default;
675
413
  }
676
-
677
414
  .iroco-ui-button.disabled:hover, .iroco-ui-button:disabled:hover {
678
415
  box-shadow: none;
679
416
  }
680
-
681
417
  .iroco-ui-link {
682
418
  background: none;
683
419
  border: none;
@@ -685,17 +421,14 @@ $:
685
421
  color: var(--color-text);
686
422
  cursor: pointer;
687
423
  }
688
-
689
424
  .nav__sidebar__item, .nav__topbar__item {
690
425
  text-decoration: none;
691
426
  display: block;
692
427
  font-size: 1em;
693
428
  }
694
-
695
429
  .nav__sidebar__close, .nav__topbar__close {
696
430
  display: none;
697
431
  }
698
-
699
432
  .nav__sidebar {
700
433
  height: 100%;
701
434
  width: 300px;
@@ -706,53 +439,43 @@ $:
706
439
  display: flex;
707
440
  flex-direction: column;
708
441
  }
709
-
710
442
  .nav__sidebar__item-container {
711
443
  margin: 0;
712
444
  padding: 0;
713
445
  }
714
-
715
446
  .nav__sidebar__item {
716
447
  padding: 2em;
717
448
  border-top: 1px solid var(--color-border);
718
449
  }
719
-
720
450
  .nav__sidebar__item:first-child {
721
451
  border-top: none;
722
452
  }
723
-
724
453
  .nav__sidebar .active {
725
454
  border-top: 1px solid var(--color-primary);
726
455
  border-bottom: 1px solid var(--color-primary);
727
456
  }
728
-
729
457
  .nav__topbar {
730
458
  flex-grow: 1;
731
459
  display: flex;
732
460
  justify-content: flex-end;
733
461
  }
734
-
735
462
  .nav__topbar ul,
736
463
  .nav__topbar li {
737
464
  display: inline;
738
465
  }
739
-
740
466
  .nav__topbar ul {
741
467
  display: flex;
742
468
  flex-grow: 1;
743
469
  justify-content: space-around;
744
470
  }
745
-
746
471
  .nav__topbar .active {
747
472
  border-bottom: 1px solid var(--color-primary);
748
473
  }
749
-
750
474
  .nav__version {
751
475
  margin-top: auto;
752
476
  padding-left: 2em;
753
477
  color: var(--color-text-dark);
754
478
  }
755
-
756
479
  @media all and (max-width: 768px) {
757
480
  .nav__sidebar, .nav__topbar {
758
481
  position: fixed;