@solid-design-system/components 3.8.1 → 3.9.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 (142) hide show
  1. package/dist/components/es/brandshape.js +1 -1
  2. package/dist/components/es/solid-components2.js +6 -6
  3. package/dist/components/umd/solid-components.js +11 -11
  4. package/dist/custom-elements.json +1 -1
  5. package/dist/package/components/brandshape/brandshape.d.ts +4 -1
  6. package/dist/package/components/brandshape/brandshape.js +29 -5
  7. package/dist/package/styles/tailwind.css.js +1 -1
  8. package/dist/versioned-components/es/accordion-group.js +1 -1
  9. package/dist/versioned-components/es/accordion.js +1 -1
  10. package/dist/versioned-components/es/badge.js +1 -1
  11. package/dist/versioned-components/es/brandshape.js +1 -1
  12. package/dist/versioned-components/es/button.js +1 -1
  13. package/dist/versioned-components/es/carousel-item.js +1 -1
  14. package/dist/versioned-components/es/carousel.js +3 -3
  15. package/dist/versioned-components/es/checkbox-group.js +1 -1
  16. package/dist/versioned-components/es/checkbox.js +1 -1
  17. package/dist/versioned-components/es/dialog.js +1 -1
  18. package/dist/versioned-components/es/divider.js +1 -1
  19. package/dist/versioned-components/es/drawer.js +1 -1
  20. package/dist/versioned-components/es/dropdown.js +1 -1
  21. package/dist/versioned-components/es/flipcard.js +1 -1
  22. package/dist/versioned-components/es/form.js +1 -1
  23. package/dist/versioned-components/es/header.js +1 -1
  24. package/dist/versioned-components/es/icon.js +1 -1
  25. package/dist/versioned-components/es/include.js +1 -1
  26. package/dist/versioned-components/es/input.js +1 -1
  27. package/dist/versioned-components/es/link.js +1 -1
  28. package/dist/versioned-components/es/map-marker.js +1 -1
  29. package/dist/versioned-components/es/navigation-item.js +1 -1
  30. package/dist/versioned-components/es/notification.js +1 -1
  31. package/dist/versioned-components/es/option.js +1 -1
  32. package/dist/versioned-components/es/radio-button.js +1 -1
  33. package/dist/versioned-components/es/radio-group.js +1 -1
  34. package/dist/versioned-components/es/radio.js +1 -1
  35. package/dist/versioned-components/es/scrollable.js +1 -1
  36. package/dist/versioned-components/es/select.js +3 -3
  37. package/dist/versioned-components/es/solid-components2.js +6 -6
  38. package/dist/versioned-components/es/spinner.js +1 -1
  39. package/dist/versioned-components/es/step-group.js +1 -1
  40. package/dist/versioned-components/es/step.js +1 -1
  41. package/dist/versioned-components/es/switch.js +1 -1
  42. package/dist/versioned-components/es/tab-group.js +1 -1
  43. package/dist/versioned-components/es/tab-panel.js +1 -1
  44. package/dist/versioned-components/es/tab.js +1 -1
  45. package/dist/versioned-components/es/tag.js +1 -1
  46. package/dist/versioned-components/es/teaser-media.js +1 -1
  47. package/dist/versioned-components/es/teaser.js +1 -1
  48. package/dist/versioned-components/es/textarea.js +1 -1
  49. package/dist/versioned-components/es/tooltip.js +2 -2
  50. package/dist/versioned-components/es/video.js +1 -1
  51. package/dist/versioned-package/_components/button-group/button-group.d.ts +1 -1
  52. package/dist/versioned-package/_components/button-group/button-group.js +11 -11
  53. package/dist/versioned-package/components/accordion/accordion.d.ts +1 -1
  54. package/dist/versioned-package/components/accordion/accordion.js +2 -2
  55. package/dist/versioned-package/components/accordion-group/accordion-group.d.ts +1 -1
  56. package/dist/versioned-package/components/accordion-group/accordion-group.js +3 -3
  57. package/dist/versioned-package/components/badge/badge.d.ts +1 -1
  58. package/dist/versioned-package/components/badge/badge.js +1 -1
  59. package/dist/versioned-package/components/brandshape/brandshape.d.ts +5 -2
  60. package/dist/versioned-package/components/brandshape/brandshape.js +30 -6
  61. package/dist/versioned-package/components/button/button.d.ts +1 -1
  62. package/dist/versioned-package/components/button/button.js +4 -4
  63. package/dist/versioned-package/components/carousel/carousel.d.ts +1 -1
  64. package/dist/versioned-package/components/carousel/carousel.js +6 -6
  65. package/dist/versioned-package/components/carousel-item/carousel-item.d.ts +1 -1
  66. package/dist/versioned-package/components/carousel-item/carousel-item.js +1 -1
  67. package/dist/versioned-package/components/checkbox/checkbox.d.ts +1 -1
  68. package/dist/versioned-package/components/checkbox/checkbox.js +3 -3
  69. package/dist/versioned-package/components/checkbox-group/checkbox-group.d.ts +1 -1
  70. package/dist/versioned-package/components/checkbox-group/checkbox-group.js +5 -5
  71. package/dist/versioned-package/components/dialog/dialog.d.ts +1 -1
  72. package/dist/versioned-package/components/dialog/dialog.js +2 -2
  73. package/dist/versioned-package/components/divider/divider.d.ts +1 -1
  74. package/dist/versioned-package/components/divider/divider.js +2 -2
  75. package/dist/versioned-package/components/drawer/drawer.d.ts +1 -1
  76. package/dist/versioned-package/components/drawer/drawer.js +2 -2
  77. package/dist/versioned-package/components/dropdown/dropdown.d.ts +1 -1
  78. package/dist/versioned-package/components/dropdown/dropdown.js +8 -8
  79. package/dist/versioned-package/components/flipcard/flipcard.d.ts +1 -1
  80. package/dist/versioned-package/components/flipcard/flipcard.js +1 -1
  81. package/dist/versioned-package/components/header/header.d.ts +1 -1
  82. package/dist/versioned-package/components/header/header.js +4 -4
  83. package/dist/versioned-package/components/icon/icon.d.ts +1 -1
  84. package/dist/versioned-package/components/icon/icon.js +1 -1
  85. package/dist/versioned-package/components/include/include.d.ts +1 -1
  86. package/dist/versioned-package/components/include/include.js +1 -1
  87. package/dist/versioned-package/components/input/input.d.ts +1 -1
  88. package/dist/versioned-package/components/input/input.js +2 -2
  89. package/dist/versioned-package/components/link/link.d.ts +1 -1
  90. package/dist/versioned-package/components/link/link.js +2 -2
  91. package/dist/versioned-package/components/map-marker/map-marker.d.ts +1 -1
  92. package/dist/versioned-package/components/map-marker/map-marker.js +1 -1
  93. package/dist/versioned-package/components/navigation-item/navigation-item.d.ts +1 -1
  94. package/dist/versioned-package/components/navigation-item/navigation-item.js +3 -3
  95. package/dist/versioned-package/components/notification/notification.d.ts +1 -1
  96. package/dist/versioned-package/components/notification/notification.js +5 -5
  97. package/dist/versioned-package/components/option/option.d.ts +1 -1
  98. package/dist/versioned-package/components/option/option.js +2 -2
  99. package/dist/versioned-package/components/popup/popup.d.ts +1 -1
  100. package/dist/versioned-package/components/popup/popup.js +1 -1
  101. package/dist/versioned-package/components/radio/radio.d.ts +1 -1
  102. package/dist/versioned-package/components/radio/radio.js +2 -2
  103. package/dist/versioned-package/components/radio-button/radio-button.d.ts +1 -1
  104. package/dist/versioned-package/components/radio-button/radio-button.js +2 -2
  105. package/dist/versioned-package/components/radio-group/radio-group.d.ts +2 -2
  106. package/dist/versioned-package/components/radio-group/radio-group.js +13 -13
  107. package/dist/versioned-package/components/scrollable/scrollable.d.ts +1 -1
  108. package/dist/versioned-package/components/scrollable/scrollable.js +3 -3
  109. package/dist/versioned-package/components/select/select.d.ts +4 -4
  110. package/dist/versioned-package/components/select/select.js +25 -25
  111. package/dist/versioned-package/components/spinner/spinner.d.ts +1 -1
  112. package/dist/versioned-package/components/spinner/spinner.js +1 -1
  113. package/dist/versioned-package/components/step/step.d.ts +1 -1
  114. package/dist/versioned-package/components/step/step.js +5 -5
  115. package/dist/versioned-package/components/step-group/step-group.d.ts +1 -1
  116. package/dist/versioned-package/components/step-group/step-group.js +2 -2
  117. package/dist/versioned-package/components/switch/switch.d.ts +1 -1
  118. package/dist/versioned-package/components/switch/switch.js +1 -1
  119. package/dist/versioned-package/components/tab/tab.d.ts +1 -1
  120. package/dist/versioned-package/components/tab/tab.js +2 -2
  121. package/dist/versioned-package/components/tab-group/tab-group.d.ts +1 -1
  122. package/dist/versioned-package/components/tab-group/tab-group.js +13 -13
  123. package/dist/versioned-package/components/tab-panel/tab-panel.d.ts +1 -1
  124. package/dist/versioned-package/components/tab-panel/tab-panel.js +2 -2
  125. package/dist/versioned-package/components/tag/tag.d.ts +1 -1
  126. package/dist/versioned-package/components/tag/tag.js +2 -2
  127. package/dist/versioned-package/components/teaser/teaser.js +1 -1
  128. package/dist/versioned-package/components/teaser-media/teaser-media.js +1 -1
  129. package/dist/versioned-package/components/textarea/textarea.d.ts +1 -1
  130. package/dist/versioned-package/components/textarea/textarea.js +2 -2
  131. package/dist/versioned-package/components/tooltip/tooltip.d.ts +1 -1
  132. package/dist/versioned-package/components/tooltip/tooltip.js +5 -5
  133. package/dist/versioned-package/components/video/video.d.ts +1 -1
  134. package/dist/versioned-package/components/video/video.js +2 -2
  135. package/dist/versioned-package/internal/form.js +3 -3
  136. package/dist/versioned-package/styles/headline/headline.css.js +1 -1
  137. package/dist/versioned-package/styles/tailwind.css.js +1 -1
  138. package/dist/versioned-package/utilities/autocomplete-config.js +4 -4
  139. package/dist/versioned-styles/solid-styles.css +1 -1
  140. package/dist/vscode.html-custom-data.json +68 -44
  141. package/dist/web-types.json +71 -47
  142. package/package.json +3 -3
@@ -1 +1 @@
1
- import{S as t,x as e,t as s,c as r,i,e as a,n as o,a as n}from"./solid-components2.js";import{r as p}from"./state.js";var l=Object.defineProperty,h=Object.getOwnPropertyDescriptor,v=(t,e,s,r)=>{for(var i,a=r>1?void 0:r?h(e,s):e,o=t.length-1;o>=0;o--)(i=t[o])&&(a=(r?i(e,s,a):i(a))||a);return r&&a&&l(e,s,a),a};let d=class extends t{constructor(){super(...arguments),this.variant="primary",this.shapes=["top","middle","bottom"],this.componentBreakpoint=0}getSvg(t,e){return{0:this.smallSvg(e),414:this.mediumSvg(e),640:this.largeSvg(e)}[t]}largeSvg(t){return"top"===t?e`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 121"><path d="M610.777 1.393.001 120.146 0 123h700.001V74.79c0-4.797-.462-9.585-1.381-14.294-7.909-40.537-47.237-66.998-87.843-59.103Z"/></svg>`:e`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 123"><path d="M89.224 121.607 700 2.854 700.001 0h-700L0 48.21c0 4.797.463 9.584 1.381 14.294 7.909 40.537 47.237 66.998 87.843 59.103Z"/></svg>`}mediumSvg(t){return"top"===t?e`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 119"><path d="M597.75 1.6 0 118.046V121h700V85.872c0-5.509-.53-11.006-1.583-16.413-9.063-46.543-54.133-76.924-100.667-67.86Z"/></svg>`:e`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 121"><path d="M102.25 119.4 700 2.954V0H0v35.128c0 5.509.53 11.006 1.583 16.413 9.063 46.543 54.134 76.924 100.667 67.859Z"/></svg>`}smallSvg(t){return"top"===t?e`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 113"><path d="M566.951 2.08 0 112.466v2.934h700v-3.672c0-7.166-.689-14.314-2.059-21.348-11.789-60.557-70.436-100.09-130.99-88.3Z"/></svg>`:e`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 116"><path d="M133.049 113.32 700 2.934V0H0v3.672c0 7.165.69 14.314 2.059 21.348 11.79 60.557 70.436 100.09 130.99 88.3Z"/></svg>`}setBreakpoint(){switch(!0){case this.containerElem.clientWidth<=414:this.componentBreakpoint=0;break;case this.containerElem.clientWidth<640:this.componentBreakpoint=414;break;default:this.componentBreakpoint=640}}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.setBreakpoint())),this.updateComplete.then((()=>{this.setBreakpoint(),this.resizeObserver.observe(this.containerElem)}))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this.containerElem)}renderTopBrandshape(){return e`<div class="relative" part="shape-top">${1===this.shapes.length?e`<div class="relative">${this.getSvg(this.componentBreakpoint,"top")}<div part="content" class="absolute bottom-0 right-0 flex items-end w-2/5 h-2/3 px-6 py-4"><slot></slot></div></div>`:this.getSvg(this.componentBreakpoint,"top")} ${this.renderWhitespaceFix("top")}</div>`}renderMiddleBrandshape(){return e`<div class="${s({0:"px-6 py-4",414:"px-10 py-8",640:"px-10 py-8"}[this.componentBreakpoint],"w-full block relative")}"><div part="shape-middle" class="${s({"neutral-100":"bg-neutral-100",primary:"bg-primary",white:"bg-white"}[this.variant],"w-full block absolute h-full top-0 left-0 z-0")}"></div><div class="z-10 relative" part="content"><slot></slot></div></div>`}renderBottomBrandshape(){return e`<div class="relative" part="shape-bottom">${this.getSvg(this.componentBreakpoint,"bottom")}${this.renderWhitespaceFix("bottom")}</div>`}renderWhitespaceFix(t){return e`<div class="${s({"neutral-100":"bg-neutral-100",primary:"bg-primary",white:"bg-white"}[this.variant],{top:"bottom-0",bottom:"top-0"}[t],"block absolute left-0 w-full h-[1px]")}"></div>`}render(){return e`<div class="${s({"neutral-100":"fill-neutral-100",primary:"fill-primary",white:"fill-white"}[this.variant])}" part="base">${this.shapes.includes("top")?this.renderTopBrandshape():null} ${this.shapes.includes("middle")?this.renderMiddleBrandshape():null} ${this.shapes.includes("bottom")?this.renderBottomBrandshape():null}</div>`}};d.styles=[r,t.styles,i`:host{display:block}`],v([a("[part=base]")],d.prototype,"containerElem",2),v([o({type:String})],d.prototype,"variant",2),v([o({type:Array})],d.prototype,"shapes",2),v([p()],d.prototype,"componentBreakpoint",2),d=v([n("sd-brandshape")],d);export{d as default};
1
+ import{S as e,x as t,t as r,c as i,i as a,e as s,n as o,a as n}from"./solid-components2.js";import{r as p}from"./state.js";var d=Object.defineProperty,l=Object.getOwnPropertyDescriptor,h=(e,t,r,i)=>{for(var a,s=i>1?void 0:i?l(t,r):t,o=e.length-1;o>=0;o--)(a=e[o])&&(s=(i?a(t,r,s):a(s))||s);return i&&s&&d(t,r,s),s};let c=class extends e{constructor(){super(...arguments),this.variant="primary",this.shapes=["top","middle","bottom"],this.componentBreakpoint=0}getSvg(e,t){return{0:this.smallSvg(t),414:this.mediumSvg(t),640:this.largeSvg(t)}[e]}largeSvg(e){return"top"===e?t`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 121"><path d="M610.777 1.393.001 120.146 0 123h700.001V74.79c0-4.797-.462-9.585-1.381-14.294-7.909-40.537-47.237-66.998-87.843-59.103Z"/></svg>`:t`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 123"><path d="M89.224 121.607 700 2.854 700.001 0h-700L0 48.21c0 4.797.463 9.584 1.381 14.294 7.909 40.537 47.237 66.998 87.843 59.103Z"/></svg>`}mediumSvg(e){return"top"===e?t`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 119"><path d="M597.75 1.6 0 118.046V121h700V85.872c0-5.509-.53-11.006-1.583-16.413-9.063-46.543-54.133-76.924-100.667-67.86Z"/></svg>`:t`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 121"><path d="M102.25 119.4 700 2.954V0H0v35.128c0 5.509.53 11.006 1.583 16.413 9.063 46.543 54.134 76.924 100.667 67.859Z"/></svg>`}smallSvg(e){return"top"===e?t`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 113"><path d="M566.951 2.08 0 112.466v2.934h700v-3.672c0-7.166-.689-14.314-2.059-21.348-11.789-60.557-70.436-100.09-130.99-88.3Z"/></svg>`:t`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 116"><path d="M133.049 113.32 700 2.934V0H0v3.672c0 7.165.69 14.314 2.059 21.348 11.79 60.557 70.436 100.09 130.99 88.3Z"/></svg>`}setBreakpoint(){switch(!0){case this.containerElem.clientWidth<=414:this.componentBreakpoint=0;break;case this.containerElem.clientWidth<640:this.componentBreakpoint=414;break;default:this.componentBreakpoint=640}}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.setBreakpoint())),this.updateComplete.then((()=>{this.setBreakpoint(),this.resizeObserver.observe(this.containerElem)}))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this.containerElem)}renderTopBrandshape(){return t`<div class="relative" part="shape-top">${1===this.shapes.length?t`<div class="relative">${this.getSvg(this.componentBreakpoint,"top")}<div part="content" class="absolute bottom-0 right-0 flex items-end w-2/5 h-2/3 px-6 py-4"><slot></slot></div></div>`:this.getSvg(this.componentBreakpoint,"top")} ${this.renderWhitespaceFix("top")}</div>`}renderMiddleBrandshape(){return t`<div class="${r({0:"px-6 py-4",414:"px-10 py-8",640:"px-10 py-8"}[this.componentBreakpoint],"w-full block relative")}"><div part="shape-middle" class="${r({"neutral-100":"bg-neutral-100",primary:"bg-primary",white:"bg-white","border-white":"bg-transparent","border-primary":"bg-transparent",image:"bg-transparent"}[this.variant],"w-full block absolute h-full top-0 left-0 z-0")}"></div><div class="z-10 relative" part="content"><slot></slot></div></div>`}renderBottomBrandshape(){return t`<div class="relative" part="shape-bottom">${this.getSvg(this.componentBreakpoint,"bottom")}${this.renderWhitespaceFix("bottom")}</div>`}renderWhitespaceFix(e){return t`<div class="${r({"neutral-100":"bg-neutral-100",primary:"bg-primary",white:"bg-white","border-white":"bg-transparent","border-primary":"bg-transparent",image:"bg-transparent"}[this.variant],{top:"bottom-0",bottom:"top-0"}[e],"block absolute left-0 w-full h-[1px]")}"></div>`}renderSkewedBorder(){return t`<div class="${r("border-primary"===this.variant?"container--outline-primary":"","border-white"===this.variant?"container--outline-white":"","container--stylized bg-transparent py-10 relative z-10 border-0;")}">${this.renderTopBrandshape()} ${this.renderMiddleBrandshape()} ${this.renderBottomBrandshape()}</div>`}renderSkewedImage(){return t`<div class="container--stylized bg-transparent py-10 relative z-10 border-0;"><div class="image-wrapper"><slot name="image"></slot></div>${this.renderTopBrandshape()} ${this.renderMiddleBrandshape()} ${this.renderBottomBrandshape()}</div>`}renderShapes(){return t`${this.shapes.includes("top")?this.renderTopBrandshape():""} ${this.shapes.includes("middle")?this.renderMiddleBrandshape():""} ${this.shapes.includes("bottom")?this.renderBottomBrandshape():""}`}render(){const e=this.variant.startsWith("border-"),i="image"===this.variant;return t`<div class="${r({"neutral-100":"fill-neutral-100",primary:"fill-primary",white:"fill-white","border-white":"fill-transparent","border-primary":"fill-transparent",image:"fill-transparent"}[this.variant])}" part="base">${e?this.renderSkewedBorder():""} ${i?this.renderSkewedImage():""} ${e||i?"":this.renderShapes()}<slot></slot></div>`}};c.styles=[i,e.styles,a`:host{display:block}.container--outline-primary::before{--internal-border-color:rgb(var(--sd-color-primary, 0 53 142));--internal-border-width:2px}.container--outline-white::before{--internal-border-color:var(--sd-color-white, white);--internal-border-width:2px}.container--stylized::before{position:absolute;inset:var(--sd-spacing-0,0);top:var(--sd-spacing-0,0);bottom:var(--sd-spacing-0,0);right:var(--sd-spacing-0,0);left:var(--sd-spacing-0,0);z-index:-1;border-style:solid;content:'';color:var(--internal-color,#000);border-color:var(--internal-border-color,#000);border-width:var(--internal-border-width,0);border-radius:0 60px;margin-bottom:calc(21.256% / 2);margin-top:calc(21.256% / 2);transform:skewY(-11deg)}.image-wrapper{position:absolute;top:var(--sd-spacing-0,0);left:var(--sd-spacing-0,0);z-index:10;width:100%;overflow:hidden;height:-webkit-fill-available;margin-bottom:calc(21.256% / 2);margin-top:calc(21.256% / 2);border-radius:0 60px;transform:skewY(-11deg)}slot[name=image]::slotted(img){height:100%;width:100%;transform-origin:top left;-o-object-fit:cover;object-fit:cover;transform:skewY(11deg)}@media (min-width:414px){.container--stylized::before,.image-wrapper{border-radius:0 72px}}@media (min-width:640px){.container--stylized::before,.image-wrapper{border-radius:0 84px}}`],h([s("[part=base]")],c.prototype,"containerElem",2),h([o({type:String})],c.prototype,"variant",2),h([o({type:Array})],c.prototype,"shapes",2),h([p()],c.prototype,"componentBreakpoint",2),c=h([n("sd-brandshape")],c);export{c as default};