@justfixnyc/component-library 0.54.6 → 0.55.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.
@@ -649,7 +649,7 @@
649
649
  flex-grow: 1;
650
650
  white-space: nowrap;
651
651
  border-radius: 6px;
652
- border: 1px solid #c5ccd1;
652
+ border: 1px solid #242323;
653
653
  background: #faf8f4;
654
654
  padding: 0.75rem;
655
655
  cursor: pointer;
@@ -659,10 +659,10 @@
659
659
  padding: 0.6875rem;
660
660
  }
661
661
  .jfcl-select-button__label:hover {
662
- background-color: #ffffff;
662
+ background-color: #efe9dc;
663
663
  }
664
664
  .jfcl-select-button__label:active {
665
- background-color: #ebece8;
665
+ background-color: #edf3ff;
666
666
  }
667
667
 
668
668
  .jfcl-select-button__input:checked + .jfcl-select-button__label {
@@ -649,7 +649,7 @@
649
649
  flex-grow: 1;
650
650
  white-space: nowrap;
651
651
  border-radius: 6px;
652
- border: 1px solid #c5ccd1;
652
+ border: 1px solid #242323;
653
653
  background: #faf8f4;
654
654
  padding: 0.75rem;
655
655
  cursor: pointer;
@@ -659,10 +659,10 @@
659
659
  padding: 0.6875rem;
660
660
  }
661
661
  .jfcl-select-button__label:hover {
662
- background-color: #ffffff;
662
+ background-color: #efe9dc;
663
663
  }
664
664
  .jfcl-select-button__label:active {
665
- background-color: #ebece8;
665
+ background-color: #edf3ff;
666
666
  }
667
667
 
668
668
  .jfcl-select-button__input:checked + .jfcl-select-button__label {
@@ -1,7 +1,7 @@
1
1
  import _extends from '@babel/runtime/helpers/extends';
2
2
  import classNames from 'classnames';
3
3
  import React, { forwardRef, useId } from 'react';
4
- import { faBan, faXmark, faDownload as faDownload$1, faBuildingColumns, faAddressCard, faBuilding, faMapLocationDot, faMemoPad, faLocationDot, faHouse, faGlobe, faUser, faSpinner, faBars, faEnvelope as faEnvelope$1, faCommentSms, faCopy, faCirclePlus, faCircleInfo, faCircleExclamation as faCircleExclamation$1, faChevronRight, faChevronLeft, faChevronDown, faChevronUp, faCheckDouble, faCheck, faCaretDown, faCaretRight, faBookmark as faBookmark$1, faSquareArrowUpRight, faArrowsRotateReverse, faArrowDownWideShort, faArrowUpShortWide, faArrowUpArrowDown, faArrowDownLong, faArrowUpLong, faArrowDown, faArrowUpRight, faArrowUp, faArrowRight, faArrowLeft } from '@awesome.me/kit-dd32553919/icons/classic/solid';
4
+ import { faPlus, faBan, faXmark, faDownload as faDownload$1, faBuildingColumns, faAddressCard, faBuilding, faMapLocationDot, faMemoPad, faLocationDot, faHouse, faGlobe, faUser, faSpinner, faBars, faEnvelope as faEnvelope$1, faCommentSms, faCopy, faCirclePlus, faCircleInfo, faCircleExclamation as faCircleExclamation$1, faChevronRight, faChevronLeft, faChevronDown, faChevronUp, faCheckDouble, faCheck, faCaretDown, faCaretRight, faBookmark as faBookmark$1, faSquareArrowUpRight, faArrowsRotateReverse, faArrowDownWideShort, faArrowUpShortWide, faArrowUpArrowDown, faArrowDownLong, faArrowUpLong, faArrowDown, faArrowUpRight, faArrowUp, faArrowRight, faArrowLeft } from '@awesome.me/kit-dd32553919/icons/classic/solid';
5
5
  import { faPrint, faEyeSlash, faEye, faDownload, faEnvelope, faCircleExclamation, faBookmark } from '@awesome.me/kit-dd32553919/icons/classic/regular';
6
6
  import { faXTwitter, faTwitter, faFacebookF } from '@awesome.me/kit-dd32553919/icons/classic/brands';
7
7
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
@@ -157,6 +157,9 @@ const Icon = _ref => {
157
157
  case 'print':
158
158
  faIcon = faPrint;
159
159
  break;
160
+ case 'plus':
161
+ faIcon = faPlus;
162
+ break;
160
163
  default:
161
164
  console.warn("".concat(icon, " is not a supported icon name."));
162
165
  return /*#__PURE__*/React.createElement(React.Fragment, null);
@@ -498,6 +501,7 @@ const RadioButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
498
501
  headerText,
499
502
  helperText,
500
503
  labelText,
504
+ labelElement,
501
505
  disabled,
502
506
  id,
503
507
  ...props
@@ -533,7 +537,7 @@ const RadioButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
533
537
  "data-testid": "jfcl-radio-button__checkmark"
534
538
  }, /*#__PURE__*/React.createElement("span", {
535
539
  className: "jfcl-radio-button__checkmark-checked"
536
- })), labelText));
540
+ })), labelElement || labelText));
537
541
  });
538
542
  RadioButton.displayName = 'RadioButton';
539
543
 
package/dist/src/index.js CHANGED
@@ -168,6 +168,9 @@ const Icon = _ref => {
168
168
  case 'print':
169
169
  faIcon = regular.faPrint;
170
170
  break;
171
+ case 'plus':
172
+ faIcon = solid.faPlus;
173
+ break;
171
174
  default:
172
175
  console.warn("".concat(icon, " is not a supported icon name."));
173
176
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null);
@@ -509,6 +512,7 @@ const RadioButton = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref
509
512
  headerText,
510
513
  helperText,
511
514
  labelText,
515
+ labelElement,
512
516
  disabled,
513
517
  id,
514
518
  ...props
@@ -544,7 +548,7 @@ const RadioButton = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref
544
548
  "data-testid": "jfcl-radio-button__checkmark"
545
549
  }, /*#__PURE__*/React__default["default"].createElement("span", {
546
550
  className: "jfcl-radio-button__checkmark-checked"
547
- })), labelText));
551
+ })), labelElement || labelText));
548
552
  });
549
553
  RadioButton.displayName = 'RadioButton';
550
554
 
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import './styles.scss';
3
3
  import { IconNames } from '../Icon/Icon';
4
- export interface ButtonProps extends React.ComponentPropsWithoutRef<'button'> {
4
+ interface ButtonPropsLabel extends React.ComponentPropsWithoutRef<'button'> {
5
5
  labelText: string;
6
6
  labelIcon?: IconNames;
7
7
  variant?: 'primary' | 'secondary' | 'tertiary';
@@ -11,7 +11,14 @@ export interface ButtonProps extends React.ComponentPropsWithoutRef<'button'> {
11
11
  iconOnly?: boolean;
12
12
  className?: string;
13
13
  }
14
+ interface ButtonPropsIconOnly extends Omit<ButtonPropsLabel, 'labelText' | 'labelIcon' | 'iconOnly'> {
15
+ labelIcon: IconNames;
16
+ iconOnly: boolean;
17
+ labelText?: string;
18
+ }
19
+ export type ButtonProps = ButtonPropsLabel | ButtonPropsIconOnly;
14
20
  /**
15
21
  * Accepts all `ButtonHTMLAttributes`
16
22
  */
17
23
  export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
24
+ export {};
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { FontAwesomeIconProps } from '@fortawesome/react-fontawesome';
3
- export type IconNames = 'arrowLeft' | 'arrowRight' | 'arrowUp' | 'arrowUpRight' | 'arrowDown' | 'arrowUpLong' | 'arrowDownLong' | 'arrowUpArrowDown' | 'arrowUpShortWide' | 'arrowDownWideShort' | 'arrowsRotateReverse' | 'squareArrowUpRight' | 'bookmark' | 'caretRight' | 'caretDown' | 'check' | 'checkDouble' | 'chevronUp' | 'chevronDown' | 'chevronLeft' | 'chevronRight' | 'circleExclamation' | 'circleInfo' | 'circlePlus' | 'copy' | 'facebook' | 'twitter' | 'xTwitter' | 'sms' | 'envelope' | 'bars' | 'spinner' | 'user' | 'globe' | 'house' | 'locationDot' | 'memoPad' | 'mapLocationDot' | 'building' | 'addressCard' | 'buildingColumns' | 'download' | 'downloadRegular' | 'xmark' | 'ban' | 'eye' | 'eyeSlash' | 'print';
3
+ export type IconNames = 'arrowLeft' | 'arrowRight' | 'arrowUp' | 'arrowUpRight' | 'arrowDown' | 'arrowUpLong' | 'arrowDownLong' | 'arrowUpArrowDown' | 'arrowUpShortWide' | 'arrowDownWideShort' | 'arrowsRotateReverse' | 'squareArrowUpRight' | 'bookmark' | 'caretRight' | 'caretDown' | 'check' | 'checkDouble' | 'chevronUp' | 'chevronDown' | 'chevronLeft' | 'chevronRight' | 'circleExclamation' | 'circleInfo' | 'circlePlus' | 'copy' | 'facebook' | 'twitter' | 'xTwitter' | 'sms' | 'envelope' | 'bars' | 'spinner' | 'user' | 'globe' | 'house' | 'locationDot' | 'memoPad' | 'mapLocationDot' | 'building' | 'addressCard' | 'buildingColumns' | 'download' | 'downloadRegular' | 'xmark' | 'ban' | 'eye' | 'eyeSlash' | 'print' | 'plus';
4
4
  export interface IconProps extends Omit<FontAwesomeIconProps, 'icon'> {
5
5
  className?: string;
6
6
  icon?: IconNames;
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
2
  import './styles.scss';
3
- export interface RadioButtonProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
+ interface RadioButtonPropsLabelText extends React.InputHTMLAttributes<HTMLInputElement> {
4
4
  labelText: string;
5
+ labelElement?: React.ReactNode;
5
6
  headerText?: string;
6
7
  helperText?: string;
7
8
  invalid?: boolean;
@@ -11,7 +12,13 @@ export interface RadioButtonProps extends React.InputHTMLAttributes<HTMLInputEle
11
12
  disabled?: boolean;
12
13
  id: string;
13
14
  }
15
+ interface RadioButtonPropsLabelElement extends Omit<RadioButtonPropsLabelText, 'labelText'> {
16
+ labelText?: string;
17
+ labelElement: React.ReactNode;
18
+ }
19
+ export type RadioButtonProps = RadioButtonPropsLabelText | RadioButtonPropsLabelElement;
14
20
  /**
15
21
  * Accepts all `InputHTMLAttributes`
16
22
  */
17
23
  export declare const RadioButton: React.ForwardRefExoticComponent<RadioButtonProps & React.RefAttributes<HTMLInputElement>>;
24
+ export {};
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.54.6",
5
+ "version": "0.55.0",
6
6
  "main": "dist/src/index.js",
7
7
  "module": "dist/src/index.es.js",
8
8
  "files": [