@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.
- package/dist/src/assets/index.css +403 -60
- package/dist/src/assets/index.es.css +403 -60
- package/dist/src/index.es.js +404 -322
- package/dist/src/index.js +410 -336
- package/dist/typings/{buttons → Components/Button}/Button.d.ts +2 -1
- package/dist/typings/Components/Dropdown/Dropdown.d.ts +17 -0
- package/dist/typings/Components/Icon/Icon.d.ts +8 -0
- package/dist/typings/index.d.ts +9 -4
- package/package.json +6 -4
- package/dist/typings/icons/Check.d.ts +0 -3
- package/dist/typings/icons/Check2.d.ts +0 -3
- package/dist/typings/icons/Chevron.d.ts +0 -3
- package/dist/typings/icons/Close.d.ts +0 -3
- package/dist/typings/icons/Error.d.ts +0 -3
- package/dist/typings/icons/Facebook.d.ts +0 -3
- package/dist/typings/icons/Globe.d.ts +0 -3
- package/dist/typings/icons/Hamburger.d.ts +0 -3
- package/dist/typings/icons/Icons.d.ts +0 -16
- package/dist/typings/icons/Internet.d.ts +0 -3
- package/dist/typings/icons/LinkExternal.d.ts +0 -3
- package/dist/typings/icons/LinkInternal.d.ts +0 -3
- package/dist/typings/icons/Loading.d.ts +0 -3
- package/dist/typings/icons/Mail.d.ts +0 -3
- package/dist/typings/icons/Person.d.ts +0 -3
- package/dist/typings/icons/Twitter.d.ts +0 -3
- /package/dist/typings/{alerts → Components/Alert}/Alert.d.ts +0 -0
- /package/dist/typings/{Checkbox → Components/Checkbox}/Checkbox.d.ts +0 -0
- /package/dist/typings/{FormGroup → Components/FormGroup}/FormGroup.d.ts +0 -0
- /package/dist/typings/{InputHeader → Components/InputHeader}/InputHeader.d.ts +0 -0
- /package/dist/typings/{link → Components/Link}/Link.d.ts +0 -0
- /package/dist/typings/{RadioButton → Components/RadioButton}/RadioButton.d.ts +0 -0
- /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?:
|
|
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>;
|
package/dist/typings/index.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import './styles/global.scss';
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
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.
|
|
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": "
|
|
33
|
-
"@fortawesome/free-
|
|
34
|
-
"@fortawesome/
|
|
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,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, };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|