@ebrains/components 0.9.0-beta → 0.9.1-beta

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 (93) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +9 -0
  3. package/dist/cjs/components.cjs.js +1 -1
  4. package/dist/cjs/eds-accordion.cjs.entry.js +4 -4
  5. package/dist/cjs/{eds-avatar_24.cjs.entry.js → eds-avatar_26.cjs.entry.js} +186 -5
  6. package/dist/cjs/{eds-card-desc_3.cjs.entry.js → eds-card-desc_2.cjs.entry.js} +0 -35
  7. package/dist/cjs/eds-card-generic.cjs.entry.js +2 -2
  8. package/dist/cjs/eds-matomo-notice.cjs.entry.js +2 -2
  9. package/dist/cjs/eds-modal.cjs.entry.js +5 -5
  10. package/dist/cjs/eds-section-core_2.cjs.entry.js +2 -2
  11. package/dist/cjs/eds-switch.cjs.entry.js +2 -2
  12. package/dist/cjs/eds-tabs.cjs.entry.js +5 -5
  13. package/dist/cjs/eds-timeline.cjs.entry.js +1 -1
  14. package/dist/cjs/index-2f63169d.js +4 -8
  15. package/dist/cjs/loader.cjs.js +1 -1
  16. package/dist/collection/components/eds-accordion/eds-accordion.js +5 -5
  17. package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +8 -1
  18. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.css +5 -0
  19. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +1 -1
  20. package/dist/collection/components/eds-link/eds-link.css +6 -6
  21. package/dist/collection/components/eds-modal/eds-modal.js +6 -6
  22. package/dist/collection/components/eds-section/eds-section-heading/eds-section-heading.js +5 -2
  23. package/dist/collection/components/eds-switch/eds-switch.js +3 -3
  24. package/dist/collection/components/eds-tag/eds-tag.css +45 -0
  25. package/dist/collection/components/eds-tag/eds-tag.js +31 -5
  26. package/dist/collection/components/eds-tag/eds-tag.stories.js +11 -4
  27. package/dist/collection/components/eds-timeline/eds-timeline.css +20 -0
  28. package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +3 -3
  29. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +3 -3
  30. package/dist/collection/shared-ui/eds-tabs/eds-tabs.css +20 -0
  31. package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +5 -5
  32. package/dist/collection/shared-ui/eds-user/eds-user.css +20 -0
  33. package/dist/components/components.css +20 -0
  34. package/dist/components/components.esm.js +1 -1
  35. package/dist/components/eds-accordion2.js +5 -5
  36. package/dist/components/eds-breadcrumb.js +8 -1
  37. package/dist/components/eds-card-generic2.js +2 -2
  38. package/dist/components/eds-link2.js +1 -1
  39. package/dist/components/eds-matomo-notice2.js +3 -3
  40. package/dist/components/eds-modal.js +6 -6
  41. package/dist/components/eds-section-heading2.js +2 -2
  42. package/dist/components/eds-social-networks2.js +3 -3
  43. package/dist/components/eds-switch.js +2 -2
  44. package/dist/components/eds-tabs.js +6 -6
  45. package/dist/components/eds-tag2.js +15 -6
  46. package/dist/components/eds-timeline.js +1 -1
  47. package/dist/components/eds-user.js +1 -1
  48. package/dist/components/p-0467ceb5.entry.js +1 -0
  49. package/dist/components/{p-424ba743.entry.js → p-1309a74c.entry.js} +1 -1
  50. package/dist/components/p-4620ebf5.entry.js +1 -0
  51. package/dist/components/{p-bcbc7b7f.entry.js → p-94b1f974.entry.js} +1 -1
  52. package/dist/components/p-b931a634.entry.js +1 -0
  53. package/dist/components/{p-9cbcccf8.entry.js → p-c5c782e7.entry.js} +1 -1
  54. package/dist/components/p-c99745a8.entry.js +1 -0
  55. package/dist/components/p-e42eb100.entry.js +1 -0
  56. package/dist/components/{p-59d963d1.entry.js → p-e710c860.entry.js} +1 -1
  57. package/dist/components/p-f4ce515a.entry.js +1 -0
  58. package/dist/esm/components.js +1 -1
  59. package/dist/esm/eds-accordion.entry.js +4 -4
  60. package/dist/esm/{eds-avatar_24.entry.js → eds-avatar_26.entry.js} +185 -6
  61. package/dist/esm/{eds-card-desc_3.entry.js → eds-card-desc_2.entry.js} +1 -35
  62. package/dist/esm/eds-card-generic.entry.js +2 -2
  63. package/dist/esm/eds-matomo-notice.entry.js +2 -2
  64. package/dist/esm/eds-modal.entry.js +5 -5
  65. package/dist/esm/eds-section-core_2.entry.js +2 -2
  66. package/dist/esm/eds-switch.entry.js +2 -2
  67. package/dist/esm/eds-tabs.entry.js +5 -5
  68. package/dist/esm/eds-timeline.entry.js +1 -1
  69. package/dist/esm/index-8a71b9a7.js +4 -8
  70. package/dist/esm/loader.js +1 -1
  71. package/dist/hydrate/index.js +59 -40
  72. package/dist/hydrate/index.mjs +59 -40
  73. package/dist/stencil.config.js +16 -1
  74. package/dist/types/components/eds-accordion/eds-accordion.d.ts +1 -1
  75. package/dist/types/components/eds-modal/eds-modal.d.ts +1 -1
  76. package/dist/types/components/eds-section/eds-section-heading/eds-section-heading.d.ts +3 -0
  77. package/dist/types/components/eds-switch/eds-switch.d.ts +1 -1
  78. package/dist/types/components/eds-tag/eds-tag.d.ts +5 -1
  79. package/dist/types/components/eds-tag/eds-tag.stories.d.ts +7 -0
  80. package/dist/types/components.d.ts +40 -64
  81. package/dist/types/shared-ui/eds-matomo-notice/eds-matomo-notice.d.ts +1 -1
  82. package/dist/types/shared-ui/eds-social-networks/eds-social-networks.d.ts +1 -1
  83. package/dist/types/shared-ui/eds-tabs/eds-tabs.d.ts +1 -1
  84. package/package.json +3 -3
  85. package/dist/cjs/eds-breadcrumb.cjs.entry.js +0 -139
  86. package/dist/components/p-032f9f64.entry.js +0 -1
  87. package/dist/components/p-058cf100.entry.js +0 -1
  88. package/dist/components/p-1b4e9576.entry.js +0 -1
  89. package/dist/components/p-30a319d5.entry.js +0 -1
  90. package/dist/components/p-85ad681a.entry.js +0 -1
  91. package/dist/components/p-b47d115d.entry.js +0 -1
  92. package/dist/components/p-b55b0091.entry.js +0 -1
  93. package/dist/esm/eds-breadcrumb.entry.js +0 -135
@@ -1 +1 @@
1
- import{r as i,h as t,g as e}from"./p-cccacbd3.js";import{p as r}from"./p-69c5074b.js";import{s as o}from"./p-13efafb9.js";const s=class{constructor(t){i(this,t),this.parentContext=null,this.cardTitle=void 0,this.url=void 0,this.description=void 0,this.image=void 0,this.avatar=void 0,this.shortAbbreviation=void 0,this.headingLevel="h3",this.tags=[],this.tiny=!1,this.bg=!0,this.withHover=!0,this.hierarchy=!0,this.parsedImage=null}componentWillLoad(){if(this.image)try{"object"==typeof this.image?this.parsedImage=this.image:"string"==typeof this.image&&(this.parsedImage=JSON.parse(this.image))}catch(i){console.error("Error parsing image prop:",i),this.parsedImage={}}}handleParentContext(i){i.target===this.el&&(this.parentContext=i.detail,i.stopPropagation())}get parsedTags(){return r(this.tags)}articleClasses(){return[this.description?this.tiny?"min-h-120":"min-h-156":"h-auto",this.bg?"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(" ")}handleClick(){var i;o({category:"ui-component",parentContext:this.parentContext,tag:this.el.tagName.toLowerCase(),name:(null===(i=this.cardTitle)||void 0===i?void 0:i.toLowerCase())||"",action:"click"})}render(){return t("article",{key:"440a448c841370838c0c66610bd1266b46f66541",class:this.articleClasses(),onClick:()=>this.handleClick()},t("eds-card-title",{key:"292d93a9a993c6dcbfd276097a21d3984b1794c4","heading-level":this.headingLevel,titleClass:this.image?"f-ui-01":void 0,"card-title":this.cardTitle,url:this.url,hierarchy:this.hierarchy}),this.description&&t("eds-card-desc",{key:"4b304cc3c65a42b3b1bcbebd9968c45e79cdabf7",class:"mt-8","truncate-lines":"3",description:this.description}),this.parsedImage?t("eds-img",Object.assign({class:"mt-8"},this.parsedImage)):this.avatar||this.shortAbbreviation?t("eds-avatar",{class:"order-first mb-12",picture:this.avatar,initials:this.shortAbbreviation}):null,t("div",{key:"cb5c191f6c190fb6edb46446187dbf6b8c1b778b",class:"flex flex-wrap gap-y-4"},this.parsedTags.map(((i,e)=>t("eds-tag",{key:e,intent:i.style,label:i.label}))))," ")}get el(){return e(this)}};s.style=".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}";export{s as eds_card_generic}
1
+ import{r as i,h as t,g as e}from"./p-cccacbd3.js";import{p as r}from"./p-69c5074b.js";import{s as o}from"./p-13efafb9.js";const s=class{constructor(t){i(this,t),this.parentContext=null,this.cardTitle=void 0,this.url=void 0,this.description=void 0,this.image=void 0,this.avatar=void 0,this.shortAbbreviation=void 0,this.headingLevel="h3",this.tags=[],this.tiny=!1,this.bg=!0,this.withHover=!0,this.hierarchy=!0,this.parsedImage=null}componentWillLoad(){if(this.image)try{"object"==typeof this.image?this.parsedImage=this.image:"string"==typeof this.image&&(this.parsedImage=JSON.parse(this.image))}catch(i){console.error("Error parsing image prop:",i),this.parsedImage={}}}handleParentContext(i){i.target===this.el&&(this.parentContext=i.detail,i.stopPropagation())}get parsedTags(){return r(this.tags)}articleClasses(){return[this.description?this.tiny?"min-h-120":"min-h-156":"h-auto",this.bg?"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(" ")}handleClick(){var i;o({category:"ui-component",parentContext:this.parentContext,tag:this.el.tagName.toLowerCase(),name:(null===(i=this.cardTitle)||void 0===i?void 0:i.toLowerCase())||"",action:"click"})}render(){return t("article",{key:"440a448c841370838c0c66610bd1266b46f66541",class:this.articleClasses(),onClick:()=>this.handleClick()},t("eds-card-title",{key:"292d93a9a993c6dcbfd276097a21d3984b1794c4","heading-level":this.headingLevel,titleClass:this.image?"f-ui-01":void 0,"card-title":this.cardTitle,url:this.url,hierarchy:this.hierarchy}),this.description&&t("eds-card-desc",{key:"4b304cc3c65a42b3b1bcbebd9968c45e79cdabf7",class:"mt-8","truncate-lines":"3",description:this.description}),this.parsedImage?t("eds-img",Object.assign({class:"mt-8"},this.parsedImage)):this.avatar||this.shortAbbreviation?t("eds-avatar",{class:"order-first mb-12",picture:this.avatar,initials:this.shortAbbreviation}):null,t("div",{key:"8bdcbbe2982a450843e9ada727e3f6eb62872ae1",class:"flex flex-wrap gap-y-4 gap-x-1"},this.parsedTags.map(((i,e)=>t("eds-tag",{key:e,intent:i.style,label:i.label}))))," ")}get el(){return e(this)}};s.style=".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-x-1{-moz-column-gap:0.0625rem;column-gap:0.0625rem}.gap-y-4{row-gap:0.25rem}.order-first{order:-9999}.mb-10{margin-bottom:0.625rem}.mb-12{margin-bottom:0.75rem}";export{s as eds_card_generic}
@@ -0,0 +1 @@
1
+ import{r as e,h as i}from"./p-cccacbd3.js";const t=class{constructor(i){e(this,i),this.description=void 0,this.descClass="f-ui-03-light",this.truncate=!0,this.truncateLines="3"}getTruncateClass(){return this.truncate&&this.truncateLines?`line-clamp-${this.truncateLines}`:""}render(){return i("p",{key:"96ba520be4ef9acf871a6e992d5ea74aaf17c962",class:`text-light ${this.descClass}`},i("span",{key:"951358bd0c992426175e3c1b3c580f2f9be4027f",class:this.getTruncateClass()},this.description))}};t.style=".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}";const a=class{constructor(i){e(this,i),this.url=void 0,this.titleClass=void 0,this.headingLevel="h3",this.externalLink=!1,this.cardTitle=void 0,this.hierarchy=!0}getTitleClass(){return`f-heading-${(this.hierarchy?{h1:"05",h2:"05",h3:"05",h4:"05",h5:"05",h6:"06"}:{h1:"01",h2:"02",h3:"03",h4:"04",h5:"05",h6:"06"})[this.headingLevel]}`}render(){return i(this.headingLevel,{key:"57ce97f35ee52623d32fac0b6b1a576ca8b5aa70",class:this.getTitleClass()},i("a",{key:"60fb313d2b8753974658f73aaddd359a63548a79",class:"break-words after:absolute after:inset-0 after:z-10 after:content-[''] focus:outline-none",href:this.url,target:this.externalLink?"_blank":void 0,rel:this.externalLink?"noopener noreferrer":void 0},this.cardTitle))}};a.style="a{all:unset;display:inline;color:inherit;text-decoration:none;cursor:pointer}h1,h2,h3,h4,h5,h6{margin:0}.f-heading-01{font-family:var(--f-heading-01-fontFamily);font-weight:var(--f-heading-01-fontWeight);font-size:var(--f-heading-01-fontSize);line-height:var(--f-heading-01-lineHeight);letter-spacing:var(--f-heading-01-letterSpacing)}.f-heading-02{font-family:var(--f-heading-02-fontFamily);font-weight:var(--f-heading-02-fontWeight);font-size:var(--f-heading-02-fontSize);line-height:var(--f-heading-02-lineHeight);letter-spacing:var(--f-heading-02-letterSpacing)}.f-heading-03{font-family:var(--f-heading-03-fontFamily);font-weight:var(--f-heading-03-fontWeight);font-size:var(--f-heading-03-fontSize);line-height:var(--f-heading-03-lineHeight);letter-spacing:var(--f-heading-03-letterSpacing)}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.f-heading-06{font-family:var(--f-heading-06-fontFamily);font-weight:var(--f-heading-06-fontWeight);font-size:var(--f-heading-06-fontSize);line-height:var(--f-heading-06-lineHeight);letter-spacing:var(--f-heading-06-letterSpacing)}.break-words{overflow-wrap:break-word}.after\\:absolute::after{position:absolute}.after\\:inset-0::after{inset:0rem}.after\\:z-10::after{z-index:10}.after\\:content-\\[\\'\\'\\]::after{--tw-content:'';content:var(--tw-content)}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}";export{t as eds_card_desc,a as eds_card_title}