@justfixnyc/component-library 0.32.2 → 0.33.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.
|
@@ -134,26 +134,30 @@
|
|
|
134
134
|
border-right-color: transparent;
|
|
135
135
|
border-top-color: transparent;
|
|
136
136
|
}
|
|
137
|
-
.jfcl-button.jfcl-variant-
|
|
137
|
+
.jfcl-button.jfcl-variant-tertiary {
|
|
138
138
|
color: #242323;
|
|
139
139
|
background: none;
|
|
140
140
|
border: none;
|
|
141
141
|
box-shadow: none;
|
|
142
142
|
}
|
|
143
|
-
.jfcl-button.jfcl-variant-
|
|
143
|
+
.jfcl-button.jfcl-variant-tertiary:disabled {
|
|
144
144
|
cursor: inherit;
|
|
145
145
|
color: #676565;
|
|
146
146
|
}
|
|
147
|
-
.jfcl-button.jfcl-variant-
|
|
147
|
+
.jfcl-button.jfcl-variant-tertiary:disabled .jfcl-button__text {
|
|
148
148
|
border-bottom: none;
|
|
149
149
|
}
|
|
150
|
-
.jfcl-button.jfcl-variant-
|
|
150
|
+
.jfcl-button.jfcl-variant-tertiary:hover:not(:disabled) {
|
|
151
151
|
background-color: #efe9dc;
|
|
152
|
+
box-shadow: none;
|
|
153
|
+
}
|
|
154
|
+
.jfcl-button.jfcl-variant-tertiary:active:not(:disabled) {
|
|
155
|
+
box-shadow: none;
|
|
152
156
|
}
|
|
153
|
-
.jfcl-button.jfcl-variant-
|
|
157
|
+
.jfcl-button.jfcl-variant-tertiary.jfcl-is-loading {
|
|
154
158
|
background-color: #efe9dc;
|
|
155
159
|
}
|
|
156
|
-
.jfcl-button.jfcl-variant-
|
|
160
|
+
.jfcl-button.jfcl-variant-tertiary.jfcl-is-loading .jfcl-button__icon {
|
|
157
161
|
display: block;
|
|
158
162
|
animation: spin 500ms infinite linear;
|
|
159
163
|
position: relative;
|
|
@@ -162,7 +166,7 @@
|
|
|
162
166
|
border-right-color: transparent;
|
|
163
167
|
border-top-color: transparent;
|
|
164
168
|
}
|
|
165
|
-
.jfcl-button.jfcl-variant-
|
|
169
|
+
.jfcl-button.jfcl-variant-tertiary:active(:disabled) {
|
|
166
170
|
background-color: rgba(239, 233, 220, 0.8);
|
|
167
171
|
}
|
|
168
172
|
@keyframes spin {
|
|
@@ -273,8 +277,5 @@
|
|
|
273
277
|
color: #676565;
|
|
274
278
|
}
|
|
275
279
|
.jfcl-link .jfcl-link__icon {
|
|
276
|
-
display: inline;
|
|
277
280
|
margin-left: 10px;
|
|
278
|
-
width: 1rem;
|
|
279
|
-
height: 1rem;
|
|
280
281
|
}
|
|
@@ -134,26 +134,30 @@
|
|
|
134
134
|
border-right-color: transparent;
|
|
135
135
|
border-top-color: transparent;
|
|
136
136
|
}
|
|
137
|
-
.jfcl-button.jfcl-variant-
|
|
137
|
+
.jfcl-button.jfcl-variant-tertiary {
|
|
138
138
|
color: #242323;
|
|
139
139
|
background: none;
|
|
140
140
|
border: none;
|
|
141
141
|
box-shadow: none;
|
|
142
142
|
}
|
|
143
|
-
.jfcl-button.jfcl-variant-
|
|
143
|
+
.jfcl-button.jfcl-variant-tertiary:disabled {
|
|
144
144
|
cursor: inherit;
|
|
145
145
|
color: #676565;
|
|
146
146
|
}
|
|
147
|
-
.jfcl-button.jfcl-variant-
|
|
147
|
+
.jfcl-button.jfcl-variant-tertiary:disabled .jfcl-button__text {
|
|
148
148
|
border-bottom: none;
|
|
149
149
|
}
|
|
150
|
-
.jfcl-button.jfcl-variant-
|
|
150
|
+
.jfcl-button.jfcl-variant-tertiary:hover:not(:disabled) {
|
|
151
151
|
background-color: #efe9dc;
|
|
152
|
+
box-shadow: none;
|
|
153
|
+
}
|
|
154
|
+
.jfcl-button.jfcl-variant-tertiary:active:not(:disabled) {
|
|
155
|
+
box-shadow: none;
|
|
152
156
|
}
|
|
153
|
-
.jfcl-button.jfcl-variant-
|
|
157
|
+
.jfcl-button.jfcl-variant-tertiary.jfcl-is-loading {
|
|
154
158
|
background-color: #efe9dc;
|
|
155
159
|
}
|
|
156
|
-
.jfcl-button.jfcl-variant-
|
|
160
|
+
.jfcl-button.jfcl-variant-tertiary.jfcl-is-loading .jfcl-button__icon {
|
|
157
161
|
display: block;
|
|
158
162
|
animation: spin 500ms infinite linear;
|
|
159
163
|
position: relative;
|
|
@@ -162,7 +166,7 @@
|
|
|
162
166
|
border-right-color: transparent;
|
|
163
167
|
border-top-color: transparent;
|
|
164
168
|
}
|
|
165
|
-
.jfcl-button.jfcl-variant-
|
|
169
|
+
.jfcl-button.jfcl-variant-tertiary:active(:disabled) {
|
|
166
170
|
background-color: rgba(239, 233, 220, 0.8);
|
|
167
171
|
}
|
|
168
172
|
@keyframes spin {
|
|
@@ -273,8 +277,5 @@
|
|
|
273
277
|
color: #676565;
|
|
274
278
|
}
|
|
275
279
|
.jfcl-link .jfcl-link__icon {
|
|
276
|
-
display: inline;
|
|
277
280
|
margin-left: 10px;
|
|
278
|
-
width: 1rem;
|
|
279
|
-
height: 1rem;
|
|
280
281
|
}
|
package/dist/src/index.es.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _extends from '@babel/runtime/helpers/extends';
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
|
+
import { faArrowRight, faSquareArrowUpRight } from '@fortawesome/free-solid-svg-icons';
|
|
5
|
+
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
4
6
|
|
|
5
7
|
/**
|
|
6
8
|
* Accepts all `ButtonHTMLAttributes`
|
|
@@ -81,7 +83,7 @@ const IconHamburger$2 = /*#__PURE__*/forwardRef((props, ref) => /*#__PURE__*/Rea
|
|
|
81
83
|
transform: "translate(1.31046 -0.00698853)"
|
|
82
84
|
})))));
|
|
83
85
|
IconHamburger$2.displayName = 'IconHamburger';
|
|
84
|
-
var
|
|
86
|
+
var IconHamburger$3 = IconHamburger$2;
|
|
85
87
|
|
|
86
88
|
const IconLinkInternal = /*#__PURE__*/forwardRef((props, ref) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
87
89
|
ref: ref
|
|
@@ -354,12 +356,14 @@ const Link = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
354
356
|
return /*#__PURE__*/React.createElement("a", _extends({}, props, {
|
|
355
357
|
ref: ref,
|
|
356
358
|
className: linkClassNames
|
|
357
|
-
}), children, icon === 'internal' && /*#__PURE__*/React.createElement(
|
|
359
|
+
}), children, icon === 'internal' && /*#__PURE__*/React.createElement(FontAwesomeIcon, {
|
|
360
|
+
icon: faArrowRight,
|
|
358
361
|
className: "jfcl-link__icon"
|
|
359
|
-
}), icon === 'external' && /*#__PURE__*/React.createElement(
|
|
362
|
+
}), icon === 'external' && /*#__PURE__*/React.createElement(FontAwesomeIcon, {
|
|
363
|
+
icon: faSquareArrowUpRight,
|
|
360
364
|
className: "jfcl-link__icon"
|
|
361
365
|
}));
|
|
362
366
|
});
|
|
363
367
|
Link.displayName = 'Link';
|
|
364
368
|
|
|
365
|
-
export { Alert, Button, IconCheck$1 as IconCheck, IconChevron$1 as IconChevron, IconClose$1 as IconClose, IconError$1 as IconError, IconFacebook$1 as IconFacebook, IconGlobe$1 as IconGlobe, IconHamburger$1 as IconHamburger, IconInternet$1 as IconInternet, IconLinkExternal, IconLinkInternal$1 as IconLinkInternal, IconLoading$1 as IconLoading, IconMail$1 as IconMail, IconPerson$1 as IconPerson, IconTwitter$1 as IconTwitter, Link };
|
|
369
|
+
export { Alert, Button, IconCheck$1 as IconCheck, IconChevron$1 as IconChevron, IconClose$1 as IconClose, IconError$1 as IconError, IconFacebook$1 as IconFacebook, IconGlobe$1 as IconGlobe, IconHamburger$1 as IconHamburger, IconInternet$1 as IconInternet, IconHamburger$3 as IconLinkExternal, IconLinkInternal$1 as IconLinkInternal, IconLoading$1 as IconLoading, IconMail$1 as IconMail, IconPerson$1 as IconPerson, IconTwitter$1 as IconTwitter, Link };
|
package/dist/src/index.js
CHANGED
|
@@ -5,6 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _extends = require('@babel/runtime/helpers/extends');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var classNames = require('classnames');
|
|
8
|
+
var freeSolidSvgIcons = require('@fortawesome/free-solid-svg-icons');
|
|
9
|
+
var reactFontawesome = require('@fortawesome/react-fontawesome');
|
|
8
10
|
|
|
9
11
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
12
|
|
|
@@ -91,7 +93,7 @@ const IconHamburger$2 = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE_
|
|
|
91
93
|
transform: "translate(1.31046 -0.00698853)"
|
|
92
94
|
})))));
|
|
93
95
|
IconHamburger$2.displayName = 'IconHamburger';
|
|
94
|
-
var
|
|
96
|
+
var IconHamburger$3 = IconHamburger$2;
|
|
95
97
|
|
|
96
98
|
const IconLinkInternal = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React__default["default"].createElement("svg", _extends__default["default"]({
|
|
97
99
|
ref: ref
|
|
@@ -364,9 +366,11 @@ const Link = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
364
366
|
return /*#__PURE__*/React__default["default"].createElement("a", _extends__default["default"]({}, props, {
|
|
365
367
|
ref: ref,
|
|
366
368
|
className: linkClassNames
|
|
367
|
-
}), children, icon === 'internal' && /*#__PURE__*/React__default["default"].createElement(
|
|
369
|
+
}), children, icon === 'internal' && /*#__PURE__*/React__default["default"].createElement(reactFontawesome.FontAwesomeIcon, {
|
|
370
|
+
icon: freeSolidSvgIcons.faArrowRight,
|
|
368
371
|
className: "jfcl-link__icon"
|
|
369
|
-
}), icon === 'external' && /*#__PURE__*/React__default["default"].createElement(
|
|
372
|
+
}), icon === 'external' && /*#__PURE__*/React__default["default"].createElement(reactFontawesome.FontAwesomeIcon, {
|
|
373
|
+
icon: freeSolidSvgIcons.faSquareArrowUpRight,
|
|
370
374
|
className: "jfcl-link__icon"
|
|
371
375
|
}));
|
|
372
376
|
});
|
|
@@ -382,7 +386,7 @@ exports.IconFacebook = IconFacebook$1;
|
|
|
382
386
|
exports.IconGlobe = IconGlobe$1;
|
|
383
387
|
exports.IconHamburger = IconHamburger$1;
|
|
384
388
|
exports.IconInternet = IconInternet$1;
|
|
385
|
-
exports.IconLinkExternal =
|
|
389
|
+
exports.IconLinkExternal = IconHamburger$3;
|
|
386
390
|
exports.IconLinkInternal = IconLinkInternal$1;
|
|
387
391
|
exports.IconLoading = IconLoading$1;
|
|
388
392
|
exports.IconMail = IconMail$1;
|
|
@@ -3,7 +3,7 @@ import './styles.scss';
|
|
|
3
3
|
export interface ButtonProps extends React.ComponentPropsWithoutRef<'button'> {
|
|
4
4
|
labelText: string;
|
|
5
5
|
labelIcon?: React.ElementType;
|
|
6
|
-
variant?: 'primary' | 'secondary' | '
|
|
6
|
+
variant?: 'primary' | 'secondary' | 'tertiary';
|
|
7
7
|
size?: 'small' | 'large';
|
|
8
8
|
loading?: boolean;
|
|
9
9
|
iconOnRight?: boolean;
|
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.33.0",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
7
7
|
"module": "dist/src/index.es.js",
|
|
8
8
|
"files": [
|
|
@@ -28,7 +28,10 @@
|
|
|
28
28
|
"jackspeak": "2.1.1"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@babel/runtime": "^7.12.5"
|
|
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
35
|
},
|
|
33
36
|
"peerDependencies": {
|
|
34
37
|
"@lingui/cli": ">=2.9.1",
|