@micromag/core 0.3.110 → 0.3.115

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/lib/components.js CHANGED
@@ -12,7 +12,7 @@ var core = require('@micromag/core');
12
12
  var reactIntl = require('react-intl');
13
13
  var utils = require('@micromag/core/utils');
14
14
  var reactFontawesome = require('@fortawesome/react-fontawesome');
15
- var freeSolidSvgIcons = require('@fortawesome/free-solid-svg-icons');
15
+ var faAngleLeft = require('@fortawesome/free-solid-svg-icons/faAngleLeft');
16
16
  var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
17
17
  var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
18
18
  var contexts = require('@micromag/core/contexts');
@@ -20,21 +20,52 @@ var hooks = require('@micromag/core/hooks');
20
20
  var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
21
21
  var get = require('lodash/get');
22
22
  var ReactDOM = require('react-dom');
23
- var react = require('@uppy/react');
24
23
  var isArray = require('lodash/isArray');
24
+ var faAngleDown = require('@fortawesome/free-solid-svg-icons/faAngleDown');
25
+ var faAngleUp = require('@fortawesome/free-solid-svg-icons/faAngleUp');
25
26
  var dayjs = require('dayjs');
26
27
  var throttle = require('lodash/throttle');
27
28
  var isObject = require('lodash/isObject');
28
29
  var reactHelmet = require('react-helmet');
29
30
  var isString = require('lodash/isString');
30
31
  require('snake-case');
32
+ var faAd = require('@fortawesome/free-solid-svg-icons/faAd');
33
+ var faImage = require('@fortawesome/free-solid-svg-icons/faImage');
34
+ var faMusic = require('@fortawesome/free-solid-svg-icons/faMusic');
31
35
  var isNumber = require('lodash/isNumber');
36
+ var faMapMarkerAlt = require('@fortawesome/free-solid-svg-icons/faMapMarkerAlt');
37
+ var faMapMarkedAlt = require('@fortawesome/free-solid-svg-icons/faMapMarkedAlt');
38
+ var faVideo = require('@fortawesome/free-solid-svg-icons/faVideo');
39
+ var faPlay = require('@fortawesome/free-solid-svg-icons/faPlay');
40
+ var faRedo = require('@fortawesome/free-solid-svg-icons/faRedo');
32
41
  var size = require('@folklore/size');
42
+ var faCommentDots = require('@fortawesome/free-solid-svg-icons/faCommentDots');
43
+ var faCheck = require('@fortawesome/free-solid-svg-icons/faCheck');
44
+ var faTimes = require('@fortawesome/free-solid-svg-icons/faTimes');
45
+ var faPercent = require('@fortawesome/free-solid-svg-icons/faPercent');
33
46
  var core$1 = require('@react-spring/core');
34
47
  var web = require('@react-spring/web');
35
48
 
36
49
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
37
50
 
51
+ function _interopNamespace(e) {
52
+ if (e && e.__esModule) return e;
53
+ var n = Object.create(null);
54
+ if (e) {
55
+ Object.keys(e).forEach(function (k) {
56
+ if (k !== 'default') {
57
+ var d = Object.getOwnPropertyDescriptor(e, k);
58
+ Object.defineProperty(n, k, d.get ? d : {
59
+ enumerable: true,
60
+ get: function () { return e[k]; }
61
+ });
62
+ }
63
+ });
64
+ }
65
+ n["default"] = e;
66
+ return Object.freeze(n);
67
+ }
68
+
38
69
  var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
39
70
  var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
40
71
  var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
@@ -55,13 +86,13 @@ var isNumber__default = /*#__PURE__*/_interopDefaultLegacy(isNumber);
55
86
  var styles$v = {"container":"micromag-core-buttons-button-container","asLink":"micromag-core-buttons-button-asLink","withoutStyle":"micromag-core-buttons-button-withoutStyle","icon":"micromag-core-buttons-button-icon","withIcon":"micromag-core-buttons-button-withIcon","label":"micromag-core-buttons-button-label","right":"micromag-core-buttons-button-right","withIconColumns":"micromag-core-buttons-button-withIconColumns","linkDisabled":"micromag-core-buttons-button-linkDisabled"};
56
87
 
57
88
  /* eslint-disable react/jsx-props-no-spreading */
58
- var propTypes$K = {
89
+ var propTypes$L = {
59
90
  children: core.PropTypes.label.isRequired,
60
91
  isHtml: PropTypes__default["default"].bool,
61
92
  values: PropTypes__default["default"].object // eslint-disable-line react/forbid-prop-types
62
93
 
63
94
  };
64
- var defaultProps$K = {
95
+ var defaultProps$L = {
65
96
  isHtml: false,
66
97
  values: {}
67
98
  };
@@ -76,11 +107,11 @@ var Label = function Label(_ref) {
76
107
  }, children)) : children;
77
108
  };
78
109
 
79
- Label.propTypes = propTypes$K;
80
- Label.defaultProps = defaultProps$K;
110
+ Label.propTypes = propTypes$L;
111
+ Label.defaultProps = defaultProps$L;
81
112
 
82
113
  var _excluded$a = ["type", "theme", "size", "href", "external", "direct", "target", "label", "children", "focusable", "active", "icon", "iconPosition", "disabled", "loading", "disableOnLoading", "small", "big", "withShadow", "withoutStyle", "withoutTheme", "asLink", "outline", "onClick", "className", "iconClassName", "labelClassName", "refButton"];
83
- var propTypes$J = {
114
+ var propTypes$K = {
84
115
  type: PropTypes__default["default"].string,
85
116
  theme: core.PropTypes.buttonTheme,
86
117
  size: core.PropTypes.buttonSize,
@@ -113,7 +144,7 @@ var propTypes$J = {
113
144
 
114
145
  })])
115
146
  };
116
- var defaultProps$J = {
147
+ var defaultProps$K = {
117
148
  type: 'button',
118
149
  theme: null,
119
150
  size: null,
@@ -229,13 +260,13 @@ var Button$1 = function Button(_ref) {
229
260
  }), content);
230
261
  };
231
262
 
232
- Button$1.propTypes = propTypes$J;
233
- Button$1.defaultProps = defaultProps$J;
263
+ Button$1.propTypes = propTypes$K;
264
+ Button$1.defaultProps = defaultProps$K;
234
265
 
235
266
  var styles$u = {};
236
267
 
237
268
  var _excluded$9 = ["className", "onClick", "theme"];
238
- var propTypes$I = {
269
+ var propTypes$J = {
239
270
  buttons: core.PropTypes.buttons,
240
271
  size: core.PropTypes.buttonSize,
241
272
  theme: core.PropTypes.buttonTheme,
@@ -244,7 +275,7 @@ var propTypes$I = {
244
275
  className: PropTypes__default["default"].string,
245
276
  buttonClassName: PropTypes__default["default"].string
246
277
  };
247
- var defaultProps$I = {
278
+ var defaultProps$J = {
248
279
  buttons: [],
249
280
  size: null,
250
281
  theme: undefined,
@@ -294,14 +325,14 @@ var Buttons = function Buttons(_ref) {
294
325
  }));
295
326
  };
296
327
 
297
- Buttons.propTypes = propTypes$I;
298
- Buttons.defaultProps = defaultProps$I;
328
+ Buttons.propTypes = propTypes$J;
329
+ Buttons.defaultProps = defaultProps$J;
299
330
 
300
331
  var _excluded$8 = ["className"];
301
- var propTypes$H = {
332
+ var propTypes$I = {
302
333
  className: PropTypes__default["default"].string
303
334
  };
304
- var defaultProps$H = {
335
+ var defaultProps$I = {
305
336
  className: null
306
337
  };
307
338
 
@@ -313,20 +344,20 @@ var BackButton = function BackButton(_ref) {
313
344
  className: classNames__default["default"](['px-2', _defineProperty__default["default"]({}, className, className)]),
314
345
  size: "sm",
315
346
  icon: /*#__PURE__*/React__default["default"].createElement(reactFontawesome.FontAwesomeIcon, {
316
- icon: freeSolidSvgIcons.faAngleLeft,
347
+ icon: faAngleLeft.faAngleLeft,
317
348
  size: "lg"
318
349
  })
319
350
  }, props));
320
351
  };
321
352
 
322
- BackButton.propTypes = propTypes$H;
323
- BackButton.defaultProps = defaultProps$H;
353
+ BackButton.propTypes = propTypes$I;
354
+ BackButton.defaultProps = defaultProps$I;
324
355
 
325
356
  var styles$t = {"actions":"micromag-core-forms-form-actions","left":"micromag-core-forms-form-left","right":"micromag-core-forms-form-right"};
326
357
 
327
358
  var _excluded$7 = ["type"],
328
359
  _excluded2 = ["component", "id", "settings"];
329
- var propTypes$G = {
360
+ var propTypes$H = {
330
361
  name: PropTypes__default["default"].string,
331
362
  // .isRequired,
332
363
  value: core.PropTypes.component,
@@ -340,7 +371,7 @@ var propTypes$G = {
340
371
  fieldContext: PropTypes__default["default"].any // eslint-disable-line react/forbid-prop-types
341
372
 
342
373
  };
343
- var defaultProps$G = {
374
+ var defaultProps$H = {
344
375
  name: null,
345
376
  form: null,
346
377
  formComponents: {},
@@ -427,10 +458,10 @@ var FieldForm = function FieldForm(_ref) {
427
458
  }, formProps))) : null;
428
459
  };
429
460
 
430
- FieldForm.propTypes = propTypes$G;
431
- FieldForm.defaultProps = defaultProps$G;
461
+ FieldForm.propTypes = propTypes$H;
462
+ FieldForm.defaultProps = defaultProps$H;
432
463
 
433
- var propTypes$F = {
464
+ var propTypes$G = {
434
465
  action: PropTypes__default["default"].string.isRequired,
435
466
  method: PropTypes__default["default"].string,
436
467
  fields: core.PropTypes.formFields,
@@ -457,7 +488,7 @@ var propTypes$F = {
457
488
  actionsClassName: PropTypes__default["default"].string,
458
489
  cancelClassName: PropTypes__default["default"].string
459
490
  };
460
- var defaultProps$F = {
491
+ var defaultProps$G = {
461
492
  method: 'POST',
462
493
  fields: [],
463
494
  initialValue: null,
@@ -671,13 +702,13 @@ var Form = function Form(_ref) {
671
702
  })) : null) : null);
672
703
  };
673
704
 
674
- Form.propTypes = propTypes$F;
675
- Form.defaultProps = defaultProps$F;
705
+ Form.propTypes = propTypes$G;
706
+ Form.defaultProps = defaultProps$G;
676
707
 
677
708
  var styles$s = {"withoutStyle":"micromag-core-partials-link-withoutStyle"};
678
709
 
679
710
  var _excluded$6 = ["href", "external", "children", "target", "rel", "className", "withoutStyle"];
680
- var propTypes$E = {
711
+ var propTypes$F = {
681
712
  href: PropTypes__default["default"].string,
682
713
  external: PropTypes__default["default"].bool,
683
714
  target: PropTypes__default["default"].string,
@@ -686,7 +717,7 @@ var propTypes$E = {
686
717
  withoutStyle: PropTypes__default["default"].bool,
687
718
  className: PropTypes__default["default"].string
688
719
  };
689
- var defaultProps$E = {
720
+ var defaultProps$F = {
690
721
  href: '',
691
722
  external: false,
692
723
  target: '_blank',
@@ -717,11 +748,11 @@ var Link = function Link(_ref) {
717
748
  }, props), /*#__PURE__*/React__default["default"].createElement(Label, null, children));
718
749
  };
719
750
 
720
- Link.propTypes = propTypes$E;
721
- Link.defaultProps = defaultProps$E;
751
+ Link.propTypes = propTypes$F;
752
+ Link.defaultProps = defaultProps$F;
722
753
 
723
754
  var _excluded$5 = ["label", "className"];
724
- var propTypes$D = {
755
+ var propTypes$E = {
725
756
  href: PropTypes__default["default"].string,
726
757
  header: PropTypes__default["default"].node,
727
758
  image: PropTypes__default["default"].node,
@@ -750,7 +781,7 @@ var propTypes$D = {
750
781
  onClickBody: PropTypes__default["default"].func,
751
782
  onClickFooter: PropTypes__default["default"].func
752
783
  };
753
- var defaultProps$D = {
784
+ var defaultProps$E = {
754
785
  href: null,
755
786
  header: null,
756
787
  image: null,
@@ -871,15 +902,15 @@ var Card = function Card(_ref) {
871
902
  }, cardInner);
872
903
  };
873
904
 
874
- Card.propTypes = propTypes$D;
875
- Card.defaultProps = defaultProps$D;
905
+ Card.propTypes = propTypes$E;
906
+ Card.defaultProps = defaultProps$E;
876
907
 
877
- var propTypes$C = {
908
+ var propTypes$D = {
878
909
  animated: PropTypes__default["default"].bool,
879
910
  color: PropTypes__default["default"].string,
880
911
  className: PropTypes__default["default"].string
881
912
  };
882
- var defaultProps$C = {
913
+ var defaultProps$D = {
883
914
  animated: true,
884
915
  color: 'currentColor',
885
916
  className: null
@@ -944,19 +975,19 @@ var Spinner = function Spinner(_ref) {
944
975
  }) : null))));
945
976
  };
946
977
 
947
- Spinner.propTypes = propTypes$C;
948
- Spinner.defaultProps = defaultProps$C;
978
+ Spinner.propTypes = propTypes$D;
979
+ Spinner.defaultProps = defaultProps$D;
949
980
 
950
981
  var styles$r = {};
951
982
 
952
983
  var _excluded$4 = ["description", "loading", "children", "className"];
953
- var propTypes$B = {
984
+ var propTypes$C = {
954
985
  description: PropTypes__default["default"].node,
955
986
  loading: PropTypes__default["default"].bool,
956
987
  children: PropTypes__default["default"].node,
957
988
  className: PropTypes__default["default"].string
958
989
  };
959
- var defaultProps$B = {
990
+ var defaultProps$C = {
960
991
  description: null,
961
992
  loading: false,
962
993
  children: null,
@@ -975,12 +1006,12 @@ var FormPanel = function FormPanel(_ref) {
975
1006
  }, props), description, loading ? /*#__PURE__*/React__default["default"].createElement(Spinner, null) : children);
976
1007
  };
977
1008
 
978
- FormPanel.propTypes = propTypes$B;
979
- FormPanel.defaultProps = defaultProps$B;
1009
+ FormPanel.propTypes = propTypes$C;
1010
+ FormPanel.defaultProps = defaultProps$C;
980
1011
 
981
1012
  var styles$q = {"container":"micromag-core-menus-breadcrumb-container","arrow":"micromag-core-menus-breadcrumb-arrow"};
982
1013
 
983
- var propTypes$A = {
1014
+ var propTypes$B = {
984
1015
  items: core.PropTypes.menuItems,
985
1016
  theme: core.PropTypes.bootstrapThemes,
986
1017
  separator: PropTypes__default["default"].oneOf([null, 'arrow']),
@@ -988,7 +1019,7 @@ var propTypes$A = {
988
1019
  noWrap: PropTypes__default["default"].bool,
989
1020
  className: PropTypes__default["default"].string
990
1021
  };
991
- var defaultProps$A = {
1022
+ var defaultProps$B = {
992
1023
  items: [],
993
1024
  theme: null,
994
1025
  separator: null,
@@ -1038,11 +1069,11 @@ var Breadcrumb = function Breadcrumb(_ref) {
1038
1069
  })));
1039
1070
  };
1040
1071
 
1041
- Breadcrumb.propTypes = propTypes$A;
1042
- Breadcrumb.defaultProps = defaultProps$A;
1072
+ Breadcrumb.propTypes = propTypes$B;
1073
+ Breadcrumb.defaultProps = defaultProps$B;
1043
1074
 
1044
1075
  var _excluded$3 = ["type", "className", "label", "children", "onClick", "active"];
1045
- var propTypes$z = {
1076
+ var propTypes$A = {
1046
1077
  items: core.PropTypes.menuItems,
1047
1078
  children: PropTypes__default["default"].node,
1048
1079
  visible: PropTypes__default["default"].bool,
@@ -1052,7 +1083,7 @@ var propTypes$z = {
1052
1083
  onClickItem: PropTypes__default["default"].func,
1053
1084
  onClickOutside: PropTypes__default["default"].func
1054
1085
  };
1055
- var defaultProps$z = {
1086
+ var defaultProps$A = {
1056
1087
  items: [],
1057
1088
  children: null,
1058
1089
  visible: false,
@@ -1150,11 +1181,11 @@ var Dropdown = function Dropdown(_ref) {
1150
1181
  }));
1151
1182
  };
1152
1183
 
1153
- Dropdown.propTypes = propTypes$z;
1154
- Dropdown.defaultProps = defaultProps$z;
1184
+ Dropdown.propTypes = propTypes$A;
1185
+ Dropdown.defaultProps = defaultProps$A;
1155
1186
 
1156
1187
  var _excluded$2 = ["id", "className", "linkClassName", "href", "label", "external", "items", "dropdown", "active", "onClick"];
1157
- var propTypes$y = {
1188
+ var propTypes$z = {
1158
1189
  items: core.PropTypes.menuItems,
1159
1190
  tagName: PropTypes__default["default"].string,
1160
1191
  itemTagName: PropTypes__default["default"].string,
@@ -1173,7 +1204,7 @@ var propTypes$y = {
1173
1204
  dropdownLinkClassName: PropTypes__default["default"].string,
1174
1205
  dropdownAlign: core.PropTypes.dropdownAlign
1175
1206
  };
1176
- var defaultProps$y = {
1207
+ var defaultProps$z = {
1177
1208
  items: [],
1178
1209
  tagName: 'ul',
1179
1210
  itemTagName: 'li',
@@ -1297,12 +1328,12 @@ var Menu = function Menu(_ref) {
1297
1328
  }));
1298
1329
  };
1299
1330
 
1300
- Menu.propTypes = propTypes$y;
1301
- Menu.defaultProps = defaultProps$y;
1331
+ Menu.propTypes = propTypes$z;
1332
+ Menu.defaultProps = defaultProps$z;
1302
1333
 
1303
1334
  var styles$p = {"collapse":"micromag-core-menus-navbar-collapse"};
1304
1335
 
1305
- var propTypes$x = {
1336
+ var propTypes$y = {
1306
1337
  brand: PropTypes__default["default"].node,
1307
1338
  brandLink: PropTypes__default["default"].string,
1308
1339
  breadcrumbs: PropTypes__default["default"].node,
@@ -1318,7 +1349,7 @@ var propTypes$x = {
1318
1349
  breadCrumbsClassName: PropTypes__default["default"].string,
1319
1350
  collapseClassName: PropTypes__default["default"].string
1320
1351
  };
1321
- var defaultProps$x = {
1352
+ var defaultProps$y = {
1322
1353
  brand: null,
1323
1354
  brandLink: null,
1324
1355
  breadcrumbs: null,
@@ -1394,8 +1425,8 @@ var Navbar = function Navbar(_ref) {
1394
1425
  }, children) : children));
1395
1426
  };
1396
1427
 
1397
- Navbar.propTypes = propTypes$x;
1398
- Navbar.defaultProps = defaultProps$x;
1428
+ Navbar.propTypes = propTypes$y;
1429
+ Navbar.defaultProps = defaultProps$y;
1399
1430
 
1400
1431
  var styles$o = {};
1401
1432
 
@@ -1415,7 +1446,7 @@ var messages = reactIntl.defineMessages({
1415
1446
  }]
1416
1447
  }
1417
1448
  });
1418
- var propTypes$w = {
1449
+ var propTypes$x = {
1419
1450
  page: PropTypes__default["default"].number,
1420
1451
  total: PropTypes__default["default"].number,
1421
1452
  url: PropTypes__default["default"].string,
@@ -1426,7 +1457,7 @@ var propTypes$w = {
1426
1457
  linkClassName: PropTypes__default["default"].string,
1427
1458
  onClickPage: PropTypes__default["default"].func
1428
1459
  };
1429
- var defaultProps$w = {
1460
+ var defaultProps$x = {
1430
1461
  page: 1,
1431
1462
  total: 1,
1432
1463
  url: null,
@@ -1500,12 +1531,12 @@ var PaginationMenu = function PaginationMenu(_ref) {
1500
1531
  }, /*#__PURE__*/React__default["default"].createElement(Label, null, messages.next))) : null));
1501
1532
  };
1502
1533
 
1503
- PaginationMenu.propTypes = propTypes$w;
1504
- PaginationMenu.defaultProps = defaultProps$w;
1534
+ PaginationMenu.propTypes = propTypes$x;
1535
+ PaginationMenu.defaultProps = defaultProps$x;
1505
1536
 
1506
1537
  var styles$n = {"container":"micromag-core-menus-tabs-container"};
1507
1538
 
1508
- var propTypes$v = {
1539
+ var propTypes$w = {
1509
1540
  items: core.PropTypes.menuItems,
1510
1541
  size: core.PropTypes.buttonSize,
1511
1542
  theme: core.PropTypes.buttonTheme,
@@ -1514,7 +1545,7 @@ var propTypes$v = {
1514
1545
  className: PropTypes__default["default"].string,
1515
1546
  onClickItem: PropTypes__default["default"].func
1516
1547
  };
1517
- var defaultProps$v = {
1548
+ var defaultProps$w = {
1518
1549
  items: [],
1519
1550
  size: null,
1520
1551
  theme: 'secondary',
@@ -1545,17 +1576,17 @@ var TabsMenu = function TabsMenu(_ref) {
1545
1576
  }));
1546
1577
  };
1547
1578
 
1548
- TabsMenu.propTypes = propTypes$v;
1549
- TabsMenu.defaultProps = defaultProps$v;
1579
+ TabsMenu.propTypes = propTypes$w;
1580
+ TabsMenu.defaultProps = defaultProps$w;
1550
1581
 
1551
1582
  var styles$m = {"container":"micromag-core-modals-container","modals":"micromag-core-modals-modals","hasModals":"micromag-core-modals-hasModals"};
1552
1583
 
1553
- var propTypes$u = {
1584
+ var propTypes$v = {
1554
1585
  modals: core.PropTypes.modals.isRequired,
1555
1586
  setModalsContainer: PropTypes__default["default"].func.isRequired,
1556
1587
  className: PropTypes__default["default"].string
1557
1588
  };
1558
- var defaultProps$u = {
1589
+ var defaultProps$v = {
1559
1590
  className: null
1560
1591
  };
1561
1592
 
@@ -1575,12 +1606,12 @@ var ModalsContainer = function ModalsContainer(_ref) {
1575
1606
  }));
1576
1607
  };
1577
1608
 
1578
- ModalsContainer.propTypes = propTypes$u;
1579
- ModalsContainer.defaultProps = defaultProps$u;
1609
+ ModalsContainer.propTypes = propTypes$v;
1610
+ ModalsContainer.defaultProps = defaultProps$v;
1580
1611
  var Modals = contexts.withModals(ModalsContainer);
1581
1612
 
1582
1613
  /* eslint-disable react/no-array-index-key, react/jsx-props-no-spreading */
1583
- var propTypes$t = {
1614
+ var propTypes$u = {
1584
1615
  id: PropTypes__default["default"].string,
1585
1616
  data: PropTypes__default["default"].object,
1586
1617
  // eslint-disable-line react/forbid-prop-types
@@ -1590,7 +1621,7 @@ var propTypes$t = {
1590
1621
  unregister: PropTypes__default["default"].func,
1591
1622
  children: PropTypes__default["default"].node
1592
1623
  };
1593
- var defaultProps$t = {
1624
+ var defaultProps$u = {
1594
1625
  id: null,
1595
1626
  data: null,
1596
1627
  container: null,
@@ -1623,17 +1654,17 @@ var ElementPortal = function ElementPortal(_ref) {
1623
1654
  return container !== null ? /*#__PURE__*/ReactDOM__default["default"].createPortal(children, container) : null;
1624
1655
  };
1625
1656
 
1626
- ElementPortal.propTypes = propTypes$t;
1627
- ElementPortal.defaultProps = defaultProps$t;
1657
+ ElementPortal.propTypes = propTypes$u;
1658
+ ElementPortal.defaultProps = defaultProps$u;
1628
1659
 
1629
1660
  /* eslint-disable react/no-array-index-key, react/jsx-props-no-spreading */
1630
- var propTypes$s = {
1661
+ var propTypes$t = {
1631
1662
  id: PropTypes__default["default"].string,
1632
1663
  data: PropTypes__default["default"].object,
1633
1664
  // eslint-disable-line react/forbid-prop-types
1634
1665
  children: PropTypes__default["default"].node
1635
1666
  };
1636
- var defaultProps$s = {
1667
+ var defaultProps$t = {
1637
1668
  id: null,
1638
1669
  data: null,
1639
1670
  children: null
@@ -1660,18 +1691,18 @@ var ModalPortal = function ModalPortal(_ref) {
1660
1691
  }, children);
1661
1692
  };
1662
1693
 
1663
- ModalPortal.propTypes = propTypes$s;
1664
- ModalPortal.defaultProps = defaultProps$s;
1694
+ ModalPortal.propTypes = propTypes$t;
1695
+ ModalPortal.defaultProps = defaultProps$t;
1665
1696
 
1666
1697
  var styles$l = {"container":"micromag-core-modals-modal-container","center":"micromag-core-modals-modal-center","inner":"micromag-core-modals-modal-inner","top":"micromag-core-modals-modal-top"};
1667
1698
 
1668
- var propTypes$r = {
1699
+ var propTypes$s = {
1669
1700
  id: PropTypes__default["default"].string,
1670
1701
  title: PropTypes__default["default"].string,
1671
1702
  position: PropTypes__default["default"].oneOf(['center', 'top']),
1672
1703
  children: PropTypes__default["default"].node
1673
1704
  };
1674
- var defaultProps$r = {
1705
+ var defaultProps$s = {
1675
1706
  id: null,
1676
1707
  title: null,
1677
1708
  position: 'center',
@@ -1701,12 +1732,12 @@ var Modal = function Modal(_ref) {
1701
1732
  }, children)));
1702
1733
  };
1703
1734
 
1704
- Modal.propTypes = propTypes$r;
1705
- Modal.defaultProps = defaultProps$r;
1735
+ Modal.propTypes = propTypes$s;
1736
+ Modal.defaultProps = defaultProps$s;
1706
1737
 
1707
1738
  var styles$k = {"container":"micromag-core-modals-dialog-container"};
1708
1739
 
1709
- var propTypes$q = {
1740
+ var propTypes$r = {
1710
1741
  title: core.PropTypes.label,
1711
1742
  header: PropTypes__default["default"].node,
1712
1743
  children: PropTypes__default["default"].node,
@@ -1716,7 +1747,7 @@ var propTypes$q = {
1716
1747
  onClickClose: PropTypes__default["default"].func,
1717
1748
  className: PropTypes__default["default"].string
1718
1749
  };
1719
- var defaultProps$q = {
1750
+ var defaultProps$r = {
1720
1751
  title: null,
1721
1752
  header: null,
1722
1753
  children: null,
@@ -1764,18 +1795,26 @@ var ModalDialog = function ModalDialog(_ref) {
1764
1795
  }) : null) : null));
1765
1796
  };
1766
1797
 
1767
- ModalDialog.propTypes = propTypes$q;
1768
- ModalDialog.defaultProps = defaultProps$q;
1798
+ ModalDialog.propTypes = propTypes$r;
1799
+ ModalDialog.defaultProps = defaultProps$r;
1769
1800
 
1770
1801
  // import classNames from 'classnames';
1771
- var propTypes$p = {
1802
+ var DashboardModal = /*#__PURE__*/React__default["default"].lazy(function () {
1803
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@uppy/react')); }).then(function (_ref) {
1804
+ var Component = _ref.DashboardModal;
1805
+ return {
1806
+ "default": Component
1807
+ };
1808
+ });
1809
+ });
1810
+ var propTypes$q = {
1772
1811
  type: PropTypes__default["default"].oneOfType([core.PropTypes.mediaTypes, PropTypes__default["default"].array]),
1773
1812
  opened: PropTypes__default["default"].bool,
1774
1813
  sources: PropTypes__default["default"].arrayOf(PropTypes__default["default"].string),
1775
1814
  onUploaded: PropTypes__default["default"].func,
1776
1815
  onRequestClose: PropTypes__default["default"].func
1777
1816
  };
1778
- var defaultProps$p = {
1817
+ var defaultProps$q = {
1779
1818
  type: null,
1780
1819
  opened: false,
1781
1820
  sources: ['webcam', 'facebook', 'instagram', 'dropbox', 'google-drive'],
@@ -1783,12 +1822,12 @@ var defaultProps$p = {
1783
1822
  onRequestClose: null
1784
1823
  };
1785
1824
 
1786
- var UploadModal = function UploadModal(_ref) {
1787
- var type = _ref.type,
1788
- opened = _ref.opened,
1789
- sources = _ref.sources,
1790
- onUploaded = _ref.onUploaded,
1791
- onRequestClose = _ref.onRequestClose;
1825
+ var UploadModal = function UploadModal(_ref2) {
1826
+ var type = _ref2.type,
1827
+ opened = _ref2.opened,
1828
+ sources = _ref2.sources,
1829
+ onUploaded = _ref2.onUploaded,
1830
+ onRequestClose = _ref2.onRequestClose;
1792
1831
  var onUppyComplete = React.useCallback(function (response) {
1793
1832
  if (onUploaded !== null) {
1794
1833
  onUploaded(response);
@@ -1815,26 +1854,28 @@ var UploadModal = function UploadModal(_ref) {
1815
1854
  uppy.reset();
1816
1855
  }
1817
1856
  }, [uppy, opened]);
1818
- return uppy !== null ? /*#__PURE__*/React__default["default"].createElement(react.DashboardModal, {
1857
+ return uppy !== null ? /*#__PURE__*/React__default["default"].createElement(React.Suspense, {
1858
+ fallback: /*#__PURE__*/React__default["default"].createElement("div", null)
1859
+ }, /*#__PURE__*/React__default["default"].createElement(DashboardModal, {
1819
1860
  uppy: uppy,
1820
1861
  open: opened,
1821
1862
  closeAfterFinish: true,
1822
1863
  onRequestClose: onRequestClose,
1823
1864
  plugins: sources
1824
- }) : null;
1865
+ })) : null;
1825
1866
  };
1826
1867
 
1827
- UploadModal.propTypes = propTypes$p;
1828
- UploadModal.defaultProps = defaultProps$p;
1868
+ UploadModal.propTypes = propTypes$q;
1869
+ UploadModal.defaultProps = defaultProps$q;
1829
1870
 
1830
1871
  var styles$j = {"container":"micromag-core-panels-container"};
1831
1872
 
1832
- var propTypes$o = {
1873
+ var propTypes$p = {
1833
1874
  panels: core.PropTypes.panels,
1834
1875
  setPanelsContainer: PropTypes__default["default"].func,
1835
1876
  className: PropTypes__default["default"].string
1836
1877
  };
1837
- var defaultProps$o = {
1878
+ var defaultProps$p = {
1838
1879
  panels: [],
1839
1880
  setPanelsContainer: null,
1840
1881
  className: null
@@ -1856,18 +1897,18 @@ var PanelsContainer = function PanelsContainer(_ref) {
1856
1897
  }));
1857
1898
  };
1858
1899
 
1859
- PanelsContainer.propTypes = propTypes$o;
1860
- PanelsContainer.defaultProps = defaultProps$o;
1900
+ PanelsContainer.propTypes = propTypes$p;
1901
+ PanelsContainer.defaultProps = defaultProps$p;
1861
1902
  var Panels = contexts.withPanels(PanelsContainer);
1862
1903
 
1863
1904
  /* eslint-disable react/no-array-index-key, react/jsx-props-no-spreading */
1864
- var propTypes$n = {
1905
+ var propTypes$o = {
1865
1906
  id: PropTypes__default["default"].string,
1866
1907
  data: PropTypes__default["default"].object,
1867
1908
  // eslint-disable-line react/forbid-prop-types
1868
1909
  children: PropTypes__default["default"].node
1869
1910
  };
1870
- var defaultProps$n = {
1911
+ var defaultProps$o = {
1871
1912
  id: null,
1872
1913
  data: null,
1873
1914
  children: null
@@ -1900,18 +1941,18 @@ var PanelPortal = function PanelPortal(_ref) {
1900
1941
  }, children);
1901
1942
  };
1902
1943
 
1903
- PanelPortal.propTypes = propTypes$n;
1904
- PanelPortal.defaultProps = defaultProps$n;
1944
+ PanelPortal.propTypes = propTypes$o;
1945
+ PanelPortal.defaultProps = defaultProps$o;
1905
1946
 
1906
1947
  var styles$i = {"container":"micromag-core-panels-panel-container"};
1907
1948
 
1908
1949
  /* eslint-disable react/no-array-index-key, react/jsx-props-no-spreading */
1909
- var propTypes$m = {
1950
+ var propTypes$n = {
1910
1951
  id: PropTypes__default["default"].string,
1911
1952
  title: PropTypes__default["default"].string,
1912
1953
  children: PropTypes__default["default"].node
1913
1954
  };
1914
- var defaultProps$m = {
1955
+ var defaultProps$n = {
1915
1956
  id: null,
1916
1957
  title: null,
1917
1958
  children: null
@@ -1937,12 +1978,12 @@ var Panel = function Panel(_ref) {
1937
1978
  }, children));
1938
1979
  };
1939
1980
 
1940
- Panel.propTypes = propTypes$m;
1941
- Panel.defaultProps = defaultProps$m;
1981
+ Panel.propTypes = propTypes$n;
1982
+ Panel.defaultProps = defaultProps$n;
1942
1983
 
1943
1984
  var styles$h = {"container":"micromag-core-partials-collapsable-panel-container","top":"micromag-core-partials-collapsable-panel-top","button":"micromag-core-partials-collapsable-panel-button","label":"micromag-core-partials-collapsable-panel-label","content":"micromag-core-partials-collapsable-panel-content","isOpened":"micromag-core-partials-collapsable-panel-isOpened"};
1944
1985
 
1945
- var propTypes$l = {
1986
+ var propTypes$m = {
1946
1987
  title: PropTypes__default["default"].node,
1947
1988
  children: PropTypes__default["default"].node,
1948
1989
  className: PropTypes__default["default"].string,
@@ -1951,7 +1992,7 @@ var propTypes$l = {
1951
1992
  openedClassName: PropTypes__default["default"].string,
1952
1993
  buttonClassName: PropTypes__default["default"].string
1953
1994
  };
1954
- var defaultProps$l = {
1995
+ var defaultProps$m = {
1955
1996
  title: null,
1956
1997
  children: null,
1957
1998
  className: null,
@@ -1988,7 +2029,7 @@ var CollapsablePanel = function CollapsablePanel(_ref) {
1988
2029
  withoutStyle: true,
1989
2030
  className: classNames__default["default"]([styles$h.button, _defineProperty__default["default"]({}, buttonClassName, buttonClassName !== null)]),
1990
2031
  icon: /*#__PURE__*/React__default["default"].createElement(reactFontawesome.FontAwesomeIcon, {
1991
- icon: opened ? freeSolidSvgIcons.faAngleUp : freeSolidSvgIcons.faAngleDown,
2032
+ icon: opened ? faAngleUp.faAngleUp : faAngleDown.faAngleDown,
1992
2033
  className: styles$h.icon
1993
2034
  }),
1994
2035
  iconPosition: "right",
@@ -1999,8 +2040,62 @@ var CollapsablePanel = function CollapsablePanel(_ref) {
1999
2040
  }, children));
2000
2041
  };
2001
2042
 
2002
- CollapsablePanel.propTypes = propTypes$l;
2003
- CollapsablePanel.defaultProps = defaultProps$l;
2043
+ CollapsablePanel.propTypes = propTypes$m;
2044
+ CollapsablePanel.defaultProps = defaultProps$m;
2045
+
2046
+ var propTypes$l = {
2047
+ stroke: PropTypes__default["default"].string,
2048
+ border: PropTypes__default["default"].string,
2049
+ fill: PropTypes__default["default"].string,
2050
+ className: PropTypes__default["default"].string
2051
+ };
2052
+ var defaultProps$l = {
2053
+ stroke: 'currentColor',
2054
+ border: 'rgba(0,0,0,0.67)',
2055
+ fill: '#fff',
2056
+ className: null
2057
+ };
2058
+
2059
+ var Close = function Close(_ref) {
2060
+ var stroke = _ref.stroke,
2061
+ border = _ref.border,
2062
+ fill = _ref.fill,
2063
+ className = _ref.className;
2064
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
2065
+ xmlns: "http://www.w3.org/2000/svg",
2066
+ width: "42.9",
2067
+ height: "42.9",
2068
+ viewBox: "0 0 42.9 42.9",
2069
+ className: className
2070
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
2071
+ transform: "translate(-352.531 -47.531)"
2072
+ }, border ? /*#__PURE__*/React__default["default"].createElement("path", {
2073
+ fill: border,
2074
+ d: "M374,47.5c11.9,0,21.5,9.6,21.5,21.5s-9.6,21.5-21.5,21.5s-21.5-9.6-21.5-21.5c0,0,0,0,0,0 C352.5,57.1,362.1,47.5,374,47.5z"
2075
+ }) : null, /*#__PURE__*/React__default["default"].createElement("path", {
2076
+ fill: fill,
2077
+ d: "M374,50c10.5,0,19,8.5,19,19s-8.5,19-19,19s-19-8.5-19-19S363.5,50,374,50z"
2078
+ }), /*#__PURE__*/React__default["default"].createElement("g", {
2079
+ transform: "translate(366.893 61.893)"
2080
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
2081
+ transform: "translate(0 0)"
2082
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
2083
+ fill: fill,
2084
+ stroke: stroke,
2085
+ strokeWidth: "2",
2086
+ strokeLinecap: "round",
2087
+ d: "M14.2,0.3L0,13.9"
2088
+ }), /*#__PURE__*/React__default["default"].createElement("path", {
2089
+ fill: fill,
2090
+ stroke: stroke,
2091
+ strokeWidth: "2",
2092
+ strokeLinecap: "round",
2093
+ d: "M0.3,0l13.7,14.2"
2094
+ })))));
2095
+ };
2096
+
2097
+ Close.propTypes = propTypes$l;
2098
+ Close.defaultProps = defaultProps$l;
2004
2099
 
2005
2100
  /* eslint-disable react/jsx-props-no-spreading */
2006
2101
  var propTypes$k = {
@@ -3168,7 +3263,7 @@ var AdFrame = function AdFrame(_ref) {
3168
3263
  height: height,
3169
3264
  className: className
3170
3265
  }, /*#__PURE__*/React__default["default"].createElement(reactFontawesome.FontAwesomeIcon, {
3171
- icon: freeSolidSvgIcons.faAd,
3266
+ icon: faAd.faAd,
3172
3267
  className: styles$c.icon
3173
3268
  }));
3174
3269
  };
@@ -3183,7 +3278,7 @@ var AdImage = function AdImage(_ref) {
3183
3278
  height: height,
3184
3279
  className: className
3185
3280
  }, /*#__PURE__*/React__default["default"].createElement(reactFontawesome.FontAwesomeIcon, {
3186
- icon: freeSolidSvgIcons.faImage,
3281
+ icon: faImage.faImage,
3187
3282
  className: styles$c.icon
3188
3283
  }));
3189
3284
  };
@@ -3200,7 +3295,7 @@ var Audio = function Audio(_ref) {
3200
3295
  height: height,
3201
3296
  className: className
3202
3297
  }, /*#__PURE__*/React__default["default"].createElement(reactFontawesome.FontAwesomeIcon, {
3203
- icon: freeSolidSvgIcons.faMusic,
3298
+ icon: faMusic.faMusic,
3204
3299
  className: styles$c.icon
3205
3300
  }));
3206
3301
  };
@@ -3280,7 +3375,7 @@ var Image = function Image(_ref) {
3280
3375
  height: height,
3281
3376
  className: className
3282
3377
  }, /*#__PURE__*/React__default["default"].createElement(reactFontawesome.FontAwesomeIcon, {
3283
- icon: freeSolidSvgIcons.faImage,
3378
+ icon: faImage.faImage,
3284
3379
  className: styles$c.icon
3285
3380
  }));
3286
3381
  };
@@ -3302,16 +3397,16 @@ var Map = function Map(props) {
3302
3397
  height: "100%",
3303
3398
  className: classNames__default["default"]([styles$a.container, _defineProperty__default["default"]({}, props.className, props.className !== null)])
3304
3399
  }), /*#__PURE__*/React__default["default"].createElement(reactFontawesome.FontAwesomeIcon, {
3305
- icon: props.withImages ? freeSolidSvgIcons.faImage : freeSolidSvgIcons.faMapMarkerAlt,
3400
+ icon: props.withImages ? faImage.faImage : faMapMarkerAlt.faMapMarkerAlt,
3306
3401
  className: styles$a.icon
3307
3402
  }), /*#__PURE__*/React__default["default"].createElement(reactFontawesome.FontAwesomeIcon, {
3308
- icon: props.withImages ? freeSolidSvgIcons.faImage : freeSolidSvgIcons.faMapMarkerAlt,
3403
+ icon: props.withImages ? faImage.faImage : faMapMarkerAlt.faMapMarkerAlt,
3309
3404
  className: styles$a.icon
3310
3405
  }), /*#__PURE__*/React__default["default"].createElement(reactFontawesome.FontAwesomeIcon, {
3311
- icon: props.withImages ? freeSolidSvgIcons.faImage : freeSolidSvgIcons.faMapMarkerAlt,
3406
+ icon: props.withImages ? faImage.faImage : faMapMarkerAlt.faMapMarkerAlt,
3312
3407
  className: styles$a.icon
3313
3408
  }), /*#__PURE__*/React__default["default"].createElement(reactFontawesome.FontAwesomeIcon, {
3314
- icon: props.withImages ? freeSolidSvgIcons.faImage : freeSolidSvgIcons.faMapMarkerAlt,
3409
+ icon: props.withImages ? faImage.faImage : faMapMarkerAlt.faMapMarkerAlt,
3315
3410
  className: styles$a.icon
3316
3411
  }));
3317
3412
  };
@@ -3323,7 +3418,7 @@ var MapPath = function MapPath(props) {
3323
3418
  height: "70%",
3324
3419
  className: classNames__default["default"]([props.className, styles$c.mapPath])
3325
3420
  }), /*#__PURE__*/React__default["default"].createElement(reactFontawesome.FontAwesomeIcon, {
3326
- icon: freeSolidSvgIcons.faMapMarkedAlt,
3421
+ icon: faMapMarkedAlt.faMapMarkedAlt,
3327
3422
  size: "lg",
3328
3423
  className: styles$c.icon
3329
3424
  }));
@@ -3400,7 +3495,7 @@ var Video = function Video(_ref) {
3400
3495
  height: height,
3401
3496
  className: className
3402
3497
  }, /*#__PURE__*/React__default["default"].createElement(reactFontawesome.FontAwesomeIcon, {
3403
- icon: freeSolidSvgIcons.faVideo,
3498
+ icon: faVideo.faVideo,
3404
3499
  className: styles$c.icon
3405
3500
  }));
3406
3501
  };
@@ -3417,7 +3512,7 @@ var Video360 = function Video360(_ref) {
3417
3512
  className: classNames__default["default"]([styles$9.container, _defineProperty__default["default"]({}, className, className !== null)]),
3418
3513
  boxClassName: styles$9.box
3419
3514
  }, /*#__PURE__*/React__default["default"].createElement(reactFontawesome.FontAwesomeIcon, {
3420
- icon: freeSolidSvgIcons.faVideo,
3515
+ icon: faVideo.faVideo,
3421
3516
  className: styles$9.icon
3422
3517
  }), /*#__PURE__*/React__default["default"].createElement("div", {
3423
3518
  className: styles$9.label
@@ -3434,10 +3529,10 @@ var VideoLoop = function VideoLoop(_ref) {
3434
3529
  height: height,
3435
3530
  className: className
3436
3531
  }, /*#__PURE__*/React__default["default"].createElement(reactFontawesome.FontAwesomeIcon, {
3437
- icon: freeSolidSvgIcons.faPlay,
3532
+ icon: faPlay.faPlay,
3438
3533
  className: styles$c.icon
3439
3534
  }), /*#__PURE__*/React__default["default"].createElement(reactFontawesome.FontAwesomeIcon, {
3440
- icon: freeSolidSvgIcons.faRedo,
3535
+ icon: faRedo.faRedo,
3441
3536
  className: styles$c.icon
3442
3537
  }));
3443
3538
  };
@@ -3761,7 +3856,7 @@ var Conversation = function Conversation() {
3761
3856
  className: classNames__default["default"]([styles$4.message, styles$4["placeholderMessage".concat(idx)]])
3762
3857
  });
3763
3858
  }), /*#__PURE__*/React__default["default"].createElement(reactFontawesome.FontAwesomeIcon, {
3764
- icon: freeSolidSvgIcons.faCommentDots,
3859
+ icon: faCommentDots.faCommentDots,
3765
3860
  className: styles$4.icon
3766
3861
  }));
3767
3862
  };
@@ -3799,7 +3894,7 @@ var Answer$1 = function Answer(_ref) {
3799
3894
  className: styles$3.answer
3800
3895
  }, /*#__PURE__*/React__default["default"].createElement(reactFontawesome.FontAwesomeIcon, {
3801
3896
  className: styles$3.answerIcon,
3802
- icon: good ? freeSolidSvgIcons.faCheck : freeSolidSvgIcons.faTimes
3897
+ icon: good ? faCheck.faCheck : faTimes.faTimes
3803
3898
  })), /*#__PURE__*/React__default["default"].createElement(PlaceholderBlock, {
3804
3899
  outline: true,
3805
3900
  width: width,
@@ -3833,7 +3928,7 @@ var Answer = function Answer(_ref) {
3833
3928
  className: styles$2.percent
3834
3929
  }, /*#__PURE__*/React__default["default"].createElement(reactFontawesome.FontAwesomeIcon, {
3835
3930
  className: styles$2.percentIcon,
3836
- icon: freeSolidSvgIcons.faPercent
3931
+ icon: faPercent.faPercent
3837
3932
  })));
3838
3933
  };
3839
3934
 
@@ -4294,6 +4389,7 @@ exports.Breadcrumb = Breadcrumb;
4294
4389
  exports.Button = Button$1;
4295
4390
  exports.Buttons = Buttons;
4296
4391
  exports.Card = Card;
4392
+ exports.Close = Close;
4297
4393
  exports.CollapsablePanel = CollapsablePanel;
4298
4394
  exports.Date = Date$1;
4299
4395
  exports.Detector = Detector;