@justfixnyc/component-library 0.35.0 → 0.37.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 (32) hide show
  1. package/dist/src/assets/index.css +403 -60
  2. package/dist/src/assets/index.es.css +403 -60
  3. package/dist/src/index.es.js +410 -322
  4. package/dist/src/index.js +416 -336
  5. package/dist/typings/{buttons → Components/Button}/Button.d.ts +2 -1
  6. package/dist/typings/Components/Icon/Icon.d.ts +8 -0
  7. package/dist/typings/index.d.ts +9 -4
  8. package/package.json +4 -3
  9. package/dist/typings/icons/Check.d.ts +0 -3
  10. package/dist/typings/icons/Check2.d.ts +0 -3
  11. package/dist/typings/icons/Chevron.d.ts +0 -3
  12. package/dist/typings/icons/Close.d.ts +0 -3
  13. package/dist/typings/icons/Error.d.ts +0 -3
  14. package/dist/typings/icons/Facebook.d.ts +0 -3
  15. package/dist/typings/icons/Globe.d.ts +0 -3
  16. package/dist/typings/icons/Hamburger.d.ts +0 -3
  17. package/dist/typings/icons/Icons.d.ts +0 -16
  18. package/dist/typings/icons/Internet.d.ts +0 -3
  19. package/dist/typings/icons/LinkExternal.d.ts +0 -3
  20. package/dist/typings/icons/LinkInternal.d.ts +0 -3
  21. package/dist/typings/icons/Loading.d.ts +0 -3
  22. package/dist/typings/icons/Mail.d.ts +0 -3
  23. package/dist/typings/icons/Person.d.ts +0 -3
  24. package/dist/typings/icons/Twitter.d.ts +0 -3
  25. /package/dist/typings/{alerts → Components/Alert}/Alert.d.ts +0 -0
  26. /package/dist/typings/{Checkbox → Components/Checkbox}/Checkbox.d.ts +0 -0
  27. /package/dist/typings/{Dropdown → Components/Dropdown}/Dropdown.d.ts +0 -0
  28. /package/dist/typings/{FormGroup → Components/FormGroup}/FormGroup.d.ts +0 -0
  29. /package/dist/typings/{InputHeader → Components/InputHeader}/InputHeader.d.ts +0 -0
  30. /package/dist/typings/{link → Components/Link}/Link.d.ts +0 -0
  31. /package/dist/typings/{RadioButton → Components/RadioButton}/RadioButton.d.ts +0 -0
  32. /package/dist/typings/{textInput → Components/TextInput}/TextInput.d.ts +0 -0
@@ -41,6 +41,106 @@
41
41
  transform: rotate(360deg);
42
42
  }
43
43
  }
44
+ .jfcl-alert {
45
+ display: flex;
46
+ align-items: center;
47
+ justify-content: space-between;
48
+ padding: 0.75rem;
49
+ padding-left: calc(12px + 0.75rem);
50
+ position: relative;
51
+ width: fit-content;
52
+ min-width: 10rem;
53
+ border-radius: 0.25rem;
54
+ overflow: hidden;
55
+ font-family: "Degular", Arial, Helvetica, sans-serif;
56
+ font-style: normal;
57
+ font-weight: 500;
58
+ font-size: 1.125rem;
59
+ line-height: 120%;
60
+ letter-spacing: 0.54px;
61
+ }
62
+ .jfcl-alert .jfcl-alert__content {
63
+ display: flex;
64
+ align-items: center;
65
+ }
66
+ .jfcl-alert .jfcl-alert__content .jfcl-alert__icon {
67
+ margin-right: 8px;
68
+ }
69
+ .jfcl-alert .jfcl-alert__content .jfcl-alert__icon.jfcl-alert__icon-error {
70
+ font-size: 1rem;
71
+ }
72
+ .jfcl-alert::before {
73
+ content: "";
74
+ width: 12px;
75
+ position: absolute;
76
+ top: 0;
77
+ left: 0;
78
+ bottom: 0;
79
+ }
80
+ .jfcl-alert button.jfcl-alert__btn,
81
+ .jfcl-alert a.jfcl-alert__btn {
82
+ font-family: "Degular", Arial, Helvetica, sans-serif;
83
+ font-style: normal;
84
+ font-weight: 500;
85
+ font-size: 1.125rem;
86
+ line-height: 120%;
87
+ letter-spacing: 0.54px;
88
+ display: flex;
89
+ background: transparent;
90
+ padding: 0;
91
+ border: none;
92
+ margin-left: 0.5rem;
93
+ cursor: pointer;
94
+ font-size: 1em;
95
+ text-decoration: none;
96
+ }
97
+ .jfcl-alert button.jfcl-alert__btn.jfcl-alert__btn_text,
98
+ .jfcl-alert a.jfcl-alert__btn.jfcl-alert__btn_text {
99
+ border-bottom: 1px solid;
100
+ }
101
+ .jfcl-alert button.jfcl-alert__btn.jfcl-alert__btn_text:hover,
102
+ .jfcl-alert a.jfcl-alert__btn.jfcl-alert__btn_text:hover {
103
+ color: #676565;
104
+ }
105
+ .jfcl-alert.jfcl-type-info::before {
106
+ background-color: #5188ff;
107
+ }
108
+ .jfcl-alert.jfcl-type-error::before {
109
+ background-color: #ff813a;
110
+ }
111
+ .jfcl-alert.jfcl-type-success::before {
112
+ background-color: #1aa551;
113
+ }
114
+ .jfcl-alert.jfcl-variant-primary {
115
+ background-color: #242323;
116
+ color: #faf8f4;
117
+ }
118
+ .jfcl-alert.jfcl-variant-primary button.jfcl-alert__btn,
119
+ .jfcl-alert.jfcl-variant-primary a.jfcl-alert__btn {
120
+ color: #faf8f4;
121
+ }
122
+ .jfcl-alert.jfcl-variant-primary button.jfcl-alert__btn.jfcl-alert__btn_text:hover,
123
+ .jfcl-alert.jfcl-variant-primary a.jfcl-alert__btn.jfcl-alert__btn_text:hover {
124
+ color: #9a9898;
125
+ }
126
+ .jfcl-alert.jfcl-variant-secondary {
127
+ background-color: #faf8f4;
128
+ border: 1px solid #676565;
129
+ color: #242323;
130
+ }
131
+ .jfcl-alert.jfcl-variant-secondary button.jfcl-alert__btn,
132
+ .jfcl-alert.jfcl-variant-secondary a.jfcl-alert__btn {
133
+ color: #242323;
134
+ border-color: #242323;
135
+ }
136
+ @keyframes spin {
137
+ from {
138
+ transform: rotate(0deg);
139
+ }
140
+ to {
141
+ transform: rotate(360deg);
142
+ }
143
+ }
44
144
  .jfcl-button {
45
145
  font-family: "Degular", Arial, Helvetica, sans-serif;
46
146
  font-style: normal;
@@ -188,96 +288,211 @@
188
288
  transform: rotate(360deg);
189
289
  }
190
290
  }
191
- .jfcl-alert {
192
- display: flex;
193
- align-items: center;
194
- justify-content: space-between;
195
- padding: 0.75rem;
196
- padding-left: calc(12px + 0.75rem);
197
- position: relative;
198
- width: fit-content;
199
- min-width: 10rem;
200
- border-radius: 0.25rem;
201
- overflow: hidden;
291
+ .jfcl-input-header__label {
202
292
  font-family: "Degular", Arial, Helvetica, sans-serif;
203
293
  font-style: normal;
204
294
  font-weight: 500;
205
295
  font-size: 1.125rem;
206
296
  line-height: 120%;
207
297
  letter-spacing: 0.54px;
298
+ margin-bottom: 0.75rem;
299
+ color: #242323;
300
+ display: flex;
301
+ padding: 0;
208
302
  }
209
- .jfcl-alert .jfcl-alert__content {
303
+ .jfcl-input-header__label.jfcl-input-header__label--has-helper {
304
+ margin-bottom: 2px;
305
+ }
306
+
307
+ .jfcl-input-header__helper_text {
308
+ font-family: "Degular", Arial, Helvetica, sans-serif;
309
+ font-size: 0.875rem;
310
+ font-style: normal;
311
+ font-weight: 500;
312
+ line-height: 130%;
313
+ letter-spacing: 0.42px;
314
+ color: #242323;
315
+ margin-bottom: 0.75rem;
316
+ }
317
+
318
+ .jfcl-input-header__invalid_text {
319
+ font-family: "Degular", Arial, Helvetica, sans-serif;
320
+ font-size: 0.875rem;
321
+ font-style: normal;
322
+ font-weight: 500;
323
+ line-height: 130%;
324
+ letter-spacing: 0.42px;
325
+ color: #242323;
210
326
  display: flex;
211
327
  align-items: center;
328
+ color: #ff813a;
329
+ margin-bottom: 0.75rem;
212
330
  }
213
- .jfcl-alert .jfcl-alert__content .jfcl-alert__icon {
214
- margin-right: 8px;
215
- width: 1.25rem;
216
- height: 1.25rem;
331
+ .jfcl-input-header__invalid_text .jfcl-input-header__invalid_icon {
332
+ margin-right: 4px;
217
333
  }
218
- .jfcl-alert::before {
219
- content: "";
220
- width: 12px;
221
- position: absolute;
222
- top: 0;
223
- left: 0;
224
- bottom: 0;
334
+ @keyframes spin {
335
+ from {
336
+ transform: rotate(0deg);
337
+ }
338
+ to {
339
+ transform: rotate(360deg);
340
+ }
225
341
  }
226
- .jfcl-alert button.jfcl-alert__btn,
227
- .jfcl-alert a.jfcl-alert__btn {
342
+ .jfcl-checkbox {
343
+ margin-bottom: 1.5rem;
344
+ color: #242323;
345
+ }
346
+ .jfcl-checkbox.jfcl-checkbox--is-disabled {
347
+ pointer-events: none;
348
+ color: #676565;
349
+ }
350
+ .jfcl-checkbox.jfcl-checkbox--is-disabled .jfcl-checkbox__checkmark {
351
+ background-color: #f2f2f2;
352
+ border-color: #9a9898;
353
+ }
354
+ .jfcl-checkbox .jfcl-checkbox__checkmark-label-wrapper {
355
+ display: flex;
356
+ }
357
+ .jfcl-checkbox .jfcl-checkbox__label {
358
+ display: flex;
359
+ align-items: center;
360
+ cursor: pointer;
228
361
  font-family: "Degular", Arial, Helvetica, sans-serif;
229
362
  font-style: normal;
230
363
  font-weight: 500;
231
364
  font-size: 1.125rem;
232
365
  line-height: 120%;
233
366
  letter-spacing: 0.54px;
234
- display: flex;
235
- background: transparent;
236
- padding: 0;
237
- border: none;
238
- margin-left: 0.5rem;
367
+ }
368
+ .jfcl-checkbox .jfcl-checkbox__input {
369
+ position: absolute;
370
+ width: 0px;
371
+ height: 0px;
372
+ opacity: 0;
239
373
  cursor: pointer;
240
- font-size: 1em;
241
- text-decoration: none;
242
374
  }
243
- .jfcl-alert button.jfcl-alert__btn.jfcl-alert__btn_text,
244
- .jfcl-alert a.jfcl-alert__btn.jfcl-alert__btn_text {
245
- border-bottom: 1px solid;
375
+ .jfcl-checkbox .jfcl-checkbox__checkmark {
376
+ display: inline-flex;
377
+ width: 1.5rem;
378
+ height: 1.5rem;
379
+ justify-content: center;
380
+ align-items: center;
381
+ box-sizing: border-box;
382
+ background-clip: padding-box;
383
+ border: 1.5px solid;
384
+ margin-right: 8px;
385
+ border-radius: 4px;
386
+ background: #faf8f4;
246
387
  }
247
- .jfcl-alert button.jfcl-alert__btn.jfcl-alert__btn_text:hover,
248
- .jfcl-alert a.jfcl-alert__btn.jfcl-alert__btn_text:hover {
249
- color: #676565;
388
+ .jfcl-checkbox .jfcl-checkbox__checkmark.jfcl-checkbox__checkmark--is-invalid {
389
+ border-color: #ff813a;
250
390
  }
251
- .jfcl-alert.jfcl-type-info::before {
252
- background-color: #5188ff;
391
+ .jfcl-checkbox .jfcl-checkbox__checkmark .jfcl-checkbox__check_icon {
392
+ color: #ffffff;
393
+ display: none;
253
394
  }
254
- .jfcl-alert.jfcl-type-error::before {
255
- background-color: #ff813a;
395
+ .jfcl-checkbox .jfcl-checkbox__input:focus-visible + .jfcl-checkbox__label .jfcl-checkbox__checkmark {
396
+ outline: 2px solid #5188ff;
397
+ outline-offset: 2px;
256
398
  }
257
- .jfcl-alert.jfcl-type-success::before {
258
- background-color: #1aa551;
399
+ .jfcl-checkbox .jfcl-checkbox__input:checked + .jfcl-checkbox__label .jfcl-checkbox__checkmark {
400
+ background-color: currentColor;
401
+ border-width: 1px;
259
402
  }
260
- .jfcl-alert.jfcl-variant-primary {
261
- background-color: #242323;
262
- color: #faf8f4;
403
+ .jfcl-checkbox .jfcl-checkbox__input:checked + .jfcl-checkbox__label .jfcl-checkbox__checkmark:not(.jfcl-checkbox__checkmark--is-invalid) {
404
+ border-color: transparent;
263
405
  }
264
- .jfcl-alert.jfcl-variant-primary button.jfcl-alert__btn,
265
- .jfcl-alert.jfcl-variant-primary a.jfcl-alert__btn {
266
- color: #faf8f4;
406
+ .jfcl-checkbox .jfcl-checkbox__input:checked + .jfcl-checkbox__label .jfcl-checkbox__checkmark .jfcl-checkbox__check_icon {
407
+ display: block;
267
408
  }
268
- .jfcl-alert.jfcl-variant-primary button.jfcl-alert__btn.jfcl-alert__btn_text:hover,
269
- .jfcl-alert.jfcl-variant-primary a.jfcl-alert__btn.jfcl-alert__btn_text:hover {
270
- color: #9a9898;
409
+ .jfcl-checkbox .jfcl-checkbox__input:hover + .jfcl-checkbox__label .jfcl-checkbox__checkmark:not(.jfcl-checkbox__checkmark--is-invalid) {
410
+ border-color: #676565;
271
411
  }
272
- .jfcl-alert.jfcl-variant-secondary {
273
- background-color: #faf8f4;
274
- border: 1px solid #676565;
275
- color: #242323;
412
+ @keyframes spin {
413
+ from {
414
+ transform: rotate(0deg);
415
+ }
416
+ to {
417
+ transform: rotate(360deg);
418
+ }
276
419
  }
277
- .jfcl-alert.jfcl-variant-secondary button.jfcl-alert__btn,
278
- .jfcl-alert.jfcl-variant-secondary a.jfcl-alert__btn {
420
+ .jfcl-dropdown {
421
+ --border-color: #676565;
422
+ --background-color: #faf8f4;
423
+ --text-color: #242323;
424
+ font-family: "Degular", Arial, Helvetica, sans-serif;
425
+ font-style: normal;
426
+ font-weight: 500;
427
+ font-size: 1.125rem;
428
+ line-height: 120%;
429
+ letter-spacing: 0.54px;
430
+ background-color: var(--background-color);
431
+ border-radius: 4px;
432
+ }
433
+ .jfcl-dropdown.jfcl-dropdown--is-invalid {
434
+ --border-color: #ff813a;
435
+ }
436
+ .jfcl-dropdown.jfcl-dropdown--is-disabled {
437
+ --border-color: #9a9898;
438
+ --background-color: #f2f2f2;
439
+ --text-color: #676565;
440
+ }
441
+ .jfcl-dropdown .jfcl-dropdown__single-value {
442
+ color: var(--text-color);
443
+ }
444
+ .jfcl-dropdown .jfcl-dropdown__control {
445
+ background-color: var(--background-color);
446
+ border: 1px solid var(--border-color);
447
+ }
448
+ .jfcl-dropdown .jfcl-dropdown__control.jfcl-dropdown__control:hover {
449
+ border-color: var(--border-color);
450
+ }
451
+ .jfcl-dropdown .jfcl-dropdown__control.jfcl-dropdown__control--is-focused {
452
+ border: 2px solid var(--border-color);
453
+ box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.2);
454
+ }
455
+ .jfcl-dropdown .jfcl-dropdown__indicator-separator {
456
+ display: none;
457
+ }
458
+ .jfcl-dropdown .jfcl-dropdown__indicator {
459
+ color: var(--text-color);
460
+ }
461
+ .jfcl-dropdown .jfcl-dropdown__indicator:hover {
462
+ color: var(--text-color);
463
+ }
464
+ .jfcl-dropdown .jfcl-dropdown__menu {
465
+ color: #676565;
466
+ }
467
+ .jfcl-dropdown .jfcl-dropdown__option {
468
+ padding: 0.75rem;
469
+ }
470
+ .jfcl-dropdown .jfcl-dropdown__option--is-focused,
471
+ .jfcl-dropdown .jfcl-dropdown__option:active:not(.jfcl-dropdown__option--is-disabled) {
472
+ background-color: var(--background-color);
473
+ color: var(--text-color);
474
+ }
475
+ .jfcl-dropdown .jfcl-dropdown__option--is-disabled {
476
+ background-color: var(--background-color);
477
+ color: #676565;
478
+ }
479
+ .jfcl-dropdown .jfcl-dropdown__option--is-selected {
480
+ background-color: #efe9dc;
279
481
  color: #242323;
280
- border-color: #242323;
482
+ }
483
+ .jfcl-dropdown .jfcl-dropdown__menu {
484
+ border: 2px solid #676565;
485
+ border-radius: 4px;
486
+ box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.2);
487
+ overflow: hidden;
488
+ }
489
+ .jfcl-dropdown .jfcl-dropdown__menu-list {
490
+ padding: 0;
491
+ }
492
+ .jfcl-form-group {
493
+ padding: 0;
494
+ margin: 0;
495
+ border: none;
281
496
  }
282
497
  @keyframes spin {
283
498
  from {
@@ -302,4 +517,132 @@
302
517
  }
303
518
  .jfcl-link .jfcl-link__icon {
304
519
  margin-left: 10px;
520
+ }
521
+ @keyframes spin {
522
+ from {
523
+ transform: rotate(0deg);
524
+ }
525
+ to {
526
+ transform: rotate(360deg);
527
+ }
528
+ }
529
+ .jfcl-radio-button {
530
+ margin-bottom: 1rem;
531
+ color: #242323;
532
+ }
533
+ .jfcl-radio-button.jfcl-radio-button--is-disabled {
534
+ color: #676565;
535
+ pointer-events: none;
536
+ }
537
+ .jfcl-radio-button .jfcl-radio-button__label {
538
+ display: flex;
539
+ align-items: center;
540
+ cursor: pointer;
541
+ font-family: "Degular", Arial, Helvetica, sans-serif;
542
+ font-style: normal;
543
+ font-weight: 500;
544
+ font-size: 1.125rem;
545
+ line-height: 120%;
546
+ letter-spacing: 0.54px;
547
+ }
548
+ .jfcl-radio-button .jfcl-radio-button__input {
549
+ position: absolute;
550
+ width: 0px;
551
+ height: 0px;
552
+ opacity: 0;
553
+ cursor: pointer;
554
+ }
555
+ .jfcl-radio-button .jfcl-radio-button__checkmark {
556
+ display: inline-flex;
557
+ width: 1.25rem;
558
+ height: 1.25rem;
559
+ margin-right: 8px;
560
+ border: 1.5px solid;
561
+ border-radius: 0.625rem;
562
+ box-sizing: border-box;
563
+ align-items: center;
564
+ justify-content: center;
565
+ }
566
+ .jfcl-radio-button .jfcl-radio-button__checkmark .jfcl-radio-button__checkmark-checked {
567
+ width: 0.75rem;
568
+ height: 0.75rem;
569
+ box-sizing: border-box;
570
+ border-radius: 0.375rem;
571
+ background-color: currentColor;
572
+ display: none;
573
+ }
574
+ .jfcl-radio-button .jfcl-radio-button__checkmark.jfcl-radio-button__checkmark--is-invalid {
575
+ border-color: #ff813a;
576
+ }
577
+ .jfcl-radio-button .jfcl-radio-button__input:hover + .jfcl-radio-button__label .jfcl-radio-button__checkmark:not(.jfcl-radio-button__checkmark--is-invalid) {
578
+ border-color: #676565;
579
+ }
580
+ .jfcl-radio-button .jfcl-radio-button__input:focus-visible + .jfcl-radio-button__label .jfcl-radio-button__checkmark {
581
+ outline: 2px solid #5188ff;
582
+ outline-offset: 2px;
583
+ }
584
+ .jfcl-radio-button .jfcl-radio-button__input:checked + .jfcl-radio-button__label .jfcl-radio-button__checkmark-checked {
585
+ display: block;
586
+ }
587
+ @keyframes spin {
588
+ from {
589
+ transform: rotate(0deg);
590
+ }
591
+ to {
592
+ transform: rotate(360deg);
593
+ }
594
+ }
595
+ .jfcl-text-input {
596
+ font-family: "Degular", Arial, Helvetica, sans-serif;
597
+ font-style: normal;
598
+ font-weight: 500;
599
+ font-size: 1.125rem;
600
+ line-height: 120%;
601
+ letter-spacing: 0.54px;
602
+ color: #242323;
603
+ margin-bottom: 2rem;
604
+ }
605
+ .jfcl-text-input .jfcl-text-input__input {
606
+ font-family: "Degular", Arial, Helvetica, sans-serif;
607
+ font-style: normal;
608
+ font-weight: 500;
609
+ font-size: 1.125rem;
610
+ line-height: 120%;
611
+ letter-spacing: 0.54px;
612
+ box-sizing: border-box;
613
+ width: 100%;
614
+ height: 44px;
615
+ padding: 10px 9px;
616
+ border-radius: 4px;
617
+ border: 1px solid #242323;
618
+ background: #faf8f4;
619
+ }
620
+ .jfcl-text-input .jfcl-text-input__input.jfcl-text-input--size-small {
621
+ width: 5rem;
622
+ }
623
+ .jfcl-text-input .jfcl-text-input__input.jfcl-text-input--size-medium {
624
+ width: 10rem;
625
+ }
626
+ .jfcl-text-input .jfcl-text-input__input.jfcl-text-input--size-large {
627
+ width: 17rem;
628
+ }
629
+ .jfcl-text-input .jfcl-text-input__input:active:not(:disabled) {
630
+ border-radius: 4px;
631
+ border: 2px solid #242323;
632
+ padding-left: 8px;
633
+ background: #ffffff;
634
+ box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.2);
635
+ }
636
+ .jfcl-text-input .jfcl-text-input__input:disabled {
637
+ border: 1px solid #9a9898;
638
+ background: #f2f2f2;
639
+ color: #676565;
640
+ pointer-events: none;
641
+ }
642
+ .jfcl-text-input .jfcl-text-input__input::placeholder {
643
+ color: #676565;
644
+ }
645
+ .jfcl-text-input.jfcl-text-input--is-invalid .jfcl-text-input__input {
646
+ border: 1.5px solid #ff813a;
647
+ padding-left: 8.5px;
305
648
  }