@sellout/ui 0.0.40 → 0.0.42

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.
@@ -58,6 +58,7 @@ export declare const Icons: {
58
58
  KeyRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
59
59
  LeftChevronRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
60
60
  LinkRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
61
+ OListRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
61
62
  PrintRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
62
63
  ReportRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
63
64
  SearchRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
@@ -72,7 +73,7 @@ export declare const Icons: {
72
73
  Update: import("@fortawesome/fontawesome-common-types").IconDefinition;
73
74
  UpgradeRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
74
75
  UsersRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
75
- OListRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
76
+ GiftRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
76
77
  AudienceSolid: import("@fortawesome/fontawesome-common-types").IconDefinition;
77
78
  BackArrow: import("@fortawesome/fontawesome-common-types").IconDefinition;
78
79
  BoxOfficeSolid: import("@fortawesome/fontawesome-common-types").IconDefinition;
@@ -138,5 +139,6 @@ export declare type IconProps = {
138
139
  zIndex?: number | void;
139
140
  margin?: string | number | undefined;
140
141
  tip?: string;
142
+ transitionDuration?: string;
141
143
  };
142
- export default function Icon({ icon, color, hoverColor, onClick, size, top, left, right, position, zIndex, margin, tip, }: IconProps): JSX.Element;
144
+ export default function Icon({ icon, color, hoverColor, onClick, size, top, left, right, position, zIndex, margin, tip, transitionDuration, }: IconProps): JSX.Element;
@@ -56,6 +56,7 @@ export declare const IconEnum: {
56
56
  KeyRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
57
57
  LeftChevronRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
58
58
  LinkRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
59
+ OListRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
59
60
  PrintRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
60
61
  ReportRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
61
62
  SearchRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
@@ -70,7 +71,7 @@ export declare const IconEnum: {
70
71
  Update: import("@fortawesome/fontawesome-common-types").IconDefinition;
71
72
  UpgradeRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
72
73
  UsersRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
73
- OListRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
74
+ GiftRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
74
75
  AudienceSolid: import("@fortawesome/fontawesome-common-types").IconDefinition;
75
76
  BackArrow: import("@fortawesome/fontawesome-common-types").IconDefinition;
76
77
  BoxOfficeSolid: import("@fortawesome/fontawesome-common-types").IconDefinition;
package/build/index.d.ts CHANGED
@@ -64,6 +64,7 @@ declare const Icons: {
64
64
  KeyRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
65
65
  LeftChevronRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
66
66
  LinkRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
67
+ OListRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
67
68
  PrintRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
68
69
  ReportRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
69
70
  SearchRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
@@ -78,7 +79,7 @@ declare const Icons: {
78
79
  Update: import("@fortawesome/fontawesome-common-types").IconDefinition;
79
80
  UpgradeRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
80
81
  UsersRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
81
- OListRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
82
+ GiftRegular: import("@fortawesome/fontawesome-common-types").IconDefinition;
82
83
  AudienceSolid: import("@fortawesome/fontawesome-common-types").IconDefinition;
83
84
  BackArrow: import("@fortawesome/fontawesome-common-types").IconDefinition;
84
85
  BoxOfficeSolid: import("@fortawesome/fontawesome-common-types").IconDefinition;
package/build/index.es.js CHANGED
@@ -4,7 +4,7 @@ import { lighten, darken } from 'polished';
4
4
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
5
5
  import { faAnalytics, faBell, faCashRegister, faBullhorn, faCalendarDay, faCalendarAlt, faCalendarStar, faCheck, faEnvelope, faEnvelopeOpenText, faFileExport, faFilter, faQuestionCircle, faHome, faLock, faMapMarkerAlt, faMicrophoneAlt, faMinusCircle, faMobileAlt, faPlusCircle, faReceipt, faSearch, faSortAlt, faUnlock, faUpload, faUser, faUsers, faLandmark } from '@fortawesome/pro-light-svg-icons';
6
6
  import { faAnalytics as faAnalytics$1, faCalendarStar as faCalendarStar$1, faCreditCardFront, faUsdSquare, faKey, faLongArrowRight, faFileChartLine, faSortAlt as faSortAlt$1, faArrowAltSquareUp } from '@fortawesome/pro-solid-svg-icons';
7
- import { faUserFriends, faBold, faCalculator, faCheck as faCheck$1, faGlassCheers, faClipboardList, faCrown, faTrash, faDollarSign, faArrowAltDown, faFileDownload, faCode, faUsdSquare as faUsdSquare$1, faFilter as faFilter$1, faGlobeAmericas, faChartLine, faItalic, faKey as faKey$1, faChevronLeft, faLink, faPrint, faFileChartLine as faFileChartLine$1, faSearch as faSearch$1, faCog, faSignOut, faSync, faTicketAlt, faListUl, faUnderline, faUnlock as faUnlock$1, faArrowAltUp, faMegaphone, faArrowAltSquareUp as faArrowAltSquareUp$1, faUsers as faUsers$1, faListOl } from '@fortawesome/pro-regular-svg-icons';
7
+ import { faUserFriends, faBold, faCalculator, faCheck as faCheck$1, faGlassCheers, faClipboardList, faCrown, faTrash, faDollarSign, faArrowAltDown, faFileDownload, faCode, faUsdSquare as faUsdSquare$1, faFilter as faFilter$1, faGlobeAmericas, faChartLine, faItalic, faKey as faKey$1, faChevronLeft, faLink, faListOl, faPrint, faFileChartLine as faFileChartLine$1, faSearch as faSearch$1, faCog, faSignOut, faSync, faTicketAlt, faListUl, faUnderline, faUnlock as faUnlock$1, faArrowAltUp, faMegaphone, faArrowAltSquareUp as faArrowAltSquareUp$1, faUsers as faUsers$1, faGift } from '@fortawesome/pro-regular-svg-icons';
8
8
  import { faUserFriends as faUserFriends$1, faArrowLeft, faCashRegister as faCashRegister$1, faBullhorn as faBullhorn$1, faCalculator as faCalculator$1, faCalendarDay as faCalendarDay$1, faTimes, faTimesCircle, faCaretDown, faMoneyBill, faCheckCircle, faCopy, faCreditCard, faCrown as faCrown$1, faICursor, faTrash as faTrash$1, faEnvelope as faEnvelope$1, faEye, faQuestionCircle as faQuestionCircle$1, faHome as faHome$1, faInfoCircle, faChevronLeft as faChevronLeft$1, faBars, faMicrophoneAlt as faMicrophoneAlt$1, faMobileAlt as faMobileAlt$1, faPlus, faPlusCircle as faPlusCircle$1, faPrint as faPrint$1, faReceipt as faReceipt$1, faChevronCircleRight, faChevronRight, faSearch as faSearch$2, faSort, faThumbsDown, faThumbsUp, faTicketAlt as faTicketAlt$1, faUserCircle, faUser as faUser$1, faUsers as faUsers$2, faLandmark as faLandmark$1, faExclamationTriangle } from '@fortawesome/free-solid-svg-icons';
9
9
  import { faCalendarAlt as faCalendarAlt$1, faClock, faCopy as faCopy$1, faEdit, faEye as faEye$1, faEyeSlash, faLifeRing, faSadTear, faUser as faUser$2 } from '@fortawesome/free-regular-svg-icons';
10
10
  import AnimateHeight from 'react-animate-height';
@@ -142,6 +142,7 @@ var IconEnum = {
142
142
  KeyRegular: faKey$1,
143
143
  LeftChevronRegular: faChevronLeft,
144
144
  LinkRegular: faLink,
145
+ OListRegular: faListOl,
145
146
  PrintRegular: faPrint,
146
147
  ReportRegular: faFileChartLine$1,
147
148
  SearchRegular: faSearch$1,
@@ -156,7 +157,7 @@ var IconEnum = {
156
157
  Update: faMegaphone,
157
158
  UpgradeRegular: faArrowAltSquareUp$1,
158
159
  UsersRegular: faUsers$1,
159
- OListRegular: faListOl,
160
+ GiftRegular: faGift,
160
161
  AudienceSolid: faUserFriends$1,
161
162
  BackArrow: faArrowLeft,
162
163
  BoxOfficeSolid: faCashRegister$1,
@@ -218,7 +219,7 @@ var Container = styled.div(templateObject_1$1 || (templateObject_1$1 = __makeTem
218
219
  });
219
220
  var Icons = IconEnum;
220
221
  function Icon(_a) {
221
- var _b = _a.icon, icon = _b === void 0 ? Icons.AudienceRegular : _b, _c = _a.color, color = _c === void 0 ? Colors.Orange : _c, _d = _a.hoverColor, hoverColor = _d === void 0 ? null : _d, onClick = _a.onClick, _e = _a.size, size = _e === void 0 ? 20 : _e, top = _a.top, left = _a.left, right = _a.right, _f = _a.position, position = _f === void 0 ? "relative" : _f, zIndex = _a.zIndex, margin = _a.margin, tip = _a.tip;
222
+ var _b = _a.icon, icon = _b === void 0 ? Icons.AudienceRegular : _b, _c = _a.color, color = _c === void 0 ? Colors.Orange : _c, _d = _a.hoverColor, hoverColor = _d === void 0 ? null : _d, onClick = _a.onClick, _e = _a.size, size = _e === void 0 ? 20 : _e, top = _a.top, left = _a.left, right = _a.right, _f = _a.position, position = _f === void 0 ? "relative" : _f, zIndex = _a.zIndex, margin = _a.margin, tip = _a.tip, transitionDuration = _a.transitionDuration;
222
223
  var cursor = onClick ? "pointer" : "";
223
224
  return (React.createElement(Container, { color: color, hoverColor: hoverColor, "data-tip": tip },
224
225
  React.createElement(FontAwesomeIcon, { icon: icon, onClick: onClick, style: {
@@ -228,7 +229,7 @@ function Icon(_a) {
228
229
  position: position,
229
230
  zIndex: zIndex,
230
231
  fontSize: size,
231
- transition: "all 0.2s",
232
+ transition: "all " + (transitionDuration || '0.2s'),
232
233
  margin: margin,
233
234
  cursor: cursor,
234
235
  } })));
package/build/index.js CHANGED
@@ -147,6 +147,7 @@ var IconEnum = {
147
147
  KeyRegular: proRegularSvgIcons.faKey,
148
148
  LeftChevronRegular: proRegularSvgIcons.faChevronLeft,
149
149
  LinkRegular: proRegularSvgIcons.faLink,
150
+ OListRegular: proRegularSvgIcons.faListOl,
150
151
  PrintRegular: proRegularSvgIcons.faPrint,
151
152
  ReportRegular: proRegularSvgIcons.faFileChartLine,
152
153
  SearchRegular: proRegularSvgIcons.faSearch,
@@ -161,7 +162,7 @@ var IconEnum = {
161
162
  Update: proRegularSvgIcons.faMegaphone,
162
163
  UpgradeRegular: proRegularSvgIcons.faArrowAltSquareUp,
163
164
  UsersRegular: proRegularSvgIcons.faUsers,
164
- OListRegular: proRegularSvgIcons.faListOl,
165
+ GiftRegular: proRegularSvgIcons.faGift,
165
166
  AudienceSolid: freeSolidSvgIcons.faUserFriends,
166
167
  BackArrow: freeSolidSvgIcons.faArrowLeft,
167
168
  BoxOfficeSolid: freeSolidSvgIcons.faCashRegister,
@@ -223,7 +224,7 @@ var Container = styled.div(templateObject_1$1 || (templateObject_1$1 = __makeTem
223
224
  });
224
225
  var Icons = IconEnum;
225
226
  function Icon(_a) {
226
- var _b = _a.icon, icon = _b === void 0 ? Icons.AudienceRegular : _b, _c = _a.color, color = _c === void 0 ? exports.Colors.Orange : _c, _d = _a.hoverColor, hoverColor = _d === void 0 ? null : _d, onClick = _a.onClick, _e = _a.size, size = _e === void 0 ? 20 : _e, top = _a.top, left = _a.left, right = _a.right, _f = _a.position, position = _f === void 0 ? "relative" : _f, zIndex = _a.zIndex, margin = _a.margin, tip = _a.tip;
227
+ var _b = _a.icon, icon = _b === void 0 ? Icons.AudienceRegular : _b, _c = _a.color, color = _c === void 0 ? exports.Colors.Orange : _c, _d = _a.hoverColor, hoverColor = _d === void 0 ? null : _d, onClick = _a.onClick, _e = _a.size, size = _e === void 0 ? 20 : _e, top = _a.top, left = _a.left, right = _a.right, _f = _a.position, position = _f === void 0 ? "relative" : _f, zIndex = _a.zIndex, margin = _a.margin, tip = _a.tip, transitionDuration = _a.transitionDuration;
227
228
  var cursor = onClick ? "pointer" : "";
228
229
  return (React__default.createElement(Container, { color: color, hoverColor: hoverColor, "data-tip": tip },
229
230
  React__default.createElement(reactFontawesome.FontAwesomeIcon, { icon: icon, onClick: onClick, style: {
@@ -233,7 +234,7 @@ function Icon(_a) {
233
234
  position: position,
234
235
  zIndex: zIndex,
235
236
  fontSize: size,
236
- transition: "all 0.2s",
237
+ transition: "all " + (transitionDuration || '0.2s'),
237
238
  margin: margin,
238
239
  cursor: cursor,
239
240
  } })));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellout/ui",
3
- "version": "0.0.40",
3
+ "version": "0.0.42",
4
4
  "main": "build/index.js",
5
5
  "module": "build/index.es.js",
6
6
  "jsnext:main": "build/index.es.js",
@@ -46,13 +46,13 @@
46
46
  "@fortawesome/pro-regular-svg-icons": "^5.12.1",
47
47
  "@fortawesome/pro-solid-svg-icons": "^5.12.1",
48
48
  "@fortawesome/react-fontawesome": "^0.1.9",
49
- "@sellout/utils": "^0.0.40",
49
+ "@sellout/utils": "^0.0.42",
50
50
  "@types/escape-html": "^1.0.0",
51
51
  "csvtojson": "^2.0.10",
52
52
  "polished": "^3.4.4",
53
53
  "react-animate-height": "^2.0.20"
54
54
  },
55
- "gitHead": "fb71c973bfad4145071fd1f8d59300ed267bb316",
55
+ "gitHead": "33b42f0b55ded8e3af0cafba345bc0f1e8c5fa36",
56
56
  "peerDependencies": {
57
57
  "react": "^16.13.0",
58
58
  "react-dom": "^16.13.0",
@@ -30,6 +30,7 @@ export type IconProps = {
30
30
  zIndex?: number | void;
31
31
  margin?: string | number | undefined;
32
32
  tip?: string;
33
+ transitionDuration?: string;
33
34
  };
34
35
 
35
36
  export default function Icon({
@@ -45,6 +46,7 @@ export default function Icon({
45
46
  zIndex,
46
47
  margin,
47
48
  tip,
49
+ transitionDuration,
48
50
  }: IconProps) {
49
51
  const cursor: string = onClick ? "pointer" : "";
50
52
 
@@ -60,7 +62,7 @@ export default function Icon({
60
62
  position: position as any,
61
63
  zIndex: zIndex as any,
62
64
  fontSize: size,
63
- transition: "all 0.2s",
65
+ transition: `all ${transitionDuration || '0.2s'}`,
64
66
  margin,
65
67
  cursor,
66
68
  }}
@@ -55,6 +55,7 @@ import { faItalic as ItalicRegular} from '@fortawesome/pro-regular-svg-icons';
55
55
  import { faKey as KeyRegular} from '@fortawesome/pro-regular-svg-icons';
56
56
  import { faChevronLeft as LeftChevronRegular} from '@fortawesome/pro-regular-svg-icons';
57
57
  import { faLink as LinkRegular} from '@fortawesome/pro-regular-svg-icons';
58
+ import { faListOl as OListRegular} from '@fortawesome/pro-regular-svg-icons';
58
59
  import { faPrint as PrintRegular} from '@fortawesome/pro-regular-svg-icons';
59
60
  import { faFileChartLine as ReportRegular} from '@fortawesome/pro-regular-svg-icons';
60
61
  import { faSearch as SearchRegular} from '@fortawesome/pro-regular-svg-icons';
@@ -69,7 +70,7 @@ import { faArrowAltUp as UpArrow} from '@fortawesome/pro-regular-svg-icons';
69
70
  import { faMegaphone as Update} from '@fortawesome/pro-regular-svg-icons';
70
71
  import { faArrowAltSquareUp as UpgradeRegular} from '@fortawesome/pro-regular-svg-icons';
71
72
  import { faUsers as UsersRegular} from '@fortawesome/pro-regular-svg-icons';
72
- import { faListOl as OListRegular} from '@fortawesome/pro-regular-svg-icons';
73
+ import { faGift as GiftRegular} from '@fortawesome/pro-regular-svg-icons';
73
74
  import { faUserFriends as AudienceSolid} from '@fortawesome/free-solid-svg-icons';
74
75
  import { faArrowLeft as BackArrow} from '@fortawesome/free-solid-svg-icons';
75
76
  import { faCashRegister as BoxOfficeSolid} from '@fortawesome/free-solid-svg-icons';
@@ -180,6 +181,7 @@ export const IconEnum = {
180
181
  KeyRegular,
181
182
  LeftChevronRegular,
182
183
  LinkRegular,
184
+ OListRegular,
183
185
  PrintRegular,
184
186
  ReportRegular,
185
187
  SearchRegular,
@@ -194,7 +196,7 @@ export const IconEnum = {
194
196
  Update,
195
197
  UpgradeRegular,
196
198
  UsersRegular,
197
- OListRegular,
199
+ GiftRegular,
198
200
  AudienceSolid,
199
201
  BackArrow,
200
202
  BoxOfficeSolid,
@@ -80,6 +80,7 @@ FontAwesome%20Library%20c273194098044eb2862e141b7e48a687/microphone-alt-solid.sv
80
80
  FontAwesome%20Library%20c273194098044eb2862e141b7e48a687/minus-circle-light.svg,MinusCircleLight,Pro,Light,faMinusCircle
81
81
  FontAwesome%20Library%20c273194098044eb2862e141b7e48a687/mobile-alt-light.svg,MobileLight,Pro,Light,faMobileAlt
82
82
  FontAwesome%20Library%20c273194098044eb2862e141b7e48a687/mobile-alt-solid.svg,MobileSolid,Free,Solid,faMobileAlt
83
+ FontAwesome%20Library%20c273194098044eb2862e141b7e48a687/list-ol-regular.svg,OListRegular,Pro,Regular,faListOl
83
84
  FontAwesome%20Library%20c273194098044eb2862e141b7e48a687/plus-solid.svg,Plus,Free,Solid,faPlus
84
85
  FontAwesome%20Library%20c273194098044eb2862e141b7e48a687/plus-circle-solid.svg,PlusCircle,Free,Solid,faPlusCircle
85
86
  FontAwesome%20Library%20c273194098044eb2862e141b7e48a687/plus-circle-light.svg,PlusCircleLight,Pro,Light,faPlusCircle
@@ -125,4 +126,4 @@ FontAwesome%20Library%20c273194098044eb2862e141b7e48a687/landmark-light.svg,Venu
125
126
  FontAwesome%20Library%20c273194098044eb2862e141b7e48a687/landmark-solid.svg,VenueSolid,Free,Solid,faLandmark
126
127
  FontAwesome%20Library%20c273194098044eb2862e141b7e48a687/cc-visa-brands.svg,Visa,Brands,,faCcVisa
127
128
  FontAwesome%20Library%20c273194098044eb2862e141b7e48a687/exclamation-triangle-solid.svg,Warning,Free,Solid,faExclamationTriangle
128
- FontAwesome%20Library%20c273194098044eb2862e141b7e48a687/list-ol-regular.svg,OListRegular,Pro,Regular,faListOl
129
+ FontAwesome%20Library%20c273194098044eb2862e141b7e48a687/gift-regular.svg,GiftRegular,Pro,Regular,faGift