@alma/widgets 2.2.9 → 2.2.10

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 (32) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/raw/widgets.css +583 -0
  3. package/dist/raw/widgets.js +2563 -0
  4. package/dist/raw/widgets.js.map +1 -0
  5. package/dist/raw/widgets.m.js +2569 -0
  6. package/dist/raw/widgets.m.js.map +1 -0
  7. package/dist/raw/widgets.modern.js +2469 -0
  8. package/dist/raw/widgets.modern.js.map +1 -0
  9. package/dist/raw/widgets.umd.js +18441 -0
  10. package/dist/raw/widgets.umd.js.map +1 -0
  11. package/dist/types/Widgets/EligibilityModal/DesktopModal/index.d.ts +1 -8
  12. package/dist/types/Widgets/EligibilityModal/MobileModal/index.d.ts +1 -8
  13. package/dist/types/Widgets/EligibilityModal/ModalContainer.d.ts +13 -0
  14. package/dist/types/Widgets/{button.test.d.ts → EligibilityModal/ModalContainer.test.d.ts} +0 -0
  15. package/dist/types/Widgets/EligibilityModal/index.d.ts +2 -1
  16. package/dist/types/Widgets/PaymentPlans/PaymentPlans.test.d.ts +1 -0
  17. package/dist/types/Widgets/{PaymentPlan.d.ts → PaymentPlans/index.d.ts} +0 -0
  18. package/dist/types/components/LoadingIndicator/index.d.ts +5 -0
  19. package/dist/types/hooks/useFetchEligibility.d.ts +2 -2
  20. package/dist/types/index.d.ts +1 -0
  21. package/dist/types/types.d.ts +11 -5
  22. package/dist/types/widgets_controller.d.ts +7 -2
  23. package/dist/widgets.css +9 -7
  24. package/dist/widgets.js +1 -1
  25. package/dist/widgets.js.map +1 -1
  26. package/dist/widgets.m.js +1 -1
  27. package/dist/widgets.m.js.map +1 -1
  28. package/dist/widgets.modern.js +1 -1
  29. package/dist/widgets.modern.js.map +1 -1
  30. package/dist/widgets.umd.js +1 -1
  31. package/dist/widgets.umd.js.map +1 -1
  32. package/package.json +4 -2
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [2.2.10](https://github.com/alma/widgets/compare/v2.2.9...v2.2.10) (2022-04-12)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * updated build command to generate a raw folder with unminified JS/CSS ([#21](https://github.com/alma/widgets/issues/21)) ([e1729c1](https://github.com/alma/widgets/commit/e1729c1fd959eeee2e0fda1113db6ff2050b0ddb))
7
+
1
8
  ## [2.2.9](https://github.com/alma/widgets/compare/v2.2.8...v2.2.9) (2022-03-21)
2
9
 
3
10
 
@@ -0,0 +1,583 @@
1
+ @import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@300;600&family=Work+Sans:wght@700&display=swap');
2
+
3
+ * {
4
+ padding: 0;
5
+ margin: 0;
6
+ box-sizing: border-box;
7
+ }
8
+
9
+ :root {
10
+ --white: #fff;
11
+ --blue-100: #e9f4ff;
12
+ --blue-300: #00425d;
13
+ --blue-400: #003951;
14
+ --blue-500: #337b99;
15
+ --blue-600: #042736;
16
+ --red-100: #ffedee;
17
+ --red-300: #ffa0a6;
18
+ --red-600: #ff414d;
19
+ --orange: #ff7e55;
20
+ --orange-100: #fff3ee;
21
+ --orange-300: #fcd4b5;
22
+ --yellow-100: #fff5de;
23
+ --yellow-300: #ffde9d;
24
+ --yellow-600: #ffbb33;
25
+ --beige: #fff7f0;
26
+ --gray-100: #f7f9fb;
27
+ --gray-200: #f4f6f6;
28
+ --gray-300: #e1e4e6;
29
+ --gray-400: #c2d0d8;
30
+ --gray-500: #b2bbc0;
31
+ --gray-600: #819098;
32
+ --gray-700: #454f54;
33
+ --gray-800: #2e3538;
34
+ --green-100: #ddf8f1;
35
+ --green-300: #9cebd6;
36
+ --green-600: #1dcda3;
37
+ }
38
+ @font-face {
39
+ font-family: 'Eina04';
40
+ src: url('./assets/fonts/Eina04-Light.eot?#iefix') format('embedded-opentype'),
41
+ url('./assets/fonts/Eina04-Light.woff') format('woff'),
42
+ url('./assets/fonts/Eina04-Light.ttf') format('truetype'),
43
+ url('./assets/fonts/Eina04-Light.svg#Eina04-Light') format('svg');
44
+ font-weight: 300;
45
+ font-style: normal;
46
+ font-display: swap;
47
+ }
48
+ @font-face {
49
+ font-family: 'Eina04';
50
+ src: url('./assets/fonts/Eina04-Regular.eot?#iefix') format('embedded-opentype'),
51
+ url('./assets/fonts/Eina04-Regular.woff') format('woff'),
52
+ url('./assets/fonts/Eina04-Regular.ttf') format('truetype'),
53
+ url('./assets/fonts/Eina04-Regular.svg#Eina04-Regular') format('svg');
54
+ font-weight: 400;
55
+ font-style: normal;
56
+ font-display: swap;
57
+ }
58
+ @font-face {
59
+ font-family: 'Eina04';
60
+ src: url('./assets/fonts/Eina04-RegularItalic.eot?#iefix') format('embedded-opentype'),
61
+ url('./assets/fonts/Eina04-RegularItalic.woff') format('woff'),
62
+ url('./assets/fonts/Eina04-RegularItalic.ttf') format('truetype'),
63
+ url('./assets/fonts/Eina04-RegularItalic.svg#Eina04-RegularItalic') format('svg');
64
+ font-weight: 400;
65
+ font-style: italic;
66
+ font-display: swap;
67
+ }
68
+ @font-face {
69
+ font-family: 'Eina04';
70
+ src: url('./assets/fonts/Eina04-SemiBold.eot?#iefix') format('embedded-opentype'),
71
+ url('./assets/fonts/Eina04-SemiBold.woff') format('woff'),
72
+ url('./assets/fonts/Eina04-SemiBold.ttf') format('truetype'),
73
+ url('./assets/fonts/Eina04-SemiBold.svg#Eina04-SemiBold') format('svg');
74
+ font-weight: 500;
75
+ font-style: normal;
76
+ font-display: swap;
77
+ }
78
+ @font-face {
79
+ font-family: 'Eina04';
80
+ src: url('./assets/fonts/Eina04-SemiboldItalic.eot?#iefix') format('embedded-opentype'),
81
+ url('./assets/fonts/Eina04-SemiboldItalic.woff') format('woff'),
82
+ url('./assets/fonts/Eina04-SemiboldItalic.ttf') format('truetype'),
83
+ url('./assets/fonts/Eina04-SemiboldItalic.svg#Eina04-SemiboldItalic') format('svg');
84
+ font-weight: 500;
85
+ font-style: italic;
86
+ font-display: swap;
87
+ }
88
+ @font-face {
89
+ font-family: 'Eina04';
90
+ src: url('./assets/fonts/Eina04-Bold.eot?#iefix') format('embedded-opentype'),
91
+ url('./assets/fonts/Eina04-Bold.woff') format('woff'),
92
+ url('./assets/fonts/Eina04-Bold.ttf') format('truetype'),
93
+ url('./assets/fonts/Eina04-Bold.svg#Eina04-Bold') format('svg');
94
+ font-weight: 600;
95
+ font-style: normal;
96
+ font-display: swap;
97
+ }
98
+
99
+ @font-face {
100
+ font-family: 'Public Sans';
101
+ src: url('./assets/fonts/PublicSans-VariableFont_wght.ttf');
102
+ font-style: normal;
103
+ font-display: swap;
104
+ }
105
+
106
+ ._31lrj {
107
+ display: flex;
108
+ flex-direction: column;
109
+ align-items: center;
110
+ }
111
+
112
+ ._2p94X {
113
+ font-family: Eina04;
114
+ font-weight: bold;
115
+ line-height: 35px;
116
+ font-size: 64px;
117
+ color: var(--blue-300);
118
+ margin-bottom: 16px;
119
+ animation: _229P7 0.7s cubic-bezier(0.87, 0, 0.17, 1) 1ms infinite
120
+ alternate-reverse both;
121
+ }
122
+
123
+ ._1k0PM {
124
+ width: 34px;
125
+ height: 10px;
126
+ background-color: var(--red-600);
127
+ -webkit-animation: _2cX7o 1.4s cubic-bezier(0.87, 0, 0.17, 1) 1ms infinite forwards;
128
+ animation: _2cX7o 1.4s cubic-bezier(0.87, 0, 0.17, 1) 1ms infinite forwards;
129
+ }
130
+
131
+ @-webkit-keyframes _229P7 {
132
+ 0% {
133
+ opacity: 1;
134
+ color: var(--blue-300);
135
+ }
136
+ 100% {
137
+ opacity: 0;
138
+ color: var(--yellow-600);
139
+ }
140
+ }
141
+
142
+ @keyframes _229P7 {
143
+ 0% {
144
+ opacity: 1;
145
+ color: var(--blue-300);
146
+ }
147
+ 100% {
148
+ opacity: 0;
149
+ color: var(--yellow-600);
150
+ }
151
+ }
152
+
153
+ @-webkit-keyframes _2cX7o {
154
+ 0% {
155
+ opacity: 0;
156
+ transform: translateX(-34px);
157
+ border-radius: 48px;
158
+ background-color: var(--yellow-600);
159
+ }
160
+ 40% {
161
+ border-radius: 0;
162
+ }
163
+ 50% {
164
+ opacity: 1;
165
+ transform: translateX(0);
166
+ background-color: var(--red-600);
167
+ }
168
+ 60% {
169
+ border-radius: 0;
170
+ }
171
+ 100% {
172
+ opacity: 0;
173
+ transform: translateX(34px);
174
+ border-radius: 48px;
175
+ background-color: var(--yellow-600);
176
+ }
177
+ }
178
+
179
+ @keyframes _2cX7o {
180
+ 0% {
181
+ opacity: 0;
182
+ transform: translateX(-34px);
183
+ border-radius: 48px;
184
+ background-color: var(--yellow-600);
185
+ }
186
+ 40% {
187
+ border-radius: 0;
188
+ }
189
+ 50% {
190
+ opacity: 1;
191
+ transform: translateX(0);
192
+ background-color: var(--red-600);
193
+ }
194
+ 60% {
195
+ border-radius: 0;
196
+ }
197
+ 100% {
198
+ opacity: 0;
199
+ transform: translateX(34px);
200
+ border-radius: 48px;
201
+ background-color: var(--yellow-600);
202
+ }
203
+ }
204
+
205
+ ._D8SjB {
206
+ border: none;
207
+ background-color: var(--white);
208
+ color: var(--blue-300);
209
+ width: 100%;
210
+ max-height: 100%;
211
+ height: 100%;
212
+ position: relative;
213
+ }
214
+
215
+ ._ocM9x {
216
+ padding: 24px;
217
+ width: 100%;
218
+ height: 100%;
219
+ }
220
+
221
+ ._1GP2F {
222
+ overflow-y: auto;
223
+ }
224
+
225
+ ._1yxCb {
226
+ position: fixed;
227
+ top: 0;
228
+ left: 0;
229
+ right: 0;
230
+ bottom: 0;
231
+ display: flex;
232
+ align-items: center;
233
+ justify-content: center;
234
+ background-color: rgba(0, 0, 0, 0.3);
235
+ z-index: 99999;
236
+ }
237
+
238
+ ._12LLh {
239
+ display: flex;
240
+ justify-content: flex-end;
241
+ position: absolute;
242
+ top: 24px;
243
+ right: 24px;
244
+ z-index: 1;
245
+ }
246
+
247
+ ._3YRro {
248
+ border: 0;
249
+ background-color: var(--blue-300);
250
+ border-radius: 50%;
251
+ display: flex;
252
+ justify-content: center;
253
+ align-items: center;
254
+ cursor: pointer;
255
+ padding: 4px;
256
+ }
257
+
258
+ @media screen and (min-width: 800px) {
259
+ ._D8SjB {
260
+ border-radius: 8px;
261
+ width: 800px;
262
+ height: 550px;
263
+ }
264
+ ._1GP2F {
265
+ max-height: 100vh;
266
+ overflow: hidden;
267
+ }
268
+
269
+ ._ocM9x {
270
+ padding: 32px;
271
+ }
272
+ }
273
+
274
+ ._1l2Oa {
275
+ display: flex;
276
+ flex-wrap: wrap;
277
+ flex-direction: row;
278
+ justify-content: center;
279
+ margin-bottom: 24px;
280
+ }
281
+
282
+ ._1l2Oa > button {
283
+ position: relative;
284
+ height: 50px;
285
+ width: 50px;
286
+ margin: 0 4px 8px;
287
+ border: 1px solid var(--gray-300);
288
+ border-radius: 8px;
289
+ font-family: 'Eina04';
290
+ font-size: 18px;
291
+ line-height: 150%;
292
+ font-weight: 600;
293
+ color: var(--blue-400);
294
+ display: flex;
295
+ justify-content: center;
296
+ align-items: center;
297
+ overflow: hidden;
298
+ cursor: pointer;
299
+ background-color: var(--white);
300
+ transition: all 0.1s ease;
301
+ }
302
+
303
+ ._1l2Oa > button::after {
304
+ content: '';
305
+ width: 100%;
306
+ height: 4px;
307
+ position: absolute;
308
+ bottom: 0;
309
+ }
310
+
311
+ ._1l2Oa > button._3rue7 {
312
+ background-color: var(--blue-300);
313
+ color: var(--white);
314
+ border: 0;
315
+ }
316
+ ._1l2Oa > button._3rue7::after {
317
+ background-color: var(--red-600);
318
+ }
319
+
320
+ ._MPKjS {
321
+ padding: 32px 24px;
322
+ margin-bottom: 40px;
323
+ border-top: 1px solid var(--gray-300);
324
+ border-bottom: 1px solid var(--gray-300);
325
+
326
+ }
327
+
328
+ ._1A7Qv {
329
+ display: flex;
330
+ justify-content: space-between;
331
+ line-height: 150%;
332
+ margin-bottom: 4px;
333
+ }
334
+
335
+ ._14Ejo {
336
+ font-family: 'Eina04';
337
+ font-weight: 600;
338
+ font-size: 18px;
339
+ }
340
+
341
+ ._1ZIgu {
342
+ font-family: 'Eina04';
343
+ font-weight: 600;
344
+ font-size: 14px;
345
+ margin-bottom: 24px;
346
+ }
347
+
348
+ ._1BUr8 {
349
+ margin-top: 8px;
350
+ }
351
+
352
+ @media (min-width: 800px) {
353
+ ._MPKjS {
354
+ overflow-y: auto;
355
+ margin: 0;
356
+ border-bottom: 1px solid transparent;
357
+ height: 100%;
358
+ }
359
+ }
360
+
361
+ ._180ro {
362
+ display: flex;
363
+ flex-direction: column;
364
+ margin-bottom: 40px;
365
+ padding: 0 24px;
366
+ }
367
+
368
+ ._1HqCO {
369
+ display: flex;
370
+ align-items: center;
371
+ margin-bottom: 16px;
372
+ line-height: 180%;
373
+ }
374
+
375
+ ._3B8wx {
376
+ flex: 0 0 30px;
377
+ height: 30px;
378
+ line-height: 30px;
379
+ display: flex;
380
+ justify-content: center;
381
+ align-items: center;
382
+ border-radius: 50%;
383
+ background-color: var(--blue-300);
384
+ color: var(--white);
385
+ margin-right: 16px;
386
+ }
387
+
388
+ @media (min-width: 800px) {
389
+ ._180ro {
390
+ margin: 0;
391
+ padding: 0;
392
+ }
393
+ }
394
+
395
+ ._3Oyv_ {
396
+ width: 100%;
397
+ display: flex;
398
+ align-items: flex-end;
399
+ justify-content: center;
400
+ flex: 1;
401
+ padding-bottom: 64px;
402
+ }
403
+
404
+ @media (min-width: 800px) {
405
+ ._3Oyv_ {
406
+ padding-bottom: 0;
407
+ }
408
+ }
409
+
410
+ ._3ERx- {
411
+ font-family: 'Eina04';
412
+ font-weight: 600;
413
+ font-size: 18px;
414
+ line-height: 150%;
415
+ margin: 24px 0;
416
+ color: var(--blue-400);
417
+ text-align: center;
418
+ }
419
+
420
+ ._3ERx- > span {
421
+ background-color: rgba(253, 175, 111, 0.5);
422
+ border-radius: 2px;
423
+ padding: 8px 4px 2px 4px;
424
+ }
425
+
426
+ @media (min-width: 800px) {
427
+ ._3ERx- {
428
+ font-size: 24px;
429
+ text-align: start;
430
+ margin: 0 0 24px 0;
431
+ }
432
+ }
433
+
434
+ ._21g6u {
435
+ display: flex;
436
+ height: 100%;
437
+ flex-direction: row;
438
+ }
439
+
440
+ ._3zaP5 {
441
+ height: 100%;
442
+ display: flex;
443
+ flex-direction: column;
444
+ justify-content: space-between;
445
+ width: 100%;
446
+ }
447
+
448
+ ._2SBRC {
449
+ max-width: 300px;
450
+ padding-right: 24px;
451
+ }
452
+
453
+ ._17qNJ {
454
+ height: 100%;
455
+ display: flex;
456
+ align-items: center;
457
+ text-align: center;
458
+ font-size: 20px;
459
+ }
460
+
461
+ ._2oTJq {
462
+ height: 100%;
463
+ display: flex;
464
+ align-items: center;
465
+ justify-content: center;
466
+ }
467
+
468
+ ._2G7Ch {
469
+ height: 100%;
470
+ display: flex;
471
+ flex-direction: column;
472
+ }
473
+
474
+ ._2SwwZ {
475
+ display: flex;
476
+ flex-direction: column;
477
+ align-items: flex-start;
478
+ width: 100%;
479
+ }
480
+
481
+ ._2qODo {
482
+ width: 100%;
483
+ height: 20px;
484
+ background-color: #f7f9fb;
485
+ border-radius: 2px;
486
+ }
487
+ ._2YO01 {
488
+ width: 60%;
489
+ height: 15px;
490
+ margin-top: 16px;
491
+ background-color: #f7f9fb;
492
+ border-radius: 2px;
493
+ }
494
+
495
+ ._TSkFv {
496
+ width: 368px;
497
+ max-width: 100%;
498
+ background-color: transparent;
499
+ border: 1px solid var(--gray-300);
500
+ display: flex;
501
+ flex-direction: column;
502
+ align-items: flex-start;
503
+ padding: 12px;
504
+ }
505
+
506
+ ._TSkFv:focus,
507
+ ._TSkFv:focus-visible {
508
+ outline: none;
509
+ }
510
+
511
+ ._LJ4nZ {
512
+ color: var(--blue-300);
513
+ margin-right: 12px;
514
+ }
515
+ ._bMClc {
516
+ display: flex;
517
+ flex-direction: row;
518
+ align-items: flex-start;
519
+ }
520
+ ._17c_S {
521
+ display: flex;
522
+ flex-direction: row;
523
+ align-items: flex-start;
524
+ max-width: 310px;
525
+ flex-wrap: wrap;
526
+ }
527
+ ._2Kqjn {
528
+ font-size: 12px;
529
+ font-family: 'Eina04';
530
+ font-weight: 600;
531
+ color: var(--blue-300);
532
+ line-height: 20px;
533
+ display: flex;
534
+ flex-direction: column;
535
+ align-items: center;
536
+ text-align: center;
537
+ height: 22px;
538
+ width: 30px;
539
+ margin: 0 4px;
540
+ }
541
+ ._2Kqjn._3dG_J {
542
+ border-bottom: 3px solid var(--blue-300);
543
+ }
544
+
545
+ ._2Kqjn._3dG_J._3O1bg {
546
+ border-bottom-color: var(--gray-600);
547
+ }
548
+
549
+ ._25GrF {
550
+ font-family: Public Sans;
551
+ font-style: normal;
552
+ font-weight: normal;
553
+ font-size: 12px;
554
+ line-height: 180%;
555
+ color: var(--blue-300);
556
+ text-align: left;
557
+ margin-top: 8px;
558
+ }
559
+ ._3O1bg {
560
+ color: var(--gray-600);
561
+ }
562
+ ._30j1O {
563
+ overflow: hidden;
564
+ align-items: center;
565
+ }
566
+ ._R0YlN {
567
+ align-items: center;
568
+ line-height: 100%;
569
+ }
570
+ ._2kGhu {
571
+ font-family: Public Sans;
572
+ font-style: normal;
573
+ font-weight: normal;
574
+ font-size: 12px;
575
+ color: var(--blue-300);
576
+ }
577
+ ._73d_Y {
578
+ cursor: pointer;
579
+ text-decoration: underline;
580
+ }
581
+ ._1ZDMS {
582
+ align-items: center;
583
+ }