@illinois-toolkit/ilw-quote 1.0.0 → 1.2.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.
package/src/ilw-quote.css CHANGED
@@ -1,28 +1,57 @@
1
- :root {
2
- --ilw-quote--background: white;
3
- --ilw-quote--color: var(--il-blue);
4
- --ilw-quote--author-color: var(--il-orange);
5
- --ilw-quote--source-color: var(--il-blue);
6
- --ilw-quote--mark-color: var(--il-orange);
7
- --ilw-quote--font: italic 400 2.25rem/3.1875rem var(--il-font-serif);
8
- --ilw-quote--author-font: 700 1.813em/1.207em var(--il-font-sans);
9
- --ilw-quote--source-font: 300 1.438em/1.25em var(--il-font-sans);
10
- --ilw-quote--mark-font: 700 3.472em/0 var(--il-font-serif);
11
- --ilw-quote--mark-top: 55px;
12
- --ilw-quote--mark-left: -90px;
13
- --ilw-quote--mark-content-before: "“";
14
- --ilw-quote--mark-content-after: "”";
15
- --ilw-quote--max-width: 620px;
16
- }
17
1
 
18
- @media only screen and (max-width: 792px) {
2
+ @layer base {
19
3
  :root {
20
- --ilw-quote--font: italic 400 1.813rem/2.375rem var(--il-font-serif);
21
- --ilw-quote--author-font: 700 1.5em/1.207em var(--il-font-sans);
22
- --ilw-quote--source-font: 300 1.25rem/1.625rem var(--il-font-sans);
23
- --ilw-quote--mark-font: 700 3.472em/0 var(--il-font-serif);
24
- --ilw-quote--mark-top: 45px;
25
- --ilw-quote--mark-left: -50px;
4
+ --ilw-quote--margin: 1rem 0;
5
+ --ilw-quote--padding: 0 0 1em 0;
6
+ --ilw-quote--base-font-size: 0.875rem;
7
+ --ilw-quote--font: var(--il-font-sans);
8
+ --ilw-quote--font-serif: var(--il-font-serif);
9
+ --ilw-quote--font-weight: 600;
10
+ --ilw-quote--font-size: 1.625em;
11
+ --ilw-quote--line-height: 1.35;
12
+ --ilw-quote--author-font-weight: 700;
13
+ --ilw-quote--author-font-size: 1.625em;
14
+ --ilw-quote--author-line-height: 1.1;
15
+ --ilw-quote--source-font-weight: 400;
16
+ --ilw-quote--source-font-size: 1.428em;
17
+ --ilw-quote--source-line-height: 1.35;
18
+ --ilw-quote--mark-font: 9.5em/0 var(--il-font-serif);
19
+ --ilw-quote--mark-height: 0.40em;
20
+ --ilw-quote--mark-top: -10px;
21
+ --ilw-quote--mark-content-before: "“";
22
+ --ilw-quote--mark-content-after: "”";
23
+ --ilw-quote--max-width: 620px;
24
+ --ilw-quote--border: 6px solid var(--ilw-color--control-accent);
25
+ }
26
+
27
+ ilw-quote {
28
+ font-family: var(--ilw-quote--font);
29
+ font-size: var(--ilw-quote--base-font-size);
30
+ text-align: center;
31
+ margin: var(--ilw-quote--margin);
32
+ padding: var(--ilw-quote--padding);
33
+
34
+ &[align=left] {
35
+ text-align: left;
36
+ border-left: var(--ilw-quote--border);
37
+ --ilw-quote--max-width: none;
38
+ padding-left: 3.125em;
39
+ }
40
+
41
+ &[align=right] {
42
+ text-align: right;
43
+ border-right: var(--ilw-quote--border);
44
+ --ilw-quote--max-width: none;
45
+ padding-right: 3.125em;
46
+ }
47
+
48
+ &[size=medium] {
49
+ --ilw-quote--base-font-size: 1rem;
50
+ }
51
+
52
+ &[size=large] {
53
+ --ilw-quote--base-font-size: 1.154rem;
54
+ }
26
55
  }
27
56
  }
28
57
 
@@ -32,35 +61,31 @@
32
61
  }
33
62
 
34
63
  ilw-quote *[slot=content] {
35
- font: var(--ilw-quote--font);
64
+ font-weight: var(--ilw-quote--font-weight);
65
+ font-size: var(--ilw-quote--font-size);
66
+ line-height: var(--ilw-quote--line-height);
67
+ }
68
+
69
+ ilw-quote[font=serif] *[slot=content] {
70
+ font-family: var(--ilw-quote--font-serif);
71
+ --ilw-quote--font-weight: 400;
36
72
  }
37
73
 
38
74
  ilw-quote *[slot=author] {
39
- margin-top: 1.625rem;
40
- text-align: center;
41
- color: var(--ilw-quote--author-color);
42
- font: var(--ilw-quote--author-font);
75
+ margin-top: 1.8em;
76
+ margin-bottom: 0.5em;
77
+ color: var(--ilw-color--control-accent);
78
+ font-weight: var(--ilw-quote--author-font-weight);
79
+ font-size: var(--ilw-quote--author-font-size);
80
+ line-height: var(--ilw-quote--author-line-height);
43
81
  }
44
82
 
45
83
  ilw-quote *[slot=source] {
46
- margin-top: 1.275rem;
47
- text-align: center;
48
- color: var(--ilw-quote--source-color);
49
- font: var(--ilw-quote--source-font);
84
+ margin: 0;
85
+ color: var(--ilw-color--heading);
86
+ font-style: inherit;
87
+ font-weight: var(--ilw-quote--source-font-weight);
88
+ font-size: var(--ilw-quote--source-font-size);
89
+ line-height: var(--ilw-quote--source-line-height);
50
90
  display: block;
51
91
  }
52
- ilw-quote {
53
- &[theme="blue"] {
54
- --ilw-quote--background: var(--il-blue);
55
- --ilw-quote--color: white;
56
- --ilw-quote--author-color: var(--il-orange);
57
- --ilw-quote--source-color: white;
58
- --ilw-quote--mark-color: var(--il-orange);
59
- }
60
-
61
- &[theme="gray"] {
62
- --ilw-quote--background: var(--il-storm-lighter-4);
63
- --ilw-quote--author-color: var(--il-altgeld);
64
- --ilw-quote--mark-color: var(--il-altgeld);
65
- }
66
- }
@@ -0,0 +1,26 @@
1
+ :host {
2
+ display: block;
3
+ background: var(--ilw-color--background);
4
+ }
5
+
6
+ #quote {
7
+ margin: 0 auto;
8
+ max-width: var(--ilw-quote--max-width);
9
+ }
10
+
11
+ #content {
12
+ color: var(--ilw-color--heading);
13
+ position: relative;
14
+ }
15
+
16
+ #content::before {
17
+ content: var(--ilw-quote--mark-content-before);
18
+ position: relative;
19
+ font-style: normal;
20
+ color: var(--ilw-color--control-accent);
21
+ font: var(--ilw-quote--mark-font);
22
+ line-height: 1;
23
+ height: var(--ilw-quote--mark-height);
24
+ top: var(--ilw-quote--mark-top);
25
+ display: block;
26
+ }
@@ -0,0 +1,43 @@
1
+ import {LitElement, html, unsafeCSS} from 'lit';
2
+ import { customElement, property } from "lit/decorators.js";
3
+ // @ts-ignore
4
+ import styles from "./ilw-quote.styles.css?inline";
5
+ import './ilw-quote.css';
6
+
7
+ @customElement("ilw-quote")
8
+ export default class Quote extends LitElement {
9
+ @property()
10
+ theme: string = '';
11
+
12
+ @property()
13
+ align: "left" | "right" | "center" = "center";
14
+
15
+ @property()
16
+ size: "small" | "medium" | "large" = "small";
17
+
18
+ @property()
19
+ font: "sans" | "serif" = "serif";
20
+
21
+ static get styles() {
22
+ return unsafeCSS(styles);
23
+ }
24
+
25
+ constructor() {
26
+ super();
27
+ }
28
+
29
+ render() {
30
+ return html`
31
+ <blockquote id="quote">
32
+ <div id="content"><slot name="content"></slot></div>
33
+ <div id="source"><slot name="author"></slot><slot name="source"></slot></div>
34
+ </blockquote>
35
+ `;
36
+ }
37
+ }
38
+
39
+ declare global {
40
+ interface HTMLElementTagNameMap {
41
+ "ilw-quote": Quote;
42
+ }
43
+ }
@@ -1,62 +0,0 @@
1
- "use strict";/**
2
- * @license
3
- * Copyright 2019 Google LLC
4
- * SPDX-License-Identifier: BSD-3-Clause
5
- */const k=globalThis,j=k.ShadowRoot&&(k.ShadyCSS===void 0||k.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,I=Symbol(),D=new WeakMap;let tt=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==I)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(j&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=D.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&D.set(e,t))}return t}toString(){return this.cssText}};const nt=o=>new tt(typeof o=="string"?o:o+"",void 0,I),ht=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((s,i,n)=>s+(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.")})(i)+o[n+1],o[0]);return new tt(e,o,I)},lt=(o,t)=>{if(j)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),i=k.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,o.appendChild(s)}},V=j?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return nt(e)})(o):o;/**
6
- * @license
7
- * Copyright 2017 Google LLC
8
- * SPDX-License-Identifier: BSD-3-Clause
9
- */const{is:at,defineProperty:ct,getOwnPropertyDescriptor:dt,getOwnPropertyNames:pt,getOwnPropertySymbols:ut,getPrototypeOf:$t}=Object,f=globalThis,W=f.trustedTypes,_t=W?W.emptyScript:"",R=f.reactiveElementPolyfillSupport,S=(o,t)=>o,L={toAttribute(o,t){switch(t){case Boolean:o=o?_t:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},et=(o,t)=>!at(o,t),K={attribute:!0,type:String,converter:L,reflect:!1,hasChanged:et};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),f.litPropertyMetadata??(f.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=K){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&ct(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:n}=dt(this.prototype,t)??{get(){return this[e]},set(r){this[e]=r}};return{get(){return i==null?void 0:i.call(this)},set(r){const a=i==null?void 0:i.call(this);n.call(this,r),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??K}static _$Ei(){if(this.hasOwnProperty(S("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(S("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(S("properties"))){const e=this.properties,s=[...pt(e),...ut(e)];for(const i of s)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,i]of e)this.elementProperties.set(s,i)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const i of s)e.unshift(V(i))}else t!==void 0&&e.push(V(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s: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 s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return lt(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 s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EC(t,e){var n;const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){const r=(((n=s.converter)==null?void 0:n.toAttribute)!==void 0?s.converter:L).toAttribute(e,s.type);this._$Em=t,r==null?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){var n;const s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const r=s.getPropertyOptions(i),a=typeof r.converter=="function"?{fromAttribute:r.converter}:((n=r.converter)==null?void 0:n.fromAttribute)!==void 0?r.converter:L;this._$Em=i,this[i]=a.fromAttribute(e,r.type),this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??et)(this[t],e))return;this.P(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.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 s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,r]of this._$Ep)this[n]=r;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[n,r]of i)r.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],r)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(i=>{var n;return(n=i.hostUpdate)==null?void 0:n.call(i)}),this.update(e)):this._$EU()}catch(i){throw t=!1,this._$EU(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(s=>{var i;return(i=s.hostUpdated)==null?void 0:i.call(s)}),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[S("elementProperties")]=new Map,y[S("finalized")]=new Map,R==null||R({ReactiveElement:y}),(f.reactiveElementVersions??(f.reactiveElementVersions=[])).push("2.0.4");/**
10
- * @license
11
- * Copyright 2017 Google LLC
12
- * SPDX-License-Identifier: BSD-3-Clause
13
- */const w=globalThis,H=w.trustedTypes,Z=H?H.createPolicy("lit-html",{createHTML:o=>o}):void 0,st="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,it="?"+_,ft=`<${it}>`,g=document,x=()=>g.createComment(""),C=o=>o===null||typeof o!="object"&&typeof o!="function",B=Array.isArray,mt=o=>B(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",M=`[
14
- \f\r]`,b=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,F=/-->/g,J=/>/g,m=RegExp(`>|${M}(?:([^\\s"'>=/]+)(${M}*=${M}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Q=/'/g,G=/"/g,ot=/^(?:script|style|textarea|title)$/i,At=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),gt=At(1),v=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Y=new WeakMap,A=g.createTreeWalker(g,129);function rt(o,t){if(!B(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Z!==void 0?Z.createHTML(t):t}const yt=(o,t)=>{const e=o.length-1,s=[];let i,n=t===2?"<svg>":t===3?"<math>":"",r=b;for(let a=0;a<e;a++){const h=o[a];let c,p,l=-1,u=0;for(;u<h.length&&(r.lastIndex=u,p=r.exec(h),p!==null);)u=r.lastIndex,r===b?p[1]==="!--"?r=F:p[1]!==void 0?r=J:p[2]!==void 0?(ot.test(p[2])&&(i=RegExp("</"+p[2],"g")),r=m):p[3]!==void 0&&(r=m):r===m?p[0]===">"?(r=i??b,l=-1):p[1]===void 0?l=-2:(l=r.lastIndex-p[2].length,c=p[1],r=p[3]===void 0?m:p[3]==='"'?G:Q):r===G||r===Q?r=m:r===F||r===J?r=b:(r=m,i=void 0);const $=r===m&&o[a+1].startsWith("/>")?" ":"";n+=r===b?h+ft:l>=0?(s.push(c),h.slice(0,l)+st+h.slice(l)+_+$):h+_+(l===-2?a:$)}return[rt(o,n+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};class U{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let n=0,r=0;const a=t.length-1,h=this.parts,[c,p]=yt(t,e);if(this.el=U.createElement(c,s),A.currentNode=this.el.content,e===2||e===3){const l=this.el.content.firstChild;l.replaceWith(...l.childNodes)}for(;(i=A.nextNode())!==null&&h.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(const l of i.getAttributeNames())if(l.endsWith(st)){const u=p[r++],$=i.getAttribute(l).split(_),T=/([.?@])?(.*)/.exec(u);h.push({type:1,index:n,name:T[2],strings:$,ctor:T[1]==="."?Et:T[1]==="?"?bt:T[1]==="@"?St:N}),i.removeAttribute(l)}else l.startsWith(_)&&(h.push({type:6,index:n}),i.removeAttribute(l));if(ot.test(i.tagName)){const l=i.textContent.split(_),u=l.length-1;if(u>0){i.textContent=H?H.emptyScript:"";for(let $=0;$<u;$++)i.append(l[$],x()),A.nextNode(),h.push({type:2,index:++n});i.append(l[u],x())}}}else if(i.nodeType===8)if(i.data===it)h.push({type:2,index:n});else{let l=-1;for(;(l=i.data.indexOf(_,l+1))!==-1;)h.push({type:7,index:n}),l+=_.length-1}n++}}static createElement(t,e){const s=g.createElement("template");return s.innerHTML=t,s}}function E(o,t,e=o,s){var r,a;if(t===v)return t;let i=s!==void 0?(r=e.o)==null?void 0:r[s]:e.l;const n=C(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==n&&((a=i==null?void 0:i._$AO)==null||a.call(i,!1),n===void 0?i=void 0:(i=new n(o),i._$AT(o,e,s)),s!==void 0?(e.o??(e.o=[]))[s]=i:e.l=i),i!==void 0&&(t=E(o,i._$AS(o,t.values),i,s)),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:s}=this._$AD,i=((t==null?void 0:t.creationScope)??g).importNode(e,!0);A.currentNode=i;let n=A.nextNode(),r=0,a=0,h=s[0];for(;h!==void 0;){if(r===h.index){let c;h.type===2?c=new O(n,n.nextSibling,this,t):h.type===1?c=new h.ctor(n,h.name,h.strings,this,t):h.type===6&&(c=new wt(n,this,t)),this._$AV.push(c),h=s[++a]}r!==(h==null?void 0:h.index)&&(n=A.nextNode(),r++)}return A.currentNode=g,i}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class O{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this.v}constructor(t,e,s,i){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this.v=(i==null?void 0:i.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=E(this,t,e),C(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):mt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&C(this._$AH)?this._$AA.nextSibling.data=t:this.T(g.createTextNode(t)),this._$AH=t}$(t){var n;const{values:e,_$litType$:s}=t,i=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=U.createElement(rt(s.h,s.h[0]),this.options)),s);if(((n=this._$AH)==null?void 0:n._$AD)===i)this._$AH.p(e);else{const r=new vt(i,this),a=r.u(this.options);r.p(e),this.T(a),this._$AH=r}}_$AC(t){let e=Y.get(t.strings);return e===void 0&&Y.set(t.strings,e=new U(t)),e}k(t){B(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const n of t)i===e.length?e.push(s=new O(this.O(x()),this.O(x()),this,this.options)):s=e[i],s._$AI(n),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this.v=t,(e=this._$AP)==null||e.call(this,t))}}class N{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,n){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,i){const n=this.strings;let r=!1;if(n===void 0)t=E(this,t,e,0),r=!C(t)||t!==this._$AH&&t!==v,r&&(this._$AH=t);else{const a=t;let h,c;for(t=n[0],h=0;h<n.length-1;h++)c=E(this,a[s+h],e,h),c===v&&(c=this._$AH[h]),r||(r=!C(c)||c!==this._$AH[h]),c===d?t=d:t!==d&&(t+=(c??"")+n[h+1]),this._$AH[h]=c}r&&!i&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Et extends N{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}}class bt extends N{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}}class St extends N{constructor(t,e,s,i,n){super(t,e,s,i,n),this.type=5}_$AI(t,e=this){if((t=E(this,t,e,0)??d)===v)return;const s=this._$AH,i=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==d&&(s===d||i);i&&this.element.removeEventListener(this.name,this,s),n&&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 wt{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){E(this,t)}}const q=w.litHtmlPolyfillSupport;q==null||q(U,O),(w.litHtmlVersions??(w.litHtmlVersions=[])).push("3.2.0");const Pt=(o,t,e)=>{const s=(e==null?void 0:e.renderBefore)??t;let i=s._$litPart$;if(i===void 0){const n=(e==null?void 0:e.renderBefore)??null;s._$litPart$=i=new O(t.insertBefore(x(),n),n,void 0,e??{})}return i._$AI(o),i};/**
16
- * @license
17
- * Copyright 2017 Google LLC
18
- * SPDX-License-Identifier: BSD-3-Clause
19
- */class P extends y{constructor(){super(...arguments),this.renderOptions={host:this},this.o=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.o=Pt(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this.o)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.o)==null||t.setConnected(!1)}render(){return v}}var X;P._$litElement$=!0,P.finalized=!0,(X=globalThis.litElementHydrateSupport)==null||X.call(globalThis,{LitElement:P});const z=globalThis.litElementPolyfillSupport;z==null||z({LitElement:P});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.0");const xt=ht`
20
- :host {
21
- display: block;
22
- background: var(--ilw-quote--background);
23
- }
24
-
25
- #quote {
26
- margin: 0 auto;
27
- max-width: var(--ilw-quote--max-width);
28
- padding: 50px 80px;
29
- }
30
-
31
- #content {
32
- color: var(--ilw-quote--color);
33
- font: var(--ilw-quote--font);
34
- text-align: center;
35
- position: relative;
36
- }
37
-
38
- #content::before {
39
- position: absolute;
40
- content: var(--ilw-quote--mark-content-before);
41
- font-style: normal;
42
- color: var(--ilw-quote--mark-color);
43
- font: var(--ilw-quote--mark-font);
44
- top: var(--ilw-quote--mark-top);
45
- left: var(--ilw-quote--mark-left);
46
- }
47
-
48
- #content::after {
49
- position: absolute;
50
- content: var(--ilw-quote--mark-content-after);
51
- font-style: normal;
52
- bottom: 0px;
53
- color: var(--ilw-quote--mark-color);
54
- font: var(--ilw-quote--mark-font);
55
- right: var(--ilw-quote--mark-left);
56
- }
57
- `;class Ct extends P{static get properties(){return{theme:{type:String,attribute:!0}}}static get styles(){return xt}constructor(){super(),this.theme=""}render(){return gt`
58
- <blockquote id="quote">
59
- <div id="content"><slot name="content"></slot></div>
60
- <div id="source"><slot name="author"></slot><slot name="source"></slot></div>
61
- </blockquote>
62
- `}}customElements.define("ilw-quote",Ct);
@@ -1,62 +0,0 @@
1
- (function(m){typeof define=="function"&&define.amd?define(m):m()})(function(){"use strict";/**
2
- * @license
3
- * Copyright 2019 Google LLC
4
- * SPDX-License-Identifier: BSD-3-Clause
5
- */var nt;const m=globalThis,R=m.ShadowRoot&&(m.ShadyCSS===void 0||m.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,M=Symbol(),D=new WeakMap;let V=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==M)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(R&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=D.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&D.set(e,t))}return t}toString(){return this.cssText}};const rt=o=>new V(typeof o=="string"?o:o+"",void 0,M),ht=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((s,i,r)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+o[r+1],o[0]);return new V(e,o,M)},lt=(o,t)=>{if(R)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),i=m.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,o.appendChild(s)}},W=R?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return rt(e)})(o):o;/**
6
- * @license
7
- * Copyright 2017 Google LLC
8
- * SPDX-License-Identifier: BSD-3-Clause
9
- */const{is:at,defineProperty:ct,getOwnPropertyDescriptor:dt,getOwnPropertyNames:pt,getOwnPropertySymbols:ut,getPrototypeOf:$t}=Object,$=globalThis,K=$.trustedTypes,_t=K?K.emptyScript:"",q=$.reactiveElementPolyfillSupport,S=(o,t)=>o,z={toAttribute(o,t){switch(t){case Boolean:o=o?_t:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},Z=(o,t)=>!at(o,t),F={attribute:!0,type:String,converter:z,reflect:!1,hasChanged:Z};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),$.litPropertyMetadata??($.litPropertyMetadata=new WeakMap);class v 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=F){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&ct(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:r}=dt(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get(){return i==null?void 0:i.call(this)},set(n){const a=i==null?void 0:i.call(this);r.call(this,n),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??F}static _$Ei(){if(this.hasOwnProperty(S("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(S("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(S("properties"))){const e=this.properties,s=[...pt(e),...ut(e)];for(const i of s)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,i]of e)this.elementProperties.set(s,i)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const i of s)e.unshift(W(i))}else t!==void 0&&e.push(W(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s: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 s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return lt(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 s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EC(t,e){var r;const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){const n=(((r=s.converter)==null?void 0:r.toAttribute)!==void 0?s.converter:z).toAttribute(e,s.type);this._$Em=t,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){var r;const s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const n=s.getPropertyOptions(i),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((r=n.converter)==null?void 0:r.fromAttribute)!==void 0?n.converter:z;this._$Em=i,this[i]=a.fromAttribute(e,n.type),this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??Z)(this[t],e))return;this.P(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.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 s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[r,n]of this._$Ep)this[r]=n;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[r,n]of i)n.wrapped!==!0||this._$AL.has(r)||this[r]===void 0||this.P(r,this[r],n)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(i=>{var r;return(r=i.hostUpdate)==null?void 0:r.call(i)}),this.update(e)):this._$EU()}catch(i){throw t=!1,this._$EU(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(s=>{var i;return(i=s.hostUpdated)==null?void 0:i.call(s)}),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){}}v.elementStyles=[],v.shadowRootOptions={mode:"open"},v[S("elementProperties")]=new Map,v[S("finalized")]=new Map,q==null||q({ReactiveElement:v}),($.reactiveElementVersions??($.reactiveElementVersions=[])).push("2.0.4");/**
10
- * @license
11
- * Copyright 2017 Google LLC
12
- * SPDX-License-Identifier: BSD-3-Clause
13
- */const w=globalThis,k=w.trustedTypes,J=k?k.createPolicy("lit-html",{createHTML:o=>o}):void 0,Q="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,G="?"+_,ft=`<${G}>`,A=document,P=()=>A.createComment(""),x=o=>o===null||typeof o!="object"&&typeof o!="function",L=Array.isArray,mt=o=>L(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",j=`[
14
- \f\r]`,C=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Y=/-->/g,X=/>/g,g=RegExp(`>|${j}(?:([^\\s"'>=/]+)(${j}*=${j}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),tt=/'/g,et=/"/g,st=/^(?:script|style|textarea|title)$/i,At=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),gt=At(1),E=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),it=new WeakMap,y=A.createTreeWalker(A,129);function ot(o,t){if(!L(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return J!==void 0?J.createHTML(t):t}const yt=(o,t)=>{const e=o.length-1,s=[];let i,r=t===2?"<svg>":t===3?"<math>":"",n=C;for(let a=0;a<e;a++){const h=o[a];let d,p,l=-1,u=0;for(;u<h.length&&(n.lastIndex=u,p=n.exec(h),p!==null);)u=n.lastIndex,n===C?p[1]==="!--"?n=Y:p[1]!==void 0?n=X:p[2]!==void 0?(st.test(p[2])&&(i=RegExp("</"+p[2],"g")),n=g):p[3]!==void 0&&(n=g):n===g?p[0]===">"?(n=i??C,l=-1):p[1]===void 0?l=-2:(l=n.lastIndex-p[2].length,d=p[1],n=p[3]===void 0?g:p[3]==='"'?et:tt):n===et||n===tt?n=g:n===Y||n===X?n=C:(n=g,i=void 0);const f=n===g&&o[a+1].startsWith("/>")?" ":"";r+=n===C?h+ft:l>=0?(s.push(d),h.slice(0,l)+Q+h.slice(l)+_+f):h+_+(l===-2?a:f)}return[ot(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};class U{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let r=0,n=0;const a=t.length-1,h=this.parts,[d,p]=yt(t,e);if(this.el=U.createElement(d,s),y.currentNode=this.el.content,e===2||e===3){const l=this.el.content.firstChild;l.replaceWith(...l.childNodes)}for(;(i=y.nextNode())!==null&&h.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(const l of i.getAttributeNames())if(l.endsWith(Q)){const u=p[n++],f=i.getAttribute(l).split(_),N=/([.?@])?(.*)/.exec(u);h.push({type:1,index:r,name:N[2],strings:f,ctor:N[1]==="."?Et:N[1]==="?"?bt:N[1]==="@"?St:H}),i.removeAttribute(l)}else l.startsWith(_)&&(h.push({type:6,index:r}),i.removeAttribute(l));if(st.test(i.tagName)){const l=i.textContent.split(_),u=l.length-1;if(u>0){i.textContent=k?k.emptyScript:"";for(let f=0;f<u;f++)i.append(l[f],P()),y.nextNode(),h.push({type:2,index:++r});i.append(l[u],P())}}}else if(i.nodeType===8)if(i.data===G)h.push({type:2,index:r});else{let l=-1;for(;(l=i.data.indexOf(_,l+1))!==-1;)h.push({type:7,index:r}),l+=_.length-1}r++}}static createElement(t,e){const s=A.createElement("template");return s.innerHTML=t,s}}function b(o,t,e=o,s){var n,a;if(t===E)return t;let i=s!==void 0?(n=e.o)==null?void 0:n[s]:e.l;const r=x(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==r&&((a=i==null?void 0:i._$AO)==null||a.call(i,!1),r===void 0?i=void 0:(i=new r(o),i._$AT(o,e,s)),s!==void 0?(e.o??(e.o=[]))[s]=i:e.l=i),i!==void 0&&(t=b(o,i._$AS(o,t.values),i,s)),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:s}=this._$AD,i=((t==null?void 0:t.creationScope)??A).importNode(e,!0);y.currentNode=i;let r=y.nextNode(),n=0,a=0,h=s[0];for(;h!==void 0;){if(n===h.index){let d;h.type===2?d=new O(r,r.nextSibling,this,t):h.type===1?d=new h.ctor(r,h.name,h.strings,this,t):h.type===6&&(d=new wt(r,this,t)),this._$AV.push(d),h=s[++a]}n!==(h==null?void 0:h.index)&&(r=y.nextNode(),n++)}return y.currentNode=A,i}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class O{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this.v}constructor(t,e,s,i){this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this.v=(i==null?void 0:i.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),x(t)?t===c||t==null||t===""?(this._$AH!==c&&this._$AR(),this._$AH=c):t!==this._$AH&&t!==E&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):mt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==c&&x(this._$AH)?this._$AA.nextSibling.data=t:this.T(A.createTextNode(t)),this._$AH=t}$(t){var r;const{values:e,_$litType$:s}=t,i=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=U.createElement(ot(s.h,s.h[0]),this.options)),s);if(((r=this._$AH)==null?void 0:r._$AD)===i)this._$AH.p(e);else{const n=new vt(i,this),a=n.u(this.options);n.p(e),this.T(a),this._$AH=n}}_$AC(t){let e=it.get(t.strings);return e===void 0&&it.set(t.strings,e=new U(t)),e}k(t){L(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const r of t)i===e.length?e.push(s=new O(this.O(P()),this.O(P()),this,this.options)):s=e[i],s._$AI(r),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this.v=t,(e=this._$AP)==null||e.call(this,t))}}class H{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,r){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=c}_$AI(t,e=this,s,i){const r=this.strings;let n=!1;if(r===void 0)t=b(this,t,e,0),n=!x(t)||t!==this._$AH&&t!==E,n&&(this._$AH=t);else{const a=t;let h,d;for(t=r[0],h=0;h<r.length-1;h++)d=b(this,a[s+h],e,h),d===E&&(d=this._$AH[h]),n||(n=!x(d)||d!==this._$AH[h]),d===c?t=c:t!==c&&(t+=(d??"")+r[h+1]),this._$AH[h]=d}n&&!i&&this.j(t)}j(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Et extends H{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===c?void 0:t}}class bt extends H{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==c)}}class St extends H{constructor(t,e,s,i,r){super(t,e,s,i,r),this.type=5}_$AI(t,e=this){if((t=b(this,t,e,0)??c)===E)return;const s=this._$AH,i=t===c&&s!==c||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==c&&(s===c||i);i&&this.element.removeEventListener(this.name,this,s),r&&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 wt{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){b(this,t)}}const I=w.litHtmlPolyfillSupport;I==null||I(U,O),(w.litHtmlVersions??(w.litHtmlVersions=[])).push("3.2.0");const Pt=(o,t,e)=>{const s=(e==null?void 0:e.renderBefore)??t;let i=s._$litPart$;if(i===void 0){const r=(e==null?void 0:e.renderBefore)??null;s._$litPart$=i=new O(t.insertBefore(P(),r),r,void 0,e??{})}return i._$AI(o),i};/**
16
- * @license
17
- * Copyright 2017 Google LLC
18
- * SPDX-License-Identifier: BSD-3-Clause
19
- */class T extends v{constructor(){super(...arguments),this.renderOptions={host:this},this.o=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.o=Pt(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this.o)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.o)==null||t.setConnected(!1)}render(){return E}}T._$litElement$=!0,T.finalized=!0,(nt=globalThis.litElementHydrateSupport)==null||nt.call(globalThis,{LitElement:T});const B=globalThis.litElementPolyfillSupport;B==null||B({LitElement:T}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.0");const xt=ht`
20
- :host {
21
- display: block;
22
- background: var(--ilw-quote--background);
23
- }
24
-
25
- #quote {
26
- margin: 0 auto;
27
- max-width: var(--ilw-quote--max-width);
28
- padding: 50px 80px;
29
- }
30
-
31
- #content {
32
- color: var(--ilw-quote--color);
33
- font: var(--ilw-quote--font);
34
- text-align: center;
35
- position: relative;
36
- }
37
-
38
- #content::before {
39
- position: absolute;
40
- content: var(--ilw-quote--mark-content-before);
41
- font-style: normal;
42
- color: var(--ilw-quote--mark-color);
43
- font: var(--ilw-quote--mark-font);
44
- top: var(--ilw-quote--mark-top);
45
- left: var(--ilw-quote--mark-left);
46
- }
47
-
48
- #content::after {
49
- position: absolute;
50
- content: var(--ilw-quote--mark-content-after);
51
- font-style: normal;
52
- bottom: 0px;
53
- color: var(--ilw-quote--mark-color);
54
- font: var(--ilw-quote--mark-font);
55
- right: var(--ilw-quote--mark-left);
56
- }
57
- `;class Ct extends T{static get properties(){return{theme:{type:String,attribute:!0}}}static get styles(){return xt}constructor(){super(),this.theme=""}render(){return gt`
58
- <blockquote id="quote">
59
- <div id="content"><slot name="content"></slot></div>
60
- <div id="source"><slot name="author"></slot><slot name="source"></slot></div>
61
- </blockquote>
62
- `}}customElements.define("ilw-quote",Ct)});
package/src/ilw-quote.js DELETED
@@ -1,32 +0,0 @@
1
- import { LitElement, html } from 'lit';
2
- import styles from './ilw-quote.styles';
3
- import './ilw-quote.css';
4
-
5
- class Quote extends LitElement {
6
- static get properties() {
7
- return {
8
- theme: { type: String, attribute: true }
9
- };
10
- }
11
-
12
-
13
- static get styles() {
14
- return styles;
15
- }
16
-
17
- constructor() {
18
- super();
19
- this.theme = '';
20
- }
21
-
22
- render() {
23
- return html`
24
- <blockquote id="quote">
25
- <div id="content"><slot name="content"></slot></div>
26
- <div id="source"><slot name="author"></slot><slot name="source"></slot></div>
27
- </blockquote>
28
- `;
29
- }
30
- }
31
-
32
- customElements.define('ilw-quote', Quote);
@@ -1,41 +0,0 @@
1
- import { css } from 'lit';
2
-
3
- export default css`
4
- :host {
5
- display: block;
6
- background: var(--ilw-quote--background);
7
- }
8
-
9
- #quote {
10
- margin: 0 auto;
11
- max-width: var(--ilw-quote--max-width);
12
- padding: 50px 80px;
13
- }
14
-
15
- #content {
16
- color: var(--ilw-quote--color);
17
- font: var(--ilw-quote--font);
18
- text-align: center;
19
- position: relative;
20
- }
21
-
22
- #content::before {
23
- position: absolute;
24
- content: var(--ilw-quote--mark-content-before);
25
- font-style: normal;
26
- color: var(--ilw-quote--mark-color);
27
- font: var(--ilw-quote--mark-font);
28
- top: var(--ilw-quote--mark-top);
29
- left: var(--ilw-quote--mark-left);
30
- }
31
-
32
- #content::after {
33
- position: absolute;
34
- content: var(--ilw-quote--mark-content-after);
35
- font-style: normal;
36
- bottom: 0px;
37
- color: var(--ilw-quote--mark-color);
38
- font: var(--ilw-quote--mark-font);
39
- right: var(--ilw-quote--mark-left);
40
- }
41
- `;