@justfixnyc/component-library 0.56.6 → 0.57.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.
@@ -404,19 +404,21 @@
404
404
  align-items: center;
405
405
  box-sizing: border-box;
406
406
  background-clip: padding-box;
407
- border: 1.5px solid;
407
+ border: 1px solid;
408
408
  margin-right: 8px;
409
409
  border-radius: 4px;
410
410
  background: #faf8f4;
411
411
  }
412
412
  .jfcl-checkbox .jfcl-checkbox__checkmark.jfcl-checkbox__checkmark--is-invalid {
413
413
  border-color: #ff813a;
414
+ border-width: 1.5px;
414
415
  }
415
416
  .jfcl-checkbox .jfcl-checkbox__checkmark .jfcl-checkbox__check_icon {
416
417
  color: #ffffff;
417
418
  display: none;
418
419
  }
419
420
  .jfcl-checkbox .jfcl-checkbox__input:focus-visible + .jfcl-checkbox__label .jfcl-checkbox__checkmark {
421
+ border-width: 2px;
420
422
  outline: 2px solid #5188ff;
421
423
  outline-offset: 2px;
422
424
  }
@@ -540,7 +542,8 @@
540
542
  color: #676565;
541
543
  }
542
544
  .jfcl-link .jfcl-link__icon {
543
- margin-left: 10px;
545
+ margin-left: 2px;
546
+ height: 0.9em;
544
547
  }
545
548
  @keyframes spin {
546
549
  from {
@@ -741,7 +744,7 @@
741
744
  }
742
745
  .jfcl-text-input .jfcl-text-input__input:active:not(:disabled) {
743
746
  border-radius: 4px;
744
- border: 2px solid #242323;
747
+ border-width: 2px;
745
748
  padding-left: calc(var(--input-padding-left) - 1px);
746
749
  background: #ffffff;
747
750
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.2);
@@ -404,19 +404,21 @@
404
404
  align-items: center;
405
405
  box-sizing: border-box;
406
406
  background-clip: padding-box;
407
- border: 1.5px solid;
407
+ border: 1px solid;
408
408
  margin-right: 8px;
409
409
  border-radius: 4px;
410
410
  background: #faf8f4;
411
411
  }
412
412
  .jfcl-checkbox .jfcl-checkbox__checkmark.jfcl-checkbox__checkmark--is-invalid {
413
413
  border-color: #ff813a;
414
+ border-width: 1.5px;
414
415
  }
415
416
  .jfcl-checkbox .jfcl-checkbox__checkmark .jfcl-checkbox__check_icon {
416
417
  color: #ffffff;
417
418
  display: none;
418
419
  }
419
420
  .jfcl-checkbox .jfcl-checkbox__input:focus-visible + .jfcl-checkbox__label .jfcl-checkbox__checkmark {
421
+ border-width: 2px;
420
422
  outline: 2px solid #5188ff;
421
423
  outline-offset: 2px;
422
424
  }
@@ -540,7 +542,8 @@
540
542
  color: #676565;
541
543
  }
542
544
  .jfcl-link .jfcl-link__icon {
543
- margin-left: 10px;
545
+ margin-left: 2px;
546
+ height: 0.9em;
544
547
  }
545
548
  @keyframes spin {
546
549
  from {
@@ -741,7 +744,7 @@
741
744
  }
742
745
  .jfcl-text-input .jfcl-text-input__input:active:not(:disabled) {
743
746
  border-radius: 4px;
744
- border: 2px solid #242323;
747
+ border-width: 2px;
745
748
  padding-left: calc(var(--input-padding-left) - 1px);
746
749
  background: #ffffff;
747
750
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.2);
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import './styles.scss';
3
3
  export interface CheckboxProps extends React.InputHTMLAttributes<HTMLInputElement> {
4
4
  labelText: string;
5
- headerText?: string;
5
+ headerText?: React.ReactNode;
6
6
  helperText?: string;
7
7
  invalid?: boolean;
8
8
  invalidText?: string;
@@ -8,7 +8,7 @@ export interface DropdownProps {
8
8
  label: string;
9
9
  isDisabled?: boolean;
10
10
  }[];
11
- labelText: string;
11
+ labelText: React.ReactNode;
12
12
  helperText?: string;
13
13
  invalidText?: string;
14
14
  invalidRole?: string;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import './styles.scss';
3
3
  export interface FormGroupProps extends React.FieldsetHTMLAttributes<HTMLFieldSetElement> {
4
- legendText: string;
4
+ legendText: React.ReactNode;
5
5
  helperText?: string;
6
6
  helperElement?: React.ReactNode;
7
7
  invalid?: boolean;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import './style.scss';
3
3
  export interface InputHeaderProps {
4
4
  className?: string;
5
- headerText?: string;
5
+ headerText?: React.ReactNode;
6
6
  labelFor?: string;
7
7
  isLegend?: boolean;
8
8
  helperText?: string;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import './styles.scss';
3
3
  export interface TextInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
4
- labelText: string;
4
+ labelText: React.ReactNode;
5
5
  id: string;
6
6
  size?: 'small' | 'medium' | 'large';
7
7
  helperText?: string;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@justfixnyc/component-library",
3
3
  "description": "JustFix Component Library",
4
4
  "license": "MIT",
5
- "version": "0.56.6",
5
+ "version": "0.57.0",
6
6
  "main": "dist/src/index.js",
7
7
  "module": "dist/src/index.es.js",
8
8
  "files": [