@illinois-toolkit/ilw-hero 0.9.1 → 1.0.0-alpha1

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.
@@ -0,0 +1,168 @@
1
+ "use strict";/**
2
+ * @license
3
+ * Copyright 2019 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */const k=globalThis,B=k.ShadowRoot&&(k.ShadyCSS===void 0||k.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,D=Symbol(),I=new WeakMap;let Y=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==D)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(B&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=I.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&I.set(e,t))}return t}toString(){return this.cssText}};const ot=n=>new Y(typeof n=="string"?n:n+"",void 0,D),ht=(n,...t)=>{const e=n.length===1?n[0]:t.reduce((i,s,o)=>i+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+n[o+1],n[0]);return new Y(e,n,D)},at=(n,t)=>{if(B)n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),s=k.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,n.appendChild(i)}},W=B?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return ot(e)})(n):n;/**
6
+ * @license
7
+ * Copyright 2017 Google LLC
8
+ * SPDX-License-Identifier: BSD-3-Clause
9
+ */const{is:lt,defineProperty:ct,getOwnPropertyDescriptor:dt,getOwnPropertyNames:pt,getOwnPropertySymbols:ut,getPrototypeOf:$t}=Object,_=globalThis,V=_.trustedTypes,gt=V?V.emptyScript:"",R=_.reactiveElementPolyfillSupport,x=(n,t)=>n,j={toAttribute(n,t){switch(t){case Boolean:n=n?gt:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},tt=(n,t)=>!lt(n,t),q={attribute:!0,type:String,converter:j,reflect:!1,hasChanged:tt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),_.litPropertyMetadata??(_.litPropertyMetadata=new WeakMap);class y extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=q){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);s!==void 0&&ct(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){const{get:s,set:o}=dt(this.prototype,t)??{get(){return this[e]},set(r){this[e]=r}};return{get(){return s==null?void 0:s.call(this)},set(r){const l=s==null?void 0:s.call(this);o.call(this,r),this.requestUpdate(t,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??q}static _$Ei(){if(this.hasOwnProperty(x("elementProperties")))return;const t=$t(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(x("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(x("properties"))){const e=this.properties,i=[...pt(e),...ut(e)];for(const s of i)this.createProperty(s,e[s])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,s]of e)this.elementProperties.set(i,s)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const s=this._$Eu(e,i);s!==void 0&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(W(s))}else t!==void 0&&e.push(W(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return at(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EC(t,e){var o;const i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(s!==void 0&&i.reflect===!0){const r=(((o=i.converter)==null?void 0:o.toAttribute)!==void 0?i.converter:j).toAttribute(e,i.type);this._$Em=t,r==null?this.removeAttribute(s):this.setAttribute(s,r),this._$Em=null}}_$AK(t,e){var o;const i=this.constructor,s=i._$Eh.get(t);if(s!==void 0&&this._$Em!==s){const r=i.getPropertyOptions(s),l=typeof r.converter=="function"?{fromAttribute:r.converter}:((o=r.converter)==null?void 0:o.fromAttribute)!==void 0?r.converter:j;this._$Em=s,this[s]=l.fromAttribute(e,r.type),this._$Em=null}}requestUpdate(t,e,i){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??tt)(this[t],e))return;this.P(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,r]of this._$Ep)this[o]=r;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[o,r]of s)r.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],r)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(s=>{var o;return(o=s.hostUpdate)==null?void 0:o.call(s)}),this.update(e)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostUpdated)==null?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}}y.elementStyles=[],y.shadowRootOptions={mode:"open"},y[x("elementProperties")]=new Map,y[x("finalized")]=new Map,R==null||R({ReactiveElement:y}),(_.reactiveElementVersions??(_.reactiveElementVersions=[])).push("2.0.4");/**
10
+ * @license
11
+ * Copyright 2017 Google LLC
12
+ * SPDX-License-Identifier: BSD-3-Clause
13
+ */const E=globalThis,N=E.trustedTypes,J=N?N.createPolicy("lit-html",{createHTML:n=>n}):void 0,et="$lit$",g=`lit$${Math.random().toFixed(9).slice(2)}$`,it="?"+g,_t=`<${it}>`,A=document,C=()=>A.createComment(""),P=n=>n===null||typeof n!="object"&&typeof n!="function",st=Array.isArray,ft=n=>st(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",M=`[
14
+ \f\r]`,S=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,K=/-->/g,F=/>/g,f=RegExp(`>|${M}(?:([^\\s"'>=/]+)(${M}*=${M}*(?:[^
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Z=/'/g,G=/"/g,nt=/^(?:script|style|textarea|title)$/i,mt=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),At=mt(1),v=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Q=new WeakMap,m=A.createTreeWalker(A,129);function rt(n,t){if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return J!==void 0?J.createHTML(t):t}const yt=(n,t)=>{const e=n.length-1,i=[];let s,o=t===2?"<svg>":"",r=S;for(let l=0;l<e;l++){const h=n[l];let c,p,a=-1,u=0;for(;u<h.length&&(r.lastIndex=u,p=r.exec(h),p!==null);)u=r.lastIndex,r===S?p[1]==="!--"?r=K:p[1]!==void 0?r=F:p[2]!==void 0?(nt.test(p[2])&&(s=RegExp("</"+p[2],"g")),r=f):p[3]!==void 0&&(r=f):r===f?p[0]===">"?(r=s??S,a=-1):p[1]===void 0?a=-2:(a=r.lastIndex-p[2].length,c=p[1],r=p[3]===void 0?f:p[3]==='"'?G:Z):r===G||r===Z?r=f:r===K||r===F?r=S:(r=f,s=void 0);const $=r===f&&n[l+1].startsWith("/>")?" ":"";o+=r===S?h+_t:a>=0?(i.push(c),h.slice(0,a)+et+h.slice(a)+g+$):h+g+(a===-2?l:$)}return[rt(n,o+(n[e]||"<?>")+(t===2?"</svg>":"")),i]};class U{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const l=t.length-1,h=this.parts,[c,p]=yt(t,e);if(this.el=U.createElement(c,i),m.currentNode=this.el.content,e===2){const a=this.el.content.firstChild;a.replaceWith(...a.childNodes)}for(;(s=m.nextNode())!==null&&h.length<l;){if(s.nodeType===1){if(s.hasAttributes())for(const a of s.getAttributeNames())if(a.endsWith(et)){const u=p[r++],$=s.getAttribute(a).split(g),T=/([.?@])?(.*)/.exec(u);h.push({type:1,index:o,name:T[2],strings:$,ctor:T[1]==="."?bt:T[1]==="?"?St:T[1]==="@"?xt:O}),s.removeAttribute(a)}else a.startsWith(g)&&(h.push({type:6,index:o}),s.removeAttribute(a));if(nt.test(s.tagName)){const a=s.textContent.split(g),u=a.length-1;if(u>0){s.textContent=N?N.emptyScript:"";for(let $=0;$<u;$++)s.append(a[$],C()),m.nextNode(),h.push({type:2,index:++o});s.append(a[u],C())}}}else if(s.nodeType===8)if(s.data===it)h.push({type:2,index:o});else{let a=-1;for(;(a=s.data.indexOf(g,a+1))!==-1;)h.push({type:7,index:o}),a+=g.length-1}o++}}static createElement(t,e){const i=A.createElement("template");return i.innerHTML=t,i}}function b(n,t,e=n,i){var r,l;if(t===v)return t;let s=i!==void 0?(r=e._$Co)==null?void 0:r[i]:e._$Cl;const o=P(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==o&&((l=s==null?void 0:s._$AO)==null||l.call(s,!1),o===void 0?s=void 0:(s=new o(n),s._$AT(n,e,i)),i!==void 0?(e._$Co??(e._$Co=[]))[i]=s:e._$Cl=s),s!==void 0&&(t=b(n,s._$AS(n,t.values),s,i)),t}class vt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,s=((t==null?void 0:t.creationScope)??A).importNode(e,!0);m.currentNode=s;let o=m.nextNode(),r=0,l=0,h=i[0];for(;h!==void 0;){if(r===h.index){let c;h.type===2?c=new H(o,o.nextSibling,this,t):h.type===1?c=new h.ctor(o,h.name,h.strings,this,t):h.type===6&&(c=new Et(o,this,t)),this._$AV.push(c),h=i[++l]}r!==(h==null?void 0:h.index)&&(o=m.nextNode(),r++)}return m.currentNode=A,s}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class H{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,i,s){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=(s==null?void 0:s.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=b(this,t,e),P(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==v&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ft(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==d&&P(this._$AH)?this._$AA.nextSibling.data=t:this.T(A.createTextNode(t)),this._$AH=t}$(t){var o;const{values:e,_$litType$:i}=t,s=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=U.createElement(rt(i.h,i.h[0]),this.options)),i);if(((o=this._$AH)==null?void 0:o._$AD)===s)this._$AH.p(e);else{const r=new vt(s,this),l=r.u(this.options);r.p(e),this.T(l),this._$AH=r}}_$AC(t){let e=Q.get(t.strings);return e===void 0&&Q.set(t.strings,e=new U(t)),e}k(t){st(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new H(this.S(C()),this.S(C()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class O{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,o){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=d}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(o===void 0)t=b(this,t,e,0),r=!P(t)||t!==this._$AH&&t!==v,r&&(this._$AH=t);else{const l=t;let h,c;for(t=o[0],h=0;h<o.length-1;h++)c=b(this,l[i+h],e,h),c===v&&(c=this._$AH[h]),r||(r=!P(c)||c!==this._$AH[h]),c===d?t=d:t!==d&&(t+=(c??"")+o[h+1]),this._$AH[h]=c}r&&!s&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class bt extends O{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}}class St extends O{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}}class xt extends O{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){if((t=b(this,t,e,0)??d)===v)return;const i=this._$AH,s=t===d&&i!==d||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==d&&(i===d||s);s&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class Et{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){b(this,t)}}const z=E.litHtmlPolyfillSupport;z==null||z(U,H),(E.litHtmlVersions??(E.litHtmlVersions=[])).push("3.1.3");const wt=(n,t,e)=>{const i=(e==null?void 0:e.renderBefore)??t;let s=i._$litPart$;if(s===void 0){const o=(e==null?void 0:e.renderBefore)??null;i._$litPart$=s=new H(t.insertBefore(C(),o),o,void 0,e??{})}return s._$AI(n),s};/**
16
+ * @license
17
+ * Copyright 2017 Google LLC
18
+ * SPDX-License-Identifier: BSD-3-Clause
19
+ */class w extends y{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=wt(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return v}}var X;w._$litElement$=!0,w.finalized=!0,(X=globalThis.litElementHydrateSupport)==null||X.call(globalThis,{LitElement:w});const L=globalThis.litElementPolyfillSupport;L==null||L({LitElement:w});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.5");const Ct=ht`
20
+
21
+ .hero {
22
+ position: relative;
23
+ }
24
+
25
+ .hero.fixed {
26
+ left:50%;
27
+ margin-left:-50vw;
28
+ margin-right:-50vw;
29
+ padding-left:0;
30
+ padding-right:0;
31
+ position:relative;
32
+ right:50%;
33
+ width:100vw;
34
+ }
35
+
36
+ .background {
37
+ position: relative;
38
+ width: 100%;
39
+ height: var(--ilw-hero--height, 223px);
40
+ background-color: var(--ilw-hero--background);
41
+ }
42
+
43
+ .background.collapse {
44
+ display: none;
45
+ }
46
+
47
+ img {
48
+ display: block;
49
+ position: relative;
50
+ object-fit: cover;
51
+ object-position: center;
52
+ }
53
+
54
+ .content-outer {
55
+ background: var(--ilw-hero--background);
56
+ position: relative;
57
+ z-index: 100;
58
+ padding: 0 20px;
59
+ }
60
+
61
+ .content-inner {
62
+ padding: 18px 0 36px 0;
63
+ }
64
+
65
+ @media (min-width: 576px) {
66
+ .content-inner {
67
+ padding: 36px 0px 72px;
68
+ }
69
+ }
70
+
71
+ @media (min-width: 767px) {
72
+ .background {
73
+ position: absolute;
74
+ width: 100%;
75
+ top: 0;
76
+ left: 0;
77
+ z-index: 1;
78
+ }
79
+ .background img {
80
+ position: absolute;
81
+ width: 100%;
82
+ height: 100%;
83
+ top: 0;
84
+ left: 0;
85
+ z-index: 101;
86
+ }
87
+ .background.collapse {
88
+ display: block;
89
+ }
90
+
91
+
92
+ .content-outer {
93
+ background: transparent;
94
+ height: var(--ilw-hero--height, 223px);
95
+ display: flex;
96
+ }
97
+
98
+ .content-inner {
99
+ width: 60%;
100
+ margin: auto;
101
+ display: flex;
102
+ flex-direction: column;
103
+ text-align: center;
104
+ align-items: center;
105
+ max-width: 1200px;
106
+ }
107
+
108
+ .content-inner.left {
109
+ text-align: left;
110
+ align-items: flex-start;
111
+ margin-left: 100px;
112
+ }
113
+
114
+ .content-inner.right {
115
+ text-align: right;
116
+ align-items: flex-end;
117
+ margin-right: 100px;
118
+ }
119
+
120
+ .content-inner.top {
121
+ margin-top: 0;
122
+ }
123
+
124
+ .content-inner.bottom {
125
+ margin-bottom: 0;
126
+ }
127
+ .content-inner.top-left {
128
+ text-align: left;
129
+ align-items: flex-start;
130
+ margin: 0 auto auto 100px;
131
+ }
132
+
133
+ .content-inner.top-right {
134
+ text-align: left;
135
+ align-items: flex-start;
136
+ margin: 0 100px auto auto;
137
+ }
138
+
139
+ .content-inner.bottom-left {
140
+ text-align: right;
141
+ align-items: flex-end;
142
+ margin: auto auto 0 100px;
143
+ }
144
+
145
+ .content-inner.bottom-right {
146
+ text-align: right;
147
+ align-items: flex-end;
148
+ margin: auto 100px 0 auto;
149
+ }
150
+ }
151
+
152
+ @media (min-width: 992px) {
153
+ .content-inner {
154
+ width: var(--ilw-hero--text-width);
155
+ }
156
+ }
157
+ `;class Pt extends w{static get properties(){return{theme:{type:String,attribute:!0},focus:{type:String,attribute:!0},shadow:{type:Boolean,attribute:!0},collapse:{type:Boolean,attribute:!0},align:{type:String,attribute:!0},width:{type:String,attribute:!0}}}static get styles(){return Ct}constructor(){super(),this.align="",this.focus="",this.shadow=!1,this.collapse=!1,this.theme="",this.width=""}get outerWidth(){return this.width=="full"||this.width=="auto"?"fixed":""}render(){return At`
158
+ <div class="hero ${this.outerWidth}">
159
+ <div role="presentation" class="background ${this.collapse?"collapse":""}">
160
+ <slot name="background"></slot>
161
+ </div>
162
+ <div class="content-outer">
163
+ <div class="content-inner ${this.align.replace("-"," ")}">
164
+ <slot></slot>
165
+ </div>
166
+ </div>
167
+ </div>
168
+ `}}customElements.define("ilw-hero",Pt);
@@ -0,0 +1 @@
1
+ :root{--ilw-hero--height: 223px;--ilw-hero--font: 700 2.25rem/2.25rem var(--il-font-sans);--ilw-hero--background: var(--il-blue);--ilw-hero--text-color: white;--ilw-hero--text-width: 40%;--ilw-hero--shadow-color: rgba(0, 0, 0, 1)}ilw-hero{display:block}ilw-hero img,ilw-hero *[slot=background]{display:block;position:relative;width:100%;height:100%;object-fit:cover;object-position:center}ilw-hero h1,ilw-hero h2,ilw-hero h3{all:initial;font:var(--ilw-hero--font);color:var(--ilw-hero--text-color);text-shadow:2px 2px 2px var(--ilw-hero--shadow-color);text-align:inherit}ilw-hero[theme=orange]{--ilw-hero--background: var(--il-orange);--ilw-hero--button-background-color: var(--il-blue);--ilw-hero--focused-button-foreground-color: var(--il-blue)}ilw-hero[theme=white]{--ilw-hero--background: white;--ilw-hero--button-background-color: white;--ilw-hero--button-foreground-color: var(--il-blue);--ilw-hero--button-border-color: var(--il-blue);--ilw-hero--focused-button-background-color: var(--il-blue);--ilw-hero--focused-button-foreground-color: white;--ilw-hero--focused-button-border-color: var(--il-blue);--ilw-hero--text-color: #252525;--ilw-hero--shadow-color: rgba(255, 255, 255, 1)}ilw-hero[focus=top] img{object-position:top}ilw-hero[focus=bottom] img{object-position:bottom}ilw-hero[focus=left] img{object-position:left}ilw-hero[focus=right] img{object-position:right}ilw-hero[width=fixed]{container-type:inline-size}@media (min-width: 576px){:root{--ilw-hero--height: 315px;--ilw-hero--font: 700 3rem/3rem var(--il-font-sans)}}@media (min-width: 767px){:root{--ilw-hero--height: 557px;--ilw-hero--font: 700 4rem/4rem var(--il-font-sans)}ilw-hero[shadow] h1,ilw-hero[shadow] h2,ilw-hero[shadow] h3{background:radial-gradient(#000000e6,#0000001a);padding:1rem!important}ilw-hero[theme=white][shadow] h1,ilw-hero[theme=white][shadow] h2,ilw-hero[theme=white][shadow] h3{background:radial-gradient(#ffffffe6,#ffffff1a)}}@media (min-width: 992px){:root{--ilw-hero--font: 700 4.5rem/4.5rem var(--il-font-sans)}}