@popmenu/common-ui 0.7.6 → 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
@@ -21,6 +21,9 @@ var CardMedia = require('@material-ui/core/CardMedia');
21
21
  var MuiCheckbox = require('@material-ui/core/Checkbox');
22
22
  var FormControlLabel = require('@material-ui/core/FormControlLabel');
23
23
  var Chip = require('@material-ui/core/Chip');
24
+ var Collapse = require('@material-ui/core/Collapse');
25
+ var core = require('@material-ui/core');
26
+ var MuiTypography = require('@material-ui/core/Typography');
24
27
  var Dialog = require('@material-ui/core/Dialog');
25
28
  var DialogActions = require('@material-ui/core/DialogActions');
26
29
  var DialogContent = require('@material-ui/core/DialogContent');
@@ -28,83 +31,6 @@ var DialogTitle = require('@material-ui/core/DialogTitle');
28
31
  var Drawer = require('@material-ui/core/Drawer');
29
32
  var FormControl = require('@material-ui/core/FormControl');
30
33
  var Grid = require('@material-ui/core/Grid');
31
- var makeStyles = require('@material-ui/core/styles/makeStyles');
32
- var AttachFileRoundedIcon = require('@material-ui/icons/AttachFileRounded');
33
- var BlockIcon = require('@material-ui/icons/Block');
34
- var ReplyIcon = require('@material-ui/icons/Reply');
35
- var AccessTimeRoundedIcon = require('@material-ui/icons/AccessTimeRounded');
36
- var AssessmentRoundedIcon = require('@material-ui/icons/AssessmentRounded');
37
- var MailRoundedIcon = require('@material-ui/icons/MailRounded');
38
- var ChatRoundedIcon = require('@material-ui/icons/ChatRounded');
39
- var RestaurantMenuRoundedIcon = require('@material-ui/icons/RestaurantMenuRounded');
40
- var ShoppingCartRoundedIcon = require('@material-ui/icons/ShoppingCartRounded');
41
- var DesktopMacRoundedIcon = require('@material-ui/icons/DesktopMacRounded');
42
- var LanguageRoundedIcon = require('@material-ui/icons/LanguageRounded');
43
- var SettingsRoundedIcon = require('@material-ui/icons/SettingsRounded');
44
- var LockRoundedIcon = require('@material-ui/icons/LockRounded');
45
- var LockOpenRoundedIcon = require('@material-ui/icons/LockOpenRounded');
46
- var PublicRoundedIcon = require('@material-ui/icons/PublicRounded');
47
- var CommentRoundedIcon = require('@material-ui/icons/CommentRounded');
48
- var CodeRoundedIcon = require('@material-ui/icons/CodeRounded');
49
- var KeyboardArrowDownRoundedIcon = require('@material-ui/icons/KeyboardArrowDownRounded');
50
- var KeyboardArrowUpRoundedIcon = require('@material-ui/icons/KeyboardArrowUpRounded');
51
- var KeyboardArrowRightRoundedIcon = require('@material-ui/icons/KeyboardArrowRightRounded');
52
- var KeyboardArrowLeftRoundedIcon = require('@material-ui/icons/KeyboardArrowLeftRounded');
53
- var HelpRoundedIcon = require('@material-ui/icons/HelpRounded');
54
- var CloseRoundedIcon = require('@material-ui/icons/CloseRounded');
55
- var CancelRoundedIcon = require('@material-ui/icons/CancelRounded');
56
- var CalendarTodayRoundedIcon = require('@material-ui/icons/CalendarTodayRounded');
57
- var SaveRoundedIcon = require('@material-ui/icons/SaveRounded');
58
- var SendRoundedIcon = require('@material-ui/icons/SendRounded');
59
- var ArrowBackRoundedIcon = require('@material-ui/icons/ArrowBackRounded');
60
- var ArrowDownwardRoundedIcon = require('@material-ui/icons/ArrowDownwardRounded');
61
- var ArrowForwardRoundedIcon = require('@material-ui/icons/ArrowForwardRounded');
62
- var ArrowUpwardRoundedIcon = require('@material-ui/icons/ArrowUpwardRounded');
63
- var EditRoundedIcon = require('@material-ui/icons/EditRounded');
64
- var DeleteRoundedIcon = require('@material-ui/icons/DeleteRounded');
65
- var VisibilityRoundedIcon = require('@material-ui/icons/VisibilityRounded');
66
- var VisibilityOffRoundedIcon = require('@material-ui/icons/VisibilityOffRounded');
67
- var CompareArrowsRoundedIcon = require('@material-ui/icons/CompareArrowsRounded');
68
- var AddAPhotoRoundedIcon = require('@material-ui/icons/AddAPhotoRounded');
69
- var SearchRoundedIcon = require('@material-ui/icons/SearchRounded');
70
- var AddCircleOutlineRoundedIcon = require('@material-ui/icons/AddCircleOutlineRounded');
71
- var AddCircleRoundedIcon = require('@material-ui/icons/AddCircleRounded');
72
- var RemoveCircleOutlineRoundedIcon = require('@material-ui/icons/RemoveCircleOutlineRounded');
73
- var RemoveCircleRoundedIcon = require('@material-ui/icons/RemoveCircleRounded');
74
- var DragIndicatorRoundedIcon = require('@material-ui/icons/DragIndicatorRounded');
75
- var LocalMallOutlinedIcon = require('@material-ui/icons/LocalMallOutlined');
76
- var LocalShippingOutlinedIcon = require('@material-ui/icons/LocalShippingOutlined');
77
- var RoomOutlinedIcon = require('@material-ui/icons/RoomOutlined');
78
- var PrintRoundedIcon = require('@material-ui/icons/PrintRounded');
79
- var CloudDownloadRoundedIcon = require('@material-ui/icons/CloudDownloadRounded');
80
- var FacebookIcon = require('@material-ui/icons/Facebook');
81
- var TwitterIcon = require('@material-ui/icons/Twitter');
82
- var NotificationsRoundedIcon = require('@material-ui/icons/NotificationsRounded');
83
- var CheckCircleRoundedIcon = require('@material-ui/icons/CheckCircleRounded');
84
- var RefreshRoundedIcon = require('@material-ui/icons/RefreshRounded');
85
- var OpenInNewRoundedIcon = require('@material-ui/icons/OpenInNewRounded');
86
- var CloudUploadRoundedIcon = require('@material-ui/icons/CloudUploadRounded');
87
- var VoicemailRoundedIcon = require('@material-ui/icons/VoicemailRounded');
88
- var AccountCircleOutlined = require('@material-ui/icons/AccountCircleOutlined');
89
- var CardGiftcardOutlined = require('@material-ui/icons/CardGiftcardOutlined');
90
- var CreditCardRounded = require('@material-ui/icons/CreditCardRounded');
91
- var LoyaltyOutlined = require('@material-ui/icons/LoyaltyOutlined');
92
- var StarBorderRounded = require('@material-ui/icons/StarBorderRounded');
93
- var StarRounded = require('@material-ui/icons/StarRounded');
94
- var ShuffleRounded = require('@material-ui/icons/ShuffleRounded');
95
- var PhoneRounded = require('@material-ui/icons/PhoneRounded');
96
- var PlayCircleFilledRounded = require('@material-ui/icons/PlayCircleFilledRounded');
97
- var AccessAlarmRounded = require('@material-ui/icons/AccessAlarmRounded');
98
- var FilterListRounded = require('@material-ui/icons/FilterListRounded');
99
- var HistoryRounded = require('@material-ui/icons/HistoryRounded');
100
- var HomeRounded = require('@material-ui/icons/HomeRounded');
101
- var ListRounded = require('@material-ui/icons/ListRounded');
102
- var MergeTypeRounded = require('@material-ui/icons/MergeTypeRounded');
103
- var PhoneAndroidRounded = require('@material-ui/icons/PhoneAndroidRounded');
104
- var PhotoCameraRounded = require('@material-ui/icons/PhotoCameraRounded');
105
- var ReplayRounded = require('@material-ui/icons/ReplayRounded');
106
- var TodayRounded = require('@material-ui/icons/TodayRounded');
107
- var icons = require('@material-ui/icons');
108
34
  var MuiIconButton = require('@material-ui/core/IconButton');
109
35
  var InputAdornment = require('@material-ui/core/InputAdornment');
110
36
  var LinearProgress = require('@material-ui/core/LinearProgress');
@@ -126,7 +52,6 @@ var Tabs = require('@material-ui/core/Tabs');
126
52
  var MuiToggleButton = require('@material-ui/lab/ToggleButton');
127
53
  var MuiToggleButtonGroup = require('@material-ui/lab/ToggleButtonGroup');
128
54
  var MuiTooltip = require('@material-ui/core/Tooltip');
129
- var MuiTypography = require('@material-ui/core/Typography');
130
55
 
131
56
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
132
57
 
@@ -169,6 +94,8 @@ var CardMedia__default = /*#__PURE__*/_interopDefaultLegacy(CardMedia);
169
94
  var MuiCheckbox__default = /*#__PURE__*/_interopDefaultLegacy(MuiCheckbox);
170
95
  var FormControlLabel__default = /*#__PURE__*/_interopDefaultLegacy(FormControlLabel);
171
96
  var Chip__default = /*#__PURE__*/_interopDefaultLegacy(Chip);
97
+ var Collapse__default = /*#__PURE__*/_interopDefaultLegacy(Collapse);
98
+ var MuiTypography__default = /*#__PURE__*/_interopDefaultLegacy(MuiTypography);
172
99
  var Dialog__default = /*#__PURE__*/_interopDefaultLegacy(Dialog);
173
100
  var DialogActions__default = /*#__PURE__*/_interopDefaultLegacy(DialogActions);
174
101
  var DialogContent__default = /*#__PURE__*/_interopDefaultLegacy(DialogContent);
@@ -176,82 +103,6 @@ var DialogTitle__default = /*#__PURE__*/_interopDefaultLegacy(DialogTitle);
176
103
  var Drawer__default = /*#__PURE__*/_interopDefaultLegacy(Drawer);
177
104
  var FormControl__default = /*#__PURE__*/_interopDefaultLegacy(FormControl);
178
105
  var Grid__default = /*#__PURE__*/_interopDefaultLegacy(Grid);
179
- var makeStyles__default = /*#__PURE__*/_interopDefaultLegacy(makeStyles);
180
- var AttachFileRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(AttachFileRoundedIcon);
181
- var BlockIcon__default = /*#__PURE__*/_interopDefaultLegacy(BlockIcon);
182
- var ReplyIcon__default = /*#__PURE__*/_interopDefaultLegacy(ReplyIcon);
183
- var AccessTimeRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(AccessTimeRoundedIcon);
184
- var AssessmentRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(AssessmentRoundedIcon);
185
- var MailRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(MailRoundedIcon);
186
- var ChatRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(ChatRoundedIcon);
187
- var RestaurantMenuRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(RestaurantMenuRoundedIcon);
188
- var ShoppingCartRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(ShoppingCartRoundedIcon);
189
- var DesktopMacRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(DesktopMacRoundedIcon);
190
- var LanguageRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(LanguageRoundedIcon);
191
- var SettingsRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(SettingsRoundedIcon);
192
- var LockRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(LockRoundedIcon);
193
- var LockOpenRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(LockOpenRoundedIcon);
194
- var PublicRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(PublicRoundedIcon);
195
- var CommentRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(CommentRoundedIcon);
196
- var CodeRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(CodeRoundedIcon);
197
- var KeyboardArrowDownRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(KeyboardArrowDownRoundedIcon);
198
- var KeyboardArrowUpRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(KeyboardArrowUpRoundedIcon);
199
- var KeyboardArrowRightRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(KeyboardArrowRightRoundedIcon);
200
- var KeyboardArrowLeftRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(KeyboardArrowLeftRoundedIcon);
201
- var HelpRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(HelpRoundedIcon);
202
- var CloseRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(CloseRoundedIcon);
203
- var CancelRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(CancelRoundedIcon);
204
- var CalendarTodayRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(CalendarTodayRoundedIcon);
205
- var SaveRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(SaveRoundedIcon);
206
- var SendRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(SendRoundedIcon);
207
- var ArrowBackRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(ArrowBackRoundedIcon);
208
- var ArrowDownwardRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(ArrowDownwardRoundedIcon);
209
- var ArrowForwardRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(ArrowForwardRoundedIcon);
210
- var ArrowUpwardRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(ArrowUpwardRoundedIcon);
211
- var EditRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(EditRoundedIcon);
212
- var DeleteRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(DeleteRoundedIcon);
213
- var VisibilityRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(VisibilityRoundedIcon);
214
- var VisibilityOffRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(VisibilityOffRoundedIcon);
215
- var CompareArrowsRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(CompareArrowsRoundedIcon);
216
- var AddAPhotoRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(AddAPhotoRoundedIcon);
217
- var SearchRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(SearchRoundedIcon);
218
- var AddCircleOutlineRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(AddCircleOutlineRoundedIcon);
219
- var AddCircleRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(AddCircleRoundedIcon);
220
- var RemoveCircleOutlineRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(RemoveCircleOutlineRoundedIcon);
221
- var RemoveCircleRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(RemoveCircleRoundedIcon);
222
- var DragIndicatorRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(DragIndicatorRoundedIcon);
223
- var LocalMallOutlinedIcon__default = /*#__PURE__*/_interopDefaultLegacy(LocalMallOutlinedIcon);
224
- var LocalShippingOutlinedIcon__default = /*#__PURE__*/_interopDefaultLegacy(LocalShippingOutlinedIcon);
225
- var RoomOutlinedIcon__default = /*#__PURE__*/_interopDefaultLegacy(RoomOutlinedIcon);
226
- var PrintRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(PrintRoundedIcon);
227
- var CloudDownloadRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(CloudDownloadRoundedIcon);
228
- var FacebookIcon__default = /*#__PURE__*/_interopDefaultLegacy(FacebookIcon);
229
- var TwitterIcon__default = /*#__PURE__*/_interopDefaultLegacy(TwitterIcon);
230
- var NotificationsRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(NotificationsRoundedIcon);
231
- var CheckCircleRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(CheckCircleRoundedIcon);
232
- var RefreshRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(RefreshRoundedIcon);
233
- var OpenInNewRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(OpenInNewRoundedIcon);
234
- var CloudUploadRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(CloudUploadRoundedIcon);
235
- var VoicemailRoundedIcon__default = /*#__PURE__*/_interopDefaultLegacy(VoicemailRoundedIcon);
236
- var AccountCircleOutlined__default = /*#__PURE__*/_interopDefaultLegacy(AccountCircleOutlined);
237
- var CardGiftcardOutlined__default = /*#__PURE__*/_interopDefaultLegacy(CardGiftcardOutlined);
238
- var CreditCardRounded__default = /*#__PURE__*/_interopDefaultLegacy(CreditCardRounded);
239
- var LoyaltyOutlined__default = /*#__PURE__*/_interopDefaultLegacy(LoyaltyOutlined);
240
- var StarBorderRounded__default = /*#__PURE__*/_interopDefaultLegacy(StarBorderRounded);
241
- var StarRounded__default = /*#__PURE__*/_interopDefaultLegacy(StarRounded);
242
- var ShuffleRounded__default = /*#__PURE__*/_interopDefaultLegacy(ShuffleRounded);
243
- var PhoneRounded__default = /*#__PURE__*/_interopDefaultLegacy(PhoneRounded);
244
- var PlayCircleFilledRounded__default = /*#__PURE__*/_interopDefaultLegacy(PlayCircleFilledRounded);
245
- var AccessAlarmRounded__default = /*#__PURE__*/_interopDefaultLegacy(AccessAlarmRounded);
246
- var FilterListRounded__default = /*#__PURE__*/_interopDefaultLegacy(FilterListRounded);
247
- var HistoryRounded__default = /*#__PURE__*/_interopDefaultLegacy(HistoryRounded);
248
- var HomeRounded__default = /*#__PURE__*/_interopDefaultLegacy(HomeRounded);
249
- var ListRounded__default = /*#__PURE__*/_interopDefaultLegacy(ListRounded);
250
- var MergeTypeRounded__default = /*#__PURE__*/_interopDefaultLegacy(MergeTypeRounded);
251
- var PhoneAndroidRounded__default = /*#__PURE__*/_interopDefaultLegacy(PhoneAndroidRounded);
252
- var PhotoCameraRounded__default = /*#__PURE__*/_interopDefaultLegacy(PhotoCameraRounded);
253
- var ReplayRounded__default = /*#__PURE__*/_interopDefaultLegacy(ReplayRounded);
254
- var TodayRounded__default = /*#__PURE__*/_interopDefaultLegacy(TodayRounded);
255
106
  var MuiIconButton__default = /*#__PURE__*/_interopDefaultLegacy(MuiIconButton);
256
107
  var InputAdornment__default = /*#__PURE__*/_interopDefaultLegacy(InputAdornment);
257
108
  var LinearProgress__default = /*#__PURE__*/_interopDefaultLegacy(LinearProgress);
@@ -273,7 +124,6 @@ var Tabs__default = /*#__PURE__*/_interopDefaultLegacy(Tabs);
273
124
  var MuiToggleButton__default = /*#__PURE__*/_interopDefaultLegacy(MuiToggleButton);
274
125
  var MuiToggleButtonGroup__default = /*#__PURE__*/_interopDefaultLegacy(MuiToggleButtonGroup);
275
126
  var MuiTooltip__default = /*#__PURE__*/_interopDefaultLegacy(MuiTooltip);
276
- var MuiTypography__default = /*#__PURE__*/_interopDefaultLegacy(MuiTypography);
277
127
 
278
128
  /*! *****************************************************************************
279
129
  Copyright (c) Microsoft Corporation.
@@ -383,46 +233,46 @@ var useAvatarStyles = styles.makeStyles(function (theme) { return ({
383
233
  },
384
234
  }); });
385
235
 
386
- var _path$a;
236
+ var _path$2;
387
237
 
388
- 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); }
389
239
 
390
240
  function SvgSilhouetteFemale(props) {
391
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
241
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
392
242
  viewBox: "0 0 300 300",
393
243
  fill: "none",
394
244
  xmlns: "http://www.w3.org/2000/svg"
395
- }, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
245
+ }, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
396
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",
397
247
  fill: "#2E3042"
398
248
  })));
399
249
  }
400
250
 
401
- var _path$9;
251
+ var _path$1;
402
252
 
403
- 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); }
404
254
 
405
255
  function SvgSilhouetteMale(props) {
406
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
256
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
407
257
  viewBox: "0 0 300 300",
408
258
  fill: "none",
409
259
  xmlns: "http://www.w3.org/2000/svg"
410
- }, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
260
+ }, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
411
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",
412
262
  fill: "#2E3042"
413
263
  })));
414
264
  }
415
265
 
416
- var _path$8;
266
+ var _path;
417
267
 
418
- 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); }
419
269
 
420
270
  function SvgSilhouetteNeutral(props) {
421
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
271
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends({
422
272
  viewBox: "0 0 300 300",
423
273
  fill: "none",
424
274
  xmlns: "http://www.w3.org/2000/svg"
425
- }, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
275
+ }, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
426
276
  fillRule: "evenodd",
427
277
  clipRule: "evenodd",
428
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",
@@ -543,339 +393,199 @@ var Checkbox = React.forwardRef(function (props, ref) {
543
393
  });
544
394
  Checkbox.displayName = 'Checkbox';
545
395
 
546
- var getIconSize = function (theme, props) {
547
- var size = 'inherit';
548
- var sizes = {
549
- large: theme.typography.pxToRem(36),
550
- medium: theme.typography.pxToRem(24),
551
- 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';
552
408
  };
553
- if (props.size) {
554
- size = sizes[props.size];
555
- }
556
- return size;
557
- };
558
- var getIconColor = function (theme, props) {
559
- var color = 'inherit';
560
- if (props.color) {
561
- var _a = props.color.split('.'), colorKey = _a[0], _b = _a[1], variantKey = _b === void 0 ? 'main' : _b;
562
- color = theme.palette[colorKey][variantKey];
563
- }
564
- return color;
565
- };
566
- var getFill = function (props) {
567
- var fill;
568
- var filledIcons = ['menu'];
569
- if (filledIcons.includes(props.name)) {
570
- fill = 'currentColor';
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
+ });
431
+
432
+ var iconStaticClassName = 'pop-icon';
433
+ var Icon = function (props) {
434
+ var icon = props.icon, className = props.className, restProps = __rest(props, ["icon", "className"]);
435
+ var classes = useIconStyles(props);
436
+ var isValid = true;
437
+ if (!icon || (typeof icon === 'function' && icon({}) === undefined)) {
438
+ isValid = false;
571
439
  }
572
- return fill;
440
+ return isValid
441
+ ? React.createElement(icon, __assign({ className: classNames([classes.root, iconStaticClassName, className]) }, restProps))
442
+ : null;
573
443
  };
574
- var getStroke = function (props) {
575
- var stroke;
576
- var strokeIcons = ['copy'];
577
- if (strokeIcons.includes(props.name)) {
578
- stroke = 'currentColor';
579
- }
580
- return stroke;
444
+ Icon.defaultProps = {
445
+ size: 'inherit',
446
+ color: 'inherit',
581
447
  };
582
- var useIconStyles = makeStyles__default['default'](function (theme) { return ({
583
- root: {
584
- width: '1em',
585
- height: '1em',
586
- color: function (props) { return getIconColor(theme, props); },
587
- fill: function (props) { return getFill(props); },
588
- stroke: function (props) { return getStroke(props); },
589
- fontSize: function (props) { return getIconSize(theme, props); },
590
- userSelect: 'none',
591
- },
592
- }); });
593
-
594
- var _path$7, _path2$2, _path3;
595
-
596
- 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); }
597
-
598
- function SvgPopmenuLogo(props) {
599
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
600
- viewBox: "0 0 35 35",
601
- xmlns: "http://www.w3.org/2000/svg",
602
- "aria-hidden": "true"
603
- }, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
604
- 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"
605
- })), _path2$2 || (_path2$2 = /*#__PURE__*/React__namespace.createElement("path", {
606
- 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"
607
- })), _path3 || (_path3 = /*#__PURE__*/React__namespace.createElement("path", {
608
- 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"
609
- })));
610
- }
611
-
612
- var _path$6;
613
-
614
- 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); }
615
-
616
- function SvgMenuIcon(props) {
617
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
618
- viewBox: "0 0 35 35",
619
- fill: "none",
620
- xmlns: "http://www.w3.org/2000/svg",
621
- "aria-hidden": "true"
622
- }, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
623
- 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"
624
- })));
625
- }
626
-
627
- var _path$5, _path2$1;
628
-
629
- 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); }
630
-
631
- function SvgCheckCircle(props) {
632
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
633
- xmlns: "http://www.w3.org/2000/svg",
634
- viewBox: "0 0 24 24",
635
- fill: "none",
636
- stroke: "currentColor",
637
- strokeWidth: 2,
638
- strokeLinecap: "round",
639
- strokeLinejoin: "round",
640
- className: "CheckCircle_svg__feather CheckCircle_svg__feather-check-circle"
641
- }, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
642
- d: "M22 11.08V12a10 10 0 11-5.93-9.14"
643
- })), _path2$1 || (_path2$1 = /*#__PURE__*/React__namespace.createElement("path", {
644
- d: "M22 4L12 14.01l-3-3"
645
- })));
646
- }
647
-
648
- var _path$4, _path2;
649
-
650
- 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); }
651
-
652
- function SvgCopy(props) {
653
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
654
- viewBox: "0 0 35 35",
655
- fill: "none",
656
- strokeWidth: 2,
657
- strokeLinecap: "round",
658
- strokeLinejoin: "round",
659
- xmlns: "http://www.w3.org/2000/svg"
660
- }, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
661
- 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"
662
- })), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
663
- 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"
664
- })));
665
- }
666
-
667
- var _path$3;
668
-
669
- 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); }
670
-
671
- function SvgCheckmark(props) {
672
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
673
- xmlns: "http://www.w3.org/2000/svg",
674
- viewBox: "0 0 24 24",
675
- fill: "none",
676
- stroke: "currentColor",
677
- strokeWidth: 2,
678
- strokeLinecap: "round",
679
- strokeLinejoin: "round",
680
- className: "Checkmark_svg__feather Checkmark_svg__feather-check"
681
- }, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
682
- d: "M20 6L9 17l-5-5"
683
- })));
684
- }
685
-
686
- var _circle$1;
687
-
688
- 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); }
689
-
690
- function SvgUnchecked(props) {
691
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
692
- xmlns: "http://www.w3.org/2000/svg",
693
- viewBox: "0 0 24 24",
694
- fill: "none",
695
- stroke: "currentColor",
696
- strokeWidth: 2,
697
- strokeLinecap: "round",
698
- strokeLinejoin: "round",
699
- className: "Unchecked_svg__feather Unchecked_svg__feather-circle"
700
- }, props), _circle$1 || (_circle$1 = /*#__PURE__*/React__namespace.createElement("circle", {
701
- cx: 12,
702
- cy: 12,
703
- r: 10
704
- })));
705
- }
706
-
707
- var _path$2;
708
-
709
- 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); }
710
-
711
- function SvgAlertOctagon(props) {
712
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
713
- xmlns: "http://www.w3.org/2000/svg",
714
- viewBox: "0 0 24 24",
715
- fill: "none",
716
- stroke: "currentColor",
717
- strokeWidth: 2,
718
- strokeLinecap: "round",
719
- strokeLinejoin: "round"
720
- }, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
721
- d: "M7.86 2h8.28L22 7.86v8.28L16.14 22H7.86L2 16.14V7.86L7.86 2zM12 8v4M12 16h.01"
722
- })));
723
- }
724
-
725
- var _path$1;
726
-
727
- 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); }
728
-
729
- function SvgAlertTriangle(props) {
730
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
731
- xmlns: "http://www.w3.org/2000/svg",
732
- viewBox: "0 0 24 24",
733
- fill: "none",
734
- stroke: "currentColor",
735
- strokeWidth: 2,
736
- strokeLinecap: "round",
737
- strokeLinejoin: "round",
738
- className: "AlertTriangle_svg__feather AlertTriangle_svg__feather-alert-triangle"
739
- }, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
740
- 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"
741
- })));
742
- }
448
+ Icon.displayName = 'Icon';
743
449
 
744
- var _circle, _path;
450
+ var useTypographyStyles = styles.makeStyles(function () {
451
+ var _a;
452
+ return ({
453
+ root: (_a = {},
454
+ _a["& ." + iconStaticClassName] = {
455
+ position: 'relative',
456
+ top: '0.125em',
457
+ padding: '0 0.125em',
458
+ },
459
+ _a),
460
+ caption: {
461
+ display: 'inline',
462
+ },
463
+ overline: {
464
+ display: 'inline',
465
+ },
466
+ });
467
+ });
745
468
 
746
- 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); }
469
+ var Typography = React.forwardRef(function (props, ref) {
470
+ var classes = useTypographyStyles(props);
471
+ return React__default['default'].createElement(MuiTypography__default['default'], __assign({ ref: ref, classes: classes }, props));
472
+ });
473
+ Typography.displayName = 'Typography';
747
474
 
748
- function SvgInfo(props) {
749
- return /*#__PURE__*/React__namespace.createElement("svg", _extends({
750
- xmlns: "http://www.w3.org/2000/svg",
751
- viewBox: "0 0 24 24",
752
- fill: "none",
753
- stroke: "currentColor",
754
- strokeWidth: 2,
755
- strokeLinecap: "round",
756
- strokeLinejoin: "round",
757
- className: "Info_svg__feather Info_svg__feather-info"
758
- }, props), _circle || (_circle = /*#__PURE__*/React__namespace.createElement("circle", {
759
- cx: 12,
760
- cy: 12,
761
- r: 10
762
- })), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
763
- d: "M12 16v-4M12 8h.01"
764
- })));
765
- }
475
+ var getFadeStop = function (_a, typographyVariant) {
476
+ var typography = _a.typography;
477
+ return !isNaN(Number(typography[typographyVariant].lineHeight))
478
+ ? typography[typographyVariant].lineHeight + "rem"
479
+ : typography[typographyVariant].lineHeight;
480
+ };
481
+ var useCollapsibleTextStyles = core.makeStyles(function (theme) { return ({
482
+ overlay: {
483
+ position: 'absolute',
484
+ top: 0,
485
+ left: 0,
486
+ height: '100%',
487
+ width: '100%',
488
+ background: function (props) { return "linear-gradient(to top, white, #FFF0 " + getFadeStop(theme, props.typographyVariant) + ")"; },
489
+ },
490
+ }); });
766
491
 
767
- var iconDictionary = {
768
- add: AddCircleRoundedIcon__default['default'],
769
- 'add-outlined': AddCircleOutlineRoundedIcon__default['default'],
770
- 'add-photo': AddAPhotoRoundedIcon__default['default'],
771
- alarm: AccessAlarmRounded__default['default'],
772
- 'arrow-back': ArrowBackRoundedIcon__default['default'],
773
- 'arrow-down': ArrowDownwardRoundedIcon__default['default'],
774
- 'arrow-forward': ArrowForwardRoundedIcon__default['default'],
775
- 'arrow-up': ArrowUpwardRoundedIcon__default['default'],
776
- attach: AttachFileRoundedIcon__default['default'],
777
- 'bar-chart': AssessmentRoundedIcon__default['default'],
778
- block: BlockIcon__default['default'],
779
- calendar: CalendarTodayRoundedIcon__default['default'],
780
- 'calendar-today': TodayRounded__default['default'],
781
- cancel: CloseRoundedIcon__default['default'],
782
- 'cancel-filled': CancelRoundedIcon__default['default'],
783
- cart: ShoppingCartRoundedIcon__default['default'],
784
- chat: ChatRoundedIcon__default['default'],
785
- 'check-circle': CheckCircleRoundedIcon__default['default'],
786
- checked: SvgCheckCircle,
787
- checkmark: SvgCheckmark,
788
- 'chevron-down': KeyboardArrowDownRoundedIcon__default['default'],
789
- 'chevron-left': KeyboardArrowLeftRoundedIcon__default['default'],
790
- 'chevron-right': KeyboardArrowRightRoundedIcon__default['default'],
791
- 'chevron-up': KeyboardArrowUpRoundedIcon__default['default'],
792
- clock: AccessTimeRoundedIcon__default['default'],
793
- code: CodeRoundedIcon__default['default'],
794
- comment: CommentRoundedIcon__default['default'],
795
- compare: CompareArrowsRoundedIcon__default['default'],
796
- copy: SvgCopy,
797
- 'credit-card': CreditCardRounded__default['default'],
798
- delete: DeleteRoundedIcon__default['default'],
799
- desktop: DesktopMacRoundedIcon__default['default'],
800
- 'dining-menu': RestaurantMenuRoundedIcon__default['default'],
801
- download: CloudDownloadRoundedIcon__default['default'],
802
- 'drag-handle': DragIndicatorRoundedIcon__default['default'],
803
- edit: EditRoundedIcon__default['default'],
804
- error: SvgAlertOctagon,
805
- 'external-link': OpenInNewRoundedIcon__default['default'],
806
- facebook: FacebookIcon__default['default'],
807
- 'filter-list': FilterListRounded__default['default'],
808
- 'gift-card': CardGiftcardOutlined__default['default'],
809
- globe: PublicRoundedIcon__default['default'],
810
- help: HelpRoundedIcon__default['default'],
811
- history: HistoryRounded__default['default'],
812
- home: HomeRounded__default['default'],
813
- info: SvgInfo,
814
- list: ListRounded__default['default'],
815
- 'location-pin': RoomOutlinedIcon__default['default'],
816
- lock: LockRoundedIcon__default['default'],
817
- 'lock-open': LockOpenRoundedIcon__default['default'],
818
- loyalty: LoyaltyOutlined__default['default'],
819
- mail: MailRoundedIcon__default['default'],
820
- menu: SvgMenuIcon,
821
- merge: MergeTypeRounded__default['default'],
822
- 'mobile-device': PhoneAndroidRounded__default['default'],
823
- notification: NotificationsRoundedIcon__default['default'],
824
- 'photo-camera': PhotoCameraRounded__default['default'],
825
- play: PlayCircleFilledRounded__default['default'],
826
- popmenu: SvgPopmenuLogo,
827
- print: PrintRoundedIcon__default['default'],
828
- refresh: RefreshRoundedIcon__default['default'],
829
- phone: PhoneRounded__default['default'],
830
- profile: AccountCircleOutlined__default['default'],
831
- remove: RemoveCircleRoundedIcon__default['default'],
832
- 'remove-outlined': RemoveCircleOutlineRoundedIcon__default['default'],
833
- replay: ReplayRounded__default['default'],
834
- reply: ReplyIcon__default['default'],
835
- save: SaveRoundedIcon__default['default'],
836
- search: SearchRoundedIcon__default['default'],
837
- send: SendRoundedIcon__default['default'],
838
- settings: SettingsRoundedIcon__default['default'],
839
- 'shopping-bag': LocalMallOutlinedIcon__default['default'],
840
- shuffle: ShuffleRounded__default['default'],
841
- star: StarBorderRounded__default['default'],
842
- 'star-filled': StarRounded__default['default'],
843
- success: SvgCheckCircle,
844
- truck: LocalShippingOutlinedIcon__default['default'],
845
- twitter: TwitterIcon__default['default'],
846
- unchecked: SvgUnchecked,
847
- upload: CloudUploadRoundedIcon__default['default'],
848
- visibility: VisibilityRoundedIcon__default['default'],
849
- 'visibility-off': VisibilityOffRoundedIcon__default['default'],
850
- voicemail: VoicemailRoundedIcon__default['default'],
851
- warning: SvgAlertTriangle,
852
- website: LanguageRoundedIcon__default['default'],
492
+ var CollapsibleText = function (props) {
493
+ var _a = props, text = _a.text, open = _a.open, previewLines = _a.previewLines, _b = _a.typographyVariant, typographyVariant = _b === void 0 ? 'body1' : _b, collapsible = _a.collapsible, setCollapsible = _a.setCollapsible;
494
+ var classes = useCollapsibleTextStyles(props);
495
+ var typographyRef = React.useRef(null);
496
+ var typography = core.useTheme().typography;
497
+ var collapsedSize = previewLines * parseFloat(typography[typographyVariant].lineHeight);
498
+ React.useEffect(function () {
499
+ var typographyNode = typographyRef.current;
500
+ var observer = new ResizeObserver(function (entries) {
501
+ var typographyHeight = entries[0].contentRect.height;
502
+ var collapsedPxSize = collapsedSize * 16;
503
+ var collapsible = typographyHeight > collapsedPxSize;
504
+ setCollapsible(collapsible);
505
+ });
506
+ observer.observe(typographyNode);
507
+ return function () {
508
+ observer.unobserve(typographyNode);
509
+ };
510
+ }, []);
511
+ return (React__default['default'].createElement(React.Fragment, null,
512
+ React__default['default'].createElement(Box__default['default'], { position: "relative", overflow: "hidden" },
513
+ React__default['default'].createElement(Collapse__default['default'], { in: open, collapsedSize: collapsedSize + 'rem' },
514
+ React__default['default'].createElement(Typography, { ref: typographyRef, variant: typographyVariant }, text)),
515
+ collapsible && !open && React__default['default'].createElement(Box__default['default'], { className: classes.overlay }))));
516
+ };
517
+ CollapsibleText.defaultProps = {
518
+ previewLines: 2,
519
+ typographyVariant: 'body1',
853
520
  };
854
521
 
855
- /**
856
- * Adding new icons.
857
- * 1. If not part of the material-ui library, put the svg file in app/javascript/admin/common/assets/
858
- * 2. Update the iconDictionary at ./iconDictionary
859
- * 3. Add the icon name to Icon.propTypes
860
- */
861
- var IconStaticClassName = 'mep-icon-svg';
862
- var Icon = React.forwardRef(function (props, ref) {
863
- var className = props.className, name = props.name; props.color; var restProps = __rest(props, ["className", "name", "color"]);
864
- var classes = useIconStyles(props);
865
- var IconComponent = iconDictionary[name] || icons.FlagRounded;
866
- if (!iconDictionary[name]) {
867
- console.warn("Invalid name prop provided to Icon component. \"" + name + "\" was not found in the iconDictionary.");
868
- }
869
- return (React__default['default'].createElement(IconComponent, __assign({ ref: ref, className: classNames([classes.root, className, IconStaticClassName]) }, restProps)));
870
- });
871
- Icon.displayName = 'Icon';
522
+ var SemanticColors;
523
+ (function (SemanticColors) {
524
+ SemanticColors["PRIMARY_MAIN"] = "primary.main";
525
+ SemanticColors["PRIMARY_DARK"] = "primary.dark";
526
+ SemanticColors["PRIMARY_LIGHT"] = "primary.light";
527
+ SemanticColors["SECONDARY_MAIN"] = "secondary.main";
528
+ SemanticColors["SECONDARY_DARK"] = "secondary.dark";
529
+ SemanticColors["SECONDARY_LIGHT"] = "secondary.light";
530
+ })(SemanticColors || (SemanticColors = {}));
531
+ var useStyles = core.makeStyles(function (theme) { return ({
532
+ dividerRoot: {
533
+ gap: theme.spacing(2),
534
+ },
535
+ textRoot: {
536
+ color: function (props) {
537
+ var textColor = props.textColor;
538
+ if (Object.values(SemanticColors).includes(textColor)) {
539
+ var _a = textColor.split('.'), semanticColor = _a[0], shade = _a[1];
540
+ return theme.palette[semanticColor][shade];
541
+ }
542
+ else if (textColor) {
543
+ return textColor;
544
+ }
545
+ else {
546
+ return 'black';
547
+ }
548
+ },
549
+ textTransform: function (props) { return props.textTransform; },
550
+ },
551
+ dividerLine: {
552
+ backgroundColor: function (props) {
553
+ var dividerColor = props.dividerColor;
554
+ if (Object.values(SemanticColors).includes(dividerColor)) {
555
+ var _a = dividerColor.split('.'), semanticColor = _a[0], shade = _a[1];
556
+ return theme.palette[semanticColor][shade];
557
+ }
558
+ else if (dividerColor) {
559
+ return dividerColor;
560
+ }
561
+ else {
562
+ return theme.palette.grey[500];
563
+ }
564
+ },
565
+ },
566
+ }); });
567
+ var Divider = function (props) {
568
+ var className = props.className, text = props.text, textTransform = props.textTransform, TypographyProps = props.TypographyProps;
569
+ var classes = useStyles(props);
570
+ var casingOffset = textTransform === 'lowercase' ? '.25rem' : 'unset';
571
+ return (React__default['default'].createElement(Box__default['default'], { className: classNames([classes.dividerRoot, className]), display: "flex", alignItems: "center" },
572
+ React__default['default'].createElement(Box__default['default'], { className: classes.dividerLine, display: "flex", flexGrow: 1, height: "1px", marginTop: casingOffset }),
573
+ text && (React__default['default'].createElement(React__default['default'].Fragment, null,
574
+ React__default['default'].createElement(Typography, __assign({ className: classes.textRoot }, TypographyProps), text),
575
+ React__default['default'].createElement(Box__default['default'], { className: classes.dividerLine, display: "flex", flexGrow: 1, height: "1px", marginTop: casingOffset })))));
576
+ };
577
+ Divider.displayName = 'Divider';
578
+ Divider.defaultProps = {
579
+ textTransform: 'lowercase',
580
+ };
872
581
 
873
582
  var IconButton = React.forwardRef(function (props, ref) {
874
- props.children; var icon = props.icon, muiProps = __rest(props, ["children", "icon"]);
875
- return (React__default['default'].createElement(MuiIconButton__default['default'], __assign({ ref: ref }, muiProps),
876
- React__default['default'].createElement(Icon, { name: icon })));
583
+ return React__default['default'].createElement(MuiIconButton__default['default'], __assign({ ref: ref }, props));
877
584
  });
878
- IconButton.displayName = 'IconButton';
585
+ IconButton.displayName = 'IconButton';
586
+ IconButton.defaultProps = {
587
+ color: 'secondary',
588
+ };
879
589
 
880
590
  var getLinkColor = function (_a, _b) {
881
591
  var palette = _a.palette;
@@ -899,7 +609,7 @@ var useLinkStyles = styles.makeStyles(function (theme) {
899
609
  display: 'flex',
900
610
  color: function (props) { return getLinkColor(theme, props); }
901
611
  },
902
- _a["& ." + IconStaticClassName] = {
612
+ _a["& ." + iconStaticClassName] = {
903
613
  alignSelf: 'center',
904
614
  },
905
615
  _a),
@@ -1048,30 +758,19 @@ var Tooltip = React.forwardRef(function (props, ref) {
1048
758
  });
1049
759
  Tooltip.displayName = 'Tooltip';
1050
760
 
1051
- var useTypographyStyles = styles.makeStyles(function () {
1052
- var _a;
1053
- return ({
1054
- root: (_a = {
1055
- display: 'flex'
1056
- },
1057
- _a["& ." + IconStaticClassName] = {
1058
- alignSelf: 'center',
1059
- },
1060
- _a),
1061
- caption: {
1062
- display: 'inline',
761
+ var useCollapsibleText = function () {
762
+ var _a = React.useState(false), open = _a[0], setOpen = _a[1];
763
+ var _b = React.useState(false), collapsible = _b[0], setCollapsible = _b[1];
764
+ var toggle = function () { return collapsible && setOpen(!open); };
765
+ return {
766
+ collapsibleText: {
767
+ open: open,
768
+ collapsible: collapsible,
769
+ setCollapsible: setCollapsible,
1063
770
  },
1064
- overline: {
1065
- display: 'inline',
1066
- },
1067
- });
1068
- });
1069
-
1070
- var Typography = React.forwardRef(function (props, ref) {
1071
- var classes = useTypographyStyles(props);
1072
- return React__default['default'].createElement(MuiTypography__default['default'], __assign({ ref: ref, classes: classes }, props));
1073
- });
1074
- Typography.displayName = 'Typography';
771
+ toggle: toggle,
772
+ };
773
+ };
1075
774
 
1076
775
  Object.defineProperty(exports, 'Alert', {
1077
776
  enumerable: true,
@@ -1286,6 +985,8 @@ Object.defineProperty(exports, 'Tabs', {
1286
985
  exports.Avatar = Avatar;
1287
986
  exports.Button = Button;
1288
987
  exports.Checkbox = Checkbox;
988
+ exports.CollapsibleText = CollapsibleText;
989
+ exports.Divider = Divider;
1289
990
  exports.Icon = Icon;
1290
991
  exports.IconButton = IconButton;
1291
992
  exports.Link = Link;
@@ -1296,5 +997,5 @@ exports.ToggleButton = ToggleButton;
1296
997
  exports.ToggleButtonGroup = ToggleButtonGroup;
1297
998
  exports.Tooltip = Tooltip;
1298
999
  exports.Typography = Typography;
1299
- exports.iconDictionary = iconDictionary;
1000
+ exports.useCollapsibleText = useCollapsibleText;
1300
1001
  //# sourceMappingURL=index.js.map