@codeforamerica/marcomms-design-system 1.18.2 → 1.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) 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 +9 -3
  68. package/src/components/accordion.js +0 -141
  69. package/src/components/accordion.stories.js +0 -56
  70. package/src/components/avatar.js +0 -62
  71. package/src/components/avatar.stories.js +0 -27
  72. package/src/components/bar.js +0 -102
  73. package/src/components/bar.stories.js +0 -22
  74. package/src/components/blob.js +0 -128
  75. package/src/components/blob.stories.js +0 -73
  76. package/src/components/box.js +0 -55
  77. package/src/components/box.stories.js +0 -24
  78. package/src/components/breadcrumbs.js +0 -80
  79. package/src/components/breadcrumbs.stories.js +0 -27
  80. package/src/components/button.js +0 -163
  81. package/src/components/button.scss +0 -157
  82. package/src/components/button.stories.js +0 -49
  83. package/src/components/callout.js +0 -62
  84. package/src/components/callout.stories.js +0 -20
  85. package/src/components/card.js +0 -456
  86. package/src/components/card.stories.js +0 -227
  87. package/src/components/carousel.js +0 -662
  88. package/src/components/carousel.stories.js +0 -165
  89. package/src/components/details.scss +0 -71
  90. package/src/components/details.stories.js +0 -27
  91. package/src/components/form-elements.scss +0 -304
  92. package/src/components/form-elements.stories.js +0 -134
  93. package/src/components/icon.js +0 -44
  94. package/src/components/icon.scss +0 -32
  95. package/src/components/icon.stories.js +0 -38
  96. package/src/components/label.js +0 -63
  97. package/src/components/label.stories.js +0 -29
  98. package/src/components/link-list.scss +0 -80
  99. package/src/components/link-list.stories.js +0 -52
  100. package/src/components/loader.scss +0 -24
  101. package/src/components/loader.stories.js +0 -12
  102. package/src/components/logo-card.js +0 -93
  103. package/src/components/logo-card.stories.js +0 -48
  104. package/src/components/nav.js +0 -98
  105. package/src/components/nav.stories.js +0 -40
  106. package/src/components/page-nav.js +0 -171
  107. package/src/components/page-nav.stories.js +0 -112
  108. package/src/components/pager.js +0 -98
  109. package/src/components/pager.stories.js +0 -30
  110. package/src/components/pagination.js +0 -116
  111. package/src/components/pagination.stories.js +0 -30
  112. package/src/components/person-card.js +0 -240
  113. package/src/components/person-card.stories.js +0 -58
  114. package/src/components/pill.js +0 -33
  115. package/src/components/pill.stories.js +0 -25
  116. package/src/components/placeholder.js +0 -25
  117. package/src/components/placeholder.stories.js +0 -10
  118. package/src/components/promo.js +0 -82
  119. package/src/components/promo.stories.js +0 -37
  120. package/src/components/pullquote.js +0 -42
  121. package/src/components/pullquote.stories.js +0 -16
  122. package/src/components/quote.js +0 -111
  123. package/src/components/quote.stories.js +0 -23
  124. package/src/components/reveal.js +0 -83
  125. package/src/components/reveal.stories.js +0 -40
  126. package/src/components/slide.js +0 -122
  127. package/src/components/slide.stories.js +0 -49
  128. package/src/components/social-icon.js +0 -236
  129. package/src/components/social-icon.stories.js +0 -36
  130. package/src/components/stat.js +0 -92
  131. package/src/components/stat.stories.js +0 -28
  132. package/src/components/tab-list.js +0 -114
  133. package/src/components/tab-list.stories.js +0 -18
  134. package/src/components/tab.js +0 -95
  135. package/src/components/tab.stories.js +0 -29
  136. package/src/components/tile.js +0 -149
  137. package/src/components/tile.stories.js +0 -41
  138. package/src/components/transcript.js +0 -44
  139. package/src/components/transcript.stories.js +0 -103
  140. package/src/core/base.scss +0 -86
  141. package/src/core/colors.mdx +0 -100
  142. package/src/core/grid.mdx +0 -244
  143. package/src/core/grid.scss +0 -394
  144. package/src/core/helpers.scss +0 -111
  145. package/src/core/layout.scss +0 -103
  146. package/src/core/layout.stories.js +0 -145
  147. package/src/core/reset.scss +0 -53
  148. package/src/core/shadows.mdx +0 -108
  149. package/src/core/tokens.scss +0 -261
  150. package/src/core/typography.mdx +0 -79
  151. package/src/core/typography.scss +0 -411
  152. package/src/index.js +0 -43
  153. package/src/shared/common.js +0 -65
  154. package/src/shared/layout.js +0 -14
  155. package/src/shared/typography.js +0 -397
  156. package/src/styles.scss +0 -15
@@ -0,0 +1,514 @@
1
+ /*! For license information please see logo-card.js.LICENSE.txt */
2
+ (()=>{"use strict";var t={601(t,e,i){i.d(e,{s:()=>s});const s=i(161).AH`
3
+ *:focus-visible,
4
+ *:target {
5
+ outline: var(--focus-outline);
6
+ position: relative;
7
+ }
8
+
9
+ // RESET
10
+
11
+ // Use a more-intuitive box-sizing model.
12
+ *, *::before, *::after {
13
+ box-sizing: border-box;
14
+ }
15
+
16
+ // Remove default margin
17
+ * {
18
+ margin: 0;
19
+ }
20
+
21
+ // Set default text-wrap of 'pretty'
22
+ * {
23
+ text-wrap: pretty;
24
+ }
25
+
26
+ // Wrap overly long words
27
+ * {
28
+ overflow-wrap: break-word;
29
+ text-overflow: ellipsis;
30
+ word-break: break-word;
31
+ }
32
+
33
+ // Fix Safari antialiasing for variable fonts
34
+ * {
35
+ font-synthesis: none !important;
36
+ }
37
+
38
+ // Improve text rendering
39
+ body {
40
+ -webkit-font-smoothing: antialiased;
41
+ }
42
+
43
+ // Reasonable media defaults
44
+ img, picture, video, canvas, svg {
45
+ display: block;
46
+ height: auto;
47
+ max-width: 100%;
48
+ }
49
+
50
+ // Remove built-in form typography styles
51
+ input, button, textarea, select {
52
+ font: inherit;
53
+ }
54
+
55
+ // Avoid text overflows
56
+ p, h1, h2, h3, h4, h5, h6 {
57
+ overflow-wrap: break-word;
58
+ }
59
+
60
+ // Create a root stacking context
61
+ #root, #__next {
62
+ isolation: isolate;
63
+ }
64
+ `},205(t,e,i){i.d(e,{g:()=>s});const s=i(161).AH`
65
+ // =====
66
+
67
+ // Typography spacing
68
+
69
+ // Add a single space around paragraphs, blockquotes, and lists
70
+ p, ul, ol, blockquote {
71
+ & + * {
72
+ margin-block-start: var(--spacing, var(--spacing-layout-1, 1.5rem));
73
+ }
74
+ * + & {
75
+ margin-block-start: var(--spacing, var(--spacing-layout-1, 1.5rem));
76
+ }
77
+ }
78
+
79
+ h1, h2, h3, h4, .h1, .h2, .h3, .h4, .display-1, .display-2 {
80
+ // Add a single line space after headings
81
+ & + * {
82
+ margin-block-start: var(--spacing, var(--spacing-layout-1, 1.5rem));
83
+ }
84
+
85
+ // Add two line spaces before headings
86
+ * + & {
87
+ --spacing: var(--spacing-layout-2);
88
+
89
+ margin-block-start: --spacing;
90
+ }
91
+
92
+ // Only add a single space between headings and other headings
93
+ & + & {
94
+ --spacing: var(--spacing-layout-1);
95
+ }
96
+
97
+ // Reduce space after breadcrumbs and eyebrows
98
+ cfa-breadcrumbs + & {
99
+ margin-block-start: var(--spacing-layout-half) !important;
100
+ }
101
+
102
+ .eyebrow + & {
103
+ margin-block-start: 0 !important;
104
+ }
105
+ }
106
+
107
+ h1, .h1, .display-1, .display-2 {
108
+ text-wrap: balance;
109
+ }
110
+
111
+ // =====
112
+
113
+ // Font styles
114
+
115
+ .regular {
116
+ font-family: var(--font-family-base);
117
+ font-size: var(--font-size-base);
118
+ line-height: var(--line-height-base);
119
+ }
120
+
121
+ .display-1 {
122
+ font-family: var(--font-family-heading);
123
+ font-size: var(--font-size-display-1);
124
+ font-weight: bold;
125
+ line-height: var(--line-height-display-1);
126
+ letter-spacing: var(--letter-spacing-display-1);
127
+ }
128
+
129
+ .display-2 {
130
+ font-family: var(--font-family-heading);
131
+ font-size: var(--font-size-display-2);
132
+ font-weight: bold;
133
+ line-height: var(--line-height-display-2);
134
+ letter-spacing: var(--letter-spacing-display-2);
135
+ }
136
+
137
+ h1,
138
+ .h1 {
139
+ font-family: var(--font-family-heading);
140
+ font-size: var(--font-size-h1);
141
+ font-weight: bold;
142
+ line-height: var(--line-height-h1);
143
+ letter-spacing: var(--letter-spacing-h1);
144
+ }
145
+
146
+ h2,
147
+ .h2 {
148
+ font-family: var(--font-family-heading);
149
+ font-size: var(--font-size-h2);
150
+ font-weight: bold;
151
+ line-height: var(--line-height-h2);
152
+ letter-spacing: var(--letter-spacing-h2);
153
+ }
154
+
155
+ h3,
156
+ .h3 {
157
+ font-family: var(--font-family-heading);
158
+ font-size: var(--font-size-h3);
159
+ font-weight: bold;
160
+ line-height: var(--line-height-h3);
161
+ letter-spacing: var(--letter-spacing-h3);
162
+ }
163
+
164
+ h4,
165
+ .h4 {
166
+ font-family: var(--font-family-heading);
167
+ font-size: var(--font-size-h4);
168
+ font-weight: bold;
169
+ line-height: var(--line-height-h4);
170
+ letter-spacing: var(--letter-spacing-h4);
171
+ }
172
+
173
+ .extra-large {
174
+ font-size: var(--font-size-extra-large);
175
+ line-height: var(--line-height-extra-large);
176
+ letter-spacing: var(--letter-spacing-extra-large);
177
+ }
178
+
179
+ .large {
180
+ font-size: var(--font-size-large);
181
+ line-height: var(--line-height-large);
182
+ letter-spacing: var(--letter-spacing-large);
183
+ }
184
+
185
+ .small {
186
+ font-size: var(--font-size-small);
187
+ line-height: var(--line-height-small);
188
+ letter-spacing: var(--letter-spacing-small);
189
+ }
190
+
191
+ .eyebrow {
192
+ font-family: var(--font-family-sans-serif);
193
+ font-size: var(--font-size-eyebrow);
194
+ font-weight: var(--font-weight-eyebrow);
195
+ letter-spacing: var(--letter-spacing-eyebrow);
196
+ line-height: var(--line-height-eyebrow);
197
+ text-transform: uppercase;
198
+ }
199
+
200
+ .eyebrow-with-line {
201
+ align-items: center;
202
+ color: var(--text-color);
203
+ display: flex;
204
+ font-family: var(--font-family-eyebrow);
205
+ font-size: var(--font-size-eyebrow);
206
+ font-weight: var(--font-weight-eyebrow);
207
+ letter-spacing: var(--letter-spacing-eyebrow);
208
+ line-height: var(--line-height-eyebrow);
209
+ margin-block-end: var(--spacing-layout-half);
210
+ position: relative;
211
+ text-transform: uppercase;
212
+
213
+ &::after {
214
+ border-block-end: var(--hairline) solid currentColor;
215
+ content: "";
216
+ flex-grow: 1;
217
+ margin-left: var(--spacing-component-3);
218
+ }
219
+ }
220
+
221
+ .subtle {
222
+ opacity: 0.6;
223
+ }
224
+
225
+ .serif {
226
+ font-family: var(--font-family-serif);
227
+ }
228
+
229
+ .sans-serif {
230
+ font-family: var(--font-family-sans-serif);
231
+ }
232
+
233
+ i,
234
+ em,
235
+ .italic {
236
+ font-style: italic;
237
+ }
238
+
239
+ b,
240
+ strong,
241
+ .strong {
242
+ font-weight: bold;
243
+ }
244
+
245
+ .normal {
246
+ font-weight: normal;
247
+ }
248
+
249
+ .prominent-link,
250
+ a.prominent-link {
251
+ --accent-color: var(--purple-60);
252
+
253
+ font-weight: bold;
254
+ text-decoration: underline;
255
+ text-decoration-color: var(--accent-color);
256
+ text-decoration-thickness: var(--medium);
257
+ text-underline-offset: 0.4em;
258
+ transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
259
+
260
+ &:hover {
261
+ --accent-color: var(--red-60);
262
+ }
263
+
264
+ &:not(:has(cfa-icon))::after {
265
+ @include icon.icon;
266
+
267
+ content: "arrow_right_alt";
268
+ display: inline-block;
269
+ padding-inline-start: 0.1em;
270
+ text-decoration: none;
271
+ transition: padding 0.2s ease-in-out;
272
+ width: 1em;
273
+ }
274
+
275
+ &:not(:has(cfa-icon)):hover::after {
276
+ padding-inline-start: 0.3em;
277
+ }
278
+
279
+ cfa-icon {
280
+ text-decoration: none;
281
+ }
282
+ }
283
+
284
+ .white-text,
285
+ .text-light /* fallback */ {
286
+ -moz-osx-font-smoothing: grayscale; // Sharper antialising for white text on a dark background
287
+ -webkit-font-smoothing: antialiased; // Sharper antialising for white text on a dark background
288
+ color: var(--white);
289
+ --link-color: var(--white);
290
+ --link-hover-color: var(--white);
291
+ }
292
+
293
+ // =====
294
+
295
+ // Highlights
296
+
297
+ .highlight {
298
+ --highlight-offset: 0.2em;
299
+
300
+ box-decoration-break: clone;
301
+ display: inline;
302
+ background: linear-gradient(to top, transparent 0%, transparent var(--highlight-offset), var(--highlight-color) var(--highlight-offset), var(--highlight-color) calc(var(--highlight-offset) + var(--highlight-thickness)), transparent calc(var(--highlight-offset) + var(--highlight-thickness)), transparent 100%);
303
+ padding-inline: 0.1em;
304
+ -webkit-box-decoration-break: clone;
305
+ margin-inline-start: -0.1em;
306
+ margin-inline-end: -0.1em;
307
+ word-wrap: break-word;
308
+ }
309
+
310
+ // ======
311
+
312
+ // Lists
313
+
314
+ .ul {
315
+ list-style-type: disc;
316
+ padding-left: var(--spacing-layout-1);
317
+ }
318
+
319
+ .ul > li {
320
+ margin-inline-start: 0;
321
+ padding-left: var(--spacing-component-2);
322
+ }
323
+
324
+ .ul > li + li {
325
+ margin-block-start: var(--spacing-layout-half);
326
+ }
327
+
328
+ .ul > li > ul {
329
+ margin-block-start: var(--spacing-layout-half);
330
+ }
331
+
332
+ .ol {
333
+ list-style-type: decimal;
334
+ padding-left: var(--spacing-layout-1);
335
+ }
336
+
337
+ .ol > li {
338
+ margin-inline-start: 0;
339
+ padding-inline-start: var(--spacing-component-2);
340
+ }
341
+
342
+ .ol > li + li {
343
+ margin-block-start: var(--spacing-layout-half);
344
+ }
345
+
346
+ .ol > li > ul {
347
+ margin-block-start: var(--spacing-layout-half);
348
+ }
349
+
350
+ .ul--unstyled {
351
+ list-style: none;
352
+ padding: 0;
353
+ }
354
+
355
+ .ul--unstyled > li {
356
+ margin-inline: 0;
357
+ padding: 0;
358
+ }
359
+
360
+ .ul--line-separators > li + li::before {
361
+ border-block-start: 1px solid var(--gray-20);
362
+ content: "";
363
+ display: block;
364
+ margin-block: var(--spacing-layout-half);
365
+ width: 100%;
366
+ }
367
+
368
+ .ul--inline,
369
+ .ul--inline-with-separators,
370
+ .ul--inline-with-line-separators {
371
+ display: inline;
372
+ list-style: none;
373
+ padding-inline: 0 !important;
374
+ padding-left: 0 !important;
375
+ }
376
+
377
+ .ul--inline > li,
378
+ .ul--inline-with-separators > li,
379
+ .ul--inline-with-line-separators > li {
380
+ display: inline-block;
381
+ margin-inline-end: var(--spacing-component-3);
382
+ padding: 0 !important;
383
+ }
384
+
385
+ .ul--inline li:last-child,
386
+ .ul--inline-with-separators li:last-child,
387
+ .ul--inline-with-line-separators li:last-child {
388
+ margin-inline-end: 0;
389
+ }
390
+
391
+ .ul--inline > li + li,
392
+ .ul--inline-with-separators > li + li,
393
+ .ul--inline-with-line-separators > li + li {
394
+ margin-block-start: 0;
395
+ }
396
+
397
+ .ul--inline-with-separators li,
398
+ .ul--inline-with-line-separators li {
399
+ margin-inline-end: 0;
400
+ }
401
+
402
+ .ul--inline-with-separators > li::after {
403
+ content: "•";
404
+ margin-inline: var(--spacing-component-2);
405
+ opacity: 0.5;
406
+ }
407
+
408
+ .ul--inline-with-separators > li:last-child::after {
409
+ content: "";
410
+ }
411
+
412
+ .ul--inline-with-line-separators > li::after {
413
+ content: "|";
414
+ margin-inline: var(--spacing-component-2);
415
+ opacity: 0.5;
416
+ }
417
+
418
+ .ul--inline-with-line-separators > li:last-child::after {
419
+ content: "";
420
+ }
421
+
422
+ // ===
423
+
424
+ // Horizontal rule
425
+
426
+ hr {
427
+ --color: currentColor;
428
+
429
+ background-color: var(--color);
430
+ border: 0;
431
+ color: var(--color);
432
+ display: block;
433
+ font-size: 0;
434
+ height: var(--hairline);
435
+ margin-block: var(--spacing-layout-1);
436
+ opacity: 0.4;
437
+ }
438
+
439
+ // ===
440
+
441
+ // Icons
442
+
443
+ .icon {
444
+ -webkit-font-feature-settings: 'liga';
445
+ direction: ltr;
446
+ display: inline-block;
447
+ font-family: 'Material Symbols Rounded';
448
+ font-feature-settings: 'liga';
449
+ font-size: 1.4em;
450
+ font-style: normal;
451
+ font-weight: normal;
452
+ letter-spacing: normal;
453
+ text-transform: none;
454
+ vertical-align: middle;
455
+ white-space: nowrap;
456
+ word-wrap: normal;
457
+ }
458
+ `},826(t,e,i){i.d(e,{AH:()=>l,Rf:()=>h,sk:()=>c});const s=globalThis,n=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),o=new WeakMap;class a{constructor(t,e,i){if(this._$cssResult$=!0,i!==r)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(n&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=o.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&o.set(e,t))}return t}toString(){return this.cssText}}const l=(t,...e)=>{const i=1===t.length?t[0]:e.reduce((e,i,s)=>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.")})(i)+t[s+1],t[0]);return new a(i,t,r)},h=(t,e)=>{if(n)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const i of e){const e=document.createElement("style"),n=s.litNonce;void 0!==n&&e.setAttribute("nonce",n),e.textContent=i.cssText,t.appendChild(e)}},c=n?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new a("string"==typeof t?t:t+"",void 0,r))(e)})(t):t},760(t,e,i){i.d(e,{AH:()=>s.AH,mN:()=>y});var s=i(826);const{is:n,defineProperty:r,getOwnPropertyDescriptor:o,getOwnPropertyNames:a,getOwnPropertySymbols:l,getPrototypeOf:h}=Object,c=globalThis,d=c.trustedTypes,p=d?d.emptyScript:"",g=c.reactiveElementPolyfillSupport,f=(t,e)=>t,u={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 i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},m=(t,e)=>!n(t,e),v={attribute:!0,type:String,converter:u,reflect:!1,useDefault:!1,hasChanged:m};Symbol.metadata??=Symbol("metadata"),c.litPropertyMetadata??=new WeakMap;class y 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=v){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 i=Symbol(),s=this.getPropertyDescriptor(t,i,e);void 0!==s&&r(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){const{get:s,set:n}=o(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:s,set(e){const r=s?.call(this);n?.call(this,e),this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??v}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 i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}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 t of i)e.unshift((0,s.sk)(t))}else void 0!==t&&e.push((0,s.sk)(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"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 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(0,s.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,i){this._$AK(t,i)}_$ET(t,e){const i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(void 0!==s&&!0===i.reflect){const n=(void 0!==i.converter?.toAttribute?i.converter:u).toAttribute(e,i.type);this._$Em=t,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(t,e){const i=this.constructor,s=i._$Eh.get(t);if(void 0!==s&&this._$Em!==s){const t=i.getPropertyOptions(s),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u;this._$Em=s;const r=n.fromAttribute(e,t.type);this[s]=r??this._$Ej?.get(s)??r,this._$Em=null}}requestUpdate(t,e,i,s=!1,n){if(void 0!==t){const r=this.constructor;if(!1===s&&(n=this[t]),i??=r.getPropertyOptions(t),!((i.hasChanged??m)(n,e)||i.useDefault&&i.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(r._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:s,wrapped:n},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??e??this[t]),!0!==n||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),!0===s&&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,i]of t){const{wrapped:t}=i,s=this[e];!0!==t||this._$AL.has(e)||void 0===s||this.C(e,void 0,i,s)}}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){}}y.elementStyles=[],y.shadowRootOptions={mode:"open"},y[f("elementProperties")]=new Map,y[f("finalized")]=new Map,g?.({ReactiveElement:y}),(c.reactiveElementVersions??=[]).push("2.1.2")},228(t,e,i){i.d(e,{AH:()=>s.AH,WF:()=>o,qy:()=>n.qy,s6:()=>n.s6});var s=i(760),n=i(752);const r=globalThis;class o extends s.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,n.XX)(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return n.c0}}o._$litElement$=!0,o.finalized=!0,r.litElementHydrateSupport?.({LitElement:o});const a=r.litElementPolyfillSupport;a?.({LitElement:o}),(r.litElementVersions??=[]).push("4.2.2")},752(t,e,i){i.d(e,{XX:()=>L,c0:()=>E,qy:()=>x,s6:()=>S});const s=globalThis,n=t=>t,r=s.trustedTypes,o=r?r.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(""),g=t=>null===t||"object"!=typeof t&&"function"!=typeof t,f=Array.isArray,u="[ \t\n\f\r]",m=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,y=/>/g,$=RegExp(`>|${u}(?:([^\\s"'>=/]+)(${u}*=${u}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),_=/'/g,b=/"/g,w=/^(?:script|style|textarea|title)$/i,A=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),x=A(1),E=(A(2),A(3),Symbol.for("lit-noChange")),S=Symbol.for("lit-nothing"),k=new WeakMap,C=d.createTreeWalker(d,129);function P(t,e){if(!f(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==o?o.createHTML(e):e}const U=(t,e)=>{const i=t.length-1,s=[];let n,r=2===e?"<svg>":3===e?"<math>":"",o=m;for(let e=0;e<i;e++){const i=t[e];let h,d,p=-1,g=0;for(;g<i.length&&(o.lastIndex=g,d=o.exec(i),null!==d);)g=o.lastIndex,o===m?"!--"===d[1]?o=v:void 0!==d[1]?o=y:void 0!==d[2]?(w.test(d[2])&&(n=RegExp("</"+d[2],"g")),o=$):void 0!==d[3]&&(o=$):o===$?">"===d[0]?(o=n??m,p=-1):void 0===d[1]?p=-2:(p=o.lastIndex-d[2].length,h=d[1],o=void 0===d[3]?$:'"'===d[3]?b:_):o===b||o===_?o=$:o===v||o===y?o=m:(o=$,n=void 0);const f=o===$&&t[e+1].startsWith("/>")?" ":"";r+=o===m?i+c:p>=0?(s.push(h),i.slice(0,p)+a+i.slice(p)+l+f):i+l+(-2===p?e:f)}return[P(t,r+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),s]};class H{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let n=0,o=0;const c=t.length-1,d=this.parts,[g,f]=U(t,e);if(this.el=H.createElement(g,i),C.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(s=C.nextNode())&&d.length<c;){if(1===s.nodeType){if(s.hasAttributes())for(const t of s.getAttributeNames())if(t.endsWith(a)){const e=f[o++],i=s.getAttribute(t).split(l),r=/([.?@])?(.*)/.exec(e);d.push({type:1,index:n,name:r[2],strings:i,ctor:"."===r[1]?M:"?"===r[1]?N:"@"===r[1]?j:R}),s.removeAttribute(t)}else t.startsWith(l)&&(d.push({type:6,index:n}),s.removeAttribute(t));if(w.test(s.tagName)){const t=s.textContent.split(l),e=t.length-1;if(e>0){s.textContent=r?r.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],p()),C.nextNode(),d.push({type:2,index:++n});s.append(t[e],p())}}}else if(8===s.nodeType)if(s.data===h)d.push({type:2,index:n});else{let t=-1;for(;-1!==(t=s.data.indexOf(l,t+1));)d.push({type:7,index:n}),t+=l.length-1}n++}}static createElement(t,e){const i=d.createElement("template");return i.innerHTML=t,i}}function z(t,e,i=t,s){if(e===E)return e;let n=void 0!==s?i._$Co?.[s]:i._$Cl;const r=g(e)?void 0:e._$litDirective$;return n?.constructor!==r&&(n?._$AO?.(!1),void 0===r?n=void 0:(n=new r(t),n._$AT(t,i,s)),void 0!==s?(i._$Co??=[])[s]=n:i._$Cl=n),void 0!==n&&(e=z(t,n._$AS(t,e.values),n,s)),e}class O{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?.creationScope??d).importNode(e,!0);C.currentNode=s;let n=C.nextNode(),r=0,o=0,a=i[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new T(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new q(n,this,t)),this._$AV.push(e),a=i[++o]}r!==a?.index&&(n=C.nextNode(),r++)}return C.currentNode=d,s}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class T{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,s){this.type=2,this._$AH=S,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=s?.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=z(this,t,e),g(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&&g(this._$AH)?this._$AA.nextSibling.data=t:this.T(d.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:i}=t,s="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=H.createElement(P(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===s)this._$AH.p(e);else{const t=new O(s,this),i=t.u(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let e=k.get(t.strings);return void 0===e&&k.set(t.strings,e=new H(t)),e}k(t){f(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const n of t)s===e.length?e.push(i=new T(this.O(p()),this.O(p()),this,this.options)):i=e[s],i._$AI(n),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=n(t).nextSibling;n(t).remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class R{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,n){this.type=1,this._$AH=S,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=S}_$AI(t,e=this,i,s){const n=this.strings;let r=!1;if(void 0===n)t=z(this,t,e,0),r=!g(t)||t!==this._$AH&&t!==E,r&&(this._$AH=t);else{const s=t;let o,a;for(t=n[0],o=0;o<n.length-1;o++)a=z(this,s[i+o],e,o),a===E&&(a=this._$AH[o]),r||=!g(a)||a!==this._$AH[o],a===S?t=S:t!==S&&(t+=(a??"")+n[o+1]),this._$AH[o]=a}r&&!s&&this.j(t)}j(t){t===S?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class M extends R{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===S?void 0:t}}class N extends R{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==S)}}class j extends R{constructor(t,e,i,s,n){super(t,e,i,s,n),this.type=5}_$AI(t,e=this){if((t=z(this,t,e,0)??S)===E)return;const i=this._$AH,s=t===S&&i!==S||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==S&&(i===S||s);s&&this.element.removeEventListener(this.name,this,i),n&&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 q{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){z(this,t)}}const D=s.litHtmlPolyfillSupport;D?.(H,T),(s.litHtmlVersions??=[]).push("3.3.2");const L=(t,e,i)=>{const s=i?.renderBefore??e;let n=s._$litPart$;if(void 0===n){const t=i?.renderBefore??null;s._$litPart$=n=new T(e.insertBefore(p(),t),t,void 0,i??{})}return n._$AI(t),n}},161(t,e,i){i.d(e,{AH:()=>s.AH,WF:()=>s.WF,qy:()=>s.qy,s6:()=>s.s6}),i(760),i(752);var s=i(228)}},e={};function i(s){var n=e[s];if(void 0!==n)return n.exports;var r=e[s]={exports:{}};return t[s](r,r.exports,i),r.exports}i.d=(t,e)=>{for(var s in e)i.o(e,s)&&!i.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var s=i(161),n=i(601),r=i(205);class o extends s.WF{static properties={name:{},imageUrl:{},linkUrl:{},linkTarget:{}};static styles=(()=>[n.s,r.g,s.AH`
459
+ :host {
460
+ --bg-color: var(--blue-20);
461
+ --text-color: var(--black);
462
+
463
+ align-items: stretch;
464
+ display: flex;
465
+ flex-direction: row;
466
+ }
467
+
468
+ .card {
469
+ align-items: center;
470
+ background-color: var(--white);
471
+ border: var(--hairline) solid var(--black-10);
472
+ color: var(--text-color);
473
+ display: flex;
474
+ flex-direction: column;
475
+ font-size: var(--font-size-h3);
476
+ font-weight: bold;
477
+ justify-content: center;
478
+ line-height: var(--line-height-h4);
479
+ margin-inline: auto;
480
+ max-width: 100%;
481
+ min-height: var(--spacing-layout-8);
482
+ padding: var(--spacing-component-5);
483
+ text-align: center;
484
+ text-decoration: none;
485
+ transition: box-shadow 1s;
486
+ width: var(--column-span-4);
487
+ }
488
+
489
+ a.card {
490
+ box-shadow: var(--shadow-small);
491
+ color: var(--text-color);
492
+ }
493
+
494
+ a.card:hover {
495
+ box-shadow: var(--shadow-medium);
496
+ }
497
+
498
+ img {
499
+ aspect-ratio: 2 / 1;
500
+ object-fit: contain;
501
+ width: 100%;
502
+ }
503
+ `])();cardContentTemplate(){let t;return t=this.imageUrl?s.qy` <img src="${this.imageUrl}" alt="${this.name}" /> `:s.qy` ${this.name} `,t}render(){return s.qy`
504
+ ${this.linkUrl?s.qy`
505
+ <a
506
+ href="${this.linkUrl}"
507
+ target="${this.linkTarget||"_self"}"
508
+ rel="${"_blank"==this.linkTarget?"noopener noreferrer":s.s6}"
509
+ class="card"
510
+ >
511
+ ${this.cardContentTemplate()}
512
+ </a>
513
+ `:s.qy` <div class="card">${this.cardContentTemplate()}</div> `}
514
+ `}}customElements.get("cfa-logo-card")||customElements.define("cfa-logo-card",o)})();
@@ -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
+ */