@aurodesignsystem-dev/auro-card 0.0.0-pr136.1 → 0.0.0-pr139.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.
@@ -116,7 +116,7 @@ import{css as e,LitElement as t,html as r}from"lit";import{classMap as o}from"li
116
116
  `}getMarkup(){return"cta"===this.type?this.renderLayoutCTA():this.renderLayoutDefault()}}class ce{generateElementName(e,t){let r=e;return r+="-",r+=t.replace(/[.]/g,"_"),r}generateTag(e,t,r){const o=this.generateElementName(e,t),a=s`${n(o)}`;return customElements.get(o)||customElements.define(o,class extends r{}),a}}class de{registerComponent(e,t){customElements.get(e)||customElements.define(e,class extends t{})}closestElement(e,t=this,r=(t,o=t&&t.closest(e))=>t&&t!==document&&t!==window?o||r(t.getRootNode().host):null){return r(t)}handleComponentTagRename(e,t){const r=t.toLowerCase();e.tagName.toLowerCase()!==r&&e.setAttribute(r,!0)}elementMatch(e,t){const r=t.toLowerCase();return e.tagName.toLowerCase()===r||e.hasAttribute(r)}getSlotText(e,t){const r=e.shadowRoot?.querySelector(`slot[name="${t}"]`);return(r?.assignedNodes({flatten:!0})||[]).map(e=>e.textContent?.trim()).join(" ").trim()||null}}var he=e`:host{background-color:var(--ds-auro-card-background-color)}:host([border]){--ds-auro-card-border-color: var(--ds-basic-color-border-subtle, #dddddd);border-color:var(--ds-auro-card-border-color)}:host([border]),:host([href]){--ds-auro-card-background-color: var(--ds-basic-color-surface-default, #ffffff)}:host([href]) [auro-hyperlink]{--ds-auro-hyperlink-focus-outline-color-default: transparent;--ds-auro-hyperlink-hover-outline-color-default: transparent;outline-color:var(--ds-auro-card-border-color)}:host([href]) [auro-hyperlink]:hover,:host([href]) [auro-hyperlink]:focus{--ds-auro-card-border-color: var(--ds-advanced-color-state-focused, #01426a)}
117
117
  `,ue=e`:focus:not(:focus-visible){outline:3px solid transparent}:host{display:inline-flex;flex-direction:column}:host ::slotted(img){display:block;object-fit:cover;width:100%}:host::part(imageWrapper){display:flex;justify-content:center;align-items:center}:host .imageWrapper{display:flex;justify-content:center;align-items:center}:host .content{padding:var(--ds-size-200, 1rem) 0;padding-top:0}:host([center]){text-align:center}:host([variant=inset-content])::part(content),:host([href])::part(content){padding:var(--ds-size-200, 1rem);padding-top:0;overflow:hidden;text-wrap:wrap}:host([variant=inset-container]){padding:var(--ds-size-400, 2rem) var(--ds-size-200, 1rem)}:host([variant=inset-stretch])::part(imageWrapper){margin-top:var(--ds-size-400, 2rem)}:host([variant=inset-stretch])::part(content){margin-bottom:var(--ds-size-400, 2rem);padding-bottom:0}:host([border]){border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, .375rem);overflow:hidden}:host([href]) [auro-hyperlink]{border-radius:var(--ds-border-radius, .375rem);overflow:hidden;box-shadow:var(--ds-elevation-100, 0px 0px 5px rgba(0, 0, 0, .15));position:relative;outline-width:1px;outline-style:solid}:host([href]) [auro-hyperlink]::part(link){text-decoration:none;color:inherit}:host([href]) [auro-hyperlink]::part(targetIcon){position:absolute;top:unset;bottom:var(--ds-size-50, .25rem);right:var(--ds-size-50, .25rem)}:host([href]) [auro-hyperlink]:focus{border-radius:var(--ds-border-radius, .375rem);color:inherit}:host([href]) [auro-hyperlink]:hover{outline-offset:-1px;box-shadow:var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, .15));color:inherit}
118
118
  `,pe=e`:host{--ds-auro-card-border-color: transparent;--ds-auro-card-background-color: transparent;--ds-auro-card-texticon-color: inherit}
119
- `;class ve extends t{constructor(){super(),this.runtimeUtils=new de;const e=new ce;this.hyperlinkTag=e.generateTag("auro-hyperlink","7.1.0",le)}static get styles(){return[ue,pe,he]}static get properties(){return{variant:{type:String,reflect:!0},href:{type:String,reflect:!0},rel:{type:String,reflect:!0},relative:{type:Boolean,reflect:!0},role:{type:String,reflect:!0},target:{type:String,reflect:!0}}}static register(e="auro-card"){de.prototype.registerComponent(e,ve)}firstUpdated(){this.runtimeUtils.handleComponentTagRename(this,"auro-card"),this.setRole()}setRole(){this.href?this.role=this.role||void 0:this.role="article"}render(){const e=i`
119
+ `;class ve extends t{constructor(){super(),this._initializeDefaults()}_initializeDefaults(){this.runtimeUtils=new de;const e=new ce;this.hyperlinkTag=e.generateTag("auro-hyperlink","7.1.0",le)}static get styles(){return[ue,pe,he]}static get properties(){return{border:{type:Boolean,reflect:!0},center:{type:Boolean,reflect:!0},href:{type:String,reflect:!0},rel:{type:String,reflect:!0},relative:{type:Boolean,reflect:!0},role:{type:String,reflect:!0},target:{type:String,reflect:!0},variant:{type:String,reflect:!0}}}static register(e="auro-card"){de.prototype.registerComponent(e,ve)}firstUpdated(){this.runtimeUtils.handleComponentTagRename(this,"auro-card"),this.setRole()}setRole(){this.href?this.role=this.role||void 0:this.role="article"}render(){const e=i`
120
120
  <div class="imageWrapper" part="imageWrapper">
121
121
  <slot name="image" part="image"></slot>
122
122
  </div>