@ballistix.digital/react-components 0.8.2 → 0.8.3

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.
package/dist/index.d.ts CHANGED
@@ -146,7 +146,7 @@ declare const DropdownElement: {
146
146
 
147
147
  type TProps$b = {
148
148
  accessor: IconName;
149
- type?: 'brands' | 'light' | 'regular' | 'solid';
149
+ type?: 'brands' | 'light' | 'regular' | 'solid' | 'thin';
150
150
  className?: string;
151
151
  };
152
152
  declare const IconElement: FC<TProps$b>;
package/dist/index.esm.js CHANGED
@@ -8,6 +8,7 @@ import { fab } from '@fortawesome/free-brands-svg-icons';
8
8
  import { fal } from '@fortawesome/pro-light-svg-icons';
9
9
  import { far } from '@fortawesome/pro-regular-svg-icons';
10
10
  import { fas } from '@fortawesome/pro-solid-svg-icons';
11
+ import { fat } from '@fortawesome/pro-thin-svg-icons';
11
12
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
12
13
  import { Menu, Transition, Dialog, Popover, Switch } from '@headlessui/react';
13
14
  import { useMask } from '@react-input/mask';
@@ -297,6 +298,12 @@ var IconElement = function (props) {
297
298
  }
298
299
  component = (jsx(FontAwesomeIcon, { icon: ['fas', accessor], className: className }));
299
300
  break;
301
+ case 'thin':
302
+ if (!(library === null || library === void 0 ? void 0 : library.definitions.fat)) {
303
+ library.add(fat);
304
+ }
305
+ component = (jsx(FontAwesomeIcon, { icon: ['fat', accessor], className: className }));
306
+ break;
300
307
  }
301
308
  return component;
302
309
  };