@ebrains/react 0.7.0-alpha.0 → 0.8.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 (80) hide show
  1. package/color-primary-palette_6.entry.esm.js +106 -106
  2. package/correct-use-of-colors.entry.esm.js +33 -33
  3. package/eds-accordion_17.entry.esm.js +196 -0
  4. package/eds-alert.entry.esm.js +14 -6
  5. package/eds-app-root.entry.esm.js +4 -4
  6. package/eds-breadcrumb.entry.esm.js +6 -3
  7. package/{eds-avatar_4.entry.esm.js → eds-card-desc_3.entry.esm.js} +6 -66
  8. package/eds-card-generic.entry.esm.js +1 -1
  9. package/eds-card-project.entry.esm.js +10 -10
  10. package/eds-card-tags.entry.esm.js +1 -1
  11. package/eds-card-tool.entry.esm.js +4 -4
  12. package/eds-card-wrapper.entry.esm.js +4 -4
  13. package/eds-code-block.entry.esm.js +7 -7
  14. package/eds-components-section.entry.esm.js +27 -24
  15. package/eds-cookies-preference.entry.esm.js +2 -2
  16. package/eds-docs-palettes.entry.esm.js +1 -1
  17. package/eds-docs-tokens.entry.esm.js +1 -1
  18. package/eds-feedback.entry.esm.js +5 -5
  19. package/eds-form.entry.esm.js +233 -170
  20. package/eds-frame.entry.esm.js +6 -6
  21. package/eds-icon-arrow-diagonal.entry.esm.js +3 -3
  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-star.entry.esm.js +1 -1
  40. package/eds-icon-success.entry.esm.js +1 -1
  41. package/eds-icon-thumbs-down.entry.esm.js +1 -1
  42. package/eds-icon-thumbs-up.entry.esm.js +1 -1
  43. package/eds-icon-twitter.entry.esm.js +1 -1
  44. package/eds-icon-user.entry.esm.js +1 -1
  45. package/eds-icon-youtube.entry.esm.js +1 -1
  46. package/eds-input_7.entry.esm.js +569 -0
  47. package/eds-login_2.entry.esm.js +2 -2
  48. package/eds-logo-variations.entry.esm.js +1 -1
  49. package/eds-modal.entry.esm.js +8 -8
  50. package/eds-pagination_2.entry.esm.js +493 -0
  51. package/eds-progress-bar.entry.esm.js +2 -2
  52. package/eds-rating.entry.esm.js +1 -1
  53. package/eds-section-core_2.entry.esm.js +6 -6
  54. package/eds-spinner.entry.esm.js +3 -3
  55. package/eds-svg-repository.entry.esm.js +11 -6
  56. package/eds-switch.entry.esm.js +5 -5
  57. package/eds-tabs.entry.esm.js +4 -4
  58. package/eds-timeline.entry.esm.js +7 -4
  59. package/eds-toast-manager.entry.esm.js +1 -1
  60. package/eds-tooltip.entry.esm.js +3 -3
  61. package/eds-trl.entry.esm.js +3 -3
  62. package/incorrect-use-of-colors.entry.esm.js +7 -7
  63. package/index.esm.js +1 -1
  64. package/index.esm2.js +15 -23
  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 +1 -3
  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/README.md +0 -7
  75. package/eds-accordion_22.entry.esm.js +0 -269
  76. package/eds-dropdown.entry.esm.js +0 -156
  77. package/eds-steps.entry.esm.js +0 -89
  78. package/eds-user.entry.esm.js +0 -95
  79. package/eds-vertical-stepper.entry.esm.js +0 -81
  80. package/formUtils-ac68474d.esm.js +0 -247
@@ -4,9 +4,9 @@ import 'react';
4
4
  import 'react/jsx-runtime';
5
5
  import 'react-dom';
6
6
 
7
- const edsAlertCss = ":root {\n font-optical-sizing: auto;\n}\nhtml,\nbody {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n/*\n:focus[data-focus-method=\"mouse\"],\n:focus[data-focus-method=\"touch\"] {\n outline: none !important;\n}\n*/\n/*FADE*/\n/*FADE TRANSLATE Y*/\n/*SLIDE LEFT*/\n/*SLIDE BOTTOM*/\n/*COLLAPSE Y*/\n*, ::before, ::after {\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n}\n::backdrop {\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n}\n/*\n! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com\n*/\n/*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: currentColor; /* 2 */\n}\n::before,\n::after {\n}\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user's configured `sans` font-family by default.\n5. Use the user's configured `sans` font-feature-settings by default.\n6. Use the user's configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\nhtml {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\nabbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n/*\nRemove the default font size and weight for headings.\n*/\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\na {\n color: inherit;\n text-decoration: inherit;\n}\n/*\nAdd the correct font weight in Edge and Safari.\n*/\nb,\nstrong {\n font-weight: bolder;\n}\n/*\n1. Use the user's configured `mono` font-family by default.\n2. Use the user's configured `mono` font-feature-settings by default.\n3. Use the user's configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\ncode,\npre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace; /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}\n/*\nAdd the correct font size in all browsers.\n*/\nsmall {\n font-size: 80%;\n}\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\nsub {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\nsub {\n bottom: -0.25em;\n}\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\nbutton,\ninput,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\nbutton,\nselect {\n text-transform: none;\n}\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\nbutton,\ninput:where([type='button']),\ninput:where([type='submit']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n[type='search'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n/*\nAdd the correct display in Chrome and Safari.\n*/\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\np,\npre {\n margin: 0;\n}\nfieldset {\n margin: 0;\n padding: 0;\n}\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n/*\nReset default styling for dialogs.\n*/\ndialog {\n padding: 0;\n}\n/*\nPrevent resizing textareas horizontally by default.\n*/\ntextarea {\n resize: vertical;\n}\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user's configured gray 400 color.\n*/\ninput::-moz-placeholder, textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n/*\nSet the default cursor for buttons.\n*/\nbutton,\n[role=\"button\"] {\n cursor: pointer;\n}\n/*\nMake sure disabled buttons don't get the pointer cursor.\n*/\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\nimg,\niframe,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\nimg {\n max-width: 100%;\n height: auto;\n}\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden] {\n display: none;\n}\n:root {\n --inner-gutter: 8px;\n}\n@media (min-width: 750px) {\n :root {\n --inner-gutter: 12px;\n }\n}\n@media (min-width: 900px) {\n :root {\n --inner-gutter: 16px;\n }\n}\n@media (min-width: 1024px) {\n :root {\n --inner-gutter: 16px;\n }\n}\n@media (min-width: 1280px) {\n :root {\n --inner-gutter: 16px;\n }\n}\n@media (min-width: 2200px) {\n :root {\n --inner-gutter: 16px;\n }\n}\n:root {\n}\n@media (min-width: 900px) {\n :root {\n}\n}\n:root {\n --sans: Inter, Helvetica, Arial, sans-serif;\n --f-ui-01-fontFamily: var(--sans);\n --f-ui-01-fontWeight: 800;\n --f-ui-01-fontSize: 18px;\n --f-ui-01-lineHeight: 110%;\n --f-ui-01-letterSpacing: -0.01em;\n}\n.f-ui-01 {\n font-family: var(--f-ui-01-fontFamily);\n font-weight: var(--f-ui-01-fontWeight);\n font-size: var(--f-ui-01-fontSize);\n line-height: var(--f-ui-01-lineHeight);\n letter-spacing: var(--f-ui-01-letterSpacing);\n}\n@media (min-width: 750px) {\n :root {\n}\n}\n@media (min-width: 900px) {\n :root {\n}\n}\n@media (min-width: 1024px) {\n :root {\n}\n}\n.f-ui-01 b, .f-ui-01 strong {\n font-weight: var(--f-ui-01---bold-weight, bold);\n}\n:root {\n --grey-300: #e6e6e6;\n --green-200: #d3ffdc;\n --yellow-200: #ffffcb;\n --red-200: #ffe0e1;\n}\n@media (min-width: 750px) {\n .md\\:grid-line-x > *::before {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: 0;\n top: 0;\n bottom: calc(var(--inner-gutter) / -2);\n border-top: 0 solid transparent;\n border-bottom: 0 solid transparent;\n }\n .md\\:grid-line-xfull > *::before {\n content: attr(👻);\n inset-inline-start: calc(var(--inner-gutter) / -2);\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: 0;\n bottom: calc(var(--inner-gutter) / -2);\n border-top: 0 solid transparent;\n border-bottom: 0 solid transparent;\n }\n .md\\:grid-line-x-0 > *::before {\n content: none;\n }\n .md\\:grid-line-y > *::after {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: 0;\n bottom: 0;\n border-inline-start: 0 solid transparent;\n border-inline-end: 0 solid transparent;\n }\n .md\\:grid-line-yfull > *::after {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: calc(var(--inner-gutter) / -1);\n bottom: 0;\n border-inline-start: 0 solid transparent;\n border-inline-end: 0 solid transparent;\n }\n .md\\:grid-line-y-0 > *::after {\n content: none;\n }\n}\n@media (min-width: 900px) {\n .lg\\:grid-line-x > *::before {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: 0;\n top: 0;\n bottom: calc(var(--inner-gutter) / -2);\n border-top: 0 solid transparent;\n border-bottom: 0 solid transparent;\n }\n .lg\\:grid-line-xfull > *::before {\n content: attr(👻);\n inset-inline-start: calc(var(--inner-gutter) / -2);\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: 0;\n bottom: calc(var(--inner-gutter) / -2);\n border-top: 0 solid transparent;\n border-bottom: 0 solid transparent;\n }\n .lg\\:grid-line-x-0 > *::before {\n content: none;\n }\n .lg\\:grid-line-y > *::after {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: 0;\n bottom: 0;\n border-inline-start: 0 solid transparent;\n border-inline-end: 0 solid transparent;\n }\n .lg\\:grid-line-yfull > *::after {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: calc(var(--inner-gutter) / -1);\n bottom: 0;\n border-inline-start: 0 solid transparent;\n border-inline-end: 0 solid transparent;\n }\n .lg\\:grid-line-y-0 > *::after {\n content: none;\n }\n}\n.border-inside {\n position: relative;\n\n &::after {\n pointer-events: none;\n }\n\n &::after {\n position: absolute;\n }\n\n &::after {\n inset: 0rem;\n }\n\n &::after {\n z-index: 1;\n }\n\n &::after {\n border-radius: 8px;\n }\n\n &::after {\n border-width: 1px;\n }\n\n &::after {\n border-width: 2px;\n }\n\n &::after {\n border-color: rgba(0, 0, 0, .1 );\n }\n\n &::after {\n content: '';\n }\n}\n/** region TRANSITIONS */\n/** endregion */\n/* region FOCUS */\n/* endregion */\n/* region BG */\n/* endregion */\n/*region shadow*/\n/*endregion*/\n.flex {\n display: flex;\n}\n.w-full {\n width: 100%;\n}\n.flex-row {\n flex-direction: row;\n}\n.items-center {\n align-items: center;\n}\n.justify-between {\n justify-content: space-between;\n}\n.gap-x-12 {\n -moz-column-gap: 0.75rem;\n column-gap: 0.75rem;\n}\n.space-y-12 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));\n}\n.rounded-lg {\n border-radius: 16px;\n}\n.bg-dark {\n background-color: var(--grey-300);\n}\n.bg-error {\n background-color: var(--red-200);\n}\n.bg-success {\n background-color: var(--green-200);\n}\n.bg-warning {\n background-color: var(--yellow-200);\n}\n.p-16 {\n padding: 1rem;\n}\n.p-20 {\n padding: 1.25rem;\n}\n.px-12 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n.px-20 {\n padding-left: 1.25rem;\n padding-right: 1.25rem;\n}\n.py-12 {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n}\n.py-20 {\n padding-top: 1.25rem;\n padding-bottom: 1.25rem;\n}\n.py-8 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n.pr-12 {\n padding-right: 0.75rem;\n}\n.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n[class*=underline-] {\n text-decoration-line: underline;\n}\n.after\\:rounded-lg::after {\n border-radius: 16px;\n}\n.after\\:border-softest::after {\n border-color: rgba(0, 0, 0, .05 );\n}\n";
7
+ const edsAlertCss = ":root {\n font-optical-sizing: auto;\n}\n\nhtml,\nbody {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n/*\n:focus[data-focus-method=\"mouse\"],\n:focus[data-focus-method=\"touch\"] {\n outline: none !important;\n}\n*/\n/*FADE*/\n/*FADE TRANSLATE Y*/\n/*SLIDE LEFT*/\n/*SLIDE BOTTOM*/\n/*COLLAPSE Y*/\n*,\n::before,\n::after {\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n}\n\n::backdrop {\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n}\n\n/*\n! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com\n*/\n/*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n*,\n::before,\n::after {\n box-sizing: border-box;\n /* 1 */\n border-width: 0;\n /* 2 */\n border-style: solid;\n /* 2 */\n border-color: currentColor;\n /* 2 */\n}\n\n::before,\n::after {}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user's configured `sans` font-family by default.\n5. Use the user's configured `sans` font-feature-settings by default.\n6. Use the user's configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\nhtml {\n line-height: 1.5;\n /* 1 */\n -webkit-text-size-adjust: 100%;\n /* 2 */\n -moz-tab-size: 4;\n /* 3 */\n -o-tab-size: 4;\n tab-size: 4;\n /* 3 */\n font-family: ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n /* 4 */\n font-feature-settings: normal;\n /* 5 */\n font-variation-settings: normal;\n /* 6 */\n -webkit-tap-highlight-color: transparent;\n /* 7 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\nbody {\n margin: 0;\n /* 1 */\n line-height: inherit;\n /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\nhr {\n height: 0;\n /* 1 */\n color: inherit;\n /* 2 */\n border-top-width: 1px;\n /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\nabbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user's configured `mono` font-family by default.\n2. Use the user's configured `mono` font-feature-settings by default.\n3. Use the user's configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\ncode,\npre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;\n /* 1 */\n font-feature-settings: normal;\n /* 2 */\n font-variation-settings: normal;\n /* 3 */\n font-size: 1em;\n /* 4 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\nsub {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\ntable {\n text-indent: 0;\n /* 1 */\n border-color: inherit;\n /* 2 */\n border-collapse: collapse;\n /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\nbutton,\ninput,\nselect,\ntextarea {\n font-family: inherit;\n /* 1 */\n font-feature-settings: inherit;\n /* 1 */\n font-variation-settings: inherit;\n /* 1 */\n font-size: 100%;\n /* 1 */\n font-weight: inherit;\n /* 1 */\n line-height: inherit;\n /* 1 */\n letter-spacing: inherit;\n /* 1 */\n color: inherit;\n /* 1 */\n margin: 0;\n /* 2 */\n padding: 0;\n /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\nbutton,\ninput:where([type='button']),\ninput:where([type='submit']) {\n -webkit-appearance: button;\n /* 1 */\n background-color: transparent;\n /* 2 */\n background-image: none;\n /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n[type='search'] {\n -webkit-appearance: textfield;\n /* 1 */\n outline-offset: -2px;\n /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n::-webkit-file-upload-button {\n -webkit-appearance: button;\n /* 1 */\n font: inherit;\n /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nReset default styling for dialogs.\n*/\ndialog {\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user's configured gray 400 color.\n*/\ninput::-moz-placeholder,\ntextarea::-moz-placeholder {\n opacity: 1;\n /* 1 */\n color: #9ca3af;\n /* 2 */\n}\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1;\n /* 1 */\n color: #9ca3af;\n /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\nbutton,\n[role=\"button\"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don't get the pointer cursor.\n*/\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\nimg,\niframe,\nobject {\n display: block;\n /* 1 */\n vertical-align: middle;\n /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\nimg {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden] {\n display: none;\n}\n\n:root {\n --inner-gutter: 8px;\n}\n\n@media (min-width: 750px) {\n :root {\n --inner-gutter: 12px;\n }\n}\n\n@media (min-width: 900px) {\n :root {\n --inner-gutter: 16px;\n }\n}\n\n@media (min-width: 1024px) {\n :root {\n --inner-gutter: 16px;\n }\n}\n\n@media (min-width: 1280px) {\n :root {\n --inner-gutter: 16px;\n }\n}\n\n@media (min-width: 2200px) {\n :root {\n --inner-gutter: 16px;\n }\n}\n\n:root {}\n\n@media (min-width: 900px) {\n :root {}\n}\n\n:root {\n --sans: Inter, Helvetica, Arial, sans-serif;\n --f-ui-01-fontFamily: var(--sans);\n --f-ui-01-fontWeight: 800;\n --f-ui-01-fontSize: 18px;\n --f-ui-01-lineHeight: 110%;\n --f-ui-01-letterSpacing: -0.01em;\n}\n\n.f-ui-01 {\n font-family: var(--f-ui-01-fontFamily);\n font-weight: var(--f-ui-01-fontWeight);\n font-size: var(--f-ui-01-fontSize);\n line-height: var(--f-ui-01-lineHeight);\n letter-spacing: var(--f-ui-01-letterSpacing);\n}\n\n@media (min-width: 750px) {\n :root {}\n}\n\n@media (min-width: 900px) {\n :root {}\n}\n\n@media (min-width: 1024px) {\n :root {}\n}\n\n.f-ui-01 b,\n.f-ui-01 strong {\n font-weight: var(--f-ui-01---bold-weight, bold);\n}\n\n:root {\n --grey-300: #e6e6e6;\n --green-200: #d3ffdc;\n --yellow-200: #ffffcb;\n --red-200: #ffe0e1;\n}\n\n@media (min-width: 750px) {\n .md\\:grid-line-x>*::before {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: 0;\n top: 0;\n bottom: calc(var(--inner-gutter) / -2);\n border-top: 0 solid transparent;\n border-bottom: 0 solid transparent;\n }\n\n .md\\:grid-line-xfull>*::before {\n content: attr(👻);\n inset-inline-start: calc(var(--inner-gutter) / -2);\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: 0;\n bottom: calc(var(--inner-gutter) / -2);\n border-top: 0 solid transparent;\n border-bottom: 0 solid transparent;\n }\n\n .md\\:grid-line-x-0>*::before {\n content: none;\n }\n\n .md\\:grid-line-y>*::after {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: 0;\n bottom: 0;\n border-inline-start: 0 solid transparent;\n border-inline-end: 0 solid transparent;\n }\n\n .md\\:grid-line-yfull>*::after {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: calc(var(--inner-gutter) / -1);\n bottom: 0;\n border-inline-start: 0 solid transparent;\n border-inline-end: 0 solid transparent;\n }\n\n .md\\:grid-line-y-0>*::after {\n content: none;\n }\n}\n\n@media (min-width: 900px) {\n .lg\\:grid-line-x>*::before {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: 0;\n top: 0;\n bottom: calc(var(--inner-gutter) / -2);\n border-top: 0 solid transparent;\n border-bottom: 0 solid transparent;\n }\n\n .lg\\:grid-line-xfull>*::before {\n content: attr(👻);\n inset-inline-start: calc(var(--inner-gutter) / -2);\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: 0;\n bottom: calc(var(--inner-gutter) / -2);\n border-top: 0 solid transparent;\n border-bottom: 0 solid transparent;\n }\n\n .lg\\:grid-line-x-0>*::before {\n content: none;\n }\n\n .lg\\:grid-line-y>*::after {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: 0;\n bottom: 0;\n border-inline-start: 0 solid transparent;\n border-inline-end: 0 solid transparent;\n }\n\n .lg\\:grid-line-yfull>*::after {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: calc(var(--inner-gutter) / -1);\n bottom: 0;\n border-inline-start: 0 solid transparent;\n border-inline-end: 0 solid transparent;\n }\n\n .lg\\:grid-line-y-0>*::after {\n content: none;\n }\n}\n\n.border-inside {\n position: relative;\n\n &::after {\n pointer-events: none;\n }\n\n &::after {\n position: absolute;\n }\n\n &::after {\n inset: 0rem;\n }\n\n &::after {\n z-index: 1;\n }\n\n &::after {\n border-radius: 8px;\n }\n\n &::after {\n border-width: 1px;\n }\n\n &::after {\n border-width: 2px;\n }\n\n &::after {\n border-color: rgba(0, 0, 0, .1);\n }\n\n &::after {\n content: '';\n }\n}\n\n/** region TRANSITIONS */\n/** endregion */\n/* region FOCUS */\n/* endregion */\n/* region BG */\n/* endregion */\n/*region shadow*/\n/*endregion*/\n.flex {\n display: flex;\n}\n\n.w-full {\n width: 100%;\n}\n\n.flex-row {\n flex-direction: row;\n}\n\n.items-center {\n align-items: center;\n}\n\n.justify-between {\n justify-content: space-between;\n}\n\n.gap-x-12 {\n -moz-column-gap: 0.75rem;\n column-gap: 0.75rem;\n}\n\n.space-y-12> :not([hidden])~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));\n}\n\n.rounded-lg {\n border-radius: 16px;\n}\n\n.bg-dark {\n background-color: var(--grey-300);\n}\n\n.bg-error {\n background-color: var(--red-200);\n}\n\n.bg-success {\n background-color: var(--green-200);\n}\n\n.bg-warning {\n background-color: var(--yellow-200);\n}\n\n.p-16 {\n padding: 1rem;\n}\n\n.p-20 {\n padding: 1.25rem;\n}\n\n.px-12 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n\n.px-20 {\n padding-left: 1.25rem;\n padding-right: 1.25rem;\n}\n\n.py-12 {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n}\n\n.py-20 {\n padding-top: 1.25rem;\n padding-bottom: 1.25rem;\n}\n\n.py-8 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n\n.pr-12 {\n padding-right: 0.75rem;\n}\n\n.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n[class*=underline-] {\n text-decoration-line: underline;\n}\n\n.after\\:rounded-lg::after {\n border-radius: 16px;\n}\n\n.after\\:border-softest::after {\n border-color: rgba(0, 0, 0, .05);\n}";
8
8
  const EdsAlertStyle0 = edsAlertCss;
9
- const alertStyles = cva(['w-full bg-dark rounded-lg border-inside after:border-softest after:rounded-lg'], {
9
+ const alertStyles = cva(['w-full bg-dark'], {
10
10
  variants: {
11
11
  intent: {
12
12
  default: '',
@@ -14,6 +14,10 @@ const alertStyles = cva(['w-full bg-dark rounded-lg border-inside after:border-s
14
14
  error: 'bg-error',
15
15
  success: 'bg-success'
16
16
  },
17
+ brd: {
18
+ rounded: 'rounded-lg border-inside after:border-softest after:rounded-lg',
19
+ normal: ''
20
+ },
17
21
  direction: {
18
22
  vertical: 'space-y-12',
19
23
  horizontal: 'flex flex-row items-center justify-between gap-x-12'
@@ -42,6 +46,7 @@ const alertStyles = cva(['w-full bg-dark rounded-lg border-inside after:border-s
42
46
  }],
43
47
  defaultVariants: {
44
48
  intent: 'default',
49
+ brd: 'rounded',
45
50
  direction: 'horizontal'
46
51
  }
47
52
  });
@@ -53,6 +58,7 @@ const EdsAlert = class {
53
58
  this.pressableUrl = undefined;
54
59
  this.direction = 'horizontal';
55
60
  this.intent = 'default';
61
+ this.brd = 'rounded';
56
62
  this.withBtn = false;
57
63
  }
58
64
  componentWillLoad() {
@@ -77,17 +83,19 @@ const EdsAlert = class {
77
83
  }
78
84
  render() {
79
85
  return h("div", {
80
- key: '519742081f681d6d67bc1b42c89fe1b6d005fe0f',
86
+ key: '02e7ec45a64008c3a5e8ea99cade7da6b076259f',
81
87
  class: alertStyles({
82
88
  intent: this.intent,
89
+ brd: this.brd,
83
90
  direction: this.direction,
84
91
  withBtn: this.withBtn
85
92
  }),
86
93
  role: "alert"
87
94
  }, h("p", {
88
- key: '6a5d11fdc2a975512b12c307286b0a8b06998bec',
89
- class: "f-ui-01 py-8"
90
- }, this.message), this.withBtn && (this.pressableUrl ? h("eds-link", {
95
+ key: 'ba99f147a48ed7cc19ccc18b309e1a11ca053a09',
96
+ class: "f-ui-01 py-8",
97
+ innerHTML: this.message
98
+ }), this.withBtn && (this.pressableUrl ? h("eds-link", {
91
99
  class: "eds-alert-link",
92
100
  label: this.pressableLabel,
93
101
  url: this.pressableUrl,
@@ -34,18 +34,18 @@ const EdsAppRoot = class {
34
34
  }
35
35
  render() {
36
36
  return h("div", {
37
- key: 'f7ff644cea84bfc78190afcfa33f1f6d6c6de29a'
37
+ key: 'ae36da9eecddc6661ce0ae79df2c768a4a9a4de9'
38
38
  }, h("eds-splash-screen", {
39
- key: '5e04f163eafe8f0d55394b8f508386bac013907e',
39
+ key: '20e1ed89330f803be474c84f4d1892cc1282c034',
40
40
  inverse: true,
41
41
  initPromise: this.combinedInitPromise
42
42
  }), h("eds-login", {
43
- key: '94c9dc0546e48fe8f9e6fc17fde9dcbf75fbe3bc',
43
+ key: '81c05a3d3751563ddf5dff9d305ef9ff93a6e699',
44
44
  "keycloak-url": "http://localhost:8080",
45
45
  "keycloak-realm": "nigeor-realm",
46
46
  "keycloak-client-id": "stencil-app"
47
47
  }), h("main", {
48
- key: '975cfb32924ecf0a4bb7d8f4788792eae500e166'
48
+ key: '8686c5b0c3553f167593763677fa4282561bc055'
49
49
  }, this.isAuthenticated ? h("h1", null, "Welcome, authenticated user!") : h("h1", null, "Please log in.")));
50
50
  }
51
51
  };
@@ -18,8 +18,11 @@ const EdsBreadcrumb = class {
18
18
  this.maxVisibleItems = 3;
19
19
  this.isSmallScreen = true;
20
20
  } else if (width <= 1024) {
21
- this.maxVisibleItems = 4;
21
+ this.maxVisibleItems = 3;
22
22
  this.isSmallScreen = true;
23
+ } else if (width <= 2200) {
24
+ this.maxVisibleItems = 4;
25
+ this.isSmallScreen = false;
23
26
  } else {
24
27
  this.maxVisibleItems = 6;
25
28
  this.isSmallScreen = false;
@@ -123,10 +126,10 @@ const EdsBreadcrumb = class {
123
126
  render() {
124
127
  const itemsToRender = this.getTruncatedItems();
125
128
  return h("nav", {
126
- key: '02537ec4208124f8a5ba564f7487f6fad552f7da',
129
+ key: '75bb5629a10de2a2a7bd0b2bbef04e5f699f5fe2',
127
130
  "aria-label": "Breadcrumb"
128
131
  }, h("ol", {
129
- key: 'ac6e2ecd59a8ddef52e004d95fbb492f78a9b248',
132
+ key: '7a5cc115b70d60bc878aa3d865802662f30948c1',
130
133
  class: "flex items-center space-x-2"
131
134
  }, itemsToRender.map((item, index) => {
132
135
  const isLast = index === itemsToRender.length - 1;
@@ -1,69 +1,9 @@
1
1
  import { r as registerInstance, h } from './index.esm2.js';
2
- import { g as gradientBGColorVariants } from './color-2554aad6.esm.js';
3
2
  import { c as cva } from './index-39c58238.esm.js';
4
3
  import 'react';
5
4
  import 'react/jsx-runtime';
6
5
  import 'react-dom';
7
6
 
8
- const edsAvatarCss = ".border-inside {\n position: relative;\n\n &::after {\n pointer-events: none;\n }\n\n &::after {\n position: absolute;\n }\n\n &::after {\n inset: 0rem;\n }\n\n &::after {\n z-index: 1;\n }\n\n &::after {\n border-radius: 8px;\n }\n\n &::after {\n border-width: 1px;\n }\n\n &::after {\n border-width: 2px;\n }\n\n &::after {\n border: 2px solid rgba(0, 0, 0, .1);\n }\n\n &::after {\n content: '';\n }\n}\n\n.border-inside-pill {\n &::after {\n border-radius: 100px;\n }\n\n &::after {\n content: '';\n }\n}\n\n.border-inside-inverse {\n &::after {\n border: 2px solid rgba(255, 255, 255, 0.3);\n }\n\n &::after {\n content: '';\n }\n}\n\n.aspect-1x1 {\n aspect-ratio: 1/1;\n}\n\n.flex {\n display: flex;\n}\n\n.inline-flex {\n display: inline-flex;\n}\n\n.items-center {\n align-items: center;\n}\n\n.justify-center {\n justify-content: center;\n}\n\n.overflow-hidden {\n overflow: hidden;\n}\n\n.px-4 {\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n\n.rounded-pill {\n border-radius: 100px;\n}\n\n.rounded-sm {\n border-radius: 8px;\n}\n\n.rounded-xs {\n border-radius: 4px;\n}\n\n\n.bg-dark {\n background-color: var(--grey-300);\n}\n\n.bg-darker {\n background-color: var(--grey-400);\n}\n\n.bg-stronger {\n background-color: var(--grey-900);\n}\n\n.bg-strongest {\n background-color: var(--black);\n}\n\n.text-accent {\n color: var(--green-500);\n}\n\n.text-default {\n color: var(--black);\n}\n\n.\\!no-underline {\n text-decoration-line: none !important;\n}\n\n.f-ui-01 {\n font-family: var(--f-ui-01-fontFamily);\n font-weight: var(--f-ui-01-fontWeight);\n font-size: var(--f-ui-01-fontSize);\n line-height: var(--f-ui-01-lineHeight);\n letter-spacing: var(--f-ui-01-letterSpacing);\n}\n\n.w-32 {\n width: 2rem;\n}\n\n.w-44 {\n width: 2.75rem;\n}\n\n.w-\\[54px\\] {\n width: 54px;\n}";
9
- const EdsAvatarStyle0 = edsAvatarCss;
10
- const EdsAvatar = class {
11
- constructor(hostRef) {
12
- registerInstance(this, hostRef);
13
- this.firstName = 'User';
14
- this.lastName = 'Avatar';
15
- this.picture = undefined;
16
- this.initials = undefined;
17
- this.color = undefined;
18
- this.rounded = false;
19
- this.initialsStrong = false;
20
- }
21
- /**
22
- * Computed initials based on the provided `initials` prop or derived from `firstName` and `lastName`.
23
- * @returns {string | undefined} Initials for display in the avatar.
24
- */
25
- get computedInitials() {
26
- if (this.initials) {
27
- return (this.initials.match(/.{1,3}/g) || [])[0] || '';
28
- } else if (this.firstName && this.lastName) {
29
- return `${this.firstName.charAt(0)}${this.lastName.charAt(0)}`.toUpperCase();
30
- }
31
- return undefined;
32
- }
33
- /**
34
- * Computes the CSS classes for the avatar container based on provided props like `rounded`, `color`, and `picture`.
35
- * @returns {string} List of CSS classes to apply to the avatar container.
36
- */
37
- get containerClasses() {
38
- return ['border-inside', 'aspect-1x1', 'flex', 'items-center', 'justify-center', 'overflow-hidden', this.picture ? '' : 'px-4', this.rounded ? 'rounded-pill border-inside-pill w-32' : 'w-[54px] rounded-sm', this.color ? 'border-inside-inverse' : '', this.color === 'grey' ? 'bg-dark' : this.color && !this.picture ? gradientBGColorVariants({
39
- color: this.color,
40
- direction: 'top',
41
- pseudo: false
42
- }) : !this.picture ? 'bg-strongest text-accent' : ''].join(' ');
43
- }
44
- /**
45
- * Renders the avatar component. Displays either an image using `eds-img` or initials depending on whether `picture` or `computedInitials` is set.
46
- * @returns {JSX.Element} The rendered avatar component.
47
- */
48
- render() {
49
- return h("div", {
50
- key: '47ee5ffd12c0f90c536dea77b3ffa9120d67f37f',
51
- class: this.containerClasses
52
- }, this.picture ? h("eds-img", {
53
- src: this.picture,
54
- width: 54,
55
- height: 54,
56
- sizes: "120px",
57
- alt: `${this.firstName} ${this.lastName}`,
58
- lazyload: true,
59
- withBg: true
60
- }) : h("abbr", {
61
- title: this.computedInitials || `${this.firstName} ${this.lastName}`,
62
- class: "!no-underline f-ui-01"
63
- }, this.computedInitials));
64
- }
65
- };
66
- EdsAvatar.style = EdsAvatarStyle0;
67
7
  const edsCardDescCss = ".f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.text-light{color:var(--grey-700)}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}";
68
8
  const EdsCardDescStyle0 = edsCardDescCss;
69
9
  const EdsCardDesc = class {
@@ -79,10 +19,10 @@ const EdsCardDesc = class {
79
19
  }
80
20
  render() {
81
21
  return h("p", {
82
- key: '71495cbd6ef4e7d66c4c22a37f8120624ecf57fb',
22
+ key: '96ba520be4ef9acf871a6e992d5ea74aaf17c962',
83
23
  class: `text-light ${this.descClass}`
84
24
  }, h("span", {
85
- key: '8708178f7b48cc1f31aac749f50fe92b72c39ab8',
25
+ key: '951358bd0c992426175e3c1b3c580f2f9be4027f',
86
26
  class: this.getTruncateClass()
87
27
  }, this.description));
88
28
  }
@@ -131,10 +71,10 @@ const EdsCardTitle = class {
131
71
  //const Tag = this.getTag();
132
72
  const Heading = this.headingLevel;
133
73
  return h(Heading, {
134
- key: 'bb97dc6dd53adda14ef251b2ec32952791438986',
74
+ key: '57ce97f35ee52623d32fac0b6b1a576ca8b5aa70',
135
75
  class: this.getTitleClass()
136
76
  }, h("a", {
137
- key: '37b6ac0668257d27fb3f03a6225a2d48e1fd1f79',
77
+ key: '60fb313d2b8753974658f73aaddd359a63548a79',
138
78
  class: "break-words after:absolute after:inset-0 after:z-10 after:content-[''] focus:outline-none",
139
79
  href: this.url,
140
80
  target: this.externalLink ? '_blank' : undefined,
@@ -175,11 +115,11 @@ const EdsTag = class {
175
115
  intent: this.intent
176
116
  });
177
117
  return h("span", {
178
- key: '2f4b0011094538aaa0a7cc855eadc1b39c9dc028',
118
+ key: '314cc7432e8a56cf4676982180ada160c7b14746',
179
119
  class: classes
180
120
  }, this.label);
181
121
  }
182
122
  };
183
123
  EdsTag.style = EdsTagStyle0;
184
124
 
185
- export { EdsAvatar as eds_avatar, EdsCardDesc as eds_card_desc, EdsCardTitle as eds_card_title, EdsTag as eds_tag };
125
+ export { EdsCardDesc as eds_card_desc, EdsCardTitle as eds_card_title, EdsTag as eds_tag };
@@ -5,7 +5,7 @@ import 'react';
5
5
  import 'react/jsx-runtime';
6
6
  import 'react-dom';
7
7
 
8
- const edsCardGenericCss = ".h-auto{height:auto}.h-full{height:100%}.\\!min-h-20{min-height:1.25rem !important}.min-h-120{min-height:120px}.min-h-156{min-height:156px}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.effect-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.hover\\:shadow-hover:hover{--tw-shadow:0px 0px 16px rgba(0, 0, 0, 0.2);--tw-shadow-colored:0px 0px 16px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.cursor-pointer{cursor:pointer}.border-soft{border-color:rgba(0, 0, 0, .15 )}.border-softer{border:2px solid rgba(0, 0, 0, .1 )}.effect-focus-within{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.effect-focus-within:focus-within{outline-style:solid}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grow{flex-grow:1}.flex-col{flex-direction:column}.rounded-lg{border-radius:16px}.border-2{border-width:2px}.p-12{padding:0.75rem}.p-16{padding:1rem}.mt-6{margin-top:0.375rem}.mt-8{margin-top:0.5rem}.gap-y-4{row-gap:0.25rem}.order-first{order:-9999}.mb-10{margin-bottom:0.625rem}.mb-12{margin-bottom:0.75rem}";
8
+ const edsCardGenericCss = ".h-auto{height:auto}.h-full{height:100%}.\\!min-h-20{min-height:1.25rem !important}.min-h-120{min-height:120px}.min-h-156{min-height:156px}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.effect-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.hover\\:shadow-hover:hover{--tw-shadow:0px 0px 16px rgba(0, 0, 0, 0.2);--tw-shadow-colored:0px 0px 16px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.cursor-pointer{cursor:pointer}.border-soft{border-color:rgba(0, 0, 0, .15)}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.effect-focus-within{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.effect-focus-within:focus-within{outline-style:solid}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grow{flex-grow:1}.flex-col{flex-direction:column}.rounded-lg{border-radius:16px}.border-2{border-width:2px}.p-12{padding:0.75rem}.p-16{padding:1rem}.mt-6{margin-top:0.375rem}.mt-8{margin-top:0.5rem}.gap-y-4{row-gap:0.25rem}.order-first{order:-9999}.mb-10{margin-bottom:0.625rem}.mb-12{margin-bottom:0.75rem}";
9
9
  const EdsCardGenericStyle0 = edsCardGenericCss;
10
10
  const EdsCardGeneric = class {
11
11
  constructor(hostRef) {
@@ -50,38 +50,38 @@ const EdsCardProject = class {
50
50
  }) : 'bg-default', this.bgOnHover && this.color ? 'effect-background bg-default focus-within:bg-transparent hover:bg-transparent' : 'effect-background hover:bg-default', this.vertical ? 'flex-col gap-y-16' : 'flex-col gap-x-16 gap-y-12 lg:flex-row'].join(' ');
51
51
  const imageClasses = this.vertical ? '' : 'max-w-120 @md:max-w-192 order-first w-full lg:order-last';
52
52
  return h("article", {
53
- key: '98c5dbd033ec05d08965559e00f32d9fe18698ef',
53
+ key: '067a30c2b0860d71dc13d1d3d875a7e288de842b',
54
54
  class: cardClasses,
55
55
  onClick: event => this.handleClick(event)
56
56
  }, h("div", {
57
- key: 'e083c43e38c3c24fcd996a90267f7cd92d3651b3',
57
+ key: '3e2e62ecc9ad5973c359b7bbceefd8c2ac682d0b',
58
58
  class: `flex grow flex-col ${this.vertical ? 'min-h-156' : ''}`
59
59
  }, h("div", {
60
- key: '37de1e46023b533fd8595a3077c4e68c11fb01af',
60
+ key: 'e07a666f80d6955b5cf16c18a999a756dcfe10f0',
61
61
  class: "lg:max-w-[720px]"
62
62
  }, h("eds-card-title", {
63
- key: 'ee31ae2804d2c17c82e8f4c0c3269ac8254331df',
63
+ key: 'b1ef62c888e9d69f1146fc218a7012015ddc78e1',
64
64
  "heading-level": this.headingLevel,
65
65
  titleClass: this.image ? 'f-ui-01' : undefined,
66
66
  "card-title": this.titleProject,
67
67
  url: this.url
68
68
  }), this.editorialTitle && h("span", {
69
- key: 'c6f74ba9b5b522f713e25d3339f541efa68cdddd',
69
+ key: '79cf1af876a0a358a9f65036a1ff1c4944604435',
70
70
  class: `block ${this.vertical ? 'f-ui-02' : 'mt-4 f-heading-06'}`
71
71
  }, this.editorialTitle)), this.categoryTitle && h("div", {
72
- key: 'ab18e55046777cf4a4f58ebd057641db9b9e0328',
72
+ key: 'ce7e525b0bdbbc94d3e2ec8055c692be9d521042',
73
73
  class: "mt-auto flex items-center gap-x-12 pt-12"
74
74
  }, ((_a = this.categoryTitle) === null || _a === void 0 ? void 0 : _a.length) && h("eds-tag", {
75
- key: '3714ee86a74dce7f33a8f953fd726db349ba9271',
75
+ key: '23e3527a3772970642dcb07a4abc381415132155',
76
76
  label: this.categoryTitle
77
77
  }))), this.parsedImage && h("div", {
78
- key: '2818d15f7ab671b7b2dfb34ec3085b390150f38d',
78
+ key: '178ef2273b2506070c045c3f2e7a287d4b175414',
79
79
  class: imageClasses
80
80
  }, h("div", {
81
- key: '5166feef3674631298f699449b956655f38f0db9',
81
+ key: 'f77fb56cd2ed1bdcafd07db9adcf0f7b6a44cdb7',
82
82
  class: "aspect-1x1 w-full"
83
83
  }, h("eds-img", Object.assign({
84
- key: '86555a43491da5b2aa3b287e539e603a2c2adaf3',
84
+ key: 'b9734f48ab685280b801cfb75cc96f5aa109ca6f',
85
85
  sizes: this.vertical ? this.parsedImage.sizes || '' : '192px'
86
86
  }, this.parsedImage)))));
87
87
  }
@@ -13,7 +13,7 @@ const EdsCardTags = class {
13
13
  }
14
14
  render() {
15
15
  return h("div", {
16
- key: '272d53abb9be9086881cb2f8e99f7fb7aae1bb59',
16
+ key: 'df8937e32907eb978f27565d04f7ca56f2485c87',
17
17
  class: "flex flex-wrap gap-y-4"
18
18
  }, this.tags.map((tag, index) => h("eds-tag", {
19
19
  key: index,
@@ -62,11 +62,11 @@ const EdsCardTool = class {
62
62
  }
63
63
  render() {
64
64
  return h("article", {
65
- key: 'da61b384e966b148cd1f77eec59671bc4d92e259',
65
+ key: '5ecce6667d066e78586f795ab260bed569434c4f',
66
66
  class: `${this.el.tagName.toLowerCase()} ${this.articleClasses()}`,
67
67
  onClick: () => this.handleClick()
68
68
  }, h("eds-card-title", {
69
- key: '00702d032bc25f52b2a2c98255ceb60a1d314f4d',
69
+ key: 'a6ff863ade669db7494c763d563809dbfddb3f2c',
70
70
  "heading-level": this.headingLevel,
71
71
  titleClass: this.image ? 'f-ui-01' : undefined,
72
72
  "card-title": this.cardTitle,
@@ -74,7 +74,7 @@ const EdsCardTool = class {
74
74
  "external-link": this.external,
75
75
  hierarchy: this.hierarchy
76
76
  }), this.description && h("eds-card-desc", {
77
- key: 'd2b135ed422fb64f142af71330dc666e2f0c2b1f',
77
+ key: '6f5328fba79a564e6e0d737b2d64a31e50ea6434',
78
78
  class: "mt-8",
79
79
  "truncate-lines": "3",
80
80
  description: this.description
@@ -88,7 +88,7 @@ const EdsCardTool = class {
88
88
  picture: this.avatar,
89
89
  initials: this.shortAbbreviation
90
90
  }) : null, h("div", {
91
- key: '54111e90175754cb0c1f2eb339e86926914ca0e7',
91
+ key: 'b1a42a1db9274ebf1098143d56e1ad8a08825c4c',
92
92
  class: "flex flex-wrap gap-y-4"
93
93
  }, this.parsedTags.map((tag, index) => h("eds-tag", {
94
94
  key: index,
@@ -19,15 +19,15 @@ const EdsCardWrapper = class {
19
19
  render() {
20
20
  const articleClasses = [this.tiny ? 'min-h-120' : 'min-h-156', this.withBg ? 'bg-inverse' : 'bg-default', this.withHover ? 'effect-shadow hover:shadow-hover cursor-pointer' : '', 'border-softer effect-focus-within relative flex grow flex-col rounded-lg border-2 p-16'].join(' ');
21
21
  return h("article", {
22
- key: 'f21cc9703011026652765b399e2b87b1ef80d220',
22
+ key: 'b860e65a1a943216793a5ce2f5a08d01249fc671',
23
23
  class: articleClasses
24
24
  }, h("slot", {
25
- key: '9a37adad73d2d49edcc9ca9222d5b188202c5612'
25
+ key: '3ea351da205f375ed746695762efc1f28d1fc3f0'
26
26
  }), this.hasSlot('footer') && h("div", {
27
- key: '87addfc052ed4ae33736724fbd8fbc8aca873b4d',
27
+ key: '84d24bd248033d4855dd63dfa5042585ae61d64d',
28
28
  class: "mt-auto"
29
29
  }, h("slot", {
30
- key: '2e48677f42ac2aa951bc1a82afa9291fea3ddd72',
30
+ key: 'c7a2530d70a93705097b9ac3b8be1a21551dd1fb',
31
31
  name: "footer"
32
32
  })));
33
33
  }
@@ -2247,10 +2247,10 @@ const EdsCodeBlock = class {
2247
2247
  }
2248
2248
  render() {
2249
2249
  return h("div", {
2250
- key: 'cb379e82bcf71345945b0b88397650ecd4992770',
2250
+ key: '98f5fe5e215e87c1eb024969b5e4f3ae1bd0cb0d',
2251
2251
  class: "relative bg-stronger rounded-sm"
2252
2252
  }, h("div", {
2253
- key: '945046d4fd747cd64a83155b421a897e380cc612',
2253
+ key: '173be873a0f41398bd080758d5a0bbdcc977dcf5',
2254
2254
  class: "text-inverse flex justify-between items-center p-8"
2255
2255
  }, this.language ? h("span", {
2256
2256
  class: "f-ui-03"
@@ -2261,23 +2261,23 @@ const EdsCodeBlock = class {
2261
2261
  }, h("code", {
2262
2262
  innerHTML: this.getHighlightedCode()
2263
2263
  })), h("span", {
2264
- key: '3f6c7e996101f0bb83fb8c9e6991a205a0b268c8',
2264
+ key: 'f8cb36cf89d19bf306c57168e61ccfde9a4d18ff',
2265
2265
  "aria-hidden": "true",
2266
2266
  class: "w-20 h-20 mt-8"
2267
2267
  }, h("eds-icon-wrapper", {
2268
- key: '8ad9beb61058f29e688f6777233c61f7fb3ccfe8',
2268
+ key: '74f214c47dc647c2c254f3f9f96fba71e35133df',
2269
2269
  icon: this.copied ? 'success' : 'copy',
2270
2270
  onClick: () => this.copyToClipboard()
2271
2271
  })), h("span", {
2272
- key: 'a4f9a07906e1c2d9febb7ae789a3eed76dc422e9',
2272
+ key: '74e628574b481d68c2d2132a12fd07bb62c86fde',
2273
2273
  class: "sr-only"
2274
2274
  }, "Copy Code")), this.language && h("pre", {
2275
- key: 'e31339126dd3cc885511aaa2bdf6f06f3a113c74',
2275
+ key: '19d2b813b6e86451a8a9047b954d99340fc3cd85',
2276
2276
  class: `language-${this.language} bg-stronger pl-8 pb-8`,
2277
2277
  role: "region",
2278
2278
  "aria-label": `Code block in ${this.language}`
2279
2279
  }, h("code", {
2280
- key: '7efacd276f26a00f0f61793f6b8748259e1614b5',
2280
+ key: '974eb2e2ef0d7dc90e012e421d64bf5b735761d1',
2281
2281
  innerHTML: this.getHighlightedCode()
2282
2282
  })));
2283
2283
  }
@@ -5,27 +5,36 @@ import 'react-dom';
5
5
 
6
6
  const EdsComponentsOverview = () => h("div", {
7
7
  class: "static-content container"
8
- }, h("h2", null, "Load the module"), h("p", null, "Integrating EDSs components to a project without a JavaScript framework is straight forward. If you\u2019re working on a simple HTML page, you can start using the components immediately by adding the tags below to the", ' ', h("code", null, "head"), "."), h("eds-code-block", {
8
+ }, h("h2", null, "Load the module"), h("p", null, "Integrating the EBRAINS UI Components to a project without a JavaScript framework is straight forward. If you\u2019re working on a simple HTML page, you can start using the components immediately by adding the tags below to the", ' ', h("code", null, "head"), "."), h("eds-code-block", {
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("eds-steps", {
13
+ steps: [{
14
+ title: 'Import the Loader Module',
15
+ 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.'
16
+ }, {
17
+ title: 'Register Custom Elements',
18
+ content: 'Calling defineCustomElements(window) loops through the available components and registers each one with the browser using customElements.define(). This makes your custom elements available in the DOM.'
19
+ }, {
20
+ title: 'Lazy Loading in Action',
21
+ content: "Although all components are registered on startup, their implementation code is lazy-loaded. This means a component's code is only fetched when it is first used, optimizing the initial load time."
22
+ }, {
23
+ title: 'Optimized Performance',
24
+ 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
+ }]
26
+ }), h("p", null, "Once included, components can be used in your markup like any other regular HTML elements:"), h("eds-code-block", {
27
+ code: '<eds-button \n label="my bytton" \n intent="primary">\n</eds-button>',
28
+ language: "html",
29
+ "copy-label": "Copy Code"
12
30
  }), h("h2", null, "Load the styles"), 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")), h("eds-code-block", {
13
31
  code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/output.css"/>',
14
32
  language: "css",
15
33
  "copy-label": "Copy Code"
16
- }), h("div", {
17
- class: "my-4"
18
- }, h("eds-alert", {
19
- message: "Note that, loading the predefined CSS framework above, automatically loads the fonts so you can skip loading them separately.",
20
- intent: "warning"
21
- })), h("h2", null, "Load the fonts"), h("p", null, "To load the webfonts, add the tag below to the ", h("code", null, "head")), h("eds-code-block", {
34
+ }), h("p", null, "Note that, loading the predefined CSS framework above,", ' ', h("b", null, "automatically loads the fonts so you can skip loading them separately"), ". If you wish, however, to load the fonts, add the tag below to the ", h("code", null, "head")), h("eds-code-block", {
22
35
  code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@0.0.1/styles/base/fonts.css"/>',
23
36
  language: "css",
24
37
  "copy-label": "Copy Code"
25
- }), h("h2", null, "Component Usage"), h("p", null, "Once included, components can be used in your markup like any other regular HTML elements:"), h("eds-code-block", {
26
- code: '<eds-button \n label="my bytton" \n intent="primary">\n</eds-button>',
27
- language: "html",
28
- "copy-label": "Copy Code"
29
38
  }));
30
39
  const EdsDocsInstallation = () => 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", {
31
40
  class: "my-8"
@@ -58,13 +67,11 @@ const EdsDocsInstallation = () => h("div", null, h("p", null, "Before proceeding
58
67
  language: "html",
59
68
  "copy-label": "Copy Code"
60
69
  })));
61
- const EdsDocsReact = () => h("div", null, h("h2", null, "React Wrappers"), h("p", null, "Learn how to use our components in a React Application.Simple install the package below and check out the examples"), h("div", {
62
- class: "my-8"
63
- }, h("eds-code-block", {
70
+ const EdsDocsReact = () => h("div", null, h("h2", null, "React Wrappers"), h("p", null, "To use the EBRAINS web components in a React Application, simple install the package below and check out the examples"), h("eds-code-block", {
64
71
  code: "npm install @ebrains/react",
65
72
  language: "javascript",
66
73
  "copy-label": "Copy Code"
67
- })), h("eds-section-core", {
74
+ }), h("eds-section-core", {
68
75
  "section-title": "Example React App",
69
76
  "heading-level": "h3"
70
77
  }, h("eds-code-block", {
@@ -72,16 +79,12 @@ const EdsDocsReact = () => h("div", null, h("h2", null, "React Wrappers"), h("p"
72
79
  language: "javascript",
73
80
  "copy-label": "Copy Code"
74
81
  })));
75
- const EdsDocsVue = () => h("div", null, h("h2", null, "Vue Wrappers"), h("p", null, "Learn how to use our components in a Vue Application."), h("p", null, "Simply install the latest version of our NPM package."), h("eds-code-block", {
82
+ const EdsDocsVue = () => h("div", null, h("h2", null, "Vue Wrappers"), h("p", null, "To use the EBRAINS web components in a Vue Application, simple install the package below and check out the examples."), h("eds-code-block", {
76
83
  code: "npm install @ebrains/vue",
77
84
  language: "javascript",
78
85
  "copy-label": "Copy Code"
79
- }), h("p", null, "Our NPM package already includes the custom elements definitions. However, you can use the components as they are by simply importing and executing the initialization command in your \"main.ts\" file."), h("eds-code-block", {
80
- code: "import { defineCustomElements } from '@ebrains/components/loader';\ndefineCustomElements();",
81
- language: "javascript",
82
- "copy-label": "Copy Code"
83
86
  }), 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", {
84
- class: "mt-8"
87
+ class: "my-8"
85
88
  }, h("eds-alert", {
86
89
  message: "This may lead to issues because Vue binds these as attributes .",
87
90
  intent: "error"
@@ -90,7 +93,7 @@ const EdsDocsVue = () => h("div", null, h("h2", null, "Vue Wrappers"), h("p", nu
90
93
  language: "javascript",
91
94
  "copy-label": "Copy Code"
92
95
  }), h("div", {
93
- class: "mt-8"
96
+ class: "my-8"
94
97
  }, h("eds-alert", {
95
98
  message: "Use the .prop modifier to ensure properties are passed correctly.",
96
99
  intent: "success"
@@ -106,7 +109,7 @@ const EdsDocsVue = () => h("div", null, h("h2", null, "Vue Wrappers"), h("p", nu
106
109
  language: "javascript",
107
110
  "copy-label": "Copy Code"
108
111
  })));
109
- const EdsDocsAngular = () => h("div", null, h("h2", null, "Angular Wrappers"), h("p", null, "Learn how to use our components in a Angular Application."), h("eds-code-block", {
112
+ const EdsDocsAngular = () => h("div", null, h("h2", null, "Angular Wrappers"), h("p", null, "To use the EBRAINS web components in an Angular Application, simple install the package below and check out the examples."), h("eds-code-block", {
110
113
  code: "npm install @ebrains/angular",
111
114
  language: "javascript",
112
115
  "copy-label": "Copy Code"
@@ -149,7 +152,7 @@ const EdsComponentsSection = class {
149
152
  }
150
153
  render() {
151
154
  return h("div", {
152
- key: '69eda93b8845c5fdf5edc0f58ede763866b5f8c7',
155
+ key: '85fff494e98ff10bbcc630487a75d345e7cce78c',
153
156
  class: "container"
154
157
  }, this.renderContent());
155
158
  }
@@ -29,9 +29,9 @@ const EdsCookiesPreference = class {
29
29
  }
30
30
  render() {
31
31
  return h("div", {
32
- key: '48f67648644ae9c8e645791ad3cbba5491866dc5'
32
+ key: '13e1244d4e151f091eaca1d22dbed009bcb97786'
33
33
  }, h("eds-link", {
34
- key: '50154721f0f44e811ebe362e18bcf8cfb77b8f64',
34
+ key: '4cfc54b447c93824f98da1f990a28fdb61018afe',
35
35
  size: "small",
36
36
  intent: this.intent,
37
37
  label: this.buttonText,
@@ -20,7 +20,7 @@ const EdsDocsPalettes = class {
20
20
  }
21
21
  render() {
22
22
  return h("div", {
23
- key: '80f0922a40e212252a858b019d88f104defc2632',
23
+ key: '480cc269ee31de61190b4ae7502c3c17e673c3f9',
24
24
  class: "container"
25
25
  }, this.renderContent());
26
26
  }
@@ -36,7 +36,7 @@ const EdsDocsContent = class {
36
36
  }
37
37
  render() {
38
38
  return h("div", {
39
- key: 'cf676cf54781de4a4f8b75d174201d24d30d3538',
39
+ key: '64ee8c20ec7dca1ea1a742ef53f0315c81107ead',
40
40
  class: "container"
41
41
  }, this.renderContent());
42
42
  }