@ebrains/react 0.4.0-alpha.0 → 0.5.0-alpha.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 (76) hide show
  1. package/analytics-1cde8e4a.esm.js +47 -0
  2. package/color-2554aad6.esm.js +122 -0
  3. package/color-primary-palette_6.entry.esm.js +106 -106
  4. package/correct-use-of-colors.entry.esm.js +33 -33
  5. package/eds-accordion.entry.esm.js +126 -0
  6. package/eds-alert_17.entry.esm.js +187 -0
  7. package/eds-avatar_4.entry.esm.js +193 -0
  8. package/eds-card-generic.entry.esm.js +124 -0
  9. package/eds-card-project.entry.esm.js +12 -11
  10. package/eds-card-section.entry.esm.js +2 -2
  11. package/eds-card-tags.entry.esm.js +1 -1
  12. package/eds-card-tool.entry.esm.js +5 -6
  13. package/eds-card-wrapper.entry.esm.js +4 -4
  14. package/eds-code-block.entry.esm.js +8 -8
  15. package/eds-components-section.entry.esm.js +14 -2
  16. package/eds-docs-palettes.entry.esm.js +1 -1
  17. package/eds-docs-tokens.entry.esm.js +1 -1
  18. package/eds-dropdown_2.entry.esm.js +235 -0
  19. package/eds-form.entry.esm.js +410 -0
  20. package/eds-frame.entry.esm.js +117 -0
  21. package/eds-icon-arrow-diagonal.entry.esm.js +1 -1
  22. package/eds-icon-arrow-right.entry.esm.js +1 -1
  23. package/eds-icon-bluesky.entry.esm.js +1 -1
  24. package/eds-icon-chevron-down.entry.esm.js +1 -1
  25. package/eds-icon-chevron-left.entry.esm.js +1 -1
  26. package/eds-icon-chevron-right.entry.esm.js +1 -1
  27. package/eds-icon-chevron-up.entry.esm.js +1 -1
  28. package/eds-icon-close.entry.esm.js +1 -1
  29. package/eds-icon-copy.entry.esm.js +1 -1
  30. package/eds-icon-eu.entry.esm.js +1 -1
  31. package/eds-icon-facebook.entry.esm.js +1 -1
  32. package/eds-icon-gitlab.entry.esm.js +1 -1
  33. package/eds-icon-linkedin.entry.esm.js +1 -1
  34. package/eds-icon-loader.entry.esm.js +1 -1
  35. package/eds-icon-mastodon.entry.esm.js +1 -1
  36. package/eds-icon-menu.entry.esm.js +1 -1
  37. package/eds-icon-more.entry.esm.js +1 -1
  38. package/eds-icon-search.entry.esm.js +1 -1
  39. package/eds-icon-success.entry.esm.js +1 -1
  40. package/eds-icon-twitter.entry.esm.js +1 -1
  41. package/eds-icon-user.entry.esm.js +1 -1
  42. package/eds-icon-youtube.entry.esm.js +1 -1
  43. package/eds-input_7.entry.esm.js +529 -0
  44. package/eds-login.entry.esm.js +66 -45
  45. package/eds-logo-variations.entry.esm.js +1 -1
  46. package/eds-matomo-notice.entry.esm.js +1 -2
  47. package/eds-modal.entry.esm.js +129 -0
  48. package/eds-navigator.entry.esm.js +5 -5
  49. package/eds-pagination_2.entry.esm.js +15 -16
  50. package/eds-progress-bar.entry.esm.js +7 -2
  51. package/eds-section-core_2.entry.esm.js +5 -5
  52. package/eds-svg-repository.entry.esm.js +1 -1
  53. package/eds-tab.entry.esm.js +1 -1
  54. package/eds-tabs-content.entry.esm.js +5 -5
  55. package/eds-tabs.entry.esm.js +4 -4
  56. package/eds-timeline.entry.esm.js +4 -4
  57. package/eds-tooltip.entry.esm.js +4 -5
  58. package/eds-trl.entry.esm.js +2 -2
  59. package/eds-user.entry.esm.js +118 -0
  60. package/eds-vertical-stepper.entry.esm.js +81 -0
  61. package/incorrect-use-of-colors.entry.esm.js +7 -7
  62. package/index.esm.js +1 -1
  63. package/index.esm2.js +37 -7
  64. package/{keycloak-13893af6.esm.js → keycloak-d502ec16.esm.js} +219 -168
  65. package/logo-space.entry.esm.js +4 -4
  66. package/logo-variations-horizontal_2.entry.esm.js +26 -26
  67. package/logo-wrong-usage.entry.esm.js +37 -37
  68. package/package.json +1 -1
  69. package/src/components.d.ts +3 -0
  70. package/token-list_3.entry.esm.js +5 -5
  71. package/token-ratios.entry.esm.js +3 -3
  72. package/token-spacing.entry.esm.js +26 -26
  73. package/token-typography.entry.esm.js +2 -2
  74. package/color-bb472c37.esm.js +0 -423
  75. package/eds-accordion_33.entry.esm.js +0 -369
  76. package/eds-rating.entry.esm.js +0 -69
@@ -1,69 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h } from './index.esm2.js';
2
- import 'react';
3
- import 'react/jsx-runtime';
4
- import 'react-dom';
5
-
6
- const edsRatingCss = ":host{display:inline-block;font-size:2rem}.stars{display:flex;gap:0.25rem;cursor:pointer}.star{color:var(--star-empty-color, #ccc);transition:color 0.2s ease-in-out}.star.filled{color:var(--green-500);}.star:hover,.star.filled:hover{transform:scale(1.2)}.f-body-01{font-family:var(--f-body-01-fontFamily);font-weight:var(--f-body-01-fontWeight);font-size:var(--f-body-01-fontSize);line-height:var(--f-body-01-lineHeight);letter-spacing:var(--f-body-01-letterSpacing)}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}.f-ui-04{font-family:var(--f-ui-04-fontFamily);font-weight:var(--f-ui-04-fontWeight);font-size:var(--f-ui-04-fontSize);line-height:var(--f-ui-04-lineHeight);letter-spacing:var(--f-ui-04-letterSpacing)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.flex{display:flex}.inline-flex{display:inline-flex}.flex-col{flex-direction:column}";
7
- const EdsRatingStyle0 = edsRatingCss;
8
- const EdsRating = class {
9
- constructor(hostRef) {
10
- registerInstance(this, hostRef);
11
- this.ratingChange = createEvent(this, "ratingChange", 7);
12
- this.stars = 5;
13
- this.label = 'Rate your experience';
14
- this.textMapping = ['Very Poor', 'Poor', 'Average', 'Good', 'Excellent'];
15
- this.selectedRating = 0;
16
- }
17
- /**
18
- * Parses the `textMapping` prop into an array of strings.
19
- * Returns an empty array if parsing fails.
20
- */
21
- get parsedMappings() {
22
- if (typeof this.textMapping === 'object') {
23
- return this.textMapping;
24
- } else if (typeof this.textMapping === 'string') {
25
- try {
26
- return JSON.parse(this.textMapping);
27
- } catch (e) {
28
- // eslint-disable-next-line
29
- console.error('Error parsing textMapping prop:', e);
30
- return [];
31
- }
32
- }
33
- return [];
34
- }
35
- /**
36
- * Handles the click event on a star.
37
- * @param rating - The selected rating value.
38
- */
39
- handleClick(rating) {
40
- this.selectedRating = rating;
41
- this.ratingChange.emit(rating);
42
- }
43
- render() {
44
- return h("div", {
45
- key: 'c9147c2635f091d93f329d2b56a5fee8dce9126c',
46
- class: "relative w-full flex flex-col"
47
- }, h("span", {
48
- key: '39a84bc3d9bcd4b729a35737c883eca7144d13ac',
49
- class: "f-body-01"
50
- }, this.label), h("div", {
51
- key: '3cb84acf399cac0b23393c71df2f2b36aab4f43e',
52
- class: "stars"
53
- }, Array.from({
54
- length: this.stars
55
- }, (_, index) => h("span", {
56
- class: {
57
- star: true,
58
- filled: index < this.selectedRating
59
- },
60
- onClick: () => this.handleClick(index + 1)
61
- }, "\u2605"))), this.selectedRating > 0 && this.parsedMappings[this.selectedRating - 1] && h("span", {
62
- key: '60605ec21b542825da0dad629fc1618d9cf63b25',
63
- class: "f-ui-04 text-lighter"
64
- }, this.parsedMappings[this.selectedRating - 1]));
65
- }
66
- };
67
- EdsRating.style = EdsRatingStyle0;
68
-
69
- export { EdsRating as eds_rating };