@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/es/components.js +193 -116
- package/es/utils.js +11 -9
- package/lib/components.js +228 -132
- package/lib/utils.js +11 -9
- package/package.json +2 -2
package/es/components.js
CHANGED
|
@@ -2,13 +2,13 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import PropTypes$1 from 'prop-types';
|
|
5
|
-
import React, { useCallback, useState, useEffect, useRef, useMemo } from 'react';
|
|
5
|
+
import React, { useCallback, useState, useEffect, useRef, useMemo, Suspense } from 'react';
|
|
6
6
|
import { Link as Link$1 } from 'react-router-dom';
|
|
7
7
|
import { PropTypes } from '@micromag/core';
|
|
8
8
|
import { FormattedMessage, defineMessages, FormattedDate, FormattedTime } from 'react-intl';
|
|
9
9
|
import { isMessage, getFieldFromPath, getComponentFromName, setFieldValue, validateFields, getDisplayName, pascalCase, convertStyleToString } from '@micromag/core/utils';
|
|
10
10
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
11
|
-
import { faAngleLeft
|
|
11
|
+
import { faAngleLeft } from '@fortawesome/free-solid-svg-icons/faAngleLeft';
|
|
12
12
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
13
13
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
14
14
|
import { useFieldsManager, useFieldComponent, FieldContextProvider, withModals, useModals, useUppy, withPanels, usePanels, ScreenSizeProvider, useScreenComponent, ScreenProvider, useScreenRenderContext, useScreenSize } from '@micromag/core/contexts';
|
|
@@ -16,29 +16,42 @@ import { useForm, useDocumentEvent, useIntersectionObserver, useResizeObserver }
|
|
|
16
16
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
17
17
|
import get from 'lodash/get';
|
|
18
18
|
import ReactDOM from 'react-dom';
|
|
19
|
-
import { DashboardModal } from '@uppy/react';
|
|
20
19
|
import isArray from 'lodash/isArray';
|
|
20
|
+
import { faAngleDown } from '@fortawesome/free-solid-svg-icons/faAngleDown';
|
|
21
|
+
import { faAngleUp } from '@fortawesome/free-solid-svg-icons/faAngleUp';
|
|
21
22
|
import dayjs from 'dayjs';
|
|
22
23
|
import throttle from 'lodash/throttle';
|
|
23
24
|
import isObject from 'lodash/isObject';
|
|
24
25
|
import { Helmet } from 'react-helmet';
|
|
25
26
|
import isString from 'lodash/isString';
|
|
26
27
|
import 'snake-case';
|
|
28
|
+
import { faAd } from '@fortawesome/free-solid-svg-icons/faAd';
|
|
29
|
+
import { faImage } from '@fortawesome/free-solid-svg-icons/faImage';
|
|
30
|
+
import { faMusic } from '@fortawesome/free-solid-svg-icons/faMusic';
|
|
27
31
|
import isNumber from 'lodash/isNumber';
|
|
32
|
+
import { faMapMarkerAlt } from '@fortawesome/free-solid-svg-icons/faMapMarkerAlt';
|
|
33
|
+
import { faMapMarkedAlt } from '@fortawesome/free-solid-svg-icons/faMapMarkedAlt';
|
|
34
|
+
import { faVideo } from '@fortawesome/free-solid-svg-icons/faVideo';
|
|
35
|
+
import { faPlay } from '@fortawesome/free-solid-svg-icons/faPlay';
|
|
36
|
+
import { faRedo } from '@fortawesome/free-solid-svg-icons/faRedo';
|
|
28
37
|
import { getSizeWithinBounds } from '@folklore/size';
|
|
38
|
+
import { faCommentDots } from '@fortawesome/free-solid-svg-icons/faCommentDots';
|
|
39
|
+
import { faCheck } from '@fortawesome/free-solid-svg-icons/faCheck';
|
|
40
|
+
import { faTimes } from '@fortawesome/free-solid-svg-icons/faTimes';
|
|
41
|
+
import { faPercent } from '@fortawesome/free-solid-svg-icons/faPercent';
|
|
29
42
|
import { useSpring } from '@react-spring/core';
|
|
30
43
|
import { animated } from '@react-spring/web';
|
|
31
44
|
|
|
32
45
|
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"};
|
|
33
46
|
|
|
34
47
|
/* eslint-disable react/jsx-props-no-spreading */
|
|
35
|
-
var propTypes$
|
|
48
|
+
var propTypes$L = {
|
|
36
49
|
children: PropTypes.label.isRequired,
|
|
37
50
|
isHtml: PropTypes$1.bool,
|
|
38
51
|
values: PropTypes$1.object // eslint-disable-line react/forbid-prop-types
|
|
39
52
|
|
|
40
53
|
};
|
|
41
|
-
var defaultProps$
|
|
54
|
+
var defaultProps$L = {
|
|
42
55
|
isHtml: false,
|
|
43
56
|
values: {}
|
|
44
57
|
};
|
|
@@ -53,11 +66,11 @@ var Label = function Label(_ref) {
|
|
|
53
66
|
}, children)) : children;
|
|
54
67
|
};
|
|
55
68
|
|
|
56
|
-
Label.propTypes = propTypes$
|
|
57
|
-
Label.defaultProps = defaultProps$
|
|
69
|
+
Label.propTypes = propTypes$L;
|
|
70
|
+
Label.defaultProps = defaultProps$L;
|
|
58
71
|
|
|
59
72
|
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"];
|
|
60
|
-
var propTypes$
|
|
73
|
+
var propTypes$K = {
|
|
61
74
|
type: PropTypes$1.string,
|
|
62
75
|
theme: PropTypes.buttonTheme,
|
|
63
76
|
size: PropTypes.buttonSize,
|
|
@@ -90,7 +103,7 @@ var propTypes$J = {
|
|
|
90
103
|
|
|
91
104
|
})])
|
|
92
105
|
};
|
|
93
|
-
var defaultProps$
|
|
106
|
+
var defaultProps$K = {
|
|
94
107
|
type: 'button',
|
|
95
108
|
theme: null,
|
|
96
109
|
size: null,
|
|
@@ -206,13 +219,13 @@ var Button$1 = function Button(_ref) {
|
|
|
206
219
|
}), content);
|
|
207
220
|
};
|
|
208
221
|
|
|
209
|
-
Button$1.propTypes = propTypes$
|
|
210
|
-
Button$1.defaultProps = defaultProps$
|
|
222
|
+
Button$1.propTypes = propTypes$K;
|
|
223
|
+
Button$1.defaultProps = defaultProps$K;
|
|
211
224
|
|
|
212
225
|
var styles$u = {};
|
|
213
226
|
|
|
214
227
|
var _excluded$9 = ["className", "onClick", "theme"];
|
|
215
|
-
var propTypes$
|
|
228
|
+
var propTypes$J = {
|
|
216
229
|
buttons: PropTypes.buttons,
|
|
217
230
|
size: PropTypes.buttonSize,
|
|
218
231
|
theme: PropTypes.buttonTheme,
|
|
@@ -221,7 +234,7 @@ var propTypes$I = {
|
|
|
221
234
|
className: PropTypes$1.string,
|
|
222
235
|
buttonClassName: PropTypes$1.string
|
|
223
236
|
};
|
|
224
|
-
var defaultProps$
|
|
237
|
+
var defaultProps$J = {
|
|
225
238
|
buttons: [],
|
|
226
239
|
size: null,
|
|
227
240
|
theme: undefined,
|
|
@@ -271,14 +284,14 @@ var Buttons = function Buttons(_ref) {
|
|
|
271
284
|
}));
|
|
272
285
|
};
|
|
273
286
|
|
|
274
|
-
Buttons.propTypes = propTypes$
|
|
275
|
-
Buttons.defaultProps = defaultProps$
|
|
287
|
+
Buttons.propTypes = propTypes$J;
|
|
288
|
+
Buttons.defaultProps = defaultProps$J;
|
|
276
289
|
|
|
277
290
|
var _excluded$8 = ["className"];
|
|
278
|
-
var propTypes$
|
|
291
|
+
var propTypes$I = {
|
|
279
292
|
className: PropTypes$1.string
|
|
280
293
|
};
|
|
281
|
-
var defaultProps$
|
|
294
|
+
var defaultProps$I = {
|
|
282
295
|
className: null
|
|
283
296
|
};
|
|
284
297
|
|
|
@@ -296,14 +309,14 @@ var BackButton = function BackButton(_ref) {
|
|
|
296
309
|
}, props));
|
|
297
310
|
};
|
|
298
311
|
|
|
299
|
-
BackButton.propTypes = propTypes$
|
|
300
|
-
BackButton.defaultProps = defaultProps$
|
|
312
|
+
BackButton.propTypes = propTypes$I;
|
|
313
|
+
BackButton.defaultProps = defaultProps$I;
|
|
301
314
|
|
|
302
315
|
var styles$t = {"actions":"micromag-core-forms-form-actions","left":"micromag-core-forms-form-left","right":"micromag-core-forms-form-right"};
|
|
303
316
|
|
|
304
317
|
var _excluded$7 = ["type"],
|
|
305
318
|
_excluded2 = ["component", "id", "settings"];
|
|
306
|
-
var propTypes$
|
|
319
|
+
var propTypes$H = {
|
|
307
320
|
name: PropTypes$1.string,
|
|
308
321
|
// .isRequired,
|
|
309
322
|
value: PropTypes.component,
|
|
@@ -317,7 +330,7 @@ var propTypes$G = {
|
|
|
317
330
|
fieldContext: PropTypes$1.any // eslint-disable-line react/forbid-prop-types
|
|
318
331
|
|
|
319
332
|
};
|
|
320
|
-
var defaultProps$
|
|
333
|
+
var defaultProps$H = {
|
|
321
334
|
name: null,
|
|
322
335
|
form: null,
|
|
323
336
|
formComponents: {},
|
|
@@ -404,10 +417,10 @@ var FieldForm = function FieldForm(_ref) {
|
|
|
404
417
|
}, formProps))) : null;
|
|
405
418
|
};
|
|
406
419
|
|
|
407
|
-
FieldForm.propTypes = propTypes$
|
|
408
|
-
FieldForm.defaultProps = defaultProps$
|
|
420
|
+
FieldForm.propTypes = propTypes$H;
|
|
421
|
+
FieldForm.defaultProps = defaultProps$H;
|
|
409
422
|
|
|
410
|
-
var propTypes$
|
|
423
|
+
var propTypes$G = {
|
|
411
424
|
action: PropTypes$1.string.isRequired,
|
|
412
425
|
method: PropTypes$1.string,
|
|
413
426
|
fields: PropTypes.formFields,
|
|
@@ -434,7 +447,7 @@ var propTypes$F = {
|
|
|
434
447
|
actionsClassName: PropTypes$1.string,
|
|
435
448
|
cancelClassName: PropTypes$1.string
|
|
436
449
|
};
|
|
437
|
-
var defaultProps$
|
|
450
|
+
var defaultProps$G = {
|
|
438
451
|
method: 'POST',
|
|
439
452
|
fields: [],
|
|
440
453
|
initialValue: null,
|
|
@@ -648,13 +661,13 @@ var Form = function Form(_ref) {
|
|
|
648
661
|
})) : null) : null);
|
|
649
662
|
};
|
|
650
663
|
|
|
651
|
-
Form.propTypes = propTypes$
|
|
652
|
-
Form.defaultProps = defaultProps$
|
|
664
|
+
Form.propTypes = propTypes$G;
|
|
665
|
+
Form.defaultProps = defaultProps$G;
|
|
653
666
|
|
|
654
667
|
var styles$s = {"withoutStyle":"micromag-core-partials-link-withoutStyle"};
|
|
655
668
|
|
|
656
669
|
var _excluded$6 = ["href", "external", "children", "target", "rel", "className", "withoutStyle"];
|
|
657
|
-
var propTypes$
|
|
670
|
+
var propTypes$F = {
|
|
658
671
|
href: PropTypes$1.string,
|
|
659
672
|
external: PropTypes$1.bool,
|
|
660
673
|
target: PropTypes$1.string,
|
|
@@ -663,7 +676,7 @@ var propTypes$E = {
|
|
|
663
676
|
withoutStyle: PropTypes$1.bool,
|
|
664
677
|
className: PropTypes$1.string
|
|
665
678
|
};
|
|
666
|
-
var defaultProps$
|
|
679
|
+
var defaultProps$F = {
|
|
667
680
|
href: '',
|
|
668
681
|
external: false,
|
|
669
682
|
target: '_blank',
|
|
@@ -694,11 +707,11 @@ var Link = function Link(_ref) {
|
|
|
694
707
|
}, props), /*#__PURE__*/React.createElement(Label, null, children));
|
|
695
708
|
};
|
|
696
709
|
|
|
697
|
-
Link.propTypes = propTypes$
|
|
698
|
-
Link.defaultProps = defaultProps$
|
|
710
|
+
Link.propTypes = propTypes$F;
|
|
711
|
+
Link.defaultProps = defaultProps$F;
|
|
699
712
|
|
|
700
713
|
var _excluded$5 = ["label", "className"];
|
|
701
|
-
var propTypes$
|
|
714
|
+
var propTypes$E = {
|
|
702
715
|
href: PropTypes$1.string,
|
|
703
716
|
header: PropTypes$1.node,
|
|
704
717
|
image: PropTypes$1.node,
|
|
@@ -727,7 +740,7 @@ var propTypes$D = {
|
|
|
727
740
|
onClickBody: PropTypes$1.func,
|
|
728
741
|
onClickFooter: PropTypes$1.func
|
|
729
742
|
};
|
|
730
|
-
var defaultProps$
|
|
743
|
+
var defaultProps$E = {
|
|
731
744
|
href: null,
|
|
732
745
|
header: null,
|
|
733
746
|
image: null,
|
|
@@ -848,15 +861,15 @@ var Card = function Card(_ref) {
|
|
|
848
861
|
}, cardInner);
|
|
849
862
|
};
|
|
850
863
|
|
|
851
|
-
Card.propTypes = propTypes$
|
|
852
|
-
Card.defaultProps = defaultProps$
|
|
864
|
+
Card.propTypes = propTypes$E;
|
|
865
|
+
Card.defaultProps = defaultProps$E;
|
|
853
866
|
|
|
854
|
-
var propTypes$
|
|
867
|
+
var propTypes$D = {
|
|
855
868
|
animated: PropTypes$1.bool,
|
|
856
869
|
color: PropTypes$1.string,
|
|
857
870
|
className: PropTypes$1.string
|
|
858
871
|
};
|
|
859
|
-
var defaultProps$
|
|
872
|
+
var defaultProps$D = {
|
|
860
873
|
animated: true,
|
|
861
874
|
color: 'currentColor',
|
|
862
875
|
className: null
|
|
@@ -921,19 +934,19 @@ var Spinner = function Spinner(_ref) {
|
|
|
921
934
|
}) : null))));
|
|
922
935
|
};
|
|
923
936
|
|
|
924
|
-
Spinner.propTypes = propTypes$
|
|
925
|
-
Spinner.defaultProps = defaultProps$
|
|
937
|
+
Spinner.propTypes = propTypes$D;
|
|
938
|
+
Spinner.defaultProps = defaultProps$D;
|
|
926
939
|
|
|
927
940
|
var styles$r = {};
|
|
928
941
|
|
|
929
942
|
var _excluded$4 = ["description", "loading", "children", "className"];
|
|
930
|
-
var propTypes$
|
|
943
|
+
var propTypes$C = {
|
|
931
944
|
description: PropTypes$1.node,
|
|
932
945
|
loading: PropTypes$1.bool,
|
|
933
946
|
children: PropTypes$1.node,
|
|
934
947
|
className: PropTypes$1.string
|
|
935
948
|
};
|
|
936
|
-
var defaultProps$
|
|
949
|
+
var defaultProps$C = {
|
|
937
950
|
description: null,
|
|
938
951
|
loading: false,
|
|
939
952
|
children: null,
|
|
@@ -952,12 +965,12 @@ var FormPanel = function FormPanel(_ref) {
|
|
|
952
965
|
}, props), description, loading ? /*#__PURE__*/React.createElement(Spinner, null) : children);
|
|
953
966
|
};
|
|
954
967
|
|
|
955
|
-
FormPanel.propTypes = propTypes$
|
|
956
|
-
FormPanel.defaultProps = defaultProps$
|
|
968
|
+
FormPanel.propTypes = propTypes$C;
|
|
969
|
+
FormPanel.defaultProps = defaultProps$C;
|
|
957
970
|
|
|
958
971
|
var styles$q = {"container":"micromag-core-menus-breadcrumb-container","arrow":"micromag-core-menus-breadcrumb-arrow"};
|
|
959
972
|
|
|
960
|
-
var propTypes$
|
|
973
|
+
var propTypes$B = {
|
|
961
974
|
items: PropTypes.menuItems,
|
|
962
975
|
theme: PropTypes.bootstrapThemes,
|
|
963
976
|
separator: PropTypes$1.oneOf([null, 'arrow']),
|
|
@@ -965,7 +978,7 @@ var propTypes$A = {
|
|
|
965
978
|
noWrap: PropTypes$1.bool,
|
|
966
979
|
className: PropTypes$1.string
|
|
967
980
|
};
|
|
968
|
-
var defaultProps$
|
|
981
|
+
var defaultProps$B = {
|
|
969
982
|
items: [],
|
|
970
983
|
theme: null,
|
|
971
984
|
separator: null,
|
|
@@ -1015,11 +1028,11 @@ var Breadcrumb = function Breadcrumb(_ref) {
|
|
|
1015
1028
|
})));
|
|
1016
1029
|
};
|
|
1017
1030
|
|
|
1018
|
-
Breadcrumb.propTypes = propTypes$
|
|
1019
|
-
Breadcrumb.defaultProps = defaultProps$
|
|
1031
|
+
Breadcrumb.propTypes = propTypes$B;
|
|
1032
|
+
Breadcrumb.defaultProps = defaultProps$B;
|
|
1020
1033
|
|
|
1021
1034
|
var _excluded$3 = ["type", "className", "label", "children", "onClick", "active"];
|
|
1022
|
-
var propTypes$
|
|
1035
|
+
var propTypes$A = {
|
|
1023
1036
|
items: PropTypes.menuItems,
|
|
1024
1037
|
children: PropTypes$1.node,
|
|
1025
1038
|
visible: PropTypes$1.bool,
|
|
@@ -1029,7 +1042,7 @@ var propTypes$z = {
|
|
|
1029
1042
|
onClickItem: PropTypes$1.func,
|
|
1030
1043
|
onClickOutside: PropTypes$1.func
|
|
1031
1044
|
};
|
|
1032
|
-
var defaultProps$
|
|
1045
|
+
var defaultProps$A = {
|
|
1033
1046
|
items: [],
|
|
1034
1047
|
children: null,
|
|
1035
1048
|
visible: false,
|
|
@@ -1127,11 +1140,11 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
1127
1140
|
}));
|
|
1128
1141
|
};
|
|
1129
1142
|
|
|
1130
|
-
Dropdown.propTypes = propTypes$
|
|
1131
|
-
Dropdown.defaultProps = defaultProps$
|
|
1143
|
+
Dropdown.propTypes = propTypes$A;
|
|
1144
|
+
Dropdown.defaultProps = defaultProps$A;
|
|
1132
1145
|
|
|
1133
1146
|
var _excluded$2 = ["id", "className", "linkClassName", "href", "label", "external", "items", "dropdown", "active", "onClick"];
|
|
1134
|
-
var propTypes$
|
|
1147
|
+
var propTypes$z = {
|
|
1135
1148
|
items: PropTypes.menuItems,
|
|
1136
1149
|
tagName: PropTypes$1.string,
|
|
1137
1150
|
itemTagName: PropTypes$1.string,
|
|
@@ -1150,7 +1163,7 @@ var propTypes$y = {
|
|
|
1150
1163
|
dropdownLinkClassName: PropTypes$1.string,
|
|
1151
1164
|
dropdownAlign: PropTypes.dropdownAlign
|
|
1152
1165
|
};
|
|
1153
|
-
var defaultProps$
|
|
1166
|
+
var defaultProps$z = {
|
|
1154
1167
|
items: [],
|
|
1155
1168
|
tagName: 'ul',
|
|
1156
1169
|
itemTagName: 'li',
|
|
@@ -1274,12 +1287,12 @@ var Menu = function Menu(_ref) {
|
|
|
1274
1287
|
}));
|
|
1275
1288
|
};
|
|
1276
1289
|
|
|
1277
|
-
Menu.propTypes = propTypes$
|
|
1278
|
-
Menu.defaultProps = defaultProps$
|
|
1290
|
+
Menu.propTypes = propTypes$z;
|
|
1291
|
+
Menu.defaultProps = defaultProps$z;
|
|
1279
1292
|
|
|
1280
1293
|
var styles$p = {"collapse":"micromag-core-menus-navbar-collapse"};
|
|
1281
1294
|
|
|
1282
|
-
var propTypes$
|
|
1295
|
+
var propTypes$y = {
|
|
1283
1296
|
brand: PropTypes$1.node,
|
|
1284
1297
|
brandLink: PropTypes$1.string,
|
|
1285
1298
|
breadcrumbs: PropTypes$1.node,
|
|
@@ -1295,7 +1308,7 @@ var propTypes$x = {
|
|
|
1295
1308
|
breadCrumbsClassName: PropTypes$1.string,
|
|
1296
1309
|
collapseClassName: PropTypes$1.string
|
|
1297
1310
|
};
|
|
1298
|
-
var defaultProps$
|
|
1311
|
+
var defaultProps$y = {
|
|
1299
1312
|
brand: null,
|
|
1300
1313
|
brandLink: null,
|
|
1301
1314
|
breadcrumbs: null,
|
|
@@ -1371,8 +1384,8 @@ var Navbar = function Navbar(_ref) {
|
|
|
1371
1384
|
}, children) : children));
|
|
1372
1385
|
};
|
|
1373
1386
|
|
|
1374
|
-
Navbar.propTypes = propTypes$
|
|
1375
|
-
Navbar.defaultProps = defaultProps$
|
|
1387
|
+
Navbar.propTypes = propTypes$y;
|
|
1388
|
+
Navbar.defaultProps = defaultProps$y;
|
|
1376
1389
|
|
|
1377
1390
|
var styles$o = {};
|
|
1378
1391
|
|
|
@@ -1392,7 +1405,7 @@ var messages = defineMessages({
|
|
|
1392
1405
|
}]
|
|
1393
1406
|
}
|
|
1394
1407
|
});
|
|
1395
|
-
var propTypes$
|
|
1408
|
+
var propTypes$x = {
|
|
1396
1409
|
page: PropTypes$1.number,
|
|
1397
1410
|
total: PropTypes$1.number,
|
|
1398
1411
|
url: PropTypes$1.string,
|
|
@@ -1403,7 +1416,7 @@ var propTypes$w = {
|
|
|
1403
1416
|
linkClassName: PropTypes$1.string,
|
|
1404
1417
|
onClickPage: PropTypes$1.func
|
|
1405
1418
|
};
|
|
1406
|
-
var defaultProps$
|
|
1419
|
+
var defaultProps$x = {
|
|
1407
1420
|
page: 1,
|
|
1408
1421
|
total: 1,
|
|
1409
1422
|
url: null,
|
|
@@ -1477,12 +1490,12 @@ var PaginationMenu = function PaginationMenu(_ref) {
|
|
|
1477
1490
|
}, /*#__PURE__*/React.createElement(Label, null, messages.next))) : null));
|
|
1478
1491
|
};
|
|
1479
1492
|
|
|
1480
|
-
PaginationMenu.propTypes = propTypes$
|
|
1481
|
-
PaginationMenu.defaultProps = defaultProps$
|
|
1493
|
+
PaginationMenu.propTypes = propTypes$x;
|
|
1494
|
+
PaginationMenu.defaultProps = defaultProps$x;
|
|
1482
1495
|
|
|
1483
1496
|
var styles$n = {"container":"micromag-core-menus-tabs-container"};
|
|
1484
1497
|
|
|
1485
|
-
var propTypes$
|
|
1498
|
+
var propTypes$w = {
|
|
1486
1499
|
items: PropTypes.menuItems,
|
|
1487
1500
|
size: PropTypes.buttonSize,
|
|
1488
1501
|
theme: PropTypes.buttonTheme,
|
|
@@ -1491,7 +1504,7 @@ var propTypes$v = {
|
|
|
1491
1504
|
className: PropTypes$1.string,
|
|
1492
1505
|
onClickItem: PropTypes$1.func
|
|
1493
1506
|
};
|
|
1494
|
-
var defaultProps$
|
|
1507
|
+
var defaultProps$w = {
|
|
1495
1508
|
items: [],
|
|
1496
1509
|
size: null,
|
|
1497
1510
|
theme: 'secondary',
|
|
@@ -1522,17 +1535,17 @@ var TabsMenu = function TabsMenu(_ref) {
|
|
|
1522
1535
|
}));
|
|
1523
1536
|
};
|
|
1524
1537
|
|
|
1525
|
-
TabsMenu.propTypes = propTypes$
|
|
1526
|
-
TabsMenu.defaultProps = defaultProps$
|
|
1538
|
+
TabsMenu.propTypes = propTypes$w;
|
|
1539
|
+
TabsMenu.defaultProps = defaultProps$w;
|
|
1527
1540
|
|
|
1528
1541
|
var styles$m = {"container":"micromag-core-modals-container","modals":"micromag-core-modals-modals","hasModals":"micromag-core-modals-hasModals"};
|
|
1529
1542
|
|
|
1530
|
-
var propTypes$
|
|
1543
|
+
var propTypes$v = {
|
|
1531
1544
|
modals: PropTypes.modals.isRequired,
|
|
1532
1545
|
setModalsContainer: PropTypes$1.func.isRequired,
|
|
1533
1546
|
className: PropTypes$1.string
|
|
1534
1547
|
};
|
|
1535
|
-
var defaultProps$
|
|
1548
|
+
var defaultProps$v = {
|
|
1536
1549
|
className: null
|
|
1537
1550
|
};
|
|
1538
1551
|
|
|
@@ -1552,12 +1565,12 @@ var ModalsContainer = function ModalsContainer(_ref) {
|
|
|
1552
1565
|
}));
|
|
1553
1566
|
};
|
|
1554
1567
|
|
|
1555
|
-
ModalsContainer.propTypes = propTypes$
|
|
1556
|
-
ModalsContainer.defaultProps = defaultProps$
|
|
1568
|
+
ModalsContainer.propTypes = propTypes$v;
|
|
1569
|
+
ModalsContainer.defaultProps = defaultProps$v;
|
|
1557
1570
|
var Modals = withModals(ModalsContainer);
|
|
1558
1571
|
|
|
1559
1572
|
/* eslint-disable react/no-array-index-key, react/jsx-props-no-spreading */
|
|
1560
|
-
var propTypes$
|
|
1573
|
+
var propTypes$u = {
|
|
1561
1574
|
id: PropTypes$1.string,
|
|
1562
1575
|
data: PropTypes$1.object,
|
|
1563
1576
|
// eslint-disable-line react/forbid-prop-types
|
|
@@ -1567,7 +1580,7 @@ var propTypes$t = {
|
|
|
1567
1580
|
unregister: PropTypes$1.func,
|
|
1568
1581
|
children: PropTypes$1.node
|
|
1569
1582
|
};
|
|
1570
|
-
var defaultProps$
|
|
1583
|
+
var defaultProps$u = {
|
|
1571
1584
|
id: null,
|
|
1572
1585
|
data: null,
|
|
1573
1586
|
container: null,
|
|
@@ -1600,17 +1613,17 @@ var ElementPortal = function ElementPortal(_ref) {
|
|
|
1600
1613
|
return container !== null ? /*#__PURE__*/ReactDOM.createPortal(children, container) : null;
|
|
1601
1614
|
};
|
|
1602
1615
|
|
|
1603
|
-
ElementPortal.propTypes = propTypes$
|
|
1604
|
-
ElementPortal.defaultProps = defaultProps$
|
|
1616
|
+
ElementPortal.propTypes = propTypes$u;
|
|
1617
|
+
ElementPortal.defaultProps = defaultProps$u;
|
|
1605
1618
|
|
|
1606
1619
|
/* eslint-disable react/no-array-index-key, react/jsx-props-no-spreading */
|
|
1607
|
-
var propTypes$
|
|
1620
|
+
var propTypes$t = {
|
|
1608
1621
|
id: PropTypes$1.string,
|
|
1609
1622
|
data: PropTypes$1.object,
|
|
1610
1623
|
// eslint-disable-line react/forbid-prop-types
|
|
1611
1624
|
children: PropTypes$1.node
|
|
1612
1625
|
};
|
|
1613
|
-
var defaultProps$
|
|
1626
|
+
var defaultProps$t = {
|
|
1614
1627
|
id: null,
|
|
1615
1628
|
data: null,
|
|
1616
1629
|
children: null
|
|
@@ -1637,18 +1650,18 @@ var ModalPortal = function ModalPortal(_ref) {
|
|
|
1637
1650
|
}, children);
|
|
1638
1651
|
};
|
|
1639
1652
|
|
|
1640
|
-
ModalPortal.propTypes = propTypes$
|
|
1641
|
-
ModalPortal.defaultProps = defaultProps$
|
|
1653
|
+
ModalPortal.propTypes = propTypes$t;
|
|
1654
|
+
ModalPortal.defaultProps = defaultProps$t;
|
|
1642
1655
|
|
|
1643
1656
|
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"};
|
|
1644
1657
|
|
|
1645
|
-
var propTypes$
|
|
1658
|
+
var propTypes$s = {
|
|
1646
1659
|
id: PropTypes$1.string,
|
|
1647
1660
|
title: PropTypes$1.string,
|
|
1648
1661
|
position: PropTypes$1.oneOf(['center', 'top']),
|
|
1649
1662
|
children: PropTypes$1.node
|
|
1650
1663
|
};
|
|
1651
|
-
var defaultProps$
|
|
1664
|
+
var defaultProps$s = {
|
|
1652
1665
|
id: null,
|
|
1653
1666
|
title: null,
|
|
1654
1667
|
position: 'center',
|
|
@@ -1678,12 +1691,12 @@ var Modal = function Modal(_ref) {
|
|
|
1678
1691
|
}, children)));
|
|
1679
1692
|
};
|
|
1680
1693
|
|
|
1681
|
-
Modal.propTypes = propTypes$
|
|
1682
|
-
Modal.defaultProps = defaultProps$
|
|
1694
|
+
Modal.propTypes = propTypes$s;
|
|
1695
|
+
Modal.defaultProps = defaultProps$s;
|
|
1683
1696
|
|
|
1684
1697
|
var styles$k = {"container":"micromag-core-modals-dialog-container"};
|
|
1685
1698
|
|
|
1686
|
-
var propTypes$
|
|
1699
|
+
var propTypes$r = {
|
|
1687
1700
|
title: PropTypes.label,
|
|
1688
1701
|
header: PropTypes$1.node,
|
|
1689
1702
|
children: PropTypes$1.node,
|
|
@@ -1693,7 +1706,7 @@ var propTypes$q = {
|
|
|
1693
1706
|
onClickClose: PropTypes$1.func,
|
|
1694
1707
|
className: PropTypes$1.string
|
|
1695
1708
|
};
|
|
1696
|
-
var defaultProps$
|
|
1709
|
+
var defaultProps$r = {
|
|
1697
1710
|
title: null,
|
|
1698
1711
|
header: null,
|
|
1699
1712
|
children: null,
|
|
@@ -1741,18 +1754,26 @@ var ModalDialog = function ModalDialog(_ref) {
|
|
|
1741
1754
|
}) : null) : null));
|
|
1742
1755
|
};
|
|
1743
1756
|
|
|
1744
|
-
ModalDialog.propTypes = propTypes$
|
|
1745
|
-
ModalDialog.defaultProps = defaultProps$
|
|
1757
|
+
ModalDialog.propTypes = propTypes$r;
|
|
1758
|
+
ModalDialog.defaultProps = defaultProps$r;
|
|
1746
1759
|
|
|
1747
1760
|
// import classNames from 'classnames';
|
|
1748
|
-
var
|
|
1761
|
+
var DashboardModal = /*#__PURE__*/React.lazy(function () {
|
|
1762
|
+
return import('@uppy/react').then(function (_ref) {
|
|
1763
|
+
var Component = _ref.DashboardModal;
|
|
1764
|
+
return {
|
|
1765
|
+
"default": Component
|
|
1766
|
+
};
|
|
1767
|
+
});
|
|
1768
|
+
});
|
|
1769
|
+
var propTypes$q = {
|
|
1749
1770
|
type: PropTypes$1.oneOfType([PropTypes.mediaTypes, PropTypes$1.array]),
|
|
1750
1771
|
opened: PropTypes$1.bool,
|
|
1751
1772
|
sources: PropTypes$1.arrayOf(PropTypes$1.string),
|
|
1752
1773
|
onUploaded: PropTypes$1.func,
|
|
1753
1774
|
onRequestClose: PropTypes$1.func
|
|
1754
1775
|
};
|
|
1755
|
-
var defaultProps$
|
|
1776
|
+
var defaultProps$q = {
|
|
1756
1777
|
type: null,
|
|
1757
1778
|
opened: false,
|
|
1758
1779
|
sources: ['webcam', 'facebook', 'instagram', 'dropbox', 'google-drive'],
|
|
@@ -1760,12 +1781,12 @@ var defaultProps$p = {
|
|
|
1760
1781
|
onRequestClose: null
|
|
1761
1782
|
};
|
|
1762
1783
|
|
|
1763
|
-
var UploadModal = function UploadModal(
|
|
1764
|
-
var type =
|
|
1765
|
-
opened =
|
|
1766
|
-
sources =
|
|
1767
|
-
onUploaded =
|
|
1768
|
-
onRequestClose =
|
|
1784
|
+
var UploadModal = function UploadModal(_ref2) {
|
|
1785
|
+
var type = _ref2.type,
|
|
1786
|
+
opened = _ref2.opened,
|
|
1787
|
+
sources = _ref2.sources,
|
|
1788
|
+
onUploaded = _ref2.onUploaded,
|
|
1789
|
+
onRequestClose = _ref2.onRequestClose;
|
|
1769
1790
|
var onUppyComplete = useCallback(function (response) {
|
|
1770
1791
|
if (onUploaded !== null) {
|
|
1771
1792
|
onUploaded(response);
|
|
@@ -1792,26 +1813,28 @@ var UploadModal = function UploadModal(_ref) {
|
|
|
1792
1813
|
uppy.reset();
|
|
1793
1814
|
}
|
|
1794
1815
|
}, [uppy, opened]);
|
|
1795
|
-
return uppy !== null ? /*#__PURE__*/React.createElement(
|
|
1816
|
+
return uppy !== null ? /*#__PURE__*/React.createElement(Suspense, {
|
|
1817
|
+
fallback: /*#__PURE__*/React.createElement("div", null)
|
|
1818
|
+
}, /*#__PURE__*/React.createElement(DashboardModal, {
|
|
1796
1819
|
uppy: uppy,
|
|
1797
1820
|
open: opened,
|
|
1798
1821
|
closeAfterFinish: true,
|
|
1799
1822
|
onRequestClose: onRequestClose,
|
|
1800
1823
|
plugins: sources
|
|
1801
|
-
}) : null;
|
|
1824
|
+
})) : null;
|
|
1802
1825
|
};
|
|
1803
1826
|
|
|
1804
|
-
UploadModal.propTypes = propTypes$
|
|
1805
|
-
UploadModal.defaultProps = defaultProps$
|
|
1827
|
+
UploadModal.propTypes = propTypes$q;
|
|
1828
|
+
UploadModal.defaultProps = defaultProps$q;
|
|
1806
1829
|
|
|
1807
1830
|
var styles$j = {"container":"micromag-core-panels-container"};
|
|
1808
1831
|
|
|
1809
|
-
var propTypes$
|
|
1832
|
+
var propTypes$p = {
|
|
1810
1833
|
panels: PropTypes.panels,
|
|
1811
1834
|
setPanelsContainer: PropTypes$1.func,
|
|
1812
1835
|
className: PropTypes$1.string
|
|
1813
1836
|
};
|
|
1814
|
-
var defaultProps$
|
|
1837
|
+
var defaultProps$p = {
|
|
1815
1838
|
panels: [],
|
|
1816
1839
|
setPanelsContainer: null,
|
|
1817
1840
|
className: null
|
|
@@ -1833,18 +1856,18 @@ var PanelsContainer = function PanelsContainer(_ref) {
|
|
|
1833
1856
|
}));
|
|
1834
1857
|
};
|
|
1835
1858
|
|
|
1836
|
-
PanelsContainer.propTypes = propTypes$
|
|
1837
|
-
PanelsContainer.defaultProps = defaultProps$
|
|
1859
|
+
PanelsContainer.propTypes = propTypes$p;
|
|
1860
|
+
PanelsContainer.defaultProps = defaultProps$p;
|
|
1838
1861
|
var Panels = withPanels(PanelsContainer);
|
|
1839
1862
|
|
|
1840
1863
|
/* eslint-disable react/no-array-index-key, react/jsx-props-no-spreading */
|
|
1841
|
-
var propTypes$
|
|
1864
|
+
var propTypes$o = {
|
|
1842
1865
|
id: PropTypes$1.string,
|
|
1843
1866
|
data: PropTypes$1.object,
|
|
1844
1867
|
// eslint-disable-line react/forbid-prop-types
|
|
1845
1868
|
children: PropTypes$1.node
|
|
1846
1869
|
};
|
|
1847
|
-
var defaultProps$
|
|
1870
|
+
var defaultProps$o = {
|
|
1848
1871
|
id: null,
|
|
1849
1872
|
data: null,
|
|
1850
1873
|
children: null
|
|
@@ -1877,18 +1900,18 @@ var PanelPortal = function PanelPortal(_ref) {
|
|
|
1877
1900
|
}, children);
|
|
1878
1901
|
};
|
|
1879
1902
|
|
|
1880
|
-
PanelPortal.propTypes = propTypes$
|
|
1881
|
-
PanelPortal.defaultProps = defaultProps$
|
|
1903
|
+
PanelPortal.propTypes = propTypes$o;
|
|
1904
|
+
PanelPortal.defaultProps = defaultProps$o;
|
|
1882
1905
|
|
|
1883
1906
|
var styles$i = {"container":"micromag-core-panels-panel-container"};
|
|
1884
1907
|
|
|
1885
1908
|
/* eslint-disable react/no-array-index-key, react/jsx-props-no-spreading */
|
|
1886
|
-
var propTypes$
|
|
1909
|
+
var propTypes$n = {
|
|
1887
1910
|
id: PropTypes$1.string,
|
|
1888
1911
|
title: PropTypes$1.string,
|
|
1889
1912
|
children: PropTypes$1.node
|
|
1890
1913
|
};
|
|
1891
|
-
var defaultProps$
|
|
1914
|
+
var defaultProps$n = {
|
|
1892
1915
|
id: null,
|
|
1893
1916
|
title: null,
|
|
1894
1917
|
children: null
|
|
@@ -1914,12 +1937,12 @@ var Panel = function Panel(_ref) {
|
|
|
1914
1937
|
}, children));
|
|
1915
1938
|
};
|
|
1916
1939
|
|
|
1917
|
-
Panel.propTypes = propTypes$
|
|
1918
|
-
Panel.defaultProps = defaultProps$
|
|
1940
|
+
Panel.propTypes = propTypes$n;
|
|
1941
|
+
Panel.defaultProps = defaultProps$n;
|
|
1919
1942
|
|
|
1920
1943
|
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"};
|
|
1921
1944
|
|
|
1922
|
-
var propTypes$
|
|
1945
|
+
var propTypes$m = {
|
|
1923
1946
|
title: PropTypes$1.node,
|
|
1924
1947
|
children: PropTypes$1.node,
|
|
1925
1948
|
className: PropTypes$1.string,
|
|
@@ -1928,7 +1951,7 @@ var propTypes$l = {
|
|
|
1928
1951
|
openedClassName: PropTypes$1.string,
|
|
1929
1952
|
buttonClassName: PropTypes$1.string
|
|
1930
1953
|
};
|
|
1931
|
-
var defaultProps$
|
|
1954
|
+
var defaultProps$m = {
|
|
1932
1955
|
title: null,
|
|
1933
1956
|
children: null,
|
|
1934
1957
|
className: null,
|
|
@@ -1976,8 +1999,62 @@ var CollapsablePanel = function CollapsablePanel(_ref) {
|
|
|
1976
1999
|
}, children));
|
|
1977
2000
|
};
|
|
1978
2001
|
|
|
1979
|
-
CollapsablePanel.propTypes = propTypes$
|
|
1980
|
-
CollapsablePanel.defaultProps = defaultProps$
|
|
2002
|
+
CollapsablePanel.propTypes = propTypes$m;
|
|
2003
|
+
CollapsablePanel.defaultProps = defaultProps$m;
|
|
2004
|
+
|
|
2005
|
+
var propTypes$l = {
|
|
2006
|
+
stroke: PropTypes$1.string,
|
|
2007
|
+
border: PropTypes$1.string,
|
|
2008
|
+
fill: PropTypes$1.string,
|
|
2009
|
+
className: PropTypes$1.string
|
|
2010
|
+
};
|
|
2011
|
+
var defaultProps$l = {
|
|
2012
|
+
stroke: 'currentColor',
|
|
2013
|
+
border: 'rgba(0,0,0,0.67)',
|
|
2014
|
+
fill: '#fff',
|
|
2015
|
+
className: null
|
|
2016
|
+
};
|
|
2017
|
+
|
|
2018
|
+
var Close = function Close(_ref) {
|
|
2019
|
+
var stroke = _ref.stroke,
|
|
2020
|
+
border = _ref.border,
|
|
2021
|
+
fill = _ref.fill,
|
|
2022
|
+
className = _ref.className;
|
|
2023
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
2024
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2025
|
+
width: "42.9",
|
|
2026
|
+
height: "42.9",
|
|
2027
|
+
viewBox: "0 0 42.9 42.9",
|
|
2028
|
+
className: className
|
|
2029
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
2030
|
+
transform: "translate(-352.531 -47.531)"
|
|
2031
|
+
}, border ? /*#__PURE__*/React.createElement("path", {
|
|
2032
|
+
fill: border,
|
|
2033
|
+
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"
|
|
2034
|
+
}) : null, /*#__PURE__*/React.createElement("path", {
|
|
2035
|
+
fill: fill,
|
|
2036
|
+
d: "M374,50c10.5,0,19,8.5,19,19s-8.5,19-19,19s-19-8.5-19-19S363.5,50,374,50z"
|
|
2037
|
+
}), /*#__PURE__*/React.createElement("g", {
|
|
2038
|
+
transform: "translate(366.893 61.893)"
|
|
2039
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
2040
|
+
transform: "translate(0 0)"
|
|
2041
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
2042
|
+
fill: fill,
|
|
2043
|
+
stroke: stroke,
|
|
2044
|
+
strokeWidth: "2",
|
|
2045
|
+
strokeLinecap: "round",
|
|
2046
|
+
d: "M14.2,0.3L0,13.9"
|
|
2047
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
2048
|
+
fill: fill,
|
|
2049
|
+
stroke: stroke,
|
|
2050
|
+
strokeWidth: "2",
|
|
2051
|
+
strokeLinecap: "round",
|
|
2052
|
+
d: "M0.3,0l13.7,14.2"
|
|
2053
|
+
})))));
|
|
2054
|
+
};
|
|
2055
|
+
|
|
2056
|
+
Close.propTypes = propTypes$l;
|
|
2057
|
+
Close.defaultProps = defaultProps$l;
|
|
1981
2058
|
|
|
1982
2059
|
/* eslint-disable react/jsx-props-no-spreading */
|
|
1983
2060
|
var propTypes$k = {
|
|
@@ -4266,4 +4343,4 @@ var LinkStyle = function LinkStyle(_ref) {
|
|
|
4266
4343
|
LinkStyle.propTypes = propTypes;
|
|
4267
4344
|
LinkStyle.defaultProps = defaultProps;
|
|
4268
4345
|
|
|
4269
|
-
export { BackButton, Breadcrumb, Button$1 as Button, Buttons, Card, CollapsablePanel, Date$1 as Date, Detector, Dropdown as DropdownMenu, ElementComponent as Element, Empty, FieldForm, FontFaces, Form, FormPanel, HighlightStyle, Label, Link, LinkStyle, Media, Menu, Meta, Modal, ModalDialog, ModalPortal, Modals, Navbar, PaginationMenu as Pagination, Panel, PanelPortal, Panels, AdFrame as PlaceholderAdFrame, AdImage as PlaceholderAdImage, Audio as PlaceholderAudio, Button as PlaceholderButton, Image as PlaceholderImage, Line as PlaceholderLine, Map as PlaceholderMap, MapPath as PlaceholderMapPath, Quote as PlaceholderQuote, ShortText as PlaceholderShortText, Subtitle as PlaceholderSubtitle, TextPlaceholder as PlaceholderText, Timeline as PlaceholderTimeline, Title as PlaceholderTitle, Video as PlaceholderVideo, Video360 as PlaceholderVideo360, VideoLoop as PlaceholderVideoLoop, Screen$1 as Screen, ScreenElement, Placeholder as ScreenPlaceholder, Preview as ScreenPreview, ScreenSizer, Screens, Slideshow, Spinner, TabsMenu as Tabs, Transitions, TransitionsStagger, UploadModal };
|
|
4346
|
+
export { BackButton, Breadcrumb, Button$1 as Button, Buttons, Card, Close, CollapsablePanel, Date$1 as Date, Detector, Dropdown as DropdownMenu, ElementComponent as Element, Empty, FieldForm, FontFaces, Form, FormPanel, HighlightStyle, Label, Link, LinkStyle, Media, Menu, Meta, Modal, ModalDialog, ModalPortal, Modals, Navbar, PaginationMenu as Pagination, Panel, PanelPortal, Panels, AdFrame as PlaceholderAdFrame, AdImage as PlaceholderAdImage, Audio as PlaceholderAudio, Button as PlaceholderButton, Image as PlaceholderImage, Line as PlaceholderLine, Map as PlaceholderMap, MapPath as PlaceholderMapPath, Quote as PlaceholderQuote, ShortText as PlaceholderShortText, Subtitle as PlaceholderSubtitle, TextPlaceholder as PlaceholderText, Timeline as PlaceholderTimeline, Title as PlaceholderTitle, Video as PlaceholderVideo, Video360 as PlaceholderVideo360, VideoLoop as PlaceholderVideoLoop, Screen$1 as Screen, ScreenElement, Placeholder as ScreenPlaceholder, Preview as ScreenPreview, ScreenSizer, Screens, Slideshow, Spinner, TabsMenu as Tabs, Transitions, TransitionsStagger, UploadModal };
|