@justfixnyc/component-library 0.34.0 → 0.36.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 +404 -322
  4. package/dist/src/index.js +410 -336
  5. package/dist/typings/{buttons → Components/Button}/Button.d.ts +2 -1
  6. package/dist/typings/Components/Dropdown/Dropdown.d.ts +17 -0
  7. package/dist/typings/Components/Icon/Icon.d.ts +8 -0
  8. package/dist/typings/index.d.ts +9 -4
  9. package/package.json +6 -4
  10. package/dist/typings/icons/Check.d.ts +0 -3
  11. package/dist/typings/icons/Check2.d.ts +0 -3
  12. package/dist/typings/icons/Chevron.d.ts +0 -3
  13. package/dist/typings/icons/Close.d.ts +0 -3
  14. package/dist/typings/icons/Error.d.ts +0 -3
  15. package/dist/typings/icons/Facebook.d.ts +0 -3
  16. package/dist/typings/icons/Globe.d.ts +0 -3
  17. package/dist/typings/icons/Hamburger.d.ts +0 -3
  18. package/dist/typings/icons/Icons.d.ts +0 -16
  19. package/dist/typings/icons/Internet.d.ts +0 -3
  20. package/dist/typings/icons/LinkExternal.d.ts +0 -3
  21. package/dist/typings/icons/LinkInternal.d.ts +0 -3
  22. package/dist/typings/icons/Loading.d.ts +0 -3
  23. package/dist/typings/icons/Mail.d.ts +0 -3
  24. package/dist/typings/icons/Person.d.ts +0 -3
  25. package/dist/typings/icons/Twitter.d.ts +0 -3
  26. /package/dist/typings/{alerts → Components/Alert}/Alert.d.ts +0 -0
  27. /package/dist/typings/{Checkbox → Components/Checkbox}/Checkbox.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
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
2
  import './styles.scss';
3
+ import { IconNames } from '../Icon/Icon';
3
4
  export interface ButtonProps extends React.ComponentPropsWithoutRef<'button'> {
4
5
  labelText: string;
5
- labelIcon?: React.ElementType;
6
+ labelIcon?: IconNames;
6
7
  variant?: 'primary' | 'secondary' | 'tertiary';
7
8
  size?: 'small' | 'large';
8
9
  loading?: boolean;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import './styles.scss';
3
+ export interface DropdownProps {
4
+ onChange?: () => void;
5
+ className?: string;
6
+ options: {
7
+ value: string;
8
+ label: string;
9
+ isDisabled?: boolean;
10
+ }[];
11
+ labelText: string;
12
+ helperText?: string;
13
+ invalidText?: string;
14
+ invalid?: boolean;
15
+ disabled?: boolean;
16
+ }
17
+ export declare const Dropdown: React.FC<DropdownProps>;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { FontAwesomeIconProps } from '@fortawesome/react-fontawesome';
3
+ export type IconNames = 'arrowLeft' | 'arrowRight' | 'squareArrowUpRight' | 'check' | 'chevronUp' | 'chevronDown' | 'chevronLeft' | 'chevronRight' | 'circleExclamation' | 'circlePlus' | 'facebook' | 'twitter' | 'envelope' | 'bars' | 'spinner' | 'user' | 'globe' | 'download' | 'xmark';
4
+ export interface IconProps extends Omit<FontAwesomeIconProps, 'icon'> {
5
+ className?: string;
6
+ icon?: IconNames;
7
+ }
8
+ export declare const Icon: React.FC<IconProps>;
@@ -1,5 +1,10 @@
1
1
  import './styles/global.scss';
2
- export * from './buttons/Button';
3
- export * from './alerts/Alert';
4
- export * from './link/Link';
5
- export * from './icons/Icons';
2
+ export * from './Components/Alert/Alert';
3
+ export * from './Components/Button/Button';
4
+ export * from './Components/Checkbox/Checkbox';
5
+ export * from './Components/Dropdown/Dropdown';
6
+ export * from './Components/FormGroup/FormGroup';
7
+ export * from './Components/Icon/Icon';
8
+ export * from './Components/Link/Link';
9
+ export * from './Components/RadioButton/RadioButton';
10
+ export * from './Components/TextInput/TextInput';
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.34.0",
5
+ "version": "0.36.0",
6
6
  "main": "dist/src/index.js",
7
7
  "module": "dist/src/index.es.js",
8
8
  "files": [
@@ -29,9 +29,11 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@babel/runtime": "^7.12.5",
32
- "@fortawesome/fontawesome-svg-core": "^6.5.1",
33
- "@fortawesome/free-solid-svg-icons": "^6.5.1",
34
- "@fortawesome/react-fontawesome": "^0.2.0"
32
+ "@fortawesome/fontawesome-svg-core": "6.5.1",
33
+ "@fortawesome/free-brands-svg-icons": "6.5.1",
34
+ "@fortawesome/free-solid-svg-icons": "6.5.1",
35
+ "@fortawesome/react-fontawesome": "^0.2.0",
36
+ "react-select": "^5.7.2"
35
37
  },
36
38
  "peerDependencies": {
37
39
  "@lingui/cli": ">=2.9.1",
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const IconCheck: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
3
- export default IconCheck;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const IconCheck2: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
3
- export default IconCheck2;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const IconChevron: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
3
- export default IconChevron;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const IconClose: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
3
- export default IconClose;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const IconError: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
3
- export default IconError;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const IconFacebook: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
3
- export default IconFacebook;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const IconGlobe: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
3
- export default IconGlobe;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const IconHamburger: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
3
- export default IconHamburger;
@@ -1,16 +0,0 @@
1
- import IconLoading from './Loading';
2
- import IconLinkExternal from './LinkExternal';
3
- import IconLinkInternal from './LinkInternal';
4
- import IconCheck from './Check';
5
- import IconCheck2 from './Check2';
6
- import IconError from './Error';
7
- import IconChevron from './Chevron';
8
- import IconClose from './Close';
9
- import IconGlobe from './Globe';
10
- import IconHamburger from './Hamburger';
11
- import IconInternet from './Internet';
12
- import IconPerson from './Person';
13
- import IconTwitter from './Twitter';
14
- import IconMail from './Mail';
15
- import IconFacebook from './Facebook';
16
- export { IconLoading, IconLinkExternal, IconLinkInternal, IconCheck, IconCheck2, IconError, IconTwitter, IconChevron, IconClose, IconGlobe, IconHamburger, IconInternet, IconPerson, IconMail, IconFacebook, };
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const IconInternet: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
3
- export default IconInternet;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const IconHamburger: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
3
- export default IconHamburger;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const IconLinkInternal: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
3
- export default IconLinkInternal;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const IconLoading: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
3
- export default IconLoading;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const IconMail: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
3
- export default IconMail;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const IconPerson: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
3
- export default IconPerson;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const IconTwitter: React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>;
3
- export default IconTwitter;