@popmenu/common-ui 0.10.0 → 0.11.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/build/index.js CHANGED
@@ -24,83 +24,6 @@ var Chip = require('@material-ui/core/Chip');
24
24
  var Collapse = require('@material-ui/core/Collapse');
25
25
  var core = require('@material-ui/core');
26
26
  var MuiTypography = require('@material-ui/core/Typography');
27
- var makeStyles = require('@material-ui/core/styles/makeStyles');
28
- var AttachFileRoundedIcon = require('@material-ui/icons/AttachFileRounded');
29
- var BlockIcon = require('@material-ui/icons/Block');
30
- var ReplyIcon = require('@material-ui/icons/Reply');
31
- var AccessTimeRoundedIcon = require('@material-ui/icons/AccessTimeRounded');
32
- var AssessmentRoundedIcon = require('@material-ui/icons/AssessmentRounded');
33
- var MailRoundedIcon = require('@material-ui/icons/MailRounded');
34
- var ChatRoundedIcon = require('@material-ui/icons/ChatRounded');
35
- var RestaurantMenuRoundedIcon = require('@material-ui/icons/RestaurantMenuRounded');
36
- var ShoppingCartRoundedIcon = require('@material-ui/icons/ShoppingCartRounded');
37
- var DesktopMacRoundedIcon = require('@material-ui/icons/DesktopMacRounded');
38
- var LanguageRoundedIcon = require('@material-ui/icons/LanguageRounded');
39
- var SettingsRoundedIcon = require('@material-ui/icons/SettingsRounded');
40
- var LockRoundedIcon = require('@material-ui/icons/LockRounded');
41
- var LockOpenRoundedIcon = require('@material-ui/icons/LockOpenRounded');
42
- var PublicRoundedIcon = require('@material-ui/icons/PublicRounded');
43
- var CommentRoundedIcon = require('@material-ui/icons/CommentRounded');
44
- var CodeRoundedIcon = require('@material-ui/icons/CodeRounded');
45
- var KeyboardArrowDownRoundedIcon = require('@material-ui/icons/KeyboardArrowDownRounded');
46
- var KeyboardArrowUpRoundedIcon = require('@material-ui/icons/KeyboardArrowUpRounded');
47
- var KeyboardArrowRightRoundedIcon = require('@material-ui/icons/KeyboardArrowRightRounded');
48
- var KeyboardArrowLeftRoundedIcon = require('@material-ui/icons/KeyboardArrowLeftRounded');
49
- var HelpRoundedIcon = require('@material-ui/icons/HelpRounded');
50
- var CloseRoundedIcon = require('@material-ui/icons/CloseRounded');
51
- var CancelRoundedIcon = require('@material-ui/icons/CancelRounded');
52
- var CalendarTodayRoundedIcon = require('@material-ui/icons/CalendarTodayRounded');
53
- var SaveRoundedIcon = require('@material-ui/icons/SaveRounded');
54
- var SendRoundedIcon = require('@material-ui/icons/SendRounded');
55
- var ArrowBackRoundedIcon = require('@material-ui/icons/ArrowBackRounded');
56
- var ArrowDownwardRoundedIcon = require('@material-ui/icons/ArrowDownwardRounded');
57
- var ArrowForwardRoundedIcon = require('@material-ui/icons/ArrowForwardRounded');
58
- var ArrowUpwardRoundedIcon = require('@material-ui/icons/ArrowUpwardRounded');
59
- var EditRoundedIcon = require('@material-ui/icons/EditRounded');
60
- var DeleteRoundedIcon = require('@material-ui/icons/DeleteRounded');
61
- var VisibilityRoundedIcon = require('@material-ui/icons/VisibilityRounded');
62
- var VisibilityOffRoundedIcon = require('@material-ui/icons/VisibilityOffRounded');
63
- var CompareArrowsRoundedIcon = require('@material-ui/icons/CompareArrowsRounded');
64
- var AddAPhotoRoundedIcon = require('@material-ui/icons/AddAPhotoRounded');
65
- var SearchRoundedIcon = require('@material-ui/icons/SearchRounded');
66
- var AddCircleOutlineRoundedIcon = require('@material-ui/icons/AddCircleOutlineRounded');
67
- var AddCircleRoundedIcon = require('@material-ui/icons/AddCircleRounded');
68
- var RemoveCircleOutlineRoundedIcon = require('@material-ui/icons/RemoveCircleOutlineRounded');
69
- var RemoveCircleRoundedIcon = require('@material-ui/icons/RemoveCircleRounded');
70
- var DragIndicatorRoundedIcon = require('@material-ui/icons/DragIndicatorRounded');
71
- var LocalMallOutlinedIcon = require('@material-ui/icons/LocalMallOutlined');
72
- var LocalShippingOutlinedIcon = require('@material-ui/icons/LocalShippingOutlined');
73
- var RoomOutlinedIcon = require('@material-ui/icons/RoomOutlined');
74
- var PrintRoundedIcon = require('@material-ui/icons/PrintRounded');
75
- var CloudDownloadRoundedIcon = require('@material-ui/icons/CloudDownloadRounded');
76
- var FacebookIcon = require('@material-ui/icons/Facebook');
77
- var TwitterIcon = require('@material-ui/icons/Twitter');
78
- var NotificationsRoundedIcon = require('@material-ui/icons/NotificationsRounded');
79
- var CheckCircleRoundedIcon = require('@material-ui/icons/CheckCircleRounded');
80
- var RefreshRoundedIcon = require('@material-ui/icons/RefreshRounded');
81
- var OpenInNewRoundedIcon = require('@material-ui/icons/OpenInNewRounded');
82
- var CloudUploadRoundedIcon = require('@material-ui/icons/CloudUploadRounded');
83
- var VoicemailRoundedIcon = require('@material-ui/icons/VoicemailRounded');
84
- var AccountCircleOutlined = require('@material-ui/icons/AccountCircleOutlined');
85
- var CardGiftcardOutlined = require('@material-ui/icons/CardGiftcardOutlined');
86
- var CreditCardRounded = require('@material-ui/icons/CreditCardRounded');
87
- var LoyaltyOutlined = require('@material-ui/icons/LoyaltyOutlined');
88
- var StarBorderRounded = require('@material-ui/icons/StarBorderRounded');
89
- var StarRounded = require('@material-ui/icons/StarRounded');
90
- var ShuffleRounded = require('@material-ui/icons/ShuffleRounded');
91
- var PhoneRounded = require('@material-ui/icons/PhoneRounded');
92
- var PlayCircleFilledRounded = require('@material-ui/icons/PlayCircleFilledRounded');
93
- var AccessAlarmRounded = require('@material-ui/icons/AccessAlarmRounded');
94
- var FilterListRounded = require('@material-ui/icons/FilterListRounded');
95
- var HistoryRounded = require('@material-ui/icons/HistoryRounded');
96
- var HomeRounded = require('@material-ui/icons/HomeRounded');
97
- var ListRounded = require('@material-ui/icons/ListRounded');
98
- var MergeTypeRounded = require('@material-ui/icons/MergeTypeRounded');
99
- var PhoneAndroidRounded = require('@material-ui/icons/PhoneAndroidRounded');
100
- var PhotoCameraRounded = require('@material-ui/icons/PhotoCameraRounded');
101
- var ReplayRounded = require('@material-ui/icons/ReplayRounded');
102
- var TodayRounded = require('@material-ui/icons/TodayRounded');
103
- var icons = require('@material-ui/icons');
104
27
  var Dialog = require('@material-ui/core/Dialog');
105
28
  var DialogActions = require('@material-ui/core/DialogActions');
106
29
  var DialogContent = require('@material-ui/core/DialogContent');
@@ -173,82 +96,6 @@ var FormControlLabel__default = /*#__PURE__*/_interopDefaultLegacy(FormControlLa
173
96
  var Chip__default = /*#__PURE__*/_interopDefaultLegacy(Chip);
174
97
  var Collapse__default = /*#__PURE__*/_interopDefaultLegacy(Collapse);
175
98
  var MuiTypography__default = /*#__PURE__*/_interopDefaultLegacy(MuiTypography);
176
- var makeStyles__default = /*#__PURE__*/_interopDefaultLegacy(makeStyles);
177
- var AttachFileRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(AttachFileRoundedIcon);
178
- var BlockIcon__default = /*#__PURE__*/_interopDefaultLegacy(BlockIcon);
179
- var ReplyIcon__default = /*#__PURE__*/_interopDefaultLegacy(ReplyIcon);
180
- var AccessTimeRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(AccessTimeRoundedIcon);
181
- var AssessmentRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(AssessmentRoundedIcon);
182
- var MailRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(MailRoundedIcon);
183
- var ChatRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(ChatRoundedIcon);
184
- var RestaurantMenuRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(RestaurantMenuRoundedIcon);
185
- var ShoppingCartRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(ShoppingCartRoundedIcon);
186
- var DesktopMacRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(DesktopMacRoundedIcon);
187
- var LanguageRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(LanguageRoundedIcon);
188
- var SettingsRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(SettingsRoundedIcon);
189
- var LockRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(LockRoundedIcon);
190
- var LockOpenRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(LockOpenRoundedIcon);
191
- var PublicRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(PublicRoundedIcon);
192
- var CommentRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(CommentRoundedIcon);
193
- var CodeRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(CodeRoundedIcon);
194
- var KeyboardArrowDownRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(KeyboardArrowDownRoundedIcon);
195
- var KeyboardArrowUpRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(KeyboardArrowUpRoundedIcon);
196
- var KeyboardArrowRightRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(KeyboardArrowRightRoundedIcon);
197
- var KeyboardArrowLeftRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(KeyboardArrowLeftRoundedIcon);
198
- var HelpRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(HelpRoundedIcon);
199
- var CloseRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(CloseRoundedIcon);
200
- var CancelRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(CancelRoundedIcon);
201
- var CalendarTodayRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(CalendarTodayRoundedIcon);
202
- var SaveRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(SaveRoundedIcon);
203
- var SendRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(SendRoundedIcon);
204
- var ArrowBackRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(ArrowBackRoundedIcon);
205
- var ArrowDownwardRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(ArrowDownwardRoundedIcon);
206
- var ArrowForwardRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(ArrowForwardRoundedIcon);
207
- var ArrowUpwardRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(ArrowUpwardRoundedIcon);
208
- var EditRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(EditRoundedIcon);
209
- var DeleteRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(DeleteRoundedIcon);
210
- var VisibilityRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(VisibilityRoundedIcon);
211
- var VisibilityOffRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(VisibilityOffRoundedIcon);
212
- var CompareArrowsRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(CompareArrowsRoundedIcon);
213
- var AddAPhotoRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(AddAPhotoRoundedIcon);
214
- var SearchRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(SearchRoundedIcon);
215
- var AddCircleOutlineRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(AddCircleOutlineRoundedIcon);
216
- var AddCircleRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(AddCircleRoundedIcon);
217
- var RemoveCircleOutlineRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(RemoveCircleOutlineRoundedIcon);
218
- var RemoveCircleRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(RemoveCircleRoundedIcon);
219
- var DragIndicatorRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(DragIndicatorRoundedIcon);
220
- var LocalMallOutlinedIcon__default = /*#__PURE__*/_interopDefaultLegacy(LocalMallOutlinedIcon);
221
- var LocalShippingOutlinedIcon__default = /*#__PURE__*/_interopDefaultLegacy(LocalShippingOutlinedIcon);
222
- var RoomOutlinedIcon__default = /*#__PURE__*/_interopDefaultLegacy(RoomOutlinedIcon);
223
- var PrintRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(PrintRoundedIcon);
224
- var CloudDownloadRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(CloudDownloadRoundedIcon);
225
- var FacebookIcon__default = /*#__PURE__*/_interopDefaultLegacy(FacebookIcon);
226
- var TwitterIcon__default = /*#__PURE__*/_interopDefaultLegacy(TwitterIcon);
227
- var NotificationsRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(NotificationsRoundedIcon);
228
- var CheckCircleRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(CheckCircleRoundedIcon);
229
- var RefreshRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(RefreshRoundedIcon);
230
- var OpenInNewRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(OpenInNewRoundedIcon);
231
- var CloudUploadRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(CloudUploadRoundedIcon);
232
- var VoicemailRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(VoicemailRoundedIcon);
233
- var AccountCircleOutlined__default = /*#__PURE__*/_interopDefaultLegacy(AccountCircleOutlined);
234
- var CardGiftcardOutlined__default = /*#__PURE__*/_interopDefaultLegacy(CardGiftcardOutlined);
235
- var CreditCardRounded__default = /*#__PURE__*/_interopDefaultLegacy(CreditCardRounded);
236
- var LoyaltyOutlined__default = /*#__PURE__*/_interopDefaultLegacy(LoyaltyOutlined);
237
- var StarBorderRounded__default = /*#__PURE__*/_interopDefaultLegacy(StarBorderRounded);
238
- var StarRounded__default = /*#__PURE__*/_interopDefaultLegacy(StarRounded);
239
- var ShuffleRounded__default = /*#__PURE__*/_interopDefaultLegacy(ShuffleRounded);
240
- var PhoneRounded__default = /*#__PURE__*/_interopDefaultLegacy(PhoneRounded);
241
- var PlayCircleFilledRounded__default = /*#__PURE__*/_interopDefaultLegacy(PlayCircleFilledRounded);
242
- var AccessAlarmRounded__default = /*#__PURE__*/_interopDefaultLegacy(AccessAlarmRounded);
243
- var FilterListRounded__default = /*#__PURE__*/_interopDefaultLegacy(FilterListRounded);
244
- var HistoryRounded__default = /*#__PURE__*/_interopDefaultLegacy(HistoryRounded);
245
- var HomeRounded__default = /*#__PURE__*/_interopDefaultLegacy(HomeRounded);
246
- var ListRounded__default = /*#__PURE__*/_interopDefaultLegacy(ListRounded);
247
- var MergeTypeRounded__default = /*#__PURE__*/_interopDefaultLegacy(MergeTypeRounded);
248
- var PhoneAndroidRounded__default = /*#__PURE__*/_interopDefaultLegacy(PhoneAndroidRounded);
249
- var PhotoCameraRounded__default = /*#__PURE__*/_interopDefaultLegacy(PhotoCameraRounded);
250
- var ReplayRounded__default = /*#__PURE__*/_interopDefaultLegacy(ReplayRounded);
251
- var TodayRounded__default = /*#__PURE__*/_interopDefaultLegacy(TodayRounded);
252
99
  var Dialog__default = /*#__PURE__*/_interopDefaultLegacy(Dialog);
253
100
  var DialogActions__default = /*#__PURE__*/_interopDefaultLegacy(DialogActions);
254
101
  var DialogContent__default = /*#__PURE__*/_interopDefaultLegacy(DialogContent);
@@ -386,46 +233,46 @@ var useAvatarStyles = styles.makeStyles(function (theme) { return ({
386
233
  },
387
234
  }); });
388
235
 
389
- var _path$a;
236
+ var _path$2;
390
237
 
391
- function _extends$b() { _extends$b = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$b.apply(this, arguments); }
238
+ function _extends$2() { _extends$2 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
392
239
 
393
240
  function SvgSilhouetteFemale(props) {
394
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
241
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
395
242
  viewBox: "0 0 300 300",
396
243
  fill: "none",
397
244
  xmlns: "http://www.w3.org/2000/svg"
398
- }, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
245
+ }, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
399
246
  d: "M179.417 182.917a3.362 3.362 0 00-2.951 1.076 3.461 3.461 0 00-.875 3.021c1.916 10.069 8.368 23.889 28.173 32.493 2.347 1.014 5.972 1.805 10.57 2.799 17.208 3.722 45.986 9.958 53.055 36.333a3.488 3.488 0 001.622 2.11 3.491 3.491 0 002.639.345 3.488 3.488 0 002.109-1.622 3.473 3.473 0 00.345-2.639c-8.173-30.465-40.777-37.527-58.298-41.319-4.056-.882-7.563-1.639-9.278-2.389-11.903-5.167-19.59-12.833-22.924-22.819 33.07 2.458 48.042-10.716 48.702-11.313a3.469 3.469 0 001.121-2.951 3.478 3.478 0 00-1.732-2.639c-19.084-10.903-19.084-48.577-19.084-62.764 0-39.674-26.722-71.125-60.979-71.618-.326-.011-.652-.018-.979-.021h-.007c-34.757.194-63.035 31.68-63.035 70.194 0 14.188 0 51.868-19.083 62.764a3.5 3.5 0 00-1.73 2.769 3.494 3.494 0 001.313 2.988c.959.743 22.14 16.952 48.202 12.028-3.486 9.569-11.07 16.931-22.625 21.951-1.674.73-5.007 1.528-8.868 2.445-17.64 4.194-50.48 12.007-58.702 42.687a3.481 3.481 0 00.348 2.638 3.475 3.475 0 006.368-.839c7.145-26.694 36.229-33.604 53.597-37.743 4.354-1.035 7.791-1.854 10.028-2.82 19.805-8.604 26.25-22.423 28.173-32.493a3.45 3.45 0 00-1.104-3.243 3.457 3.457 0 00-3.347-.722c-18.799 5.917-36.167-2.222-43.757-6.736 18.132-15.181 18.132-50.118 18.132-65.674 0-34.7 25.18-63.076 56.389-63.263l.736.041c30.778.438 53.986 28.236 53.986 64.667 0 15.562 0 50.576 18.208 65.757-6.271 3.583-20.569 9.382-44.458 6.521z",
400
247
  fill: "#2E3042"
401
248
  })));
402
249
  }
403
250
 
404
- var _path$9;
251
+ var _path$1;
405
252
 
406
- function _extends$a() { _extends$a = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
253
+ function _extends$1() { _extends$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
407
254
 
408
255
  function SvgSilhouetteMale(props) {
409
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
256
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
410
257
  viewBox: "0 0 300 300",
411
258
  fill: "none",
412
259
  xmlns: "http://www.w3.org/2000/svg"
413
- }, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
260
+ }, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
414
261
  d: "M27.594 261.886a3.513 3.513 0 004.281-2.478c7.204-26.904 36.484-33.877 53.984-38.05 4.386-1.043 7.848-1.869 10.1-2.842 19.935-8.66 26.433-22.592 28.377-32.757a3.493 3.493 0 00-.133-1.81 3.492 3.492 0 00-1.021-1.501c-10.38-8.968-19.137-22.431-24.663-37.917a3.447 3.447 0 00-.72-1.197c-7.31-7.953-11.506-16.361-11.506-23.06 0-3.914 1.475-6.539 4.798-8.52a3.5 3.5 0 001.7-2.857c1.545-35.662 26.922-63.735 58.047-63.917l.749.049c31.279.434 56.495 29.11 57.397 65.275a3.487 3.487 0 001.245 2.584c2.189 1.855 3.211 4.207 3.211 7.4 0 5.607-2.987 12.503-8.401 19.406a3.633 3.633 0 00-.587 1.106c-5.596 17.754-15.64 33.429-27.545 43.02a3.517 3.517 0 00-1.245 3.381c1.945 10.159 8.442 24.083 28.377 32.757 2.357 1.022 6.015 1.821 10.653 2.822 17.325 3.752 46.318 10.046 53.431 36.628a3.503 3.503 0 002.926 2.562 3.494 3.494 0 003.922-3.019 3.52 3.52 0 00-.091-1.363c-8.219-30.713-41.065-37.833-58.705-41.655-4.092-.889-7.625-1.652-9.345-2.408-13.01-5.657-21.026-14.275-23.859-25.658 12.08-10.383 22.187-26.401 27.965-44.365 6.134-7.981 9.505-16.2 9.505-23.221 0-4.684-1.511-8.59-4.504-11.643-1.665-39.232-29.636-70.127-64.35-70.624L150.545 38c-34.085.182-62.175 30.264-64.63 68.818-4.379 3.22-6.603 7.736-6.603 13.47 0 8.282 4.68 18.188 12.87 27.275 5.659 15.563 14.43 29.235 24.873 38.805-2.819 11.426-10.842 20.072-23.88 25.735-1.685.735-5.043 1.541-8.932 2.465-17.773 4.228-50.843 12.104-59.125 43.034a3.501 3.501 0 002.476 4.284z",
415
262
  fill: "#2E3042"
416
263
  })));
417
264
  }
418
265
 
419
- var _path$8;
266
+ var _path;
420
267
 
421
- function _extends$9() { _extends$9 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
268
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
422
269
 
423
270
  function SvgSilhouetteNeutral(props) {
424
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
271
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends({
425
272
  viewBox: "0 0 300 300",
426
273
  fill: "none",
427
274
  xmlns: "http://www.w3.org/2000/svg"
428
- }, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
275
+ }, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
429
276
  fillRule: "evenodd",
430
277
  clipRule: "evenodd",
431
278
  d: "M209 121c0 32.585-26.415 59-59 59s-59-26.415-59-59 26.415-59 59-59 59 26.415 59 59zm8 0c0 37.003-29.997 67-67 67s-67-29.997-67-67 29.997-67 67-67 67 29.997 67 67zm35 137.333V284h8v-25.667c0-13.614-5.821-26.671-16.182-36.298C233.456 212.408 219.403 207 204.75 207H94.25c-14.653 0-28.706 5.408-39.068 15.035C44.821 231.662 39 244.719 39 258.333V284h8v-25.667c0-11.295 4.824-22.257 13.628-30.437C69.45 219.698 81.537 215 94.25 215h110.5c12.714 0 24.799 4.698 33.622 12.896 8.804 8.18 13.628 19.142 13.628 30.437z",
@@ -546,341 +393,68 @@ var Checkbox = React.forwardRef(function (props, ref) {
546
393
  });
547
394
  Checkbox.displayName = 'Checkbox';
548
395
 
549
- var getIconSize = function (theme, props) {
550
- var size = 'inherit';
551
- var sizes = {
552
- large: theme.typography.pxToRem(36),
553
- medium: theme.typography.pxToRem(24),
554
- small: theme.typography.pxToRem(20),
396
+ var useIconStyles = core.makeStyles(function (_a) {
397
+ var spacing = _a.spacing, palette = _a.palette;
398
+ var getFontSize = function (_a) {
399
+ var size = _a.size;
400
+ var sizes = {
401
+ inherit: 'inherit',
402
+ small: spacing(1.5),
403
+ medium: spacing(2),
404
+ large: spacing(2.5),
405
+ 'extra-large': spacing(3),
406
+ };
407
+ return size ? sizes[size] : 'inherit';
555
408
  };
556
- if (props.size) {
557
- size = sizes[props.size];
558
- }
559
- return size;
560
- };
561
- var getIconColor = function (theme, props) {
562
- var color = 'inherit';
563
- if (props.color) {
564
- var _a = props.color.split('.'), colorKey = _a[0], _b = _a[1], variantKey = _b === void 0 ? 'main' : _b;
565
- color = theme.palette[colorKey][variantKey];
566
- }
567
- return color;
568
- };
569
- var getFill = function (props) {
570
- var fill;
571
- var filledIcons = ['menu'];
572
- if (filledIcons.includes(props.name)) {
573
- fill = 'currentColor';
574
- }
575
- return fill;
576
- };
577
- var getStroke = function (props) {
578
- var stroke;
579
- var strokeIcons = ['copy'];
580
- if (strokeIcons.includes(props.name)) {
581
- stroke = 'currentColor';
582
- }
583
- return stroke;
584
- };
585
- var useIconStyles = makeStyles__default['default'](function (theme) { return ({
586
- root: {
587
- width: '1em',
588
- height: '1em',
589
- color: function (props) { return getIconColor(theme, props); },
590
- fill: function (props) { return getFill(props); },
591
- stroke: function (props) { return getStroke(props); },
592
- fontSize: function (props) { return getIconSize(theme, props); },
593
- userSelect: 'none',
594
- },
595
- }); });
596
-
597
- var _path$7, _path2$2, _path3;
598
-
599
- function _extends$8() { _extends$8 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
600
-
601
- function SvgPopmenuLogo(props) {
602
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
603
- viewBox: "0 0 35 35",
604
- xmlns: "http://www.w3.org/2000/svg",
605
- "aria-hidden": "true"
606
- }, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
607
- d: "M23.061 13.613H9.363a.875.875 0 000 1.743H23.06a.873.873 0 00.875-1.223.874.874 0 00-.875-.52zM9.363 11.125H23.06a.875.875 0 100-1.744H9.363a.875.875 0 000 1.744zm13.698 6.723H9.363a.874.874 0 00-.36 1.7.875.875 0 00.36.042H23.06a.875.875 0 100-1.742z"
608
- })), _path2$2 || (_path2$2 = /*#__PURE__*/React__namespace.createElement("path", {
609
- d: "M28.44 15.141c-.59-.01-1.117.465-1.594 1.125-.524.77-.966 1.594-1.317 2.457-.325.75-.5 1.317-.517 1.808-.025.448.108.89.375 1.25-.228.295-.47.58-.727.85-.347.37-.719.715-1.113 1.034-.107.088-.357.291-.75.564a11.311 11.311 0 01-4.875 1.871c-.625.085-1.255.118-1.886.099l-1.094 1.25-.692.793V26a11.493 11.493 0 01-1.356-.346c-.525-.17-1.036-.38-1.53-.625A11.375 11.375 0 1124.606 6.963a11.368 11.368 0 011.431 1.84c-.256.36-.418.779-.47 1.218-.059.441-.008.89.147 1.306a9.935 9.935 0 01.625 3.5h.625c0-1.268-.226-2.525-.67-3.713a1.951 1.951 0 01-.056-1.209 1.499 1.499 0 01.688-.93 1.242 1.242 0 011.178 0c.446.236.787.63.955 1.106.568 1.52.858 3.128.857 4.75h.625c.001-1.697-.303-3.38-.899-4.968a2.965 2.965 0 00-1.087-1.425 1.929 1.929 0 00-1.401-.345 12.69 12.69 0 00-.875-1.23A12.71 12.71 0 1010.316 25.99c.817.446 1.681.8 2.576 1.054v4.82l3.78-4.337a12.699 12.699 0 009.756-4.926c.415.16.89.157 1.417-.16.527-.318 1.108-.956 1.581-2.053.277-.64.452-1.32.517-2.014a5.042 5.042 0 00-.126-1.707c-.257-.97-.797-1.518-1.377-1.527z"
610
- })), _path3 || (_path3 = /*#__PURE__*/React__namespace.createElement("path", {
611
- d: "M29.26 14.822a12.834 12.834 0 00-.75-4.33l-.586.21c.471 1.323.712 2.719.71 4.124l.626-.004zm-2.414-3.734c.428 1.198.646 2.462.644 3.735h.625a11.72 11.72 0 00-.681-3.948l-.588.213z"
612
- })));
613
- }
614
-
615
- var _path$6;
616
-
617
- function _extends$7() { _extends$7 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
618
-
619
- function SvgMenuIcon(props) {
620
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
621
- viewBox: "0 0 35 35",
622
- fill: "none",
623
- xmlns: "http://www.w3.org/2000/svg",
624
- "aria-hidden": "true"
625
- }, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
626
- d: "M29.167 16.042H5.833c-.802 0-1.458.656-1.458 1.458 0 .802.656 1.458 1.458 1.458h23.334c.802 0 1.458-.656 1.458-1.458 0-.802-.656-1.458-1.458-1.458zM5.833 26.25h14.584c.802 0 1.458-.656 1.458-1.458 0-.802-.656-1.459-1.458-1.459H5.833c-.802 0-1.458.657-1.458 1.459s.656 1.458 1.458 1.458zm23.334-17.5H5.833c-.802 0-1.458.656-1.458 1.458v.015c0 .802.656 1.458 1.458 1.458h23.334c.802 0 1.458-.656 1.458-1.458v-.015c0-.802-.656-1.458-1.458-1.458z"
627
- })));
628
- }
629
-
630
- var _path$5, _path2$1;
631
-
632
- function _extends$6() { _extends$6 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
633
-
634
- function SvgCheckCircle(props) {
635
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
636
- xmlns: "http://www.w3.org/2000/svg",
637
- viewBox: "0 0 24 24",
638
- fill: "none",
639
- stroke: "currentColor",
640
- strokeWidth: 2,
641
- strokeLinecap: "round",
642
- strokeLinejoin: "round",
643
- className: "CheckCircle_svg__feather CheckCircle_svg__feather-check-circle"
644
- }, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
645
- d: "M22 11.08V12a10 10 0 11-5.93-9.14"
646
- })), _path2$1 || (_path2$1 = /*#__PURE__*/React__namespace.createElement("path", {
647
- d: "M22 4L12 14.01l-3-3"
648
- })));
649
- }
650
-
651
- var _path$4, _path2;
652
-
653
- function _extends$5() { _extends$5 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
654
-
655
- function SvgCopy(props) {
656
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
657
- viewBox: "0 0 35 35",
658
- fill: "none",
659
- strokeWidth: 2,
660
- strokeLinecap: "round",
661
- strokeLinejoin: "round",
662
- xmlns: "http://www.w3.org/2000/svg"
663
- }, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
664
- d: "M29.167 13.125H16.042a2.917 2.917 0 00-2.917 2.917v13.125a2.917 2.917 0 002.917 2.916h13.125a2.917 2.917 0 002.916-2.916V16.042a2.917 2.917 0 00-2.916-2.917z"
665
- })), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
666
- d: "M7.292 21.875H5.833a2.917 2.917 0 01-2.916-2.917V5.833a2.917 2.917 0 012.916-2.916h13.125a2.916 2.916 0 012.917 2.916v1.459"
667
- })));
668
- }
669
-
670
- var _path$3;
671
-
672
- function _extends$4() { _extends$4 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
673
-
674
- function SvgCheckmark(props) {
675
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
676
- xmlns: "http://www.w3.org/2000/svg",
677
- viewBox: "0 0 24 24",
678
- fill: "none",
679
- stroke: "currentColor",
680
- strokeWidth: 2,
681
- strokeLinecap: "round",
682
- strokeLinejoin: "round",
683
- className: "Checkmark_svg__feather Checkmark_svg__feather-check"
684
- }, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
685
- d: "M20 6L9 17l-5-5"
686
- })));
687
- }
688
-
689
- var _circle$1;
690
-
691
- function _extends$3() { _extends$3 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
692
-
693
- function SvgUnchecked(props) {
694
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
695
- xmlns: "http://www.w3.org/2000/svg",
696
- viewBox: "0 0 24 24",
697
- fill: "none",
698
- stroke: "currentColor",
699
- strokeWidth: 2,
700
- strokeLinecap: "round",
701
- strokeLinejoin: "round",
702
- className: "Unchecked_svg__feather Unchecked_svg__feather-circle"
703
- }, props), _circle$1 || (_circle$1 = /*#__PURE__*/React__namespace.createElement("circle", {
704
- cx: 12,
705
- cy: 12,
706
- r: 10
707
- })));
708
- }
709
-
710
- var _path$2;
711
-
712
- function _extends$2() { _extends$2 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
713
-
714
- function SvgAlertOctagon(props) {
715
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
716
- xmlns: "http://www.w3.org/2000/svg",
717
- viewBox: "0 0 24 24",
718
- fill: "none",
719
- stroke: "currentColor",
720
- strokeWidth: 2,
721
- strokeLinecap: "round",
722
- strokeLinejoin: "round"
723
- }, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
724
- d: "M7.86 2h8.28L22 7.86v8.28L16.14 22H7.86L2 16.14V7.86L7.86 2zM12 8v4M12 16h.01"
725
- })));
726
- }
727
-
728
- var _path$1;
729
-
730
- function _extends$1() { _extends$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
731
-
732
- function SvgAlertTriangle(props) {
733
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
734
- xmlns: "http://www.w3.org/2000/svg",
735
- viewBox: "0 0 24 24",
736
- fill: "none",
737
- stroke: "currentColor",
738
- strokeWidth: 2,
739
- strokeLinecap: "round",
740
- strokeLinejoin: "round",
741
- className: "AlertTriangle_svg__feather AlertTriangle_svg__feather-alert-triangle"
742
- }, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
743
- d: "M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0zM12 9v4M12 17h.01"
744
- })));
745
- }
746
-
747
- var _circle, _path;
748
-
749
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
750
-
751
- function SvgInfo(props) {
752
- return /*#__PURE__*/React__namespace.createElement("svg", _extends({
753
- xmlns: "http://www.w3.org/2000/svg",
754
- viewBox: "0 0 24 24",
755
- fill: "none",
756
- stroke: "currentColor",
757
- strokeWidth: 2,
758
- strokeLinecap: "round",
759
- strokeLinejoin: "round",
760
- className: "Info_svg__feather Info_svg__feather-info"
761
- }, props), _circle || (_circle = /*#__PURE__*/React__namespace.createElement("circle", {
762
- cx: 12,
763
- cy: 12,
764
- r: 10
765
- })), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
766
- d: "M12 16v-4M12 8h.01"
767
- })));
768
- }
769
-
770
- var iconDictionary = {
771
- add: AddCircleRoundedIcon__default['default'],
772
- 'add-outlined': AddCircleOutlineRoundedIcon__default['default'],
773
- 'add-photo': AddAPhotoRoundedIcon__default['default'],
774
- alarm: AccessAlarmRounded__default['default'],
775
- 'arrow-back': ArrowBackRoundedIcon__default['default'],
776
- 'arrow-down': ArrowDownwardRoundedIcon__default['default'],
777
- 'arrow-forward': ArrowForwardRoundedIcon__default['default'],
778
- 'arrow-up': ArrowUpwardRoundedIcon__default['default'],
779
- attach: AttachFileRoundedIcon__default['default'],
780
- 'bar-chart': AssessmentRoundedIcon__default['default'],
781
- block: BlockIcon__default['default'],
782
- calendar: CalendarTodayRoundedIcon__default['default'],
783
- 'calendar-today': TodayRounded__default['default'],
784
- cancel: CloseRoundedIcon__default['default'],
785
- 'cancel-filled': CancelRoundedIcon__default['default'],
786
- cart: ShoppingCartRoundedIcon__default['default'],
787
- chat: ChatRoundedIcon__default['default'],
788
- 'check-circle': CheckCircleRoundedIcon__default['default'],
789
- checked: SvgCheckCircle,
790
- checkmark: SvgCheckmark,
791
- 'chevron-down': KeyboardArrowDownRoundedIcon__default['default'],
792
- 'chevron-left': KeyboardArrowLeftRoundedIcon__default['default'],
793
- 'chevron-right': KeyboardArrowRightRoundedIcon__default['default'],
794
- 'chevron-up': KeyboardArrowUpRoundedIcon__default['default'],
795
- clock: AccessTimeRoundedIcon__default['default'],
796
- code: CodeRoundedIcon__default['default'],
797
- comment: CommentRoundedIcon__default['default'],
798
- compare: CompareArrowsRoundedIcon__default['default'],
799
- copy: SvgCopy,
800
- 'credit-card': CreditCardRounded__default['default'],
801
- delete: DeleteRoundedIcon__default['default'],
802
- desktop: DesktopMacRoundedIcon__default['default'],
803
- 'dining-menu': RestaurantMenuRoundedIcon__default['default'],
804
- download: CloudDownloadRoundedIcon__default['default'],
805
- 'drag-handle': DragIndicatorRoundedIcon__default['default'],
806
- edit: EditRoundedIcon__default['default'],
807
- error: SvgAlertOctagon,
808
- 'external-link': OpenInNewRoundedIcon__default['default'],
809
- facebook: FacebookIcon__default['default'],
810
- 'filter-list': FilterListRounded__default['default'],
811
- 'gift-card': CardGiftcardOutlined__default['default'],
812
- globe: PublicRoundedIcon__default['default'],
813
- help: HelpRoundedIcon__default['default'],
814
- history: HistoryRounded__default['default'],
815
- home: HomeRounded__default['default'],
816
- info: SvgInfo,
817
- list: ListRounded__default['default'],
818
- 'location-pin': RoomOutlinedIcon__default['default'],
819
- lock: LockRoundedIcon__default['default'],
820
- 'lock-open': LockOpenRoundedIcon__default['default'],
821
- loyalty: LoyaltyOutlined__default['default'],
822
- mail: MailRoundedIcon__default['default'],
823
- menu: SvgMenuIcon,
824
- merge: MergeTypeRounded__default['default'],
825
- 'mobile-device': PhoneAndroidRounded__default['default'],
826
- notification: NotificationsRoundedIcon__default['default'],
827
- 'photo-camera': PhotoCameraRounded__default['default'],
828
- play: PlayCircleFilledRounded__default['default'],
829
- popmenu: SvgPopmenuLogo,
830
- print: PrintRoundedIcon__default['default'],
831
- refresh: RefreshRoundedIcon__default['default'],
832
- phone: PhoneRounded__default['default'],
833
- profile: AccountCircleOutlined__default['default'],
834
- remove: RemoveCircleRoundedIcon__default['default'],
835
- 'remove-outlined': RemoveCircleOutlineRoundedIcon__default['default'],
836
- replay: ReplayRounded__default['default'],
837
- reply: ReplyIcon__default['default'],
838
- save: SaveRoundedIcon__default['default'],
839
- search: SearchRoundedIcon__default['default'],
840
- send: SendRoundedIcon__default['default'],
841
- settings: SettingsRoundedIcon__default['default'],
842
- 'shopping-bag': LocalMallOutlinedIcon__default['default'],
843
- shuffle: ShuffleRounded__default['default'],
844
- star: StarBorderRounded__default['default'],
845
- 'star-filled': StarRounded__default['default'],
846
- success: SvgCheckCircle,
847
- truck: LocalShippingOutlinedIcon__default['default'],
848
- twitter: TwitterIcon__default['default'],
849
- unchecked: SvgUnchecked,
850
- upload: CloudUploadRoundedIcon__default['default'],
851
- visibility: VisibilityRoundedIcon__default['default'],
852
- 'visibility-off': VisibilityOffRoundedIcon__default['default'],
853
- voicemail: VoicemailRoundedIcon__default['default'],
854
- warning: SvgAlertTriangle,
855
- website: LanguageRoundedIcon__default['default'],
856
- };
409
+ var getColor = function (props) {
410
+ var semanticColors = ['primary', 'secondary', 'info', 'success', 'warning', 'error'];
411
+ var value = 'inherit';
412
+ if (props.color) {
413
+ if (semanticColors.includes(props.color.split('.')[0])) {
414
+ var _a = props.color.split('.'), color = _a[0], _b = _a[1], variant = _b === void 0 ? 'main' : _b;
415
+ value = palette[color][variant];
416
+ }
417
+ else if (props.color.search(/^(rgb|hsla|#)/) !== -1) {
418
+ value = props.color;
419
+ }
420
+ }
421
+ return value;
422
+ };
423
+ return {
424
+ root: {
425
+ color: getColor,
426
+ fontSize: getFontSize,
427
+ strokeWidth: '1.3px',
428
+ },
429
+ };
430
+ });
857
431
 
858
- /**
859
- * Adding new icons.
860
- * 1. If not part of the material-ui library, put the svg file in app/javascript/admin/common/assets/
861
- * 2. Update the iconDictionary at ./iconDictionary
862
- * 3. Add the icon name to Icon.propTypes
863
- */
864
- var IconStaticClassName = 'mep-icon-svg';
865
- var Icon = React.forwardRef(function (props, ref) {
866
- var className = props.className, name = props.name; props.color; var restProps = __rest(props, ["className", "name", "color"]);
432
+ var iconStaticClassName = 'pop-icon';
433
+ var Icon = function (props) {
434
+ var icon = props.icon, className = props.className, restProps = __rest(props, ["icon", "className"]);
867
435
  var classes = useIconStyles(props);
868
- var IconComponent = iconDictionary[name] || icons.FlagRounded;
869
- if (!iconDictionary[name]) {
870
- console.warn("Invalid name prop provided to Icon component. \"" + name + "\" was not found in the iconDictionary.");
436
+ var isValid = true;
437
+ if (!icon || (typeof icon === 'function' && icon({}) === undefined)) {
438
+ isValid = false;
871
439
  }
872
- return (React__default['default'].createElement(IconComponent, __assign({ ref: ref, className: classNames([classes.root, className, IconStaticClassName]) }, restProps)));
873
- });
440
+ return isValid
441
+ ? React.createElement(icon, __assign({ className: classNames([classes.root, iconStaticClassName, className]) }, restProps))
442
+ : null;
443
+ };
444
+ Icon.defaultProps = {
445
+ size: 'inherit',
446
+ color: 'inherit',
447
+ };
874
448
  Icon.displayName = 'Icon';
875
449
 
876
450
  var useTypographyStyles = styles.makeStyles(function () {
877
451
  var _a;
878
452
  return ({
879
- root: (_a = {
880
- display: 'flex'
881
- },
882
- _a["& ." + IconStaticClassName] = {
883
- alignSelf: 'center',
453
+ root: (_a = {},
454
+ _a["& ." + iconStaticClassName] = {
455
+ position: 'relative',
456
+ top: '0.125em',
457
+ padding: '0 0.125em',
884
458
  },
885
459
  _a),
886
460
  caption: {
@@ -991,10 +565,10 @@ var useStyles = core.makeStyles(function (theme) { return ({
991
565
  },
992
566
  }); });
993
567
  var Divider = function (props) {
994
- var text = props.text, textTransform = props.textTransform, TypographyProps = props.TypographyProps;
568
+ var className = props.className, text = props.text, textTransform = props.textTransform, TypographyProps = props.TypographyProps;
995
569
  var classes = useStyles(props);
996
570
  var casingOffset = textTransform === 'lowercase' ? '.25rem' : 'unset';
997
- return (React__default['default'].createElement(Box__default['default'], { className: classes.dividerRoot, display: "flex", alignItems: "center" },
571
+ return (React__default['default'].createElement(Box__default['default'], { className: classNames([classes.dividerRoot, className]), display: "flex", alignItems: "center" },
998
572
  React__default['default'].createElement(Box__default['default'], { className: classes.dividerLine, display: "flex", flexGrow: 1, height: "1px", marginTop: casingOffset }),
999
573
  text && (React__default['default'].createElement(React__default['default'].Fragment, null,
1000
574
  React__default['default'].createElement(Typography, __assign({ className: classes.textRoot }, TypographyProps), text),
@@ -1005,60 +579,13 @@ Divider.defaultProps = {
1005
579
  textTransform: 'lowercase',
1006
580
  };
1007
581
 
1008
- var useNewIconStyles = core.makeStyles(function (theme) { return ({
1009
- root: {
1010
- color: function (props) {
1011
- var semanticColors = ['primary', 'secondary', 'info', 'success', 'warning', 'error'];
1012
- var value = 'inherit';
1013
- if (props.color) {
1014
- if (semanticColors.includes(props.color.split('.')[0])) {
1015
- var _a = props.color.split('.'), color = _a[0], _b = _a[1], variant = _b === void 0 ? 'main' : _b;
1016
- value = theme.palette[color][variant];
1017
- }
1018
- else if (props.color.search(/^(rgb|hsla|#)/) !== -1) {
1019
- value = props.color;
1020
- }
1021
- }
1022
- return value;
1023
- },
1024
- fontSize: function (_a) {
1025
- var size = _a.size;
1026
- var sizes = {
1027
- inherit: 'inherit',
1028
- small: theme.spacing(1.5),
1029
- medium: theme.spacing(2),
1030
- large: theme.spacing(2.5),
1031
- 'extra-large': theme.spacing(3),
1032
- };
1033
- return sizes[size];
1034
- },
1035
- strokeWidth: function (_a) {
1036
- var size = _a.size;
1037
- var sizes = {
1038
- inherit: '1.5px',
1039
- small: '1px',
1040
- medium: '1.5px',
1041
- large: '1.5px',
1042
- 'extra-large': '2px',
1043
- };
1044
- return sizes[size];
1045
- },
1046
- },
1047
- }); });
1048
-
1049
- var NewIcon = function (props) {
1050
- var icon = props.icon, _a = props.size, size = _a === void 0 ? 'inherit' : _a, _b = props.color, color = _b === void 0 ? 'inherit' : _b;
1051
- var classes = useNewIconStyles({ size: size, color: color });
1052
- return React.createElement(icon, { className: classes.root });
1053
- };
1054
- NewIcon.displayName = 'NewIcon';
1055
-
1056
582
  var IconButton = React.forwardRef(function (props, ref) {
1057
- props.children; var icon = props.icon, muiProps = __rest(props, ["children", "icon"]);
1058
- return (React__default['default'].createElement(MuiIconButton__default['default'], __assign({ ref: ref }, muiProps),
1059
- React__default['default'].createElement(Icon, { name: icon })));
583
+ return React__default['default'].createElement(MuiIconButton__default['default'], __assign({ ref: ref }, props));
1060
584
  });
1061
- IconButton.displayName = 'IconButton';
585
+ IconButton.displayName = 'IconButton';
586
+ IconButton.defaultProps = {
587
+ color: 'secondary',
588
+ };
1062
589
 
1063
590
  var getLinkColor = function (_a, _b) {
1064
591
  var palette = _a.palette;
@@ -1082,7 +609,7 @@ var useLinkStyles = styles.makeStyles(function (theme) {
1082
609
  display: 'flex',
1083
610
  color: function (props) { return getLinkColor(theme, props); }
1084
611
  },
1085
- _a["& ." + IconStaticClassName] = {
612
+ _a["& ." + iconStaticClassName] = {
1086
613
  alignSelf: 'center',
1087
614
  },
1088
615
  _a),
@@ -1463,7 +990,6 @@ exports.Divider = Divider;
1463
990
  exports.Icon = Icon;
1464
991
  exports.IconButton = IconButton;
1465
992
  exports.Link = Link;
1466
- exports.NewIcon = NewIcon;
1467
993
  exports.Radio = Radio;
1468
994
  exports.SplitInput = SplitInput;
1469
995
  exports.Switch = Switch;
@@ -1471,6 +997,5 @@ exports.ToggleButton = ToggleButton;
1471
997
  exports.ToggleButtonGroup = ToggleButtonGroup;
1472
998
  exports.Tooltip = Tooltip;
1473
999
  exports.Typography = Typography;
1474
- exports.iconDictionary = iconDictionary;
1475
1000
  exports.useCollapsibleText = useCollapsibleText;
1476
1001
  //# sourceMappingURL=index.js.map