@ebrains/react 2.3.1 → 2.4.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/color-primary-palette_6.entry.esm.js +106 -106
- package/components-section.entry.esm.js +18 -11
- package/correct-use-of-colors.entry.esm.js +33 -33
- package/docs-palettes.entry.esm.js +1 -1
- package/docs-tokens.entry.esm.js +1 -1
- package/{eds-accordion_36.entry.esm.js → eds-accordion_37.entry.esm.js} +110 -63
- package/eds-app-root.entry.esm.js +4 -4
- package/eds-card-desc_2.entry.esm.js +4 -4
- package/eds-card-generic.entry.esm.js +2 -2
- package/eds-card-project.entry.esm.js +10 -10
- package/eds-card-tags.entry.esm.js +1 -1
- package/eds-card-tool.entry.esm.js +4 -4
- package/eds-cookies-preference.entry.esm.js +2 -2
- package/eds-feedback.entry.esm.js +5 -5
- package/eds-footer.entry.esm.js +16 -16
- package/eds-frame.entry.esm.js +4 -4
- package/eds-fullscreen-menu.entry.esm.js +3 -1
- package/eds-gauge.entry.esm.js +4 -4
- package/eds-icon-arrow-diagonal.entry.esm.js +1 -1
- package/eds-icon-arrow-right.entry.esm.js +1 -1
- package/eds-icon-bin.entry.esm.js +1 -1
- package/eds-icon-bluesky.entry.esm.js +1 -1
- package/eds-icon-bookmark.entry.esm.js +1 -1
- package/eds-icon-chevron-down.entry.esm.js +1 -1
- package/eds-icon-chevron-left.entry.esm.js +1 -1
- package/eds-icon-chevron-right.entry.esm.js +1 -1
- package/eds-icon-chevron-up.entry.esm.js +1 -1
- package/eds-icon-clone.entry.esm.js +1 -1
- package/eds-icon-close.entry.esm.js +1 -1
- package/eds-icon-copy.entry.esm.js +1 -1
- package/eds-icon-download.entry.esm.js +1 -1
- package/eds-icon-draft.entry.esm.js +1 -1
- package/eds-icon-edit.entry.esm.js +1 -1
- package/eds-icon-eu.entry.esm.js +1 -1
- package/eds-icon-external.entry.esm.js +1 -1
- package/eds-icon-facebook.entry.esm.js +1 -1
- package/eds-icon-gitlab.entry.esm.js +1 -1
- package/eds-icon-linkedin.entry.esm.js +1 -1
- package/eds-icon-loader.entry.esm.js +1 -1
- package/eds-icon-mastodon.entry.esm.js +1 -1
- package/eds-icon-menu.entry.esm.js +1 -1
- package/eds-icon-minus.entry.esm.js +1 -1
- package/eds-icon-more.entry.esm.js +1 -1
- package/eds-icon-paper.entry.esm.js +1 -1
- package/eds-icon-plus.entry.esm.js +1 -1
- package/eds-icon-portal.entry.esm.js +1 -1
- package/eds-icon-private.entry.esm.js +1 -1
- package/eds-icon-public.entry.esm.js +1 -1
- package/eds-icon-search.entry.esm.js +1 -1
- package/eds-icon-star.entry.esm.js +1 -1
- package/eds-icon-start.entry.esm.js +1 -1
- package/eds-icon-success.entry.esm.js +1 -1
- package/eds-icon-thumbs-down.entry.esm.js +1 -1
- package/eds-icon-thumbs-up.entry.esm.js +1 -1
- package/eds-icon-tutorial.entry.esm.js +1 -1
- package/eds-icon-twitter.entry.esm.js +1 -1
- package/eds-icon-unknown.entry.esm.js +1 -1
- package/eds-icon-updown.entry.esm.js +3 -3
- package/eds-icon-user.entry.esm.js +1 -1
- package/eds-icon-view.entry.esm.js +1 -1
- package/eds-icon-youtube.entry.esm.js +1 -1
- package/eds-modal.entry.esm.js +8 -8
- package/eds-progress-bar.entry.esm.js +4 -4
- package/eds-section-core_2.entry.esm.js +5 -5
- package/eds-social-networks.entry.esm.js +3 -3
- package/eds-timeline.entry.esm.js +4 -4
- package/eds-toast-manager.entry.esm.js +1 -1
- package/eds-trl.entry.esm.js +2 -2
- package/incorrect-use-of-colors.entry.esm.js +8 -8
- package/index.esm.js +1 -1
- package/index.esm2.js +5 -4
- package/logo-space.entry.esm.js +9 -9
- package/logo-variations-horizontal_2.entry.esm.js +28 -28
- package/logo-variations-tabs.entry.esm.js +1 -1
- package/logo-wrong-usage.entry.esm.js +25 -25
- package/package.json +1 -1
- package/src/components.d.ts +1 -0
- package/svg-repository.entry.esm.js +4 -4
- package/token-list_3.entry.esm.js +5 -5
- package/token-ratios.entry.esm.js +3 -3
- package/token-spacing.entry.esm.js +26 -26
- package/token-typography.entry.esm.js +2 -2
- package/{up-and-down-d747abee.esm.js → up-and-down-8b69ca97.esm.js} +2 -2
|
@@ -32,7 +32,7 @@ const ColorPrimaryPalette = class {
|
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
34
|
return h("ul", {
|
|
35
|
-
key: '
|
|
35
|
+
key: '247df18cb7672b14048e390299894acf0ff44714',
|
|
36
36
|
class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"
|
|
37
37
|
}, this.colors.map(color => h("li", {
|
|
38
38
|
class: "grid-col-span-12 md:grid-col-span-6 flex flex-col"
|
|
@@ -113,7 +113,7 @@ const ColorSecondaryPalette = class {
|
|
|
113
113
|
}
|
|
114
114
|
render() {
|
|
115
115
|
return h("ul", {
|
|
116
|
-
key: '
|
|
116
|
+
key: '1712cc4bd243d5bde96aac8334ce26706edf4731',
|
|
117
117
|
class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"
|
|
118
118
|
}, this.colors.map(color => h("li", {
|
|
119
119
|
class: "grid-col-span-12 md:grid-col-span-6 flex flex-col"
|
|
@@ -205,7 +205,7 @@ const ColorSupportPalette = class {
|
|
|
205
205
|
}
|
|
206
206
|
render() {
|
|
207
207
|
return h("ul", {
|
|
208
|
-
key: '
|
|
208
|
+
key: 'f8847f5ebf1c015d60cc1b699b4cfbeceff77b59',
|
|
209
209
|
class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"
|
|
210
210
|
}, this.colors.map(color => {
|
|
211
211
|
// compute once
|
|
@@ -267,7 +267,7 @@ const GradientPrimaryPalette = class {
|
|
|
267
267
|
}
|
|
268
268
|
render() {
|
|
269
269
|
return h("ul", {
|
|
270
|
-
key: '
|
|
270
|
+
key: '6858be14a27601106581efe8fd9221daf4f0ddfc',
|
|
271
271
|
class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16",
|
|
272
272
|
style: {
|
|
273
273
|
background: 'linear-gradient(to bottom, #9CE142 0%, #00C959 50%, #00A595 100%)'
|
|
@@ -347,214 +347,214 @@ const GradientSecondaryPalette = class {
|
|
|
347
347
|
}
|
|
348
348
|
render() {
|
|
349
349
|
return h("div", {
|
|
350
|
-
key: '
|
|
350
|
+
key: '568e55cca12f97a4afc1a5acffd8ffd64938da44'
|
|
351
351
|
}, h("ul", {
|
|
352
|
-
key: '
|
|
352
|
+
key: '16f19b9d89e83015db81290acfddb3ffc0368aa2',
|
|
353
353
|
class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"
|
|
354
354
|
}, h("li", {
|
|
355
|
-
key: '
|
|
355
|
+
key: 'd1b205d58e171e2a194685888a919d7178291118',
|
|
356
356
|
class: "grid-col-span-12 md:grid-col-span-6 flex flex-col"
|
|
357
357
|
}, h("div", {
|
|
358
|
-
key: '
|
|
358
|
+
key: '3be3ecf27999f572951253260802099e49c60392',
|
|
359
359
|
class: "effect-height flex items-center justify-between p-16",
|
|
360
360
|
style: {
|
|
361
361
|
background: this.colors[0].background
|
|
362
362
|
}
|
|
363
363
|
}, h("div", {
|
|
364
|
-
key: '
|
|
364
|
+
key: '931046b9a1b98bcb147f3d65f1278aa0104b7620',
|
|
365
365
|
class: "grid"
|
|
366
366
|
}, h("span", {
|
|
367
|
-
key: '
|
|
367
|
+
key: '15341ab5e4937589bd6495e88af46f52b66c13f6',
|
|
368
368
|
class: "f-body-02"
|
|
369
369
|
}, this.colors[0].rgb), h("span", {
|
|
370
|
-
key: '
|
|
370
|
+
key: 'f73ee08c5e15162f757c1f20084c23dc4cd4fa4f',
|
|
371
371
|
class: "f-body-02 w-full"
|
|
372
372
|
}, this.colors[0].cmyk), h("eds-code-block", {
|
|
373
|
-
key: '
|
|
373
|
+
key: '414005a29611c2abf4adb9e1429ba46ed946e17c',
|
|
374
374
|
code: this.colors[0].hex,
|
|
375
375
|
style: {
|
|
376
376
|
minWidth: '150px',
|
|
377
377
|
marginRight: '5px'
|
|
378
378
|
}
|
|
379
379
|
})), h("div", {
|
|
380
|
-
key: '
|
|
380
|
+
key: 'ea676e150c48d8b6f92d664955e435445c00b290',
|
|
381
381
|
class: "grid"
|
|
382
382
|
}, h("span", {
|
|
383
|
-
key: '
|
|
383
|
+
key: '1b379dba41b32ebf0e79feee6c73646686976123',
|
|
384
384
|
class: "f-body-02"
|
|
385
385
|
}, this.colors[0].pantoneC), h("span", {
|
|
386
|
-
key: '
|
|
386
|
+
key: 'b327219cfb31f7f6cc2ef1bfbba30acb676f1df8',
|
|
387
387
|
class: "f-body-02"
|
|
388
388
|
}, this.colors[0].pantoneU))), h("div", {
|
|
389
|
-
key: '
|
|
389
|
+
key: 'b8192f45ddef48a5adc24b9dbd023ab39212b9b7',
|
|
390
390
|
class: "effect-height flex items-center justify-between p-16",
|
|
391
391
|
style: {
|
|
392
392
|
background: this.colors[1].background
|
|
393
393
|
}
|
|
394
394
|
}, h("div", {
|
|
395
|
-
key: '
|
|
395
|
+
key: '945802383c8208d374156a239bd902e55e54993b',
|
|
396
396
|
class: "grid"
|
|
397
397
|
}, h("span", {
|
|
398
|
-
key: '
|
|
398
|
+
key: 'dc9b6be317846769a1e8365c0a3a2c974ccfa23b',
|
|
399
399
|
class: "f-body-02"
|
|
400
400
|
}, this.colors[1].rgb), h("span", {
|
|
401
|
-
key: '
|
|
401
|
+
key: 'bbff2c3bf5769945f07db0813c21d7a14d8495b6',
|
|
402
402
|
class: "f-body-02 w-full"
|
|
403
403
|
}, this.colors[1].cmyk), h("eds-code-block", {
|
|
404
|
-
key: '
|
|
404
|
+
key: '93d9b9d19f789a9731ed444c74bada150295ce28',
|
|
405
405
|
code: this.colors[1].hex,
|
|
406
406
|
style: {
|
|
407
407
|
minWidth: '150px',
|
|
408
408
|
marginRight: '5px'
|
|
409
409
|
}
|
|
410
410
|
})), h("div", {
|
|
411
|
-
key: '
|
|
411
|
+
key: '8b87555408c3539afe4bd90c19f3d2034cc57d54',
|
|
412
412
|
class: "grid"
|
|
413
413
|
}, h("span", {
|
|
414
|
-
key: '
|
|
414
|
+
key: '2d5b21465eeb219886486f77f2f72351c5f054aa',
|
|
415
415
|
class: "f-body-02"
|
|
416
416
|
}, this.colors[1].pantoneC), h("span", {
|
|
417
|
-
key: '
|
|
417
|
+
key: 'b16aa8a075b2a7a3676b7f193ba4fa3185e72f49',
|
|
418
418
|
class: "f-body-02"
|
|
419
419
|
}, this.colors[1].pantoneU))))), h("eds-block-break", {
|
|
420
|
-
key: '
|
|
420
|
+
key: '3878257fda9acf2175bc8a152c62b09ec5c4924f'
|
|
421
421
|
}), h("ul", {
|
|
422
|
-
key: '
|
|
422
|
+
key: '8b98d84de8eab1fdf31b21ec30aef8af95f82f4d',
|
|
423
423
|
class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"
|
|
424
424
|
}, h("li", {
|
|
425
|
-
key: '
|
|
425
|
+
key: '6eec8f2913b8805929a6931856be3fea0b665fdd',
|
|
426
426
|
class: "grid-col-span-12 md:grid-col-span-6 flex flex-col"
|
|
427
427
|
}, h("div", {
|
|
428
|
-
key: '
|
|
428
|
+
key: 'fdc4febd09538cc9d2e0d5efee8394d680859aef',
|
|
429
429
|
class: "effect-height flex items-center justify-between p-16",
|
|
430
430
|
style: {
|
|
431
431
|
background: this.colors[2].background
|
|
432
432
|
}
|
|
433
433
|
}, h("div", {
|
|
434
|
-
key: '
|
|
434
|
+
key: '05e44f954e17e71e93983544efb08fb3f8415efb',
|
|
435
435
|
class: "grid"
|
|
436
436
|
}, h("span", {
|
|
437
|
-
key: '
|
|
437
|
+
key: 'ff3dac59c5d99e3c3a0bea5454771a46546699dc',
|
|
438
438
|
class: "f-body-02"
|
|
439
439
|
}, this.colors[2].rgb), h("span", {
|
|
440
|
-
key: '
|
|
440
|
+
key: '629424b91fe69ba2348995ea321b5de71b9bb0e1',
|
|
441
441
|
class: "f-body-02 w-full"
|
|
442
442
|
}, this.colors[2].cmyk), h("eds-code-block", {
|
|
443
|
-
key: '
|
|
443
|
+
key: '3cadcf4a4d666bfea773aeaf797dcebe0224e9c7',
|
|
444
444
|
code: this.colors[2].hex,
|
|
445
445
|
style: {
|
|
446
446
|
minWidth: '150px',
|
|
447
447
|
marginRight: '5px'
|
|
448
448
|
}
|
|
449
449
|
})), h("div", {
|
|
450
|
-
key: '
|
|
450
|
+
key: 'a725f4f13d4c944a18c3158f735d8dd172e35128',
|
|
451
451
|
class: "grid"
|
|
452
452
|
}, h("span", {
|
|
453
|
-
key: '
|
|
453
|
+
key: '02c30563e47078f08752ab718e923dacfca8cf6b',
|
|
454
454
|
class: "f-body-02"
|
|
455
455
|
}, this.colors[2].pantoneC), h("span", {
|
|
456
|
-
key: '
|
|
456
|
+
key: '460cfb91e2f9bf5c9f557b844c0bd1d7e904c9d2',
|
|
457
457
|
class: "f-body-02"
|
|
458
458
|
}, this.colors[2].pantoneU))), h("div", {
|
|
459
|
-
key: '
|
|
459
|
+
key: '14c4755af95cb41e5149db0de90a0f0aef429325',
|
|
460
460
|
class: "effect-height flex items-center justify-between p-16",
|
|
461
461
|
style: {
|
|
462
462
|
background: this.colors[3].background
|
|
463
463
|
}
|
|
464
464
|
}, h("div", {
|
|
465
|
-
key: '
|
|
465
|
+
key: 'ef619263619ba173c62312b766cb00d6d5098123',
|
|
466
466
|
class: "grid"
|
|
467
467
|
}, h("span", {
|
|
468
|
-
key: '
|
|
468
|
+
key: 'b5585b81fbc61845e6e5cf0ed23782f904cf3d58',
|
|
469
469
|
class: "f-body-02"
|
|
470
470
|
}, this.colors[3].rgb), h("span", {
|
|
471
|
-
key: '
|
|
471
|
+
key: '346257d86c37f5058f9b4deddf9166f1522970ce',
|
|
472
472
|
class: "f-body-02 w-full"
|
|
473
473
|
}, this.colors[3].cmyk), h("eds-code-block", {
|
|
474
|
-
key: '
|
|
474
|
+
key: '59b89beef607a724b2bfed5b9bad2a78e5708b42',
|
|
475
475
|
code: this.colors[3].hex,
|
|
476
476
|
style: {
|
|
477
477
|
minWidth: '150px',
|
|
478
478
|
marginRight: '5px'
|
|
479
479
|
}
|
|
480
480
|
})), h("div", {
|
|
481
|
-
key: '
|
|
481
|
+
key: 'f8e1a2462a31e0a3901618ec76338dde5ae10943',
|
|
482
482
|
class: "grid"
|
|
483
483
|
}, h("span", {
|
|
484
|
-
key: '
|
|
484
|
+
key: '6e83c3aaae0ae9ec8df2d6eff620059256e4540f',
|
|
485
485
|
class: "f-body-02"
|
|
486
486
|
}, this.colors[3].pantoneC), h("span", {
|
|
487
|
-
key: '
|
|
487
|
+
key: '714d4e2a90966381c56671c295ec106581eeddef',
|
|
488
488
|
class: "f-body-02"
|
|
489
489
|
}, this.colors[3].pantoneU))))), h("eds-block-break", {
|
|
490
|
-
key: '
|
|
490
|
+
key: '0014a9aa45398ea35a1f80b6d2e01b4cbc0e99e0'
|
|
491
491
|
}), h("ul", {
|
|
492
|
-
key: '
|
|
492
|
+
key: 'ef5896480deed0bf14c7ebc583b875e31271cff1',
|
|
493
493
|
class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"
|
|
494
494
|
}, h("li", {
|
|
495
|
-
key: '
|
|
495
|
+
key: '130103977198e73dcf1e76c8b247dfd0052e66b4',
|
|
496
496
|
class: "grid-col-span-12 md:grid-col-span-6 flex flex-col"
|
|
497
497
|
}, h("div", {
|
|
498
|
-
key: '
|
|
498
|
+
key: '8f971d70daed0c51ae3794f5eeea9b8d5bbd689a',
|
|
499
499
|
class: "effect-height flex items-center justify-between p-16",
|
|
500
500
|
style: {
|
|
501
501
|
background: this.colors[4].background
|
|
502
502
|
}
|
|
503
503
|
}, h("div", {
|
|
504
|
-
key: '
|
|
504
|
+
key: '8563d07bc98d7a37b1c0eb04957420875247571e',
|
|
505
505
|
class: "grid"
|
|
506
506
|
}, h("span", {
|
|
507
|
-
key: '
|
|
507
|
+
key: 'b99f1f4d7c044625462542434c6b8941e0b4f8eb',
|
|
508
508
|
class: "f-body-02"
|
|
509
509
|
}, this.colors[4].rgb), h("span", {
|
|
510
|
-
key: '
|
|
510
|
+
key: '1d5524bcd82d295aa9bb502f04a4b3deb6816a4d',
|
|
511
511
|
class: "f-body-02 w-full"
|
|
512
512
|
}, this.colors[4].cmyk), h("eds-code-block", {
|
|
513
|
-
key: '
|
|
513
|
+
key: 'f3dec7ffb1d822eec1fbda4e189624c52b3d46b3',
|
|
514
514
|
code: this.colors[4].hex,
|
|
515
515
|
style: {
|
|
516
516
|
minWidth: '150px',
|
|
517
517
|
marginRight: '5px'
|
|
518
518
|
}
|
|
519
519
|
})), h("div", {
|
|
520
|
-
key: '
|
|
520
|
+
key: '61135fbeab7e0657b589199cdf8caa39b5a97191',
|
|
521
521
|
class: "grid"
|
|
522
522
|
}, h("span", {
|
|
523
|
-
key: '
|
|
523
|
+
key: '3feae86bababfb8dd0ae4c78e342b6b40a5353d6',
|
|
524
524
|
class: "f-body-02"
|
|
525
525
|
}, this.colors[4].pantoneC), h("span", {
|
|
526
|
-
key: '
|
|
526
|
+
key: '458f2c43915ff00eff926dc39afe9a56b822df67',
|
|
527
527
|
class: "f-body-02"
|
|
528
528
|
}, this.colors[4].pantoneU))), h("div", {
|
|
529
|
-
key: '
|
|
529
|
+
key: '6fdbdbd92c843ddaa42d3cad358317ec7dc92723',
|
|
530
530
|
class: "effect-height flex items-center justify-between p-16",
|
|
531
531
|
style: {
|
|
532
532
|
background: this.colors[5].background
|
|
533
533
|
}
|
|
534
534
|
}, h("div", {
|
|
535
|
-
key: '
|
|
535
|
+
key: '1f0f2dd84c18ab45e5db4f09cdacc4cffdd6db30',
|
|
536
536
|
class: "grid"
|
|
537
537
|
}, h("span", {
|
|
538
|
-
key: '
|
|
538
|
+
key: '3050e33955bd0c6486ac385b7d89f404fd2ffb47',
|
|
539
539
|
class: "f-body-02"
|
|
540
540
|
}, this.colors[5].rgb), h("span", {
|
|
541
|
-
key: '
|
|
541
|
+
key: 'c40759231240722eb9c93878d74f4a2028492b3a',
|
|
542
542
|
class: "f-body-02 w-full"
|
|
543
543
|
}, this.colors[5].cmyk), h("eds-code-block", {
|
|
544
|
-
key: '
|
|
544
|
+
key: '01746b746ebe1c229169f8c9d0b078bff564edbf',
|
|
545
545
|
code: this.colors[5].hex,
|
|
546
546
|
style: {
|
|
547
547
|
minWidth: '150px',
|
|
548
548
|
marginRight: '5px'
|
|
549
549
|
}
|
|
550
550
|
})), h("div", {
|
|
551
|
-
key: '
|
|
551
|
+
key: 'c11478286125955885b8e4e650f284876af7144b',
|
|
552
552
|
class: "grid"
|
|
553
553
|
}, h("span", {
|
|
554
|
-
key: '
|
|
554
|
+
key: '013e2e01b741eaff76a5ab017304dd6f2afb91c4',
|
|
555
555
|
class: "f-body-02"
|
|
556
556
|
}, this.colors[5].pantoneC), h("span", {
|
|
557
|
-
key: '
|
|
557
|
+
key: 'ab81b5c103a1dd18b91227848fdd0ed379e92738',
|
|
558
558
|
class: "f-body-02"
|
|
559
559
|
}, this.colors[5].pantoneU))))));
|
|
560
560
|
}
|
|
@@ -602,174 +602,174 @@ const GradientSupportPalette = class {
|
|
|
602
602
|
}
|
|
603
603
|
render() {
|
|
604
604
|
return h("ul", {
|
|
605
|
-
key: '
|
|
605
|
+
key: '8f8703b8b6ef19574984d630d23f4a078e2683c1',
|
|
606
606
|
class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"
|
|
607
607
|
}, h("li", {
|
|
608
|
-
key: '
|
|
608
|
+
key: '6981ecea14309c747455aff6dff44c807391fb22',
|
|
609
609
|
class: "grid-col-span-12 md:grid-col-span-6 flex flex-col"
|
|
610
610
|
}, h("div", {
|
|
611
|
-
key: '
|
|
611
|
+
key: '23dc2b606d633779313a98cde5df750a21c50267',
|
|
612
612
|
class: "effect-height flex items-center justify-between p-16",
|
|
613
613
|
style: {
|
|
614
614
|
backgroundColor: this.colors[0].background
|
|
615
615
|
}
|
|
616
616
|
}, h("div", {
|
|
617
|
-
key: '
|
|
617
|
+
key: '3649c7d9a2c815cc6ab1f414f062321f29a00701',
|
|
618
618
|
class: "grid"
|
|
619
619
|
}, h("span", {
|
|
620
|
-
key: '
|
|
620
|
+
key: '732dfac36b9bb5d9df0dfe96bfd4fb36c5288d2e',
|
|
621
621
|
class: "f-body-02"
|
|
622
622
|
}, this.colors[0].rgb), h("span", {
|
|
623
|
-
key: '
|
|
623
|
+
key: 'f0505ec5aaff33b24b19db784b3b16b9f73f18db',
|
|
624
624
|
class: "f-body-02 w-full"
|
|
625
625
|
}, this.colors[0].cmyk), h("eds-code-block", {
|
|
626
|
-
key: '
|
|
626
|
+
key: 'ca7457b315b438bf41a7f0b1dfd2205d493e1c06',
|
|
627
627
|
code: this.colors[0].hex,
|
|
628
628
|
style: {
|
|
629
629
|
minWidth: '150px',
|
|
630
630
|
marginRight: '5px'
|
|
631
631
|
}
|
|
632
632
|
})), h("div", {
|
|
633
|
-
key: '
|
|
633
|
+
key: 'd29ebbce1ea5dbf25888388bbc3cd73416642c94',
|
|
634
634
|
class: "grid"
|
|
635
635
|
}, h("span", {
|
|
636
|
-
key: '
|
|
636
|
+
key: '8e503b62bc19087efe3291f2454eec4b00b18a4a',
|
|
637
637
|
class: "f-body-02"
|
|
638
638
|
}, this.colors[0].pantoneC || 'N/A'), h("span", {
|
|
639
|
-
key: '
|
|
639
|
+
key: '5a12462534602160bce47b9c9f397557f8f1057d',
|
|
640
640
|
class: "f-body-02"
|
|
641
641
|
}, this.colors[0].pantoneU || 'N/A')))), h("li", {
|
|
642
|
-
key: '
|
|
642
|
+
key: '491e060c9201186f987ae4f075eee0efca38b6bc',
|
|
643
643
|
class: "grid-col-span-12 md:grid-col-span-6 flex flex-col"
|
|
644
644
|
}, h("div", {
|
|
645
|
-
key: '
|
|
645
|
+
key: 'e2084e7d7cfce5a784efbcdaf0c597b749ecc1d0',
|
|
646
646
|
class: "effect-height flex items-center justify-between p-16",
|
|
647
647
|
style: {
|
|
648
648
|
backgroundColor: this.colors[1].background
|
|
649
649
|
}
|
|
650
650
|
}, h("div", {
|
|
651
|
-
key: '
|
|
651
|
+
key: '633ced7174a5242a3dff2d51d53add5a20bcbf0a',
|
|
652
652
|
class: "grid"
|
|
653
653
|
}, h("span", {
|
|
654
|
-
key: '
|
|
654
|
+
key: 'a0000924f7a9614b4dd8651880b51925f0868487',
|
|
655
655
|
class: "f-body-02"
|
|
656
656
|
}, this.colors[1].rgb), h("span", {
|
|
657
|
-
key: '
|
|
657
|
+
key: '6007da47921d8ae881156f9c57af43a839e71743',
|
|
658
658
|
class: "f-body-02 w-full"
|
|
659
659
|
}, this.colors[1].cmyk), h("eds-code-block", {
|
|
660
|
-
key: '
|
|
660
|
+
key: '4aa67182a26f57bbeb9dd251db1cbbe0ba1919fe',
|
|
661
661
|
code: this.colors[1].hex,
|
|
662
662
|
style: {
|
|
663
663
|
minWidth: '150px',
|
|
664
664
|
marginRight: '5px'
|
|
665
665
|
}
|
|
666
666
|
})), h("div", {
|
|
667
|
-
key: '
|
|
667
|
+
key: '963ac8d736c7b54366d2e2798e77bc04ac01d539',
|
|
668
668
|
class: "grid"
|
|
669
669
|
}, h("span", {
|
|
670
|
-
key: '
|
|
670
|
+
key: 'd574f8c3b02fdcd9bca10d186916b848b275ae85',
|
|
671
671
|
class: "f-body-02"
|
|
672
672
|
}, this.colors[1].pantoneC || 'N/A'), h("span", {
|
|
673
|
-
key: '
|
|
673
|
+
key: '97b5290bd127179160eb6fc8b76914cb620b733c',
|
|
674
674
|
class: "f-body-02"
|
|
675
675
|
}, this.colors[1].pantoneU || 'N/A')))), h("li", {
|
|
676
|
-
key: '
|
|
676
|
+
key: 'f5f7ff4bdad90dff2506112c812fe4c466539f7f',
|
|
677
677
|
class: "grid-col-span-12 md:grid-col-span-6 flex flex-col"
|
|
678
678
|
}, h("div", {
|
|
679
|
-
key: '
|
|
679
|
+
key: '8517f8e52dbb41ece0da2019d072f7e73fc8d2a0',
|
|
680
680
|
class: "effect-height flex items-center justify-between p-16",
|
|
681
681
|
style: {
|
|
682
682
|
background: this.colors[2].background
|
|
683
683
|
}
|
|
684
684
|
}, h("div", {
|
|
685
|
-
key: '
|
|
685
|
+
key: '08db76c840f25159be21cf66f8ab1a5e7c0ec206',
|
|
686
686
|
class: "grid"
|
|
687
687
|
}, h("span", {
|
|
688
|
-
key: '
|
|
688
|
+
key: 'b46181d8eaa69635063b39efeab603d6961428cc',
|
|
689
689
|
class: "f-body-02"
|
|
690
690
|
}, this.colors[2].rgb), h("span", {
|
|
691
|
-
key: '
|
|
691
|
+
key: 'a91102f446f351b6be7d27051b947bf72a394606',
|
|
692
692
|
class: "f-body-02 w-full"
|
|
693
693
|
}, this.colors[2].cmyk), h("eds-code-block", {
|
|
694
|
-
key: '
|
|
694
|
+
key: '98d406eaa5d641640ca5eb95271fc400282c6f69',
|
|
695
695
|
code: this.colors[2].hex,
|
|
696
696
|
style: {
|
|
697
697
|
minWidth: '150px',
|
|
698
698
|
marginRight: '5px'
|
|
699
699
|
}
|
|
700
700
|
})), h("div", {
|
|
701
|
-
key: '
|
|
701
|
+
key: 'a4cf89fe913982b3c296dc745323630518b9834f',
|
|
702
702
|
class: "grid"
|
|
703
703
|
}, h("span", {
|
|
704
|
-
key: '
|
|
704
|
+
key: 'ea5a30092e75135670580b40263314a1e16fb725',
|
|
705
705
|
class: "f-body-02"
|
|
706
706
|
}, this.colors[2].pantoneC), h("span", {
|
|
707
|
-
key: '
|
|
707
|
+
key: '0a4fe2b93027193d508f593432c7c2589ceedba9',
|
|
708
708
|
class: "f-body-02"
|
|
709
709
|
}, this.colors[2].pantoneU))), h("div", {
|
|
710
|
-
key: '
|
|
710
|
+
key: '117711ee44837fe7545490304e714e4e433c608b',
|
|
711
711
|
class: "effect-height flex items-center justify-between p-16",
|
|
712
712
|
style: {
|
|
713
713
|
background: this.colors[3].background
|
|
714
714
|
}
|
|
715
715
|
}, h("div", {
|
|
716
|
-
key: '
|
|
716
|
+
key: '49227a94ee6c63902c24ae6e1ce598721f2179e7',
|
|
717
717
|
class: "grid"
|
|
718
718
|
}, h("span", {
|
|
719
|
-
key: '
|
|
719
|
+
key: '25c2e7c420bf7501c91fb810dcc15b8fabe75211',
|
|
720
720
|
class: "f-body-02"
|
|
721
721
|
}, this.colors[3].rgb), h("span", {
|
|
722
|
-
key: '
|
|
722
|
+
key: '0a7918f45e4315630fdd51701fd502930db1d62d',
|
|
723
723
|
class: "f-body-02 w-full"
|
|
724
724
|
}, this.colors[3].cmyk), h("eds-code-block", {
|
|
725
|
-
key: '
|
|
725
|
+
key: '93fd3a9ce6103b162559697d43bd6c79134bd12e',
|
|
726
726
|
code: this.colors[3].hex,
|
|
727
727
|
style: {
|
|
728
728
|
minWidth: '150px',
|
|
729
729
|
marginRight: '5px'
|
|
730
730
|
}
|
|
731
731
|
})), h("div", {
|
|
732
|
-
key: '
|
|
732
|
+
key: '9b8af5c7b8c039647035c2252cb9febddf1c12d8',
|
|
733
733
|
class: "grid"
|
|
734
734
|
}, h("span", {
|
|
735
|
-
key: '
|
|
735
|
+
key: 'c50c154e8587bb41f1c80b61869103d12339308f',
|
|
736
736
|
class: "f-body-02"
|
|
737
737
|
}, this.colors[3].pantoneC), h("span", {
|
|
738
|
-
key: '
|
|
738
|
+
key: '567798f8d597a9fe26123dd489443e6c752f0b38',
|
|
739
739
|
class: "f-body-02"
|
|
740
740
|
}, this.colors[3].pantoneU)))), h("li", {
|
|
741
|
-
key: '
|
|
741
|
+
key: '4297335389feff02c051beea3bbfee33677f61ac',
|
|
742
742
|
class: "grid-col-span-12 md:grid-col-span-6 flex flex-col"
|
|
743
743
|
}, h("div", {
|
|
744
|
-
key: '
|
|
744
|
+
key: '0a5cda329ffc92c33e323ded6c74a2f3b6309797',
|
|
745
745
|
class: "effect-height flex items-center justify-between p-16",
|
|
746
746
|
style: {
|
|
747
747
|
backgroundColor: this.colors[4].background
|
|
748
748
|
}
|
|
749
749
|
}, h("div", {
|
|
750
|
-
key: '
|
|
750
|
+
key: '02babf093dea42599bdd40ae789b795714b638a2',
|
|
751
751
|
class: "grid"
|
|
752
752
|
}, h("span", {
|
|
753
|
-
key: '
|
|
753
|
+
key: 'a5c2e49f307c005c29b6c3c0d5c37604a20b38d7',
|
|
754
754
|
class: "f-body-02"
|
|
755
755
|
}, this.colors[4].rgb), h("span", {
|
|
756
|
-
key: '
|
|
756
|
+
key: 'e9281ee3b7c23920e165f90796772c5057f0e591',
|
|
757
757
|
class: "f-body-02 w-full"
|
|
758
758
|
}, this.colors[4].cmyk), h("eds-code-block", {
|
|
759
|
-
key: '
|
|
759
|
+
key: '0144a15a5f4276c6d686dd7ea2893ead295d81ad',
|
|
760
760
|
code: this.colors[4].hex,
|
|
761
761
|
style: {
|
|
762
762
|
minWidth: '150px',
|
|
763
763
|
marginRight: '5px'
|
|
764
764
|
}
|
|
765
765
|
})), h("div", {
|
|
766
|
-
key: '
|
|
766
|
+
key: '84e6de06e4c31803fa99ef2113866e947631be02',
|
|
767
767
|
class: "grid"
|
|
768
768
|
}, h("span", {
|
|
769
|
-
key: '
|
|
769
|
+
key: '1a21ce9476d86e83c3a61c591d015d917f34bad2',
|
|
770
770
|
class: "f-body-02"
|
|
771
771
|
}, this.colors[4].pantoneC || 'N/A'), h("span", {
|
|
772
|
-
key: '
|
|
772
|
+
key: 'c81bd5ea778d4694847bcbd0f23c320e5acc9167',
|
|
773
773
|
class: "f-body-02"
|
|
774
774
|
}, this.colors[4].pantoneU || 'N/A')))));
|
|
775
775
|
}
|
|
@@ -9,7 +9,10 @@ const DocsOverview = () => h("div", {
|
|
|
9
9
|
code: "<script type='module'>\n import { defineCustomElements } from 'https://unpkg.com/@ebrains/components@latest/loader/index.js'; \n // Define custom elements\n defineCustomElements(window);\n</script>",
|
|
10
10
|
language: "javascript",
|
|
11
11
|
"copy-label": "Copy Code"
|
|
12
|
-
}), h("p", null, "This snippet is part of the Stencil component loader system. Under the hood, it does the following:"), h("
|
|
12
|
+
}), h("p", null, "This snippet is part of the Stencil component loader system. Under the hood, it does the following:"), h("div", {
|
|
13
|
+
class: "mt-16"
|
|
14
|
+
}, h("eds-steps", {
|
|
15
|
+
type: "static",
|
|
13
16
|
steps: [{
|
|
14
17
|
title: 'Import the Loader Module',
|
|
15
18
|
content: 'The script imports the defineCustomElements function from the Stencil-generated loader module hosted at a CDN. This module contains the registration logic for all your custom components.'
|
|
@@ -23,19 +26,19 @@ const DocsOverview = () => h("div", {
|
|
|
23
26
|
title: 'Optimized Performance',
|
|
24
27
|
content: 'By registering components early and lazy-loading their implementations, the script helps maintain a fast startup while ensuring that all custom elements are ready for use when needed.'
|
|
25
28
|
}]
|
|
26
|
-
}), h("p", null, "
|
|
27
|
-
code: '<eds-button label="my bytton" intent="primary"></eds-button>',
|
|
28
|
-
language: "html",
|
|
29
|
-
"copy-label": "Copy Code"
|
|
30
|
-
}), h("h2", null, "Load the variables and styles"), h("p", null, "To directly use only the produced variables (colors, breakpoints, typography) add the tag below to the", ' ', h("code", null, "head"), ". This approach is recommended when you\u2019re working solely with the web components and want minimal integration. That said, the components are configured to require only these CSS variables and nothing more."), h("eds-code-block", {
|
|
29
|
+
})), h("h2", null, "Load the variables and styles"), h("p", null, "To directly use only the produced variables (colors, breakpoints, typography) add the tag below to the", ' ', h("code", null, "head"), ". This approach is recommended when you\u2019re working solely with the web components and want minimal integration. That said, the components are configured to require only these CSS variables and nothing more."), h("eds-code-block", {
|
|
31
30
|
code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/vars.css"/>',
|
|
32
31
|
language: "css",
|
|
33
32
|
"copy-label": "Copy Code"
|
|
34
|
-
}), h("p", null, "To directly use the produced css framework with a few predefined custom utility classes, add the tag below to the", ' ', h("code", null, "head"), ". Use this when you want quick access to ready-made utilities for building your own components or applications and you do not wish to dive deep to css configurations."), h("eds-code-block", {
|
|
33
|
+
}), h("p", null, "To directly use the produced css framework with a few predefined custom utility classes, add the tag below to the", ' ', h("code", null, "head"), ". Use this when you want quick access to ready-made utilities for building your own components or applications and you do not wish to dive deep to dynamic css configurations."), h("eds-code-block", {
|
|
35
34
|
code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/output.css"/>',
|
|
36
35
|
language: "css",
|
|
37
36
|
"copy-label": "Copy Code"
|
|
38
|
-
}), h("p", null, "Note that, loading either the variables or the predefined CSS framework above,", ' ', h("b", null, "automatically loads the fonts so you can skip loading them separately"), "."))
|
|
37
|
+
}), h("p", null, "Note that, loading either the variables or the predefined CSS framework above,", ' ', h("b", null, "automatically loads the fonts so you can skip loading them separately"), "."), h("h2", null, "Example"), h("p", null, "Once included, components can be used in your markup like any other regular HTML elements:"), h("eds-code-block", {
|
|
38
|
+
code: '<eds-button label="my bytton" intent="primary"></eds-button>',
|
|
39
|
+
language: "html",
|
|
40
|
+
"copy-label": "Copy Code"
|
|
41
|
+
}));
|
|
39
42
|
const DocsInstallation = () => h("div", null, h("p", null, "Before proceeding, ensure that Node.js is installed on your machine\u2014you can download the latest version from the official website. If your project doesn\u2019t already use npm and you plan to integrate EBRAINS Components, you'll need to create a package.json file by running npm init and following the on-screen instructions."), h("div", {
|
|
40
43
|
class: "my-8"
|
|
41
44
|
}, h("eds-code-block", {
|
|
@@ -89,7 +92,11 @@ const DocsVue = () => h("div", null, h("h2", null, "Vue Wrappers"), h("p", null,
|
|
|
89
92
|
code: "npm install @ebrains/vue",
|
|
90
93
|
language: "javascript",
|
|
91
94
|
"copy-label": "Copy Code"
|
|
92
|
-
}), h("h2", null, "
|
|
95
|
+
}), h("h2", null, "Vue Router Initialization"), h("p", null, "For better component handling and to avoid potential asynchronous initialization issues (such as runtime errors from components that depend on the router context), make sure the application waits for the router to fully initialize before mounting the app. Use the following pattern in your ", h("code", null, "main.ts"), ":"), h("eds-code-block", {
|
|
96
|
+
code: "import { createApp } from 'vue';\nimport App from './App.vue';\nimport router from './router';\n\nconst app = createApp(App);\napp.use(router);\n\n// Wait for router to finish resolving initial navigation\nrouter.isReady().then(() => {\n app.mount('#root');\n});\n",
|
|
97
|
+
language: "javascript",
|
|
98
|
+
"copy-label": "Copy Code"
|
|
99
|
+
}), h("p", null, "This ensures that all components relying on routing information (e.g., navigation links, route guards, or async route data) are rendered only after the router is ready, preventing timing-related errors or unexpected behavior at startup."), h("h2", null, "Passing Properties to Custom Elements Using the ", h("b", null, ".prop"), " Modifier in Vue Wrappers"), h("p", null, "When using Vue wrappers for Stencil components (or any custom elements), you might encounter issues with property names being altered due to HTML\u2019s attribute handling. By default, Vue binds values as HTML attributes, and HTML attributes are case-insensitive. This means that camelCase property names can be transformed into lowercase strings, which can prevent your component from receiving the correct data."), h("h3", null, "How to Use the ", h("b", null, ".prop"), " Modifier"), h("p", null, "When using Vue wrappers, you can pass properties with the .prop modifier by adding it to your binding expression. Here\u2019s an example of how to do it:"), h("div", {
|
|
93
100
|
class: "my-8"
|
|
94
101
|
}, h("eds-alert", {
|
|
95
102
|
message: "This may lead to issues because Vue binds these as attributes .",
|
|
@@ -111,7 +118,7 @@ const DocsVue = () => h("div", null, h("h2", null, "Vue Wrappers"), h("p", null,
|
|
|
111
118
|
"section-title": "Example Vue App",
|
|
112
119
|
"heading-level": "h3"
|
|
113
120
|
}, h("eds-code-block", {
|
|
114
|
-
code: '\n<template>\n <div>\n <EdsHeader></EdsHeader>\n <!-- render the splash until we manually hide it -->\n <EdsSplashScreen inverse="false" />\n\n <!-- then show main UI -->\n <div v-if="!splashVisible"
|
|
121
|
+
code: '\n<template>\n <div>\n <EdsHeader headerVariant="strong"></EdsHeader>\n <!-- render the splash until we manually hide it -->\n <EdsSplashScreen inverse="false" />\n\n <!-- then show main UI -->\n <div v-if="!splashVisible" style="padding: 10px;">\n <EdsSteps \n :steps="JSON.stringify(stepsdata)"\n type="linear"\n />\n </div>\n </div>\n</template>\n\n<script>\nimport { EdsSplashScreen, EdsSteps, EdsHeader } from "@ebrains/vue";\n\nexport default {\n name: "App",\n components: { EdsHeader, EdsSplashScreen, EdsSteps },\n data() {\n return {\n stepsdata: [\n { title: "Introduction", content: "Begin by familiarizing yourself with the overall process." },\n { title: "Process Overview", content: "Review the detailed steps and understand the workflow." }\n ],\n splashVisible: true\n };\n },\n methods: {\n delay(ms) {\n return new Promise(resolve => setTimeout(resolve, ms));\n },\n async initialize() {\n try {\n // simulate your init work\n await this.delay(2000);\n\n // fire the built-in event that EdsSplashScreen listens for\n window.dispatchEvent(new Event("hideSplash"));\n } catch (e) {\n console.error("Init error", e);\n window.dispatchEvent(new Event("hideSplash"));\n } finally {\n // show the rest of the app\n this.splashVisible = false;\n }\n }\n },\n mounted() {\n this.initialize();\n }\n};\n</script>\n',
|
|
115
122
|
language: "javascript",
|
|
116
123
|
"copy-label": "Copy Code"
|
|
117
124
|
})));
|
|
@@ -158,7 +165,7 @@ const ComponentsSection = class {
|
|
|
158
165
|
}
|
|
159
166
|
render() {
|
|
160
167
|
return h("div", {
|
|
161
|
-
key: '
|
|
168
|
+
key: '2716938c52b8f67e031d8508745cccb8f015a110',
|
|
162
169
|
class: "container"
|
|
163
170
|
}, this.renderContent());
|
|
164
171
|
}
|