@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/components/Divider/DividerProps.d.ts +2 -0
- package/build/components/Icon/Icon.d.ts +3 -9
- package/build/components/Icon/IconProps.d.ts +8 -8
- package/build/components/Icon/{icon.styles.d.ts → IconStyles.d.ts} +0 -0
- package/build/components/Icon/index.d.ts +1 -2
- package/build/components/IconButton/IconButton.d.ts +1 -1
- package/build/components/IconButton/IconButtonProps.d.ts +1 -5
- package/build/components/index.d.ts +1 -2
- package/build/index.es.js +78 -475
- package/build/index.es.js.map +1 -1
- package/build/index.js +73 -548
- package/build/index.js.map +1 -1
- package/package.json +2 -2
- package/build/components/Icon/iconDictionary.d.ts +0 -88
- package/build/components/NewIcon/NewIcon.d.ts +0 -3
- package/build/components/NewIcon/NewIconProps.d.ts +0 -6
- package/build/components/NewIcon/NewIconStyles.d.ts +0 -4
- package/build/components/NewIcon/index.d.ts +0 -1
package/build/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { default as Alert } from '@material-ui/lab/Alert';
|
|
2
2
|
export { default as AppBar } from '@material-ui/core/AppBar';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import React__default, { forwardRef, useRef, useEffect, Fragment,
|
|
4
|
+
import React__default, { forwardRef, createElement, useRef, useEffect, Fragment, useState } from 'react';
|
|
5
5
|
import MuiAvatar from '@material-ui/core/Avatar';
|
|
6
6
|
import { makeStyles, useTheme } from '@material-ui/core/styles';
|
|
7
7
|
export { default as Badge } from '@material-ui/core/Badge';
|
|
@@ -22,85 +22,8 @@ import FormControlLabel from '@material-ui/core/FormControlLabel';
|
|
|
22
22
|
export { default as FormControlLabel } from '@material-ui/core/FormControlLabel';
|
|
23
23
|
export { default as Chip } from '@material-ui/core/Chip';
|
|
24
24
|
import Collapse from '@material-ui/core/Collapse';
|
|
25
|
-
import { makeStyles as makeStyles$
|
|
25
|
+
import { makeStyles as makeStyles$1, useTheme as useTheme$1 } from '@material-ui/core';
|
|
26
26
|
import MuiTypography from '@material-ui/core/Typography';
|
|
27
|
-
import makeStyles$1 from '@material-ui/core/styles/makeStyles';
|
|
28
|
-
import AttachFileRoundedIcon from '@material-ui/icons/AttachFileRounded';
|
|
29
|
-
import BlockIcon from '@material-ui/icons/Block';
|
|
30
|
-
import ReplyIcon from '@material-ui/icons/Reply';
|
|
31
|
-
import AccessTimeRoundedIcon from '@material-ui/icons/AccessTimeRounded';
|
|
32
|
-
import AssessmentRoundedIcon from '@material-ui/icons/AssessmentRounded';
|
|
33
|
-
import MailRoundedIcon from '@material-ui/icons/MailRounded';
|
|
34
|
-
import ChatRoundedIcon from '@material-ui/icons/ChatRounded';
|
|
35
|
-
import RestaurantMenuRoundedIcon from '@material-ui/icons/RestaurantMenuRounded';
|
|
36
|
-
import ShoppingCartRoundedIcon from '@material-ui/icons/ShoppingCartRounded';
|
|
37
|
-
import DesktopMacRoundedIcon from '@material-ui/icons/DesktopMacRounded';
|
|
38
|
-
import LanguageRoundedIcon from '@material-ui/icons/LanguageRounded';
|
|
39
|
-
import SettingsRoundedIcon from '@material-ui/icons/SettingsRounded';
|
|
40
|
-
import LockRoundedIcon from '@material-ui/icons/LockRounded';
|
|
41
|
-
import LockOpenRoundedIcon from '@material-ui/icons/LockOpenRounded';
|
|
42
|
-
import PublicRoundedIcon from '@material-ui/icons/PublicRounded';
|
|
43
|
-
import CommentRoundedIcon from '@material-ui/icons/CommentRounded';
|
|
44
|
-
import CodeRoundedIcon from '@material-ui/icons/CodeRounded';
|
|
45
|
-
import KeyboardArrowDownRoundedIcon from '@material-ui/icons/KeyboardArrowDownRounded';
|
|
46
|
-
import KeyboardArrowUpRoundedIcon from '@material-ui/icons/KeyboardArrowUpRounded';
|
|
47
|
-
import KeyboardArrowRightRoundedIcon from '@material-ui/icons/KeyboardArrowRightRounded';
|
|
48
|
-
import KeyboardArrowLeftRoundedIcon from '@material-ui/icons/KeyboardArrowLeftRounded';
|
|
49
|
-
import HelpRoundedIcon from '@material-ui/icons/HelpRounded';
|
|
50
|
-
import CloseRoundedIcon from '@material-ui/icons/CloseRounded';
|
|
51
|
-
import CancelRoundedIcon from '@material-ui/icons/CancelRounded';
|
|
52
|
-
import CalendarTodayRoundedIcon from '@material-ui/icons/CalendarTodayRounded';
|
|
53
|
-
import SaveRoundedIcon from '@material-ui/icons/SaveRounded';
|
|
54
|
-
import SendRoundedIcon from '@material-ui/icons/SendRounded';
|
|
55
|
-
import ArrowBackRoundedIcon from '@material-ui/icons/ArrowBackRounded';
|
|
56
|
-
import ArrowDownwardRoundedIcon from '@material-ui/icons/ArrowDownwardRounded';
|
|
57
|
-
import ArrowForwardRoundedIcon from '@material-ui/icons/ArrowForwardRounded';
|
|
58
|
-
import ArrowUpwardRoundedIcon from '@material-ui/icons/ArrowUpwardRounded';
|
|
59
|
-
import EditRoundedIcon from '@material-ui/icons/EditRounded';
|
|
60
|
-
import DeleteRoundedIcon from '@material-ui/icons/DeleteRounded';
|
|
61
|
-
import VisibilityRoundedIcon from '@material-ui/icons/VisibilityRounded';
|
|
62
|
-
import VisibilityOffRoundedIcon from '@material-ui/icons/VisibilityOffRounded';
|
|
63
|
-
import CompareArrowsRoundedIcon from '@material-ui/icons/CompareArrowsRounded';
|
|
64
|
-
import AddAPhotoRoundedIcon from '@material-ui/icons/AddAPhotoRounded';
|
|
65
|
-
import SearchRoundedIcon from '@material-ui/icons/SearchRounded';
|
|
66
|
-
import AddCircleOutlineRoundedIcon from '@material-ui/icons/AddCircleOutlineRounded';
|
|
67
|
-
import AddCircleRoundedIcon from '@material-ui/icons/AddCircleRounded';
|
|
68
|
-
import RemoveCircleOutlineRoundedIcon from '@material-ui/icons/RemoveCircleOutlineRounded';
|
|
69
|
-
import RemoveCircleRoundedIcon from '@material-ui/icons/RemoveCircleRounded';
|
|
70
|
-
import DragIndicatorRoundedIcon from '@material-ui/icons/DragIndicatorRounded';
|
|
71
|
-
import LocalMallOutlinedIcon from '@material-ui/icons/LocalMallOutlined';
|
|
72
|
-
import LocalShippingOutlinedIcon from '@material-ui/icons/LocalShippingOutlined';
|
|
73
|
-
import RoomOutlinedIcon from '@material-ui/icons/RoomOutlined';
|
|
74
|
-
import PrintRoundedIcon from '@material-ui/icons/PrintRounded';
|
|
75
|
-
import CloudDownloadRoundedIcon from '@material-ui/icons/CloudDownloadRounded';
|
|
76
|
-
import FacebookIcon from '@material-ui/icons/Facebook';
|
|
77
|
-
import TwitterIcon from '@material-ui/icons/Twitter';
|
|
78
|
-
import NotificationsRoundedIcon from '@material-ui/icons/NotificationsRounded';
|
|
79
|
-
import CheckCircleRoundedIcon from '@material-ui/icons/CheckCircleRounded';
|
|
80
|
-
import RefreshRoundedIcon from '@material-ui/icons/RefreshRounded';
|
|
81
|
-
import OpenInNewRoundedIcon from '@material-ui/icons/OpenInNewRounded';
|
|
82
|
-
import CloudUploadRoundedIcon from '@material-ui/icons/CloudUploadRounded';
|
|
83
|
-
import VoicemailRoundedIcon from '@material-ui/icons/VoicemailRounded';
|
|
84
|
-
import AccountCircleOutlined from '@material-ui/icons/AccountCircleOutlined';
|
|
85
|
-
import CardGiftcardOutlined from '@material-ui/icons/CardGiftcardOutlined';
|
|
86
|
-
import CreditCardRounded from '@material-ui/icons/CreditCardRounded';
|
|
87
|
-
import LoyaltyOutlined from '@material-ui/icons/LoyaltyOutlined';
|
|
88
|
-
import StarBorderRounded from '@material-ui/icons/StarBorderRounded';
|
|
89
|
-
import StarRounded from '@material-ui/icons/StarRounded';
|
|
90
|
-
import ShuffleRounded from '@material-ui/icons/ShuffleRounded';
|
|
91
|
-
import PhoneRounded from '@material-ui/icons/PhoneRounded';
|
|
92
|
-
import PlayCircleFilledRounded from '@material-ui/icons/PlayCircleFilledRounded';
|
|
93
|
-
import AccessAlarmRounded from '@material-ui/icons/AccessAlarmRounded';
|
|
94
|
-
import FilterListRounded from '@material-ui/icons/FilterListRounded';
|
|
95
|
-
import HistoryRounded from '@material-ui/icons/HistoryRounded';
|
|
96
|
-
import HomeRounded from '@material-ui/icons/HomeRounded';
|
|
97
|
-
import ListRounded from '@material-ui/icons/ListRounded';
|
|
98
|
-
import MergeTypeRounded from '@material-ui/icons/MergeTypeRounded';
|
|
99
|
-
import PhoneAndroidRounded from '@material-ui/icons/PhoneAndroidRounded';
|
|
100
|
-
import PhotoCameraRounded from '@material-ui/icons/PhotoCameraRounded';
|
|
101
|
-
import ReplayRounded from '@material-ui/icons/ReplayRounded';
|
|
102
|
-
import TodayRounded from '@material-ui/icons/TodayRounded';
|
|
103
|
-
import { FlagRounded } from '@material-ui/icons';
|
|
104
27
|
export { default as Dialog } from '@material-ui/core/Dialog';
|
|
105
28
|
export { default as DialogActions } from '@material-ui/core/DialogActions';
|
|
106
29
|
export { default as DialogContent } from '@material-ui/core/DialogContent';
|
|
@@ -239,46 +162,46 @@ var useAvatarStyles = makeStyles(function (theme) { return ({
|
|
|
239
162
|
},
|
|
240
163
|
}); });
|
|
241
164
|
|
|
242
|
-
var _path$
|
|
165
|
+
var _path$2;
|
|
243
166
|
|
|
244
|
-
function _extends$
|
|
167
|
+
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); }
|
|
245
168
|
|
|
246
169
|
function SvgSilhouetteFemale(props) {
|
|
247
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
170
|
+
return /*#__PURE__*/React.createElement("svg", _extends$2({
|
|
248
171
|
viewBox: "0 0 300 300",
|
|
249
172
|
fill: "none",
|
|
250
173
|
xmlns: "http://www.w3.org/2000/svg"
|
|
251
|
-
}, props), _path$
|
|
174
|
+
}, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
|
|
252
175
|
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",
|
|
253
176
|
fill: "#2E3042"
|
|
254
177
|
})));
|
|
255
178
|
}
|
|
256
179
|
|
|
257
|
-
var _path$
|
|
180
|
+
var _path$1;
|
|
258
181
|
|
|
259
|
-
function _extends$
|
|
182
|
+
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); }
|
|
260
183
|
|
|
261
184
|
function SvgSilhouetteMale(props) {
|
|
262
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
185
|
+
return /*#__PURE__*/React.createElement("svg", _extends$1({
|
|
263
186
|
viewBox: "0 0 300 300",
|
|
264
187
|
fill: "none",
|
|
265
188
|
xmlns: "http://www.w3.org/2000/svg"
|
|
266
|
-
}, props), _path$
|
|
189
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
|
|
267
190
|
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",
|
|
268
191
|
fill: "#2E3042"
|
|
269
192
|
})));
|
|
270
193
|
}
|
|
271
194
|
|
|
272
|
-
var _path
|
|
195
|
+
var _path;
|
|
273
196
|
|
|
274
|
-
function _extends
|
|
197
|
+
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); }
|
|
275
198
|
|
|
276
199
|
function SvgSilhouetteNeutral(props) {
|
|
277
|
-
return /*#__PURE__*/React.createElement("svg", _extends
|
|
200
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
278
201
|
viewBox: "0 0 300 300",
|
|
279
202
|
fill: "none",
|
|
280
203
|
xmlns: "http://www.w3.org/2000/svg"
|
|
281
|
-
}, props), _path
|
|
204
|
+
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
282
205
|
fillRule: "evenodd",
|
|
283
206
|
clipRule: "evenodd",
|
|
284
207
|
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",
|
|
@@ -399,341 +322,68 @@ var Checkbox = forwardRef(function (props, ref) {
|
|
|
399
322
|
});
|
|
400
323
|
Checkbox.displayName = 'Checkbox';
|
|
401
324
|
|
|
402
|
-
var
|
|
403
|
-
var
|
|
404
|
-
var
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
325
|
+
var useIconStyles = makeStyles$1(function (_a) {
|
|
326
|
+
var spacing = _a.spacing, palette = _a.palette;
|
|
327
|
+
var getFontSize = function (_a) {
|
|
328
|
+
var size = _a.size;
|
|
329
|
+
var sizes = {
|
|
330
|
+
inherit: 'inherit',
|
|
331
|
+
small: spacing(1.5),
|
|
332
|
+
medium: spacing(2),
|
|
333
|
+
large: spacing(2.5),
|
|
334
|
+
'extra-large': spacing(3),
|
|
335
|
+
};
|
|
336
|
+
return size ? sizes[size] : 'inherit';
|
|
408
337
|
};
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
var
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
};
|
|
430
|
-
|
|
431
|
-
var stroke;
|
|
432
|
-
var strokeIcons = ['copy'];
|
|
433
|
-
if (strokeIcons.includes(props.name)) {
|
|
434
|
-
stroke = 'currentColor';
|
|
435
|
-
}
|
|
436
|
-
return stroke;
|
|
437
|
-
};
|
|
438
|
-
var useIconStyles = makeStyles$1(function (theme) { return ({
|
|
439
|
-
root: {
|
|
440
|
-
width: '1em',
|
|
441
|
-
height: '1em',
|
|
442
|
-
color: function (props) { return getIconColor(theme, props); },
|
|
443
|
-
fill: function (props) { return getFill(props); },
|
|
444
|
-
stroke: function (props) { return getStroke(props); },
|
|
445
|
-
fontSize: function (props) { return getIconSize(theme, props); },
|
|
446
|
-
userSelect: 'none',
|
|
447
|
-
},
|
|
448
|
-
}); });
|
|
449
|
-
|
|
450
|
-
var _path$7, _path2$2, _path3;
|
|
451
|
-
|
|
452
|
-
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); }
|
|
453
|
-
|
|
454
|
-
function SvgPopmenuLogo(props) {
|
|
455
|
-
return /*#__PURE__*/React.createElement("svg", _extends$8({
|
|
456
|
-
viewBox: "0 0 35 35",
|
|
457
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
458
|
-
"aria-hidden": "true"
|
|
459
|
-
}, props), _path$7 || (_path$7 = /*#__PURE__*/React.createElement("path", {
|
|
460
|
-
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"
|
|
461
|
-
})), _path2$2 || (_path2$2 = /*#__PURE__*/React.createElement("path", {
|
|
462
|
-
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"
|
|
463
|
-
})), _path3 || (_path3 = /*#__PURE__*/React.createElement("path", {
|
|
464
|
-
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"
|
|
465
|
-
})));
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
var _path$6;
|
|
469
|
-
|
|
470
|
-
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); }
|
|
471
|
-
|
|
472
|
-
function SvgMenuIcon(props) {
|
|
473
|
-
return /*#__PURE__*/React.createElement("svg", _extends$7({
|
|
474
|
-
viewBox: "0 0 35 35",
|
|
475
|
-
fill: "none",
|
|
476
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
477
|
-
"aria-hidden": "true"
|
|
478
|
-
}, props), _path$6 || (_path$6 = /*#__PURE__*/React.createElement("path", {
|
|
479
|
-
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"
|
|
480
|
-
})));
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
var _path$5, _path2$1;
|
|
484
|
-
|
|
485
|
-
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); }
|
|
486
|
-
|
|
487
|
-
function SvgCheckCircle(props) {
|
|
488
|
-
return /*#__PURE__*/React.createElement("svg", _extends$6({
|
|
489
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
490
|
-
viewBox: "0 0 24 24",
|
|
491
|
-
fill: "none",
|
|
492
|
-
stroke: "currentColor",
|
|
493
|
-
strokeWidth: 2,
|
|
494
|
-
strokeLinecap: "round",
|
|
495
|
-
strokeLinejoin: "round",
|
|
496
|
-
className: "CheckCircle_svg__feather CheckCircle_svg__feather-check-circle"
|
|
497
|
-
}, props), _path$5 || (_path$5 = /*#__PURE__*/React.createElement("path", {
|
|
498
|
-
d: "M22 11.08V12a10 10 0 11-5.93-9.14"
|
|
499
|
-
})), _path2$1 || (_path2$1 = /*#__PURE__*/React.createElement("path", {
|
|
500
|
-
d: "M22 4L12 14.01l-3-3"
|
|
501
|
-
})));
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
var _path$4, _path2;
|
|
505
|
-
|
|
506
|
-
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); }
|
|
507
|
-
|
|
508
|
-
function SvgCopy(props) {
|
|
509
|
-
return /*#__PURE__*/React.createElement("svg", _extends$5({
|
|
510
|
-
viewBox: "0 0 35 35",
|
|
511
|
-
fill: "none",
|
|
512
|
-
strokeWidth: 2,
|
|
513
|
-
strokeLinecap: "round",
|
|
514
|
-
strokeLinejoin: "round",
|
|
515
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
516
|
-
}, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
|
|
517
|
-
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"
|
|
518
|
-
})), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
|
|
519
|
-
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"
|
|
520
|
-
})));
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
var _path$3;
|
|
524
|
-
|
|
525
|
-
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); }
|
|
526
|
-
|
|
527
|
-
function SvgCheckmark(props) {
|
|
528
|
-
return /*#__PURE__*/React.createElement("svg", _extends$4({
|
|
529
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
530
|
-
viewBox: "0 0 24 24",
|
|
531
|
-
fill: "none",
|
|
532
|
-
stroke: "currentColor",
|
|
533
|
-
strokeWidth: 2,
|
|
534
|
-
strokeLinecap: "round",
|
|
535
|
-
strokeLinejoin: "round",
|
|
536
|
-
className: "Checkmark_svg__feather Checkmark_svg__feather-check"
|
|
537
|
-
}, props), _path$3 || (_path$3 = /*#__PURE__*/React.createElement("path", {
|
|
538
|
-
d: "M20 6L9 17l-5-5"
|
|
539
|
-
})));
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
var _circle$1;
|
|
543
|
-
|
|
544
|
-
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); }
|
|
545
|
-
|
|
546
|
-
function SvgUnchecked(props) {
|
|
547
|
-
return /*#__PURE__*/React.createElement("svg", _extends$3({
|
|
548
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
549
|
-
viewBox: "0 0 24 24",
|
|
550
|
-
fill: "none",
|
|
551
|
-
stroke: "currentColor",
|
|
552
|
-
strokeWidth: 2,
|
|
553
|
-
strokeLinecap: "round",
|
|
554
|
-
strokeLinejoin: "round",
|
|
555
|
-
className: "Unchecked_svg__feather Unchecked_svg__feather-circle"
|
|
556
|
-
}, props), _circle$1 || (_circle$1 = /*#__PURE__*/React.createElement("circle", {
|
|
557
|
-
cx: 12,
|
|
558
|
-
cy: 12,
|
|
559
|
-
r: 10
|
|
560
|
-
})));
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
var _path$2;
|
|
564
|
-
|
|
565
|
-
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); }
|
|
566
|
-
|
|
567
|
-
function SvgAlertOctagon(props) {
|
|
568
|
-
return /*#__PURE__*/React.createElement("svg", _extends$2({
|
|
569
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
570
|
-
viewBox: "0 0 24 24",
|
|
571
|
-
fill: "none",
|
|
572
|
-
stroke: "currentColor",
|
|
573
|
-
strokeWidth: 2,
|
|
574
|
-
strokeLinecap: "round",
|
|
575
|
-
strokeLinejoin: "round"
|
|
576
|
-
}, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
|
|
577
|
-
d: "M7.86 2h8.28L22 7.86v8.28L16.14 22H7.86L2 16.14V7.86L7.86 2zM12 8v4M12 16h.01"
|
|
578
|
-
})));
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
var _path$1;
|
|
582
|
-
|
|
583
|
-
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); }
|
|
584
|
-
|
|
585
|
-
function SvgAlertTriangle(props) {
|
|
586
|
-
return /*#__PURE__*/React.createElement("svg", _extends$1({
|
|
587
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
588
|
-
viewBox: "0 0 24 24",
|
|
589
|
-
fill: "none",
|
|
590
|
-
stroke: "currentColor",
|
|
591
|
-
strokeWidth: 2,
|
|
592
|
-
strokeLinecap: "round",
|
|
593
|
-
strokeLinejoin: "round",
|
|
594
|
-
className: "AlertTriangle_svg__feather AlertTriangle_svg__feather-alert-triangle"
|
|
595
|
-
}, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
|
|
596
|
-
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"
|
|
597
|
-
})));
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
var _circle, _path;
|
|
601
|
-
|
|
602
|
-
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); }
|
|
603
|
-
|
|
604
|
-
function SvgInfo(props) {
|
|
605
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
606
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
607
|
-
viewBox: "0 0 24 24",
|
|
608
|
-
fill: "none",
|
|
609
|
-
stroke: "currentColor",
|
|
610
|
-
strokeWidth: 2,
|
|
611
|
-
strokeLinecap: "round",
|
|
612
|
-
strokeLinejoin: "round",
|
|
613
|
-
className: "Info_svg__feather Info_svg__feather-info"
|
|
614
|
-
}, props), _circle || (_circle = /*#__PURE__*/React.createElement("circle", {
|
|
615
|
-
cx: 12,
|
|
616
|
-
cy: 12,
|
|
617
|
-
r: 10
|
|
618
|
-
})), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
619
|
-
d: "M12 16v-4M12 8h.01"
|
|
620
|
-
})));
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
var iconDictionary = {
|
|
624
|
-
add: AddCircleRoundedIcon,
|
|
625
|
-
'add-outlined': AddCircleOutlineRoundedIcon,
|
|
626
|
-
'add-photo': AddAPhotoRoundedIcon,
|
|
627
|
-
alarm: AccessAlarmRounded,
|
|
628
|
-
'arrow-back': ArrowBackRoundedIcon,
|
|
629
|
-
'arrow-down': ArrowDownwardRoundedIcon,
|
|
630
|
-
'arrow-forward': ArrowForwardRoundedIcon,
|
|
631
|
-
'arrow-up': ArrowUpwardRoundedIcon,
|
|
632
|
-
attach: AttachFileRoundedIcon,
|
|
633
|
-
'bar-chart': AssessmentRoundedIcon,
|
|
634
|
-
block: BlockIcon,
|
|
635
|
-
calendar: CalendarTodayRoundedIcon,
|
|
636
|
-
'calendar-today': TodayRounded,
|
|
637
|
-
cancel: CloseRoundedIcon,
|
|
638
|
-
'cancel-filled': CancelRoundedIcon,
|
|
639
|
-
cart: ShoppingCartRoundedIcon,
|
|
640
|
-
chat: ChatRoundedIcon,
|
|
641
|
-
'check-circle': CheckCircleRoundedIcon,
|
|
642
|
-
checked: SvgCheckCircle,
|
|
643
|
-
checkmark: SvgCheckmark,
|
|
644
|
-
'chevron-down': KeyboardArrowDownRoundedIcon,
|
|
645
|
-
'chevron-left': KeyboardArrowLeftRoundedIcon,
|
|
646
|
-
'chevron-right': KeyboardArrowRightRoundedIcon,
|
|
647
|
-
'chevron-up': KeyboardArrowUpRoundedIcon,
|
|
648
|
-
clock: AccessTimeRoundedIcon,
|
|
649
|
-
code: CodeRoundedIcon,
|
|
650
|
-
comment: CommentRoundedIcon,
|
|
651
|
-
compare: CompareArrowsRoundedIcon,
|
|
652
|
-
copy: SvgCopy,
|
|
653
|
-
'credit-card': CreditCardRounded,
|
|
654
|
-
delete: DeleteRoundedIcon,
|
|
655
|
-
desktop: DesktopMacRoundedIcon,
|
|
656
|
-
'dining-menu': RestaurantMenuRoundedIcon,
|
|
657
|
-
download: CloudDownloadRoundedIcon,
|
|
658
|
-
'drag-handle': DragIndicatorRoundedIcon,
|
|
659
|
-
edit: EditRoundedIcon,
|
|
660
|
-
error: SvgAlertOctagon,
|
|
661
|
-
'external-link': OpenInNewRoundedIcon,
|
|
662
|
-
facebook: FacebookIcon,
|
|
663
|
-
'filter-list': FilterListRounded,
|
|
664
|
-
'gift-card': CardGiftcardOutlined,
|
|
665
|
-
globe: PublicRoundedIcon,
|
|
666
|
-
help: HelpRoundedIcon,
|
|
667
|
-
history: HistoryRounded,
|
|
668
|
-
home: HomeRounded,
|
|
669
|
-
info: SvgInfo,
|
|
670
|
-
list: ListRounded,
|
|
671
|
-
'location-pin': RoomOutlinedIcon,
|
|
672
|
-
lock: LockRoundedIcon,
|
|
673
|
-
'lock-open': LockOpenRoundedIcon,
|
|
674
|
-
loyalty: LoyaltyOutlined,
|
|
675
|
-
mail: MailRoundedIcon,
|
|
676
|
-
menu: SvgMenuIcon,
|
|
677
|
-
merge: MergeTypeRounded,
|
|
678
|
-
'mobile-device': PhoneAndroidRounded,
|
|
679
|
-
notification: NotificationsRoundedIcon,
|
|
680
|
-
'photo-camera': PhotoCameraRounded,
|
|
681
|
-
play: PlayCircleFilledRounded,
|
|
682
|
-
popmenu: SvgPopmenuLogo,
|
|
683
|
-
print: PrintRoundedIcon,
|
|
684
|
-
refresh: RefreshRoundedIcon,
|
|
685
|
-
phone: PhoneRounded,
|
|
686
|
-
profile: AccountCircleOutlined,
|
|
687
|
-
remove: RemoveCircleRoundedIcon,
|
|
688
|
-
'remove-outlined': RemoveCircleOutlineRoundedIcon,
|
|
689
|
-
replay: ReplayRounded,
|
|
690
|
-
reply: ReplyIcon,
|
|
691
|
-
save: SaveRoundedIcon,
|
|
692
|
-
search: SearchRoundedIcon,
|
|
693
|
-
send: SendRoundedIcon,
|
|
694
|
-
settings: SettingsRoundedIcon,
|
|
695
|
-
'shopping-bag': LocalMallOutlinedIcon,
|
|
696
|
-
shuffle: ShuffleRounded,
|
|
697
|
-
star: StarBorderRounded,
|
|
698
|
-
'star-filled': StarRounded,
|
|
699
|
-
success: SvgCheckCircle,
|
|
700
|
-
truck: LocalShippingOutlinedIcon,
|
|
701
|
-
twitter: TwitterIcon,
|
|
702
|
-
unchecked: SvgUnchecked,
|
|
703
|
-
upload: CloudUploadRoundedIcon,
|
|
704
|
-
visibility: VisibilityRoundedIcon,
|
|
705
|
-
'visibility-off': VisibilityOffRoundedIcon,
|
|
706
|
-
voicemail: VoicemailRoundedIcon,
|
|
707
|
-
warning: SvgAlertTriangle,
|
|
708
|
-
website: LanguageRoundedIcon,
|
|
709
|
-
};
|
|
338
|
+
var getColor = function (props) {
|
|
339
|
+
var semanticColors = ['primary', 'secondary', 'info', 'success', 'warning', 'error'];
|
|
340
|
+
var value = 'inherit';
|
|
341
|
+
if (props.color) {
|
|
342
|
+
if (semanticColors.includes(props.color.split('.')[0])) {
|
|
343
|
+
var _a = props.color.split('.'), color = _a[0], _b = _a[1], variant = _b === void 0 ? 'main' : _b;
|
|
344
|
+
value = palette[color][variant];
|
|
345
|
+
}
|
|
346
|
+
else if (props.color.search(/^(rgb|hsla|#)/) !== -1) {
|
|
347
|
+
value = props.color;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
return value;
|
|
351
|
+
};
|
|
352
|
+
return {
|
|
353
|
+
root: {
|
|
354
|
+
color: getColor,
|
|
355
|
+
fontSize: getFontSize,
|
|
356
|
+
strokeWidth: '1.3px',
|
|
357
|
+
},
|
|
358
|
+
};
|
|
359
|
+
});
|
|
710
360
|
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
* 2. Update the iconDictionary at ./iconDictionary
|
|
715
|
-
* 3. Add the icon name to Icon.propTypes
|
|
716
|
-
*/
|
|
717
|
-
var IconStaticClassName = 'mep-icon-svg';
|
|
718
|
-
var Icon = forwardRef(function (props, ref) {
|
|
719
|
-
var className = props.className, name = props.name; props.color; var restProps = __rest(props, ["className", "name", "color"]);
|
|
361
|
+
var iconStaticClassName = 'pop-icon';
|
|
362
|
+
var Icon = function (props) {
|
|
363
|
+
var icon = props.icon, className = props.className, restProps = __rest(props, ["icon", "className"]);
|
|
720
364
|
var classes = useIconStyles(props);
|
|
721
|
-
var
|
|
722
|
-
if (!
|
|
723
|
-
|
|
365
|
+
var isValid = true;
|
|
366
|
+
if (!icon || (typeof icon === 'function' && icon({}) === undefined)) {
|
|
367
|
+
isValid = false;
|
|
724
368
|
}
|
|
725
|
-
return
|
|
726
|
-
})
|
|
369
|
+
return isValid
|
|
370
|
+
? createElement(icon, __assign({ className: classNames([classes.root, iconStaticClassName, className]) }, restProps))
|
|
371
|
+
: null;
|
|
372
|
+
};
|
|
373
|
+
Icon.defaultProps = {
|
|
374
|
+
size: 'inherit',
|
|
375
|
+
color: 'inherit',
|
|
376
|
+
};
|
|
727
377
|
Icon.displayName = 'Icon';
|
|
728
378
|
|
|
729
379
|
var useTypographyStyles = makeStyles(function () {
|
|
730
380
|
var _a;
|
|
731
381
|
return ({
|
|
732
|
-
root: (_a = {
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
382
|
+
root: (_a = {},
|
|
383
|
+
_a["& ." + iconStaticClassName] = {
|
|
384
|
+
position: 'relative',
|
|
385
|
+
top: '0.125em',
|
|
386
|
+
padding: '0 0.125em',
|
|
737
387
|
},
|
|
738
388
|
_a),
|
|
739
389
|
caption: {
|
|
@@ -757,7 +407,7 @@ var getFadeStop = function (_a, typographyVariant) {
|
|
|
757
407
|
? typography[typographyVariant].lineHeight + "rem"
|
|
758
408
|
: typography[typographyVariant].lineHeight;
|
|
759
409
|
};
|
|
760
|
-
var useCollapsibleTextStyles = makeStyles$
|
|
410
|
+
var useCollapsibleTextStyles = makeStyles$1(function (theme) { return ({
|
|
761
411
|
overlay: {
|
|
762
412
|
position: 'absolute',
|
|
763
413
|
top: 0,
|
|
@@ -807,7 +457,7 @@ var SemanticColors;
|
|
|
807
457
|
SemanticColors["SECONDARY_DARK"] = "secondary.dark";
|
|
808
458
|
SemanticColors["SECONDARY_LIGHT"] = "secondary.light";
|
|
809
459
|
})(SemanticColors || (SemanticColors = {}));
|
|
810
|
-
var useStyles = makeStyles$
|
|
460
|
+
var useStyles = makeStyles$1(function (theme) { return ({
|
|
811
461
|
dividerRoot: {
|
|
812
462
|
gap: theme.spacing(2),
|
|
813
463
|
},
|
|
@@ -844,10 +494,10 @@ var useStyles = makeStyles$2(function (theme) { return ({
|
|
|
844
494
|
},
|
|
845
495
|
}); });
|
|
846
496
|
var Divider = function (props) {
|
|
847
|
-
var text = props.text, textTransform = props.textTransform, TypographyProps = props.TypographyProps;
|
|
497
|
+
var className = props.className, text = props.text, textTransform = props.textTransform, TypographyProps = props.TypographyProps;
|
|
848
498
|
var classes = useStyles(props);
|
|
849
499
|
var casingOffset = textTransform === 'lowercase' ? '.25rem' : 'unset';
|
|
850
|
-
return (React__default.createElement(Box, { className: classes.dividerRoot, display: "flex", alignItems: "center" },
|
|
500
|
+
return (React__default.createElement(Box, { className: classNames([classes.dividerRoot, className]), display: "flex", alignItems: "center" },
|
|
851
501
|
React__default.createElement(Box, { className: classes.dividerLine, display: "flex", flexGrow: 1, height: "1px", marginTop: casingOffset }),
|
|
852
502
|
text && (React__default.createElement(React__default.Fragment, null,
|
|
853
503
|
React__default.createElement(Typography, __assign({ className: classes.textRoot }, TypographyProps), text),
|
|
@@ -858,60 +508,13 @@ Divider.defaultProps = {
|
|
|
858
508
|
textTransform: 'lowercase',
|
|
859
509
|
};
|
|
860
510
|
|
|
861
|
-
var useNewIconStyles = makeStyles$2(function (theme) { return ({
|
|
862
|
-
root: {
|
|
863
|
-
color: function (props) {
|
|
864
|
-
var semanticColors = ['primary', 'secondary', 'info', 'success', 'warning', 'error'];
|
|
865
|
-
var value = 'inherit';
|
|
866
|
-
if (props.color) {
|
|
867
|
-
if (semanticColors.includes(props.color.split('.')[0])) {
|
|
868
|
-
var _a = props.color.split('.'), color = _a[0], _b = _a[1], variant = _b === void 0 ? 'main' : _b;
|
|
869
|
-
value = theme.palette[color][variant];
|
|
870
|
-
}
|
|
871
|
-
else if (props.color.search(/^(rgb|hsla|#)/) !== -1) {
|
|
872
|
-
value = props.color;
|
|
873
|
-
}
|
|
874
|
-
}
|
|
875
|
-
return value;
|
|
876
|
-
},
|
|
877
|
-
fontSize: function (_a) {
|
|
878
|
-
var size = _a.size;
|
|
879
|
-
var sizes = {
|
|
880
|
-
inherit: 'inherit',
|
|
881
|
-
small: theme.spacing(1.5),
|
|
882
|
-
medium: theme.spacing(2),
|
|
883
|
-
large: theme.spacing(2.5),
|
|
884
|
-
'extra-large': theme.spacing(3),
|
|
885
|
-
};
|
|
886
|
-
return sizes[size];
|
|
887
|
-
},
|
|
888
|
-
strokeWidth: function (_a) {
|
|
889
|
-
var size = _a.size;
|
|
890
|
-
var sizes = {
|
|
891
|
-
inherit: '1.5px',
|
|
892
|
-
small: '1px',
|
|
893
|
-
medium: '1.5px',
|
|
894
|
-
large: '1.5px',
|
|
895
|
-
'extra-large': '2px',
|
|
896
|
-
};
|
|
897
|
-
return sizes[size];
|
|
898
|
-
},
|
|
899
|
-
},
|
|
900
|
-
}); });
|
|
901
|
-
|
|
902
|
-
var NewIcon = function (props) {
|
|
903
|
-
var icon = props.icon, _a = props.size, size = _a === void 0 ? 'inherit' : _a, _b = props.color, color = _b === void 0 ? 'inherit' : _b;
|
|
904
|
-
var classes = useNewIconStyles({ size: size, color: color });
|
|
905
|
-
return createElement(icon, { className: classes.root });
|
|
906
|
-
};
|
|
907
|
-
NewIcon.displayName = 'NewIcon';
|
|
908
|
-
|
|
909
511
|
var IconButton = forwardRef(function (props, ref) {
|
|
910
|
-
|
|
911
|
-
return (React__default.createElement(MuiIconButton, __assign({ ref: ref }, muiProps),
|
|
912
|
-
React__default.createElement(Icon, { name: icon })));
|
|
512
|
+
return React__default.createElement(MuiIconButton, __assign({ ref: ref }, props));
|
|
913
513
|
});
|
|
914
|
-
IconButton.displayName = 'IconButton';
|
|
514
|
+
IconButton.displayName = 'IconButton';
|
|
515
|
+
IconButton.defaultProps = {
|
|
516
|
+
color: 'secondary',
|
|
517
|
+
};
|
|
915
518
|
|
|
916
519
|
var getLinkColor = function (_a, _b) {
|
|
917
520
|
var palette = _a.palette;
|
|
@@ -935,7 +538,7 @@ var useLinkStyles = makeStyles(function (theme) {
|
|
|
935
538
|
display: 'flex',
|
|
936
539
|
color: function (props) { return getLinkColor(theme, props); }
|
|
937
540
|
},
|
|
938
|
-
_a["& ." +
|
|
541
|
+
_a["& ." + iconStaticClassName] = {
|
|
939
542
|
alignSelf: 'center',
|
|
940
543
|
},
|
|
941
544
|
_a),
|
|
@@ -1098,5 +701,5 @@ var useCollapsibleText = function () {
|
|
|
1098
701
|
};
|
|
1099
702
|
};
|
|
1100
703
|
|
|
1101
|
-
export { Avatar, Button, Checkbox, CollapsibleText, Divider, Icon, IconButton, Link,
|
|
704
|
+
export { Avatar, Button, Checkbox, CollapsibleText, Divider, Icon, IconButton, Link, Radio, SplitInput, Switch, ToggleButton, ToggleButtonGroup, Tooltip, Typography, useCollapsibleText };
|
|
1102
705
|
//# sourceMappingURL=index.es.js.map
|