@sellout/ui 0.0.90 → 0.0.92
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.
|
@@ -31,6 +31,7 @@ var InputStyled = styled.input(templateObject_6 || (templateObject_6 = __makeTem
|
|
|
31
31
|
";\n\n ::placeholder {\n color: ", ";\n }\n"])), function (props) {
|
|
32
32
|
return props.disabled ? Colors.Grey6 + " !important" : null;
|
|
33
33
|
}, function (props) { return (props.disabled ? Colors.Grey4 : Colors.Grey1); }, media.mobile(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n font-size: 1.6rem;\n "], ["\n font-size: 1.6rem;\n "]))), media.desktop(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n font-size: 1.4rem;\n "], ["\n font-size: 1.4rem;\n "]))), Colors.Grey4);
|
|
34
|
+
var IconText = styled.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n font-size: 1.4rem;\n font-weight: 600;\n color: ", ";\n"], ["\n font-size: 1.4rem;\n font-weight: 600;\n color: ", ";\n"])), Colors.Grey3);
|
|
34
35
|
function Input(_a) {
|
|
35
36
|
var inputRef = _a.inputRef, autoFocus = _a.autoFocus, placeholder = _a.placeholder, value = _a.value, defaultValue = _a.defaultValue, _b = _a.format, format = _b === void 0 ? InputFormats.Price : _b, _c = _a.type, type = _c === void 0 ? "text" : _c, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave, onChange = _a.onChange, onFocus = _a.onFocus, onBlur = _a.onBlur, onSubmit = _a.onSubmit, _d = _a.canSubmit, canSubmit = _d === void 0 ? true : _d, loading = _a.loading, margin = _a.margin, width = _a.width, onEnter = _a.onEnter, label = _a.label, subLabel = _a.subLabel, tip = _a.tip, maxLength = _a.maxLength, validationError = _a.validationError, _e = _a.disabled, disabled = _e === void 0 ? false : _e;
|
|
36
37
|
var _f = useState(false), hovered = _f[0], setHovered = _f[1];
|
|
@@ -75,10 +76,10 @@ function Input(_a) {
|
|
|
75
76
|
onMouseLeave(event);
|
|
76
77
|
} }),
|
|
77
78
|
format === InputFormats.Percent && (React.createElement(PriceContainer, null,
|
|
78
|
-
React.createElement(
|
|
79
|
+
React.createElement(IconText, null, "%")))),
|
|
79
80
|
validationError && (React.createElement(ValidationError, { validationError: validationError }))));
|
|
80
81
|
}
|
|
81
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
|
|
82
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
|
|
82
83
|
|
|
83
84
|
export default Input;
|
|
84
85
|
export { InputFormats };
|
|
@@ -2,6 +2,8 @@ import { Colors } from "../Colors";
|
|
|
2
2
|
export declare const Icons: {
|
|
3
3
|
Amex: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
4
4
|
Discover: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
5
|
+
FacebookPlain: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
6
|
+
Google: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
5
7
|
Mastercard: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
6
8
|
Visa: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
7
9
|
AnalyticsLight: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
@@ -13,7 +15,9 @@ export declare const Icons: {
|
|
|
13
15
|
CalendarLight: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
14
16
|
CalendarStarLight: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
15
17
|
CancelLight: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
18
|
+
CartLight: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
16
19
|
CheckLight: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
20
|
+
ClipboardLight: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
17
21
|
CopyLight: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
18
22
|
EditLight: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
19
23
|
EnvelopeLight: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
@@ -45,6 +49,8 @@ export declare const Icons: {
|
|
|
45
49
|
ShareLight: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
46
50
|
SortByLight: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
47
51
|
TeamLight: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
52
|
+
ThumbsDownLight: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
53
|
+
ThumbsUpLight: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
48
54
|
UnlockLight: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
49
55
|
UploadLight: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
50
56
|
UserLight: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
@@ -62,9 +68,11 @@ export declare const Icons: {
|
|
|
62
68
|
TeamSolid: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
63
69
|
UpgradeSolid: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
64
70
|
AngleDownRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
71
|
+
AngleUpRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
65
72
|
AudienceRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
66
73
|
BoldRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
67
74
|
CalculatorRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
75
|
+
CalendarDayRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
68
76
|
CheckRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
69
77
|
Cheers: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
70
78
|
Clipboard: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
@@ -83,12 +91,15 @@ export declare const Icons: {
|
|
|
83
91
|
GraphGrowth: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
84
92
|
ItalicRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
85
93
|
KeyRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
94
|
+
LeftArrowRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
86
95
|
LeftChevronRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
87
96
|
LinkRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
97
|
+
LongRightArrowRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
88
98
|
OListRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
89
99
|
PlusRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
90
100
|
PrintRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
91
101
|
ReportRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
102
|
+
RightArrowRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
92
103
|
RightChevronRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
93
104
|
SearchRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
94
105
|
SettingsRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
@@ -103,6 +114,7 @@ export declare const Icons: {
|
|
|
103
114
|
Update: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
104
115
|
UpgradeRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
105
116
|
UsersRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
117
|
+
VerticalEllipsisRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
106
118
|
AngleDownSolid: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
107
119
|
AngleUpSolid: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
108
120
|
AudienceSolid: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
@@ -138,6 +150,7 @@ export declare const Icons: {
|
|
|
138
150
|
MicrophoneSolid: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
139
151
|
MobileSolid: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
140
152
|
OrganizationSolid: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
153
|
+
PauseSolid: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
141
154
|
PiggyBankSolid: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
142
155
|
PlugSolid: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
143
156
|
Plus: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
@@ -1,50 +1,4 @@
|
|
|
1
1
|
export declare const IconEnum: {
|
|
2
|
-
VerticalEllipsisRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
3
|
-
AngleDownRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
4
|
-
AngleUpRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
5
|
-
AudienceRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
6
|
-
BoldRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
7
|
-
CalculatorRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
8
|
-
CheckRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
9
|
-
Cheers: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
10
|
-
Clipboard: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
11
|
-
CrownRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
12
|
-
DeleteRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
13
|
-
Dollar: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
14
|
-
DownArrow: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
15
|
-
DownloadReport: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
16
|
-
Embed: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
17
|
-
FeeRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
18
|
-
FilterRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
19
|
-
FireRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
20
|
-
GiftRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
21
|
-
GlobeLinesRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
22
|
-
GlobeRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
23
|
-
GraphGrowth: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
24
|
-
ItalicRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
25
|
-
KeyRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
26
|
-
LeftArrowRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
27
|
-
LeftChevronRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
28
|
-
LinkRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
29
|
-
OListRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
30
|
-
PlusRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
31
|
-
PrintRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
32
|
-
ReportRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
33
|
-
RightArrowRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
34
|
-
RightChevronRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
35
|
-
SearchRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
36
|
-
SettingsRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
37
|
-
SignOut: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
38
|
-
StreamRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
39
|
-
SyncRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
40
|
-
TicketRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
41
|
-
UListRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
42
|
-
UnderlineRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
43
|
-
UnlockRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
44
|
-
UpArrow: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
45
|
-
Update: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
46
|
-
UpgradeRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
47
|
-
UsersRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
48
2
|
Amex: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
49
3
|
Discover: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
50
4
|
FacebookPlain: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
@@ -112,6 +66,54 @@ export declare const IconEnum: {
|
|
|
112
66
|
SortBy: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
113
67
|
TeamSolid: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
114
68
|
UpgradeSolid: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
69
|
+
AngleDownRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
70
|
+
AngleUpRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
71
|
+
AudienceRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
72
|
+
BoldRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
73
|
+
CalculatorRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
74
|
+
CalendarDayRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
75
|
+
CheckRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
76
|
+
Cheers: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
77
|
+
Clipboard: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
78
|
+
CrownRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
79
|
+
DeleteRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
80
|
+
Dollar: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
81
|
+
DownArrow: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
82
|
+
DownloadReport: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
83
|
+
Embed: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
84
|
+
FeeRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
85
|
+
FilterRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
86
|
+
FireRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
87
|
+
GiftRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
88
|
+
GlobeLinesRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
89
|
+
GlobeRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
90
|
+
GraphGrowth: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
91
|
+
ItalicRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
92
|
+
KeyRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
93
|
+
LeftArrowRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
94
|
+
LeftChevronRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
95
|
+
LinkRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
96
|
+
LongRightArrowRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
97
|
+
OListRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
98
|
+
PlusRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
99
|
+
PrintRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
100
|
+
ReportRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
101
|
+
RightArrowRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
102
|
+
RightChevronRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
103
|
+
SearchRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
104
|
+
SettingsRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
105
|
+
SignOut: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
106
|
+
StreamRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
107
|
+
SyncRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
108
|
+
TicketRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
109
|
+
UListRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
110
|
+
UnderlineRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
111
|
+
UnlockRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
112
|
+
UpArrow: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
113
|
+
Update: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
114
|
+
UpgradeRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
115
|
+
UsersRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
116
|
+
VerticalEllipsisRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
115
117
|
AngleDownSolid: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
116
118
|
AngleUpSolid: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
117
119
|
AudienceSolid: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
@@ -147,6 +149,7 @@ export declare const IconEnum: {
|
|
|
147
149
|
MicrophoneSolid: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
148
150
|
MobileSolid: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
149
151
|
OrganizationSolid: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
152
|
+
PauseSolid: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
150
153
|
PiggyBankSolid: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
151
154
|
PlugSolid: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
152
155
|
Plus: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
@@ -1,57 +1,11 @@
|
|
|
1
|
-
import { faEllipsisV, faAngleDown, faAngleUp, faUserFriends, faBold, faCalculator, faCheck, faGlassCheers, faClipboardList, faCrown, faTrash, faDollarSign, faArrowAltDown, faFileDownload, faCode, faUsdSquare, faFilter, faFire, faGift, faGlobe, faGlobeAmericas, faChartLine, faItalic, faKey, faArrowLeft, faChevronLeft, faLink, faListOl, faPlus, faPrint, faFileChartLine, faArrowRight, faChevronRight, faSearch, faCog, faSignOut, faStream, faSync, faTicketAlt, faListUl, faUnderline, faUnlock, faArrowAltUp, faMegaphone, faArrowAltSquareUp, faUsers } from '@fortawesome/pro-regular-svg-icons';
|
|
2
1
|
import { faCcAmex, faCcDiscover, faFacebookF, faGoogle, faCcMastercard, faCcVisa } from '@fortawesome/free-brands-svg-icons';
|
|
3
|
-
import { faAnalytics, faBell, faCashRegister, faBullhorn, faCalculator
|
|
4
|
-
import { faAnalytics as faAnalytics$1, faCalendarStar as faCalendarStar$1, faCreditCardFront, faUsdSquare
|
|
5
|
-
import { faAngleDown
|
|
2
|
+
import { faAnalytics, faBell, faCashRegister, faBullhorn, faCalculator, faCalendarDay, faCalendarAlt, faCalendarStar, faTimes, faShoppingCart, faCheck, faClipboardListCheck, faCopy, faEdit, faEnvelope, faEnvelopeOpenText, faFileExport, faEye, faFilter, faGift, faGlobe, faQuestionCircle, faHome, faLink, faLock, faMapMarkerAlt, faChartBar, faMicrophoneAlt, faMinusCircle, faMobileAlt, faBuilding, faPhone, faPiggyBank, faPlug, faPlusCircle, faReceipt, faFileChartLine, faBarcodeRead, faSearch, faChair, faShare, faSortAlt, faUsersCrown, faThumbsDown, faThumbsUp, faUnlock, faUpload, faUser, faUsers, faLandmark } from '@fortawesome/pro-light-svg-icons';
|
|
3
|
+
import { faAnalytics as faAnalytics$1, faCalendarStar as faCalendarStar$1, faCreditCardFront, faUsdSquare, faKey, faLongArrowRight, faQuestionSquare, faFileChartLine as faFileChartLine$1, faSortAlt as faSortAlt$1, faUsersCrown as faUsersCrown$1, faArrowAltSquareUp } from '@fortawesome/pro-solid-svg-icons';
|
|
4
|
+
import { faAngleDown, faAngleUp, faUserFriends, faBold, faCalculator as faCalculator$1, faCalendarDay as faCalendarDay$1, faCheck as faCheck$1, faGlassCheers, faClipboardList, faCrown, faTrash, faDollarSign, faArrowAltDown, faFileDownload, faCode, faUsdSquare as faUsdSquare$1, faFilter as faFilter$1, faFire, faGift as faGift$1, faGlobe as faGlobe$1, faGlobeAmericas, faChartLine, faItalic, faKey as faKey$1, faArrowLeft, faChevronLeft, faLink as faLink$1, faLongArrowRight as faLongArrowRight$1, faListOl, faPlus, faPrint, faFileChartLine as faFileChartLine$2, faArrowRight, faChevronRight, faSearch as faSearch$1, faCog, faSignOut, faStream, faSync, faTicketAlt, faListUl, faUnderline, faUnlock as faUnlock$1, faArrowAltUp, faMegaphone, faArrowAltSquareUp as faArrowAltSquareUp$1, faUsers as faUsers$1, faEllipsisV } from '@fortawesome/pro-regular-svg-icons';
|
|
5
|
+
import { faAngleDown as faAngleDown$1, faAngleUp as faAngleUp$1, faUserFriends as faUserFriends$1, faArrowLeft as faArrowLeft$1, faCashRegister as faCashRegister$1, faBullhorn as faBullhorn$1, faCalculator as faCalculator$2, faCalendarDay as faCalendarDay$2, faCalendarWeek, faTimes as faTimes$1, faTimesCircle, faCaretDown, faMoneyBill, faCheckCircle, faUserTie, faCopy as faCopy$1, faCreditCard, faCrown as faCrown$1, faICursor, faTrash as faTrash$1, faEnvelope as faEnvelope$1, faEye as faEye$1, faGlobe as faGlobe$2, faGlobeAmericas as faGlobeAmericas$1, faQuestionCircle as faQuestionCircle$1, faHome as faHome$1, faInfoCircle, faChevronLeft as faChevronLeft$1, faLock as faLock$1, faBars, faChartBar as faChartBar$1, faMicrophoneAlt as faMicrophoneAlt$1, faMobileAlt as faMobileAlt$1, faBuilding as faBuilding$1, faPause, faPiggyBank as faPiggyBank$1, faPlug as faPlug$1, faPlus as faPlus$1, faPlusCircle as faPlusCircle$1, faPrint as faPrint$1, faReceipt as faReceipt$1, faChevronCircleRight, faChevronRight as faChevronRight$1, faSearch as faSearch$2, faChair as faChair$1, faCog as faCog$1, faShare as faShare$1, faSort, faStar, faThumbsDown as faThumbsDown$1, faThumbsUp as faThumbsUp$1, faTicketAlt as faTicketAlt$1, faUpload as faUpload$1, faUserCircle, faUser as faUser$1, faUsers as faUsers$2, faLandmark as faLandmark$1, faExclamationTriangle } from '@fortawesome/free-solid-svg-icons';
|
|
6
6
|
import { faCalendarAlt as faCalendarAlt$1, faClock, faCopy as faCopy$2, faEdit as faEdit$1, faEye as faEye$2, faEyeSlash, faLifeRing, faSadTear, faUser as faUser$2 } from '@fortawesome/free-regular-svg-icons';
|
|
7
7
|
|
|
8
8
|
var IconEnum = {
|
|
9
|
-
VerticalEllipsisRegular: faEllipsisV,
|
|
10
|
-
AngleDownRegular: faAngleDown,
|
|
11
|
-
AngleUpRegular: faAngleUp,
|
|
12
|
-
AudienceRegular: faUserFriends,
|
|
13
|
-
BoldRegular: faBold,
|
|
14
|
-
CalculatorRegular: faCalculator,
|
|
15
|
-
CheckRegular: faCheck,
|
|
16
|
-
Cheers: faGlassCheers,
|
|
17
|
-
Clipboard: faClipboardList,
|
|
18
|
-
CrownRegular: faCrown,
|
|
19
|
-
DeleteRegular: faTrash,
|
|
20
|
-
Dollar: faDollarSign,
|
|
21
|
-
DownArrow: faArrowAltDown,
|
|
22
|
-
DownloadReport: faFileDownload,
|
|
23
|
-
Embed: faCode,
|
|
24
|
-
FeeRegular: faUsdSquare,
|
|
25
|
-
FilterRegular: faFilter,
|
|
26
|
-
FireRegular: faFire,
|
|
27
|
-
GiftRegular: faGift,
|
|
28
|
-
GlobeLinesRegular: faGlobe,
|
|
29
|
-
GlobeRegular: faGlobeAmericas,
|
|
30
|
-
GraphGrowth: faChartLine,
|
|
31
|
-
ItalicRegular: faItalic,
|
|
32
|
-
KeyRegular: faKey,
|
|
33
|
-
LeftArrowRegular: faArrowLeft,
|
|
34
|
-
LeftChevronRegular: faChevronLeft,
|
|
35
|
-
LinkRegular: faLink,
|
|
36
|
-
OListRegular: faListOl,
|
|
37
|
-
PlusRegular: faPlus,
|
|
38
|
-
PrintRegular: faPrint,
|
|
39
|
-
ReportRegular: faFileChartLine,
|
|
40
|
-
RightArrowRegular: faArrowRight,
|
|
41
|
-
RightChevronRegular: faChevronRight,
|
|
42
|
-
SearchRegular: faSearch,
|
|
43
|
-
SettingsRegular: faCog,
|
|
44
|
-
SignOut: faSignOut,
|
|
45
|
-
StreamRegular: faStream,
|
|
46
|
-
SyncRegular: faSync,
|
|
47
|
-
TicketRegular: faTicketAlt,
|
|
48
|
-
UListRegular: faListUl,
|
|
49
|
-
UnderlineRegular: faUnderline,
|
|
50
|
-
UnlockRegular: faUnlock,
|
|
51
|
-
UpArrow: faArrowAltUp,
|
|
52
|
-
Update: faMegaphone,
|
|
53
|
-
UpgradeRegular: faArrowAltSquareUp,
|
|
54
|
-
UsersRegular: faUsers,
|
|
55
9
|
Amex: faCcAmex,
|
|
56
10
|
Discover: faCcDiscover,
|
|
57
11
|
FacebookPlain: faFacebookF,
|
|
@@ -62,13 +16,13 @@ var IconEnum = {
|
|
|
62
16
|
BellLight: faBell,
|
|
63
17
|
BoxOfficeLight: faCashRegister,
|
|
64
18
|
BullHornLight: faBullhorn,
|
|
65
|
-
CalculatorLight: faCalculator
|
|
19
|
+
CalculatorLight: faCalculator,
|
|
66
20
|
CalendarDayLight: faCalendarDay,
|
|
67
21
|
CalendarLight: faCalendarAlt,
|
|
68
22
|
CalendarStarLight: faCalendarStar,
|
|
69
23
|
CancelLight: faTimes,
|
|
70
24
|
CartLight: faShoppingCart,
|
|
71
|
-
CheckLight: faCheck
|
|
25
|
+
CheckLight: faCheck,
|
|
72
26
|
ClipboardLight: faClipboardListCheck,
|
|
73
27
|
CopyLight: faCopy,
|
|
74
28
|
EditLight: faEdit,
|
|
@@ -76,12 +30,12 @@ var IconEnum = {
|
|
|
76
30
|
EnvelopeOpenRegular: faEnvelopeOpenText,
|
|
77
31
|
ExportLight: faFileExport,
|
|
78
32
|
EyeLight: faEye,
|
|
79
|
-
FilterLight: faFilter
|
|
80
|
-
GiftLight: faGift
|
|
81
|
-
GlobeLinesLight: faGlobe
|
|
33
|
+
FilterLight: faFilter,
|
|
34
|
+
GiftLight: faGift,
|
|
35
|
+
GlobeLinesLight: faGlobe,
|
|
82
36
|
HelpLight: faQuestionCircle,
|
|
83
37
|
HomeLight: faHome,
|
|
84
|
-
LinkLight: faLink
|
|
38
|
+
LinkLight: faLink,
|
|
85
39
|
Lock: faLock,
|
|
86
40
|
MapPinLight: faMapMarkerAlt,
|
|
87
41
|
MetricsLight: faChartBar,
|
|
@@ -94,31 +48,79 @@ var IconEnum = {
|
|
|
94
48
|
PlugLight: faPlug,
|
|
95
49
|
PlusCircleLight: faPlusCircle,
|
|
96
50
|
ReceiptLight: faReceipt,
|
|
97
|
-
ReportLight: faFileChartLine
|
|
51
|
+
ReportLight: faFileChartLine,
|
|
98
52
|
Scan: faBarcodeRead,
|
|
99
|
-
SearchLight: faSearch
|
|
53
|
+
SearchLight: faSearch,
|
|
100
54
|
SeatingLight: faChair,
|
|
101
55
|
ShareLight: faShare,
|
|
102
56
|
SortByLight: faSortAlt,
|
|
103
57
|
TeamLight: faUsersCrown,
|
|
104
58
|
ThumbsDownLight: faThumbsDown,
|
|
105
59
|
ThumbsUpLight: faThumbsUp,
|
|
106
|
-
UnlockLight: faUnlock
|
|
60
|
+
UnlockLight: faUnlock,
|
|
107
61
|
UploadLight: faUpload,
|
|
108
62
|
UserLight: faUser,
|
|
109
|
-
UsersLight: faUsers
|
|
63
|
+
UsersLight: faUsers,
|
|
110
64
|
VenueLight: faLandmark,
|
|
111
65
|
AnalyticsSolid: faAnalytics$1,
|
|
112
66
|
CalendarStarSolid: faCalendarStar$1,
|
|
113
67
|
CreditCardFront: faCreditCardFront,
|
|
114
|
-
FeeSolid: faUsdSquare
|
|
115
|
-
KeySolid: faKey
|
|
68
|
+
FeeSolid: faUsdSquare,
|
|
69
|
+
KeySolid: faKey,
|
|
116
70
|
LongRightArrow: faLongArrowRight,
|
|
117
71
|
QuestionSquareSolid: faQuestionSquare,
|
|
118
|
-
ReportSolid: faFileChartLine$
|
|
72
|
+
ReportSolid: faFileChartLine$1,
|
|
119
73
|
SortBy: faSortAlt$1,
|
|
120
74
|
TeamSolid: faUsersCrown$1,
|
|
121
|
-
UpgradeSolid: faArrowAltSquareUp
|
|
75
|
+
UpgradeSolid: faArrowAltSquareUp,
|
|
76
|
+
AngleDownRegular: faAngleDown,
|
|
77
|
+
AngleUpRegular: faAngleUp,
|
|
78
|
+
AudienceRegular: faUserFriends,
|
|
79
|
+
BoldRegular: faBold,
|
|
80
|
+
CalculatorRegular: faCalculator$1,
|
|
81
|
+
CalendarDayRegular: faCalendarDay$1,
|
|
82
|
+
CheckRegular: faCheck$1,
|
|
83
|
+
Cheers: faGlassCheers,
|
|
84
|
+
Clipboard: faClipboardList,
|
|
85
|
+
CrownRegular: faCrown,
|
|
86
|
+
DeleteRegular: faTrash,
|
|
87
|
+
Dollar: faDollarSign,
|
|
88
|
+
DownArrow: faArrowAltDown,
|
|
89
|
+
DownloadReport: faFileDownload,
|
|
90
|
+
Embed: faCode,
|
|
91
|
+
FeeRegular: faUsdSquare$1,
|
|
92
|
+
FilterRegular: faFilter$1,
|
|
93
|
+
FireRegular: faFire,
|
|
94
|
+
GiftRegular: faGift$1,
|
|
95
|
+
GlobeLinesRegular: faGlobe$1,
|
|
96
|
+
GlobeRegular: faGlobeAmericas,
|
|
97
|
+
GraphGrowth: faChartLine,
|
|
98
|
+
ItalicRegular: faItalic,
|
|
99
|
+
KeyRegular: faKey$1,
|
|
100
|
+
LeftArrowRegular: faArrowLeft,
|
|
101
|
+
LeftChevronRegular: faChevronLeft,
|
|
102
|
+
LinkRegular: faLink$1,
|
|
103
|
+
LongRightArrowRegular: faLongArrowRight$1,
|
|
104
|
+
OListRegular: faListOl,
|
|
105
|
+
PlusRegular: faPlus,
|
|
106
|
+
PrintRegular: faPrint,
|
|
107
|
+
ReportRegular: faFileChartLine$2,
|
|
108
|
+
RightArrowRegular: faArrowRight,
|
|
109
|
+
RightChevronRegular: faChevronRight,
|
|
110
|
+
SearchRegular: faSearch$1,
|
|
111
|
+
SettingsRegular: faCog,
|
|
112
|
+
SignOut: faSignOut,
|
|
113
|
+
StreamRegular: faStream,
|
|
114
|
+
SyncRegular: faSync,
|
|
115
|
+
TicketRegular: faTicketAlt,
|
|
116
|
+
UListRegular: faListUl,
|
|
117
|
+
UnderlineRegular: faUnderline,
|
|
118
|
+
UnlockRegular: faUnlock$1,
|
|
119
|
+
UpArrow: faArrowAltUp,
|
|
120
|
+
Update: faMegaphone,
|
|
121
|
+
UpgradeRegular: faArrowAltSquareUp$1,
|
|
122
|
+
UsersRegular: faUsers$1,
|
|
123
|
+
VerticalEllipsisRegular: faEllipsisV,
|
|
122
124
|
AngleDownSolid: faAngleDown$1,
|
|
123
125
|
AngleUpSolid: faAngleUp$1,
|
|
124
126
|
AudienceSolid: faUserFriends$1,
|
|
@@ -126,7 +128,7 @@ var IconEnum = {
|
|
|
126
128
|
BoxOfficeSolid: faCashRegister$1,
|
|
127
129
|
BullhornSolid: faBullhorn$1,
|
|
128
130
|
CalculatorSolid: faCalculator$2,
|
|
129
|
-
CalendarDaySolid: faCalendarDay$
|
|
131
|
+
CalendarDaySolid: faCalendarDay$2,
|
|
130
132
|
CalendarWeekSolid: faCalendarWeek,
|
|
131
133
|
Cancel: faTimes$1,
|
|
132
134
|
CancelCircle: faTimesCircle,
|
|
@@ -154,6 +156,7 @@ var IconEnum = {
|
|
|
154
156
|
MicrophoneSolid: faMicrophoneAlt$1,
|
|
155
157
|
MobileSolid: faMobileAlt$1,
|
|
156
158
|
OrganizationSolid: faBuilding$1,
|
|
159
|
+
PauseSolid: faPause,
|
|
157
160
|
PiggyBankSolid: faPiggyBank$1,
|
|
158
161
|
PlugSolid: faPlug$1,
|
|
159
162
|
Plus: faPlus$1,
|
|
@@ -41,7 +41,7 @@ var Button = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateOb
|
|
|
41
41
|
return null;
|
|
42
42
|
}, function (props) { return (props.onClick ? "pointer" : null); }, function (props) { return (props.onClick ? "pointer" : null); });
|
|
43
43
|
var IconContainer = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 18px;\n"], ["\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 18px;\n"])));
|
|
44
|
-
var LeftContainer = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-left:
|
|
44
|
+
var LeftContainer = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-left: 16px;\n top: 0px;\n left: 0px;\n background-color: ", ";\n"], ["\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-left: 16px;\n top: 0px;\n left: 0px;\n background-color: ", ";\n"])), Colors.White);
|
|
45
45
|
var RightContainer = styled.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n height: ", ";\n width: ", ";\n top: -1px;\n right: -1px;\n background-color: ", ";\n\n &:hover {\n cursor: ", ";\n }\n"], ["\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n height: ",
|
|
46
46
|
";\n width: ",
|
|
47
47
|
";\n top: -1px;\n right: -1px;\n background-color: ", ";\n\n &:hover {\n cursor: ", ";\n }\n"])), function (props) {
|
|
@@ -58,8 +58,8 @@ var RightContainer = styled.div(templateObject_6 || (templateObject_6 = __makeTe
|
|
|
58
58
|
return null;
|
|
59
59
|
}, Colors.White, function (props) { return (props.onClick ? "pointer" : null); });
|
|
60
60
|
var Spacer = styled.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n width: 50px;\n background-color: ", ";\n"], ["\n width: 50px;\n background-color: ", ";\n"])), Colors.White);
|
|
61
|
-
var InputStyled = styled.input(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n background-color: ", ";\n color: ", ";\n outline: none;\n border: 0px;\n /* border-radius: 10px; */\n height: ", ";\n width: fill-available;\n font-family: \"neue-haas-grotesk-display\", sans-serif;\n font-weight: 500;\n padding:
|
|
62
|
-
";\n width: fill-available;\n font-family: \"neue-haas-grotesk-display\", sans-serif;\n font-weight: 500;\n padding:
|
|
61
|
+
var InputStyled = styled.input(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n background-color: ", ";\n color: ", ";\n outline: none;\n border: 0px;\n /* border-radius: 10px; */\n height: ", ";\n width: fill-available;\n font-family: \"neue-haas-grotesk-display\", sans-serif;\n font-weight: 500;\n padding: 0px;\n padding-left: ", ";\n transition: all 0.2s;\n padding: ", ";\n\n ::placeholder {\n color: ", ";\n }\n\n ", ";\n\n ", ";\n"], ["\n background-color: ", ";\n color: ", ";\n outline: none;\n border: 0px;\n /* border-radius: 10px; */\n height: ",
|
|
62
|
+
";\n width: fill-available;\n font-family: \"neue-haas-grotesk-display\", sans-serif;\n font-weight: 500;\n padding: 0px;\n padding-left: ", ";\n transition: all 0.2s;\n padding: ", ";\n\n ::placeholder {\n color: ", ";\n }\n\n ",
|
|
63
63
|
";\n\n ",
|
|
64
64
|
";\n"])), Colors.White, function (props) { return props.disabled ? Colors.Grey4 : Colors.Grey1; }, function (props) {
|
|
65
65
|
if (props.inputSize === InputSizes.Large)
|
|
@@ -67,7 +67,7 @@ var InputStyled = styled.input(templateObject_10 || (templateObject_10 = __makeT
|
|
|
67
67
|
if (props.inputSize === InputSizes.Regular)
|
|
68
68
|
return "38px";
|
|
69
69
|
return null;
|
|
70
|
-
}, function (props) { return props.padding; }, Colors.Grey4, media.mobile(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n font-size: 1.6rem;\n"], ["\n font-size: 1.6rem;\n"]))), media.desktop(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n font-size: 1.4rem;\n"], ["\n font-size: 1.4rem;\n"]))));
|
|
70
|
+
}, function (props) { return props.hasIcon ? '8px' : '16px'; }, function (props) { return props.padding; }, Colors.Grey4, media.mobile(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n font-size: 1.6rem;\n"], ["\n font-size: 1.6rem;\n"]))), media.desktop(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n font-size: 1.4rem;\n"], ["\n font-size: 1.4rem;\n"]))));
|
|
71
71
|
function Input(_a) {
|
|
72
72
|
var inputRef = _a.inputRef, autoFocus = _a.autoFocus, placeholder = _a.placeholder, value = _a.value, defaultValue = _a.defaultValue, icon = _a.icon, iconColor = _a.iconColor, _b = _a.size, size = _b === void 0 ? InputSizes.Regular : _b, _c = _a.type, type = _c === void 0 ? "text" : _c, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave, onChange = _a.onChange, onFocus = _a.onFocus, onBlur = _a.onBlur, onSubmit = _a.onSubmit, onClear = _a.onClear, _d = _a.canSubmit, canSubmit = _d === void 0 ? true : _d, loading = _a.loading, margin = _a.margin, padding = _a.padding, width = _a.width, onEnter = _a.onEnter, label = _a.label, subLabel = _a.subLabel, tip = _a.tip, maxLength = _a.maxLength, iconConditionalColor = _a.iconConditionalColor, validationError = _a.validationError, _e = _a.disabled, disabled = _e === void 0 ? false : _e;
|
|
73
73
|
var _f = useState(false), hovered = _f[0], setHovered = _f[1];
|
|
@@ -133,7 +133,7 @@ function Input(_a) {
|
|
|
133
133
|
setHovered(false);
|
|
134
134
|
if (onMouseLeave)
|
|
135
135
|
onMouseLeave(event);
|
|
136
|
-
}, padding: padding, inputSize: size }),
|
|
136
|
+
}, padding: padding, inputSize: size, hasIcon: Boolean(icon) }),
|
|
137
137
|
(function () {
|
|
138
138
|
if (onSubmit) {
|
|
139
139
|
return (React.createElement(Fragment, null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellout/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.92",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"module": "build/index.es.js",
|
|
6
6
|
"files": [
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"@hapi/joi": "^17.1.1",
|
|
57
57
|
"@react-pdf/primitives": "^2.0.0-beta.11",
|
|
58
58
|
"@react-pdf/renderer": "^2.0.0-beta.14",
|
|
59
|
-
"@sellout/models": "^0.0.
|
|
60
|
-
"@sellout/utils": "^0.0.
|
|
59
|
+
"@sellout/models": "^0.0.92",
|
|
60
|
+
"@sellout/utils": "^0.0.92",
|
|
61
61
|
"@types/escape-html": "^1.0.0",
|
|
62
62
|
"@types/hapi__joi": "^16.0.12",
|
|
63
63
|
"@types/react-pdf": "^4.0.6",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"rollup-plugin-url": "^3.0.1",
|
|
71
71
|
"shortid": "^2.2.15"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "69a865f0208a83a8157fe80465e4c9553f88a8dc",
|
|
74
74
|
"peerDependencies": {
|
|
75
75
|
"react": "^16.13.0",
|
|
76
76
|
"react-dom": "^16.13.0",
|