@codeforamerica/marcomms-design-system 1.18.2 → 1.19.1

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 (68) hide show
  1. package/README.md +20 -15
  2. package/dist/components/accordion.js +160 -0
  3. package/dist/components/accordion.js.LICENSE.txt +11 -0
  4. package/dist/components/avatar.js +103 -0
  5. package/dist/components/avatar.js.LICENSE.txt +11 -0
  6. package/dist/components/bar.js +122 -0
  7. package/dist/components/bar.js.LICENSE.txt +11 -0
  8. package/dist/components/blob.js +133 -0
  9. package/dist/components/blob.js.LICENSE.txt +11 -0
  10. package/dist/components/box.js +99 -0
  11. package/dist/components/box.js.LICENSE.txt +11 -0
  12. package/dist/components/breadcrumbs.js +112 -0
  13. package/dist/components/breadcrumbs.js.LICENSE.txt +11 -0
  14. package/dist/components/button.js +159 -0
  15. package/dist/components/button.js.LICENSE.txt +11 -0
  16. package/dist/components/callout.js +135 -0
  17. package/dist/components/callout.js.LICENSE.txt +11 -0
  18. package/dist/components/card.js +873 -0
  19. package/dist/components/card.js.LICENSE.txt +11 -0
  20. package/dist/components/carousel.js +291 -0
  21. package/dist/components/carousel.js.LICENSE.txt +11 -0
  22. package/dist/components/icon.js +91 -0
  23. package/dist/components/icon.js.LICENSE.txt +11 -0
  24. package/dist/components/label.js +498 -0
  25. package/dist/components/label.js.LICENSE.txt +11 -0
  26. package/dist/components/logo-card.js +514 -0
  27. package/dist/components/logo-card.js.LICENSE.txt +11 -0
  28. package/dist/components/nav.js +129 -0
  29. package/dist/components/nav.js.LICENSE.txt +11 -0
  30. package/dist/components/page-nav.js +163 -0
  31. package/dist/components/page-nav.js.LICENSE.txt +11 -0
  32. package/dist/components/pager.js +707 -0
  33. package/dist/components/pager.js.LICENSE.txt +11 -0
  34. package/dist/components/pagination.js +303 -0
  35. package/dist/components/pagination.js.LICENSE.txt +11 -0
  36. package/dist/components/person-card.js +864 -0
  37. package/dist/components/person-card.js.LICENSE.txt +11 -0
  38. package/dist/components/pill.js +80 -0
  39. package/dist/components/pill.js.LICENSE.txt +11 -0
  40. package/dist/components/placeholder.js +12 -0
  41. package/dist/components/placeholder.js.LICENSE.txt +11 -0
  42. package/dist/components/promo.js +536 -0
  43. package/dist/components/promo.js.LICENSE.txt +11 -0
  44. package/dist/components/pullquote.js +89 -0
  45. package/dist/components/pullquote.js.LICENSE.txt +11 -0
  46. package/dist/components/quote.js +155 -0
  47. package/dist/components/quote.js.LICENSE.txt +11 -0
  48. package/dist/components/reveal.js +142 -0
  49. package/dist/components/reveal.js.LICENSE.txt +11 -0
  50. package/dist/components/slide.js +157 -0
  51. package/dist/components/slide.js.LICENSE.txt +11 -0
  52. package/dist/components/social-icon.js +240 -0
  53. package/dist/components/social-icon.js.LICENSE.txt +11 -0
  54. package/dist/components/stat.js +507 -0
  55. package/dist/components/stat.js.LICENSE.txt +11 -0
  56. package/dist/components/tab-list.js +688 -0
  57. package/dist/components/tab-list.js.LICENSE.txt +11 -0
  58. package/dist/components/tab.js +494 -0
  59. package/dist/components/tab.js.LICENSE.txt +11 -0
  60. package/dist/components/tile.js +662 -0
  61. package/dist/components/tile.js.LICENSE.txt +11 -0
  62. package/dist/components/transcript.js +483 -0
  63. package/dist/components/transcript.js.LICENSE.txt +11 -0
  64. package/dist/core.css +7 -0
  65. package/dist/core.js +0 -0
  66. package/dist/index.js +2328 -2328
  67. package/package.json +10 -3
  68. package/src/core.js +10 -0
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2017 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+
7
+ /**
8
+ * @license
9
+ * Copyright 2019 Google LLC
10
+ * SPDX-License-Identifier: BSD-3-Clause
11
+ */
@@ -0,0 +1,303 @@
1
+ /*! For license information please see pagination.js.LICENSE.txt */
2
+ (()=>{"use strict";var t={227(t,e,s){s.d(e,{V:()=>i});const i=s(161).AH`
3
+ .cfa-button,
4
+ a.cfa-button,
5
+ .cfa-button > a,
6
+ .wp-block-button > * {
7
+ --bg-color: var(--white);
8
+ --border-color: transparent;
9
+ --font-family: var(--font-family-sans-serif);
10
+ --font-size: var(--font-size-base);
11
+ --hover-bg-color: var(--blue-20);
12
+ --hover-border-color: var(--border-color);
13
+ --line-height: var(--line-height-base);
14
+ --text-color: var(--purple-80);
15
+
16
+ background-color: var(--bg-color);
17
+ border: var(--hairline) solid var(--border-color);
18
+ border-radius: var(--rounded-corners);
19
+ box-shadow: var(--shadow-small);
20
+ color: var(--text-color);
21
+ cursor: pointer;
22
+ display: block;
23
+ font-family: var(--font-family);
24
+ font-size: var(--font-size);
25
+ font-weight: bold;
26
+ padding: var(--spacing-component-2) var(--spacing-component-3);
27
+ text-align: center;
28
+ text-decoration: none;
29
+ transition: background-color 0.5s, box-shadow 0.5s;
30
+
31
+ &:hover {
32
+ background-color: var(--hover-bg-color);
33
+ border-color: var(--hover-border-color);
34
+ box-shadow: var(--shadow-medium);
35
+ color: var(--text-color);
36
+ }
37
+ }
38
+
39
+ @media (max-width: 768px) {
40
+ .cfa-button,
41
+ a.cfa-button,
42
+ .cfa-button > a,
43
+ .wp-block-button > * {
44
+ width: 100%;
45
+
46
+ & + & {
47
+ margin-block-start: var(--spacing-layout-half);
48
+ }
49
+ }
50
+
51
+ .wp-block-button {
52
+ width: 100%;
53
+ }
54
+ }
55
+
56
+ @media (min-width: 768px) {
57
+ .cfa-button,
58
+ a.cfa-button,
59
+ .cfa-button > a,
60
+ .wp-block-button > * {
61
+ display: inline-block;
62
+
63
+ & {
64
+ margin-block: var(--spacing-component-2);
65
+ margin-inline-end: var(--spacing-component-2);
66
+ }
67
+ }
68
+ }
69
+
70
+ // Themes / variants
71
+
72
+ .cfa-button--primary,
73
+ a.cfa-button--primary,
74
+ .cfa-button--primary > a,
75
+ .wp-block-button.is-style-primary > * {
76
+ --bg-color: var(--red-60);
77
+ --hover-bg-color: var(--red-80);
78
+ --text-color: var(--white,);
79
+ }
80
+
81
+ .cfa-button--outline,
82
+ a.cfa-button--outline,
83
+ .cfa-button--outline > a,
84
+ .wp-block-button.is-style-outline > * {
85
+ --border-color: var(--black-20);
86
+ --bg-color: transparent;
87
+ }
88
+
89
+ .cfa-button--outline-white,
90
+ a.cfa-button--outline-white,
91
+ .cfa-button--outline-white > a,
92
+ .wp-block-button.is-style-outline-white > * {
93
+ --border-color: var(--white);
94
+ --bg-color: transparent;
95
+ --hover-bg-color: var(--black-20);
96
+ --shadow-color: var(--white-20);
97
+ --text-color: var(--white);
98
+ }
99
+
100
+ .cfa-button--prominent-link,
101
+ a.cfa-button--prominent-link,
102
+ .cfa-button--prominent-link > a,
103
+ .wp-block-button.is-style-prominent-link > * {
104
+ --accent-color: var(--purple-60);
105
+
106
+ background: unset;
107
+ box-shadow: unset;
108
+ color: inherit;
109
+ font-weight: bold;
110
+ padding: 0;
111
+ text-decoration: underline;
112
+ text-decoration-color: var(--accent-color);
113
+ text-decoration-thickness: var(--medium);
114
+ text-underline-offset: 0.4em;
115
+ transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
116
+
117
+ &:hover {
118
+ --accent-color: var(--red-60);
119
+
120
+ background: unset;
121
+ box-shadow: unset;
122
+ }
123
+
124
+ &::after {
125
+ @include icon.icon;
126
+
127
+ content: "arrow_right_alt";
128
+ display: inline-block;
129
+ padding-inline-start: 0.1em;
130
+ text-decoration: none;
131
+ transition: transform 0.2s ease-in-out;
132
+ width: 1em;
133
+ }
134
+
135
+ &:hover::after {
136
+ transform: translateX(0.3em);
137
+ }
138
+
139
+ cfa-icon {
140
+ text-decoration: none;
141
+ }
142
+ }
143
+
144
+ // Sizes
145
+
146
+ .cfa-button--sm,
147
+ a.cfa-button--sm,
148
+ .cfa-button--sm > a {
149
+ --font-size: var(--font-size-small);
150
+ --line-height: var(--line-height-small);
151
+ }
152
+
153
+ .cfa-button--md,
154
+ a.cfa-button--md,
155
+ .cfa-button--md > a {
156
+ --font-size: var(--font-size-base);
157
+ --line-height: var(--line-height-base);
158
+ }
159
+ `},562(t,e,s){var i=s(161),o=s(601);class n extends i.WF{static styles=(()=>[o.s,i.AH`
160
+ :host {
161
+ --size: 1.2em;
162
+
163
+ display: inline;
164
+ line-height: inherit;
165
+ }
166
+
167
+ .icon {
168
+ -webkit-font-feature-settings: "liga";
169
+ direction: ltr;
170
+ display: inline-block;
171
+ font-family: "Material Symbols Rounded";
172
+ font-size: var(--size);
173
+ font-style: normal;
174
+ font-weight: normal;
175
+ letter-spacing: normal;
176
+ margin-top: -0.1em;
177
+ text-transform: none;
178
+ vertical-align: middle;
179
+ white-space: nowrap;
180
+ word-wrap: normal;
181
+ }
182
+ `])();render(){return i.qy`
183
+ <span class="icon">
184
+ <slot></slot>
185
+ </span>
186
+ `}}customElements.get("cfa-icon")||customElements.define("cfa-icon",n)},601(t,e,s){s.d(e,{s:()=>i});const i=s(161).AH`
187
+ *:focus-visible,
188
+ *:target {
189
+ outline: var(--focus-outline);
190
+ position: relative;
191
+ }
192
+
193
+ // RESET
194
+
195
+ // Use a more-intuitive box-sizing model.
196
+ *, *::before, *::after {
197
+ box-sizing: border-box;
198
+ }
199
+
200
+ // Remove default margin
201
+ * {
202
+ margin: 0;
203
+ }
204
+
205
+ // Set default text-wrap of 'pretty'
206
+ * {
207
+ text-wrap: pretty;
208
+ }
209
+
210
+ // Wrap overly long words
211
+ * {
212
+ overflow-wrap: break-word;
213
+ text-overflow: ellipsis;
214
+ word-break: break-word;
215
+ }
216
+
217
+ // Fix Safari antialiasing for variable fonts
218
+ * {
219
+ font-synthesis: none !important;
220
+ }
221
+
222
+ // Improve text rendering
223
+ body {
224
+ -webkit-font-smoothing: antialiased;
225
+ }
226
+
227
+ // Reasonable media defaults
228
+ img, picture, video, canvas, svg {
229
+ display: block;
230
+ height: auto;
231
+ max-width: 100%;
232
+ }
233
+
234
+ // Remove built-in form typography styles
235
+ input, button, textarea, select {
236
+ font: inherit;
237
+ }
238
+
239
+ // Avoid text overflows
240
+ p, h1, h2, h3, h4, h5, h6 {
241
+ overflow-wrap: break-word;
242
+ }
243
+
244
+ // Create a root stacking context
245
+ #root, #__next {
246
+ isolation: isolate;
247
+ }
248
+ `},826(t,e,s){s.d(e,{AH:()=>l,Rf:()=>h,sk:()=>c});const i=globalThis,o=i.ShadowRoot&&(void 0===i.ShadyCSS||i.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,n=Symbol(),r=new WeakMap;class a{constructor(t,e,s){if(this._$cssResult$=!0,s!==n)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(o&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=r.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&r.set(e,t))}return t}toString(){return this.cssText}}const l=(t,...e)=>{const s=1===t.length?t[0]:e.reduce((e,s,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[i+1],t[0]);return new a(s,t,n)},h=(t,e)=>{if(o)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const s of e){const e=document.createElement("style"),o=i.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=s.cssText,t.appendChild(e)}},c=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return(t=>new a("string"==typeof t?t:t+"",void 0,n))(e)})(t):t},760(t,e,s){s.d(e,{AH:()=>i.AH,mN:()=>m});var i=s(826);const{is:o,defineProperty:n,getOwnPropertyDescriptor:r,getOwnPropertyNames:a,getOwnPropertySymbols:l,getPrototypeOf:h}=Object,c=globalThis,d=c.trustedTypes,p=d?d.emptyScript:"",u=c.reactiveElementPolyfillSupport,f=(t,e)=>t,g={toAttribute(t,e){switch(e){case Boolean:t=t?p:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},b=(t,e)=>!o(t,e),$={attribute:!0,type:String,converter:g,reflect:!1,useDefault:!1,hasChanged:b};Symbol.metadata??=Symbol("metadata"),c.litPropertyMetadata??=new WeakMap;class m extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=$){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);void 0!==i&&n(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:o}=r(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:i,set(e){const n=i?.call(this);o?.call(this,e),this.requestUpdate(t,n,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??$}static _$Ei(){if(this.hasOwnProperty(f("elementProperties")))return;const t=h(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(f("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(f("properties"))){const t=this.properties,e=[...a(t),...l(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const s=this._$Eu(t,e);void 0!==s&&this._$Eh.set(s,t)}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 t of s)e.unshift((0,i.sk)(t))}else void 0!==t&&e.push((0,i.sk)(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.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(0,i.Rf)(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(void 0!==i&&!0===s.reflect){const o=(void 0!==s.converter?.toAttribute?s.converter:g).toAttribute(e,s.type);this._$Em=t,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=s.getPropertyOptions(i),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:g;this._$Em=i;const n=o.fromAttribute(e,t.type);this[i]=n??this._$Ej?.get(i)??n,this._$Em=null}}requestUpdate(t,e,s,i=!1,o){if(void 0!==t){const n=this.constructor;if(!1===i&&(o=this[t]),s??=n.getPropertyOptions(t),!((s.hasChanged??b)(o,e)||s.useDefault&&s.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(n._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:o},n){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),!0!==o||void 0!==n)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===i&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,i=this[e];!0!==t||this._$AL.has(e)||void 0===i||this.C(e,void 0,s,i)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}}m.elementStyles=[],m.shadowRootOptions={mode:"open"},m[f("elementProperties")]=new Map,m[f("finalized")]=new Map,u?.({ReactiveElement:m}),(c.reactiveElementVersions??=[]).push("2.1.2")},228(t,e,s){s.d(e,{AH:()=>i.AH,WF:()=>r,qy:()=>o.qy});var i=s(760),o=s(752);const n=globalThis;class r extends i.mN{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=(0,o.XX)(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return o.c0}}r._$litElement$=!0,r.finalized=!0,n.litElementHydrateSupport?.({LitElement:r});const a=n.litElementPolyfillSupport;a?.({LitElement:r}),(n.litElementVersions??=[]).push("4.2.2")},752(t,e,s){s.d(e,{XX:()=>q,c0:()=>E,qy:()=>x});const i=globalThis,o=t=>t,n=i.trustedTypes,r=n?n.createPolicy("lit-html",{createHTML:t=>t}):void 0,a="$lit$",l=`lit$${Math.random().toFixed(9).slice(2)}$`,h="?"+l,c=`<${h}>`,d=document,p=()=>d.createComment(""),u=t=>null===t||"object"!=typeof t&&"function"!=typeof t,f=Array.isArray,g="[ \t\n\f\r]",b=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,$=/-->/g,m=/>/g,v=RegExp(`>|${g}(?:([^\\s"'>=/]+)(${g}*=${g}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),_=/'/g,y=/"/g,A=/^(?:script|style|textarea|title)$/i,w=t=>(e,...s)=>({_$litType$:t,strings:e,values:s}),x=w(1),E=(w(2),w(3),Symbol.for("lit-noChange")),S=Symbol.for("lit-nothing"),P=new WeakMap,k=d.createTreeWalker(d,129);function C(t,e){if(!f(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==r?r.createHTML(e):e}const H=(t,e)=>{const s=t.length-1,i=[];let o,n=2===e?"<svg>":3===e?"<math>":"",r=b;for(let e=0;e<s;e++){const s=t[e];let h,d,p=-1,u=0;for(;u<s.length&&(r.lastIndex=u,d=r.exec(s),null!==d);)u=r.lastIndex,r===b?"!--"===d[1]?r=$:void 0!==d[1]?r=m:void 0!==d[2]?(A.test(d[2])&&(o=RegExp("</"+d[2],"g")),r=v):void 0!==d[3]&&(r=v):r===v?">"===d[0]?(r=o??b,p=-1):void 0===d[1]?p=-2:(p=r.lastIndex-d[2].length,h=d[1],r=void 0===d[3]?v:'"'===d[3]?y:_):r===y||r===_?r=v:r===$||r===m?r=b:(r=v,o=void 0);const f=r===v&&t[e+1].startsWith("/>")?" ":"";n+=r===b?s+c:p>=0?(i.push(h),s.slice(0,p)+a+s.slice(p)+l+f):s+l+(-2===p?e:f)}return[C(t,n+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]};class U{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let o=0,r=0;const c=t.length-1,d=this.parts,[u,f]=H(t,e);if(this.el=U.createElement(u,s),k.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=k.nextNode())&&d.length<c;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(a)){const e=f[r++],s=i.getAttribute(t).split(l),n=/([.?@])?(.*)/.exec(e);d.push({type:1,index:o,name:n[2],strings:s,ctor:"."===n[1]?M:"?"===n[1]?z:"@"===n[1]?L:T}),i.removeAttribute(t)}else t.startsWith(l)&&(d.push({type:6,index:o}),i.removeAttribute(t));if(A.test(i.tagName)){const t=i.textContent.split(l),e=t.length-1;if(e>0){i.textContent=n?n.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],p()),k.nextNode(),d.push({type:2,index:++o});i.append(t[e],p())}}}else if(8===i.nodeType)if(i.data===h)d.push({type:2,index:o});else{let t=-1;for(;-1!==(t=i.data.indexOf(l,t+1));)d.push({type:7,index:o}),t+=l.length-1}o++}}static createElement(t,e){const s=d.createElement("template");return s.innerHTML=t,s}}function O(t,e,s=t,i){if(e===E)return e;let o=void 0!==i?s._$Co?.[i]:s._$Cl;const n=u(e)?void 0:e._$litDirective$;return o?.constructor!==n&&(o?._$AO?.(!1),void 0===n?o=void 0:(o=new n(t),o._$AT(t,s,i)),void 0!==i?(s._$Co??=[])[i]=o:s._$Cl=o),void 0!==o&&(e=O(t,o._$AS(t,e.values),o,i)),e}class N{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?.creationScope??d).importNode(e,!0);k.currentNode=i;let o=k.nextNode(),n=0,r=0,a=s[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new R(o,o.nextSibling,this,t):1===a.type?e=new a.ctor(o,a.name,a.strings,this,t):6===a.type&&(e=new j(o,this,t)),this._$AV.push(e),a=s[++r]}n!==a?.index&&(o=k.nextNode(),n++)}return k.currentNode=d,i}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=S,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=O(this,t,e),u(t)?t===S||null==t||""===t?(this._$AH!==S&&this._$AR(),this._$AH=S):t!==this._$AH&&t!==E&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>f(t)||"function"==typeof t?.[Symbol.iterator])(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!==S&&u(this._$AH)?this._$AA.nextSibling.data=t:this.T(d.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,i="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=U.createElement(C(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new N(i,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=P.get(t.strings);return void 0===e&&P.set(t.strings,e=new U(t)),e}k(t){f(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const o of t)i===e.length?e.push(s=new R(this.O(p()),this.O(p()),this,this.options)):s=e[i],s._$AI(o),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=o(t).nextSibling;o(t).remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class T{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,o){this.type=1,this._$AH=S,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=o,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=S}_$AI(t,e=this,s,i){const o=this.strings;let n=!1;if(void 0===o)t=O(this,t,e,0),n=!u(t)||t!==this._$AH&&t!==E,n&&(this._$AH=t);else{const i=t;let r,a;for(t=o[0],r=0;r<o.length-1;r++)a=O(this,i[s+r],e,r),a===E&&(a=this._$AH[r]),n||=!u(a)||a!==this._$AH[r],a===S?t=S:t!==S&&(t+=(a??"")+o[r+1]),this._$AH[r]=a}n&&!i&&this.j(t)}j(t){t===S?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class M extends T{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===S?void 0:t}}class z extends T{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==S)}}class L extends T{constructor(t,e,s,i,o){super(t,e,s,i,o),this.type=5}_$AI(t,e=this){if((t=O(this,t,e,0)??S)===E)return;const s=this._$AH,i=t===S&&s!==S||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==S&&(s===S||i);i&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class j{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){O(this,t)}}const D=i.litHtmlPolyfillSupport;D?.(U,R),(i.litHtmlVersions??=[]).push("3.3.2");const q=(t,e,s)=>{const i=s?.renderBefore??e;let o=i._$litPart$;if(void 0===o){const t=s?.renderBefore??null;i._$litPart$=o=new R(e.insertBefore(p(),t),t,void 0,s??{})}return o._$AI(t),o}},161(t,e,s){s.d(e,{AH:()=>i.AH,WF:()=>i.WF,qy:()=>i.qy}),s(760),s(752);var i=s(228)}},e={};function s(i){var o=e[i];if(void 0!==o)return o.exports;var n=e[i]={exports:{}};return t[i](n,n.exports,s),n.exports}s.d=(t,e)=>{for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var i=s(161),o=s(601),n=s(227);s(562);class r extends i.WF{static properties=(()=>({page:{type:Number},totalPages:{type:Number},previousLabel:{},nextLabel:{}}))();static styles=(()=>[o.s,n.V,i.AH`
249
+ :host {
250
+ display: block;
251
+ }
252
+
253
+ .pagination {
254
+ align-items: center;
255
+ display: flex;
256
+ flex-direction: row;
257
+ gap: var(--gutter-width);
258
+ justify-content: space-between;
259
+ }
260
+
261
+ .pagination > * {
262
+ flex: 1;
263
+ }
264
+
265
+ .status {
266
+ font-size: var(--font-size-small);
267
+ line-height: var(-line-height-small);
268
+ color: var(--gray-60);
269
+ text-align: center;
270
+ }
271
+
272
+ @media (max-width: 768px) {
273
+ .status {
274
+ display: none;
275
+ }
276
+ }
277
+
278
+ .previous {
279
+ text-align: left;
280
+ }
281
+
282
+ .next {
283
+ text-align: right;
284
+ }
285
+ `])();constructor(){super(),this.previousLabel="Previous",this.nextLabel="Next",this.page=1,this.totalPages=1}render(){return i.qy`
286
+ <div class="pagination">
287
+ <div class="previous">
288
+ ${this.page>1?i.qy`
289
+ <button class="cfa-button" @click="${this.handlePreviousPage}">
290
+ <cfa-icon>arrow_back</cfa-icon>&nbsp;${this.previousLabel}
291
+ </button>
292
+ `:""}
293
+ </div>
294
+ <div class="status">Page ${this.page} of ${this.totalPages}</div>
295
+ <div class="next">
296
+ ${this.page<this.totalPages?i.qy`
297
+ <button class="cfa-button" @click="${this.handleNextPage}">
298
+ ${this.nextLabel}&nbsp;<cfa-icon>arrow_forward</cfa-icon>
299
+ </button>
300
+ `:""}
301
+ </div>
302
+ </div>
303
+ `}handleNextPage(){if(this.page<this.totalPages){this.page++;const t=new CustomEvent("page-change",{bubbles:!0,cancelable:!0,detail:this.page});this.dispatchEvent(t)}}handlePreviousPage(){if(this.page>1){this.page--;const t=new CustomEvent("page-change",{bubbles:!0,cancelable:!0,detail:this.page});this.dispatchEvent(t)}}}customElements.get("cfa-pagination")||customElements.define("cfa-pagination",r)})();
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2017 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+
7
+ /**
8
+ * @license
9
+ * Copyright 2019 Google LLC
10
+ * SPDX-License-Identifier: BSD-3-Clause
11
+ */