@micromag/core 0.3.516 → 0.3.518
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/assets/css/styles.css +2 -3
- package/es/components.js +125 -201
- package/lib/components.js +123 -200
- package/package.json +2 -2
package/es/components.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import PropTypes$1 from 'prop-types';
|
|
3
|
-
import React, { useCallback, useState, useEffect, useRef, useMemo
|
|
3
|
+
import React, { useCallback, useState, useEffect, useRef, useMemo } from 'react';
|
|
4
4
|
import { PropTypes } from '@micromag/core';
|
|
5
5
|
import { isMessage, getFieldFromPath, getComponentFromName, setFieldValue, validateFields, getDisplayName, pascalCase, convertStyleToString } from '@micromag/core/utils';
|
|
6
6
|
import { useFieldsManager, useFieldComponent, FieldContextProvider, withModals, useModals, withPanels, usePanels, ScreenSizeProvider, useScreenComponent, ScreenProvider, useScreenRenderContext, useScreenSize } from '@micromag/core/contexts';
|
|
@@ -19,8 +19,6 @@ import { useForm, useDocumentEvent, useIntersectionObserver, useDimensionObserve
|
|
|
19
19
|
import get from 'lodash/get';
|
|
20
20
|
import queryString from 'query-string';
|
|
21
21
|
import ReactDOM from 'react-dom';
|
|
22
|
-
import isArray from 'lodash/isArray';
|
|
23
|
-
import { useUppy } from '@panneau/uppy';
|
|
24
22
|
import { faAngleDown } from '@fortawesome/free-solid-svg-icons/faAngleDown';
|
|
25
23
|
import { faAngleUp } from '@fortawesome/free-solid-svg-icons/faAngleUp';
|
|
26
24
|
import dayjs from 'dayjs';
|
|
@@ -28,6 +26,7 @@ import throttle from 'lodash/throttle';
|
|
|
28
26
|
import isObject from 'lodash/isObject';
|
|
29
27
|
import { Helmet } from 'react-helmet';
|
|
30
28
|
import isString from 'lodash/isString';
|
|
29
|
+
import isArray from 'lodash/isArray';
|
|
31
30
|
import { faAd } from '@fortawesome/free-solid-svg-icons/faAd';
|
|
32
31
|
import { faImage } from '@fortawesome/free-solid-svg-icons/faImage';
|
|
33
32
|
import { faMusic } from '@fortawesome/free-solid-svg-icons/faMusic';
|
|
@@ -45,12 +44,12 @@ import { faCircle } from '@fortawesome/free-solid-svg-icons/faCircle';
|
|
|
45
44
|
import { faPercent } from '@fortawesome/free-solid-svg-icons/faPercent';
|
|
46
45
|
|
|
47
46
|
/* eslint-disable react/jsx-props-no-spreading */
|
|
48
|
-
var propTypes$
|
|
47
|
+
var propTypes$S = {
|
|
49
48
|
children: PropTypes.label.isRequired,
|
|
50
49
|
isHtml: PropTypes$1.bool,
|
|
51
50
|
values: PropTypes$1.object // eslint-disable-line react/forbid-prop-types
|
|
52
51
|
};
|
|
53
|
-
var defaultProps$
|
|
52
|
+
var defaultProps$S = {
|
|
54
53
|
isHtml: false,
|
|
55
54
|
values: {}
|
|
56
55
|
};
|
|
@@ -63,14 +62,14 @@ var Label = function Label(_ref) {
|
|
|
63
62
|
values: values
|
|
64
63
|
}, children)) : children;
|
|
65
64
|
};
|
|
66
|
-
Label.propTypes = propTypes$
|
|
67
|
-
Label.defaultProps = defaultProps$
|
|
65
|
+
Label.propTypes = propTypes$S;
|
|
66
|
+
Label.defaultProps = defaultProps$S;
|
|
68
67
|
var Label$1 = Label;
|
|
69
68
|
|
|
70
69
|
var styles$x = {"container":"micromag-core-buttons-button-container","asLink":"micromag-core-buttons-button-asLink","withoutStyle":"micromag-core-buttons-button-withoutStyle","icon":"micromag-core-buttons-button-icon","label":"micromag-core-buttons-button-label","withIcon":"micromag-core-buttons-button-withIcon","right":"micromag-core-buttons-button-right","withAnimations":"micromag-core-buttons-button-withAnimations","icon-right":"micromag-core-buttons-button-icon-right","withIconColumns":"micromag-core-buttons-button-withIconColumns","linkDisabled":"micromag-core-buttons-button-linkDisabled"};
|
|
71
70
|
|
|
72
71
|
var _excluded$b = ["type", "theme", "size", "href", "external", "direct", "target", "label", "children", "focusable", "active", "icon", "iconPosition", "disabled", "loading", "disableOnLoading", "small", "big", "withShadow", "withoutStyle", "withoutBootstrapStyles", "withoutTheme", "asLink", "outline", "onClick", "className", "iconClassName", "labelClassName", "refButton"];
|
|
73
|
-
var propTypes$
|
|
72
|
+
var propTypes$R = {
|
|
74
73
|
type: PropTypes$1.string,
|
|
75
74
|
theme: PropTypes.buttonTheme,
|
|
76
75
|
size: PropTypes.buttonSize,
|
|
@@ -103,7 +102,7 @@ var propTypes$S = {
|
|
|
103
102
|
current: PropTypes$1.any // eslint-disable-line
|
|
104
103
|
})])
|
|
105
104
|
};
|
|
106
|
-
var defaultProps$
|
|
105
|
+
var defaultProps$R = {
|
|
107
106
|
type: 'button',
|
|
108
107
|
theme: null,
|
|
109
108
|
size: null,
|
|
@@ -215,14 +214,14 @@ var Button$2 = function Button(_ref) {
|
|
|
215
214
|
tabIndex: focusable ? '0' : '-1'
|
|
216
215
|
}), content);
|
|
217
216
|
};
|
|
218
|
-
Button$2.propTypes = propTypes$
|
|
219
|
-
Button$2.defaultProps = defaultProps$
|
|
217
|
+
Button$2.propTypes = propTypes$R;
|
|
218
|
+
Button$2.defaultProps = defaultProps$R;
|
|
220
219
|
var Button$3 = Button$2;
|
|
221
220
|
|
|
222
221
|
var styles$w = {};
|
|
223
222
|
|
|
224
223
|
var _excluded$a = ["className", "onClick", "theme"];
|
|
225
|
-
var propTypes$
|
|
224
|
+
var propTypes$Q = {
|
|
226
225
|
buttons: PropTypes.buttons,
|
|
227
226
|
size: PropTypes.buttonSize,
|
|
228
227
|
theme: PropTypes.buttonTheme,
|
|
@@ -231,7 +230,7 @@ var propTypes$R = {
|
|
|
231
230
|
className: PropTypes$1.string,
|
|
232
231
|
buttonClassName: PropTypes$1.string
|
|
233
232
|
};
|
|
234
|
-
var defaultProps$
|
|
233
|
+
var defaultProps$Q = {
|
|
235
234
|
buttons: [],
|
|
236
235
|
size: null,
|
|
237
236
|
theme: undefined,
|
|
@@ -275,15 +274,15 @@ var Buttons = function Buttons(_ref) {
|
|
|
275
274
|
return renderButton !== null ? renderButton(button, index, fixedProps) : /*#__PURE__*/React.createElement(Button$3, Object.assign({}, fixedProps, buttonProps));
|
|
276
275
|
}));
|
|
277
276
|
};
|
|
278
|
-
Buttons.propTypes = propTypes$
|
|
279
|
-
Buttons.defaultProps = defaultProps$
|
|
277
|
+
Buttons.propTypes = propTypes$Q;
|
|
278
|
+
Buttons.defaultProps = defaultProps$Q;
|
|
280
279
|
var Buttons$1 = Buttons;
|
|
281
280
|
|
|
282
281
|
var _excluded$9 = ["className"];
|
|
283
|
-
var propTypes$
|
|
282
|
+
var propTypes$P = {
|
|
284
283
|
className: PropTypes$1.string
|
|
285
284
|
};
|
|
286
|
-
var defaultProps$
|
|
285
|
+
var defaultProps$P = {
|
|
287
286
|
className: null
|
|
288
287
|
};
|
|
289
288
|
var BackButton = function BackButton(_ref) {
|
|
@@ -298,13 +297,13 @@ var BackButton = function BackButton(_ref) {
|
|
|
298
297
|
})
|
|
299
298
|
}, props));
|
|
300
299
|
};
|
|
301
|
-
BackButton.propTypes = propTypes$
|
|
302
|
-
BackButton.defaultProps = defaultProps$
|
|
300
|
+
BackButton.propTypes = propTypes$P;
|
|
301
|
+
BackButton.defaultProps = defaultProps$P;
|
|
303
302
|
var BackButton$1 = BackButton;
|
|
304
303
|
|
|
305
304
|
var _excluded$8 = ["type"],
|
|
306
305
|
_excluded2 = ["component", "id", "settings"];
|
|
307
|
-
var propTypes$
|
|
306
|
+
var propTypes$O = {
|
|
308
307
|
name: PropTypes$1.string,
|
|
309
308
|
// .isRequired,
|
|
310
309
|
value: PropTypes.component,
|
|
@@ -317,7 +316,7 @@ var propTypes$P = {
|
|
|
317
316
|
closeFieldForm: PropTypes$1.func.isRequired,
|
|
318
317
|
fieldContext: PropTypes$1.any // eslint-disable-line react/forbid-prop-types
|
|
319
318
|
};
|
|
320
|
-
var defaultProps$
|
|
319
|
+
var defaultProps$O = {
|
|
321
320
|
name: null,
|
|
322
321
|
form: null,
|
|
323
322
|
formComponents: {},
|
|
@@ -394,13 +393,13 @@ var FieldForm = function FieldForm(_ref) {
|
|
|
394
393
|
isForm: true
|
|
395
394
|
}, formProps))) : null;
|
|
396
395
|
};
|
|
397
|
-
FieldForm.propTypes = propTypes$
|
|
398
|
-
FieldForm.defaultProps = defaultProps$
|
|
396
|
+
FieldForm.propTypes = propTypes$O;
|
|
397
|
+
FieldForm.defaultProps = defaultProps$O;
|
|
399
398
|
var FieldForm$1 = FieldForm;
|
|
400
399
|
|
|
401
400
|
var styles$v = {"actions":"micromag-core-forms-form-actions","left":"micromag-core-forms-form-left","right":"micromag-core-forms-form-right"};
|
|
402
401
|
|
|
403
|
-
var propTypes$
|
|
402
|
+
var propTypes$N = {
|
|
404
403
|
action: PropTypes$1.string.isRequired,
|
|
405
404
|
method: PropTypes$1.string,
|
|
406
405
|
fields: PropTypes.formFields,
|
|
@@ -429,7 +428,7 @@ var propTypes$O = {
|
|
|
429
428
|
actionsClassName: PropTypes$1.string,
|
|
430
429
|
cancelClassName: PropTypes$1.string
|
|
431
430
|
};
|
|
432
|
-
var defaultProps$
|
|
431
|
+
var defaultProps$N = {
|
|
433
432
|
method: 'POST',
|
|
434
433
|
fields: [],
|
|
435
434
|
initialValue: null,
|
|
@@ -632,14 +631,14 @@ var Form = function Form(_ref) {
|
|
|
632
631
|
}]
|
|
633
632
|
})) : null) : null);
|
|
634
633
|
};
|
|
635
|
-
Form.propTypes = propTypes$
|
|
636
|
-
Form.defaultProps = defaultProps$
|
|
634
|
+
Form.propTypes = propTypes$N;
|
|
635
|
+
Form.defaultProps = defaultProps$N;
|
|
637
636
|
var Form$1 = Form;
|
|
638
637
|
|
|
639
638
|
var styles$u = {"withoutStyle":"micromag-core-partials-link-withoutStyle"};
|
|
640
639
|
|
|
641
640
|
var _excluded$7 = ["href", "external", "children", "target", "rel", "className", "withoutStyle"];
|
|
642
|
-
var propTypes$
|
|
641
|
+
var propTypes$M = {
|
|
643
642
|
href: PropTypes$1.string,
|
|
644
643
|
external: PropTypes$1.bool,
|
|
645
644
|
target: PropTypes$1.string,
|
|
@@ -648,7 +647,7 @@ var propTypes$N = {
|
|
|
648
647
|
withoutStyle: PropTypes$1.bool,
|
|
649
648
|
className: PropTypes$1.string
|
|
650
649
|
};
|
|
651
|
-
var defaultProps$
|
|
650
|
+
var defaultProps$M = {
|
|
652
651
|
href: '',
|
|
653
652
|
external: false,
|
|
654
653
|
target: '_blank',
|
|
@@ -676,12 +675,12 @@ var Link = function Link(_ref) {
|
|
|
676
675
|
href: href
|
|
677
676
|
}, props), /*#__PURE__*/React.createElement(Label$1, null, children));
|
|
678
677
|
};
|
|
679
|
-
Link.propTypes = propTypes$
|
|
680
|
-
Link.defaultProps = defaultProps$
|
|
678
|
+
Link.propTypes = propTypes$M;
|
|
679
|
+
Link.defaultProps = defaultProps$M;
|
|
681
680
|
var Link$1 = Link;
|
|
682
681
|
|
|
683
682
|
var _excluded$6 = ["label", "className"];
|
|
684
|
-
var propTypes$
|
|
683
|
+
var propTypes$L = {
|
|
685
684
|
href: PropTypes$1.string,
|
|
686
685
|
header: PropTypes$1.node,
|
|
687
686
|
image: PropTypes$1.node,
|
|
@@ -710,7 +709,7 @@ var propTypes$M = {
|
|
|
710
709
|
onClickBody: PropTypes$1.func,
|
|
711
710
|
onClickFooter: PropTypes$1.func
|
|
712
711
|
};
|
|
713
|
-
var defaultProps$
|
|
712
|
+
var defaultProps$L = {
|
|
714
713
|
href: null,
|
|
715
714
|
header: null,
|
|
716
715
|
image: null,
|
|
@@ -823,19 +822,19 @@ var Card = function Card(_ref) {
|
|
|
823
822
|
className: cardClassName
|
|
824
823
|
}, cardInner);
|
|
825
824
|
};
|
|
826
|
-
Card.propTypes = propTypes$
|
|
827
|
-
Card.defaultProps = defaultProps$
|
|
825
|
+
Card.propTypes = propTypes$L;
|
|
826
|
+
Card.defaultProps = defaultProps$L;
|
|
828
827
|
var Card$1 = Card;
|
|
829
828
|
|
|
830
829
|
var styles$t = {"container":"micromag-core-partials-spinner-container","path":"micromag-core-partials-spinner-path","animated":"micromag-core-partials-spinner-animated","rotate":"micromag-core-partials-spinner-rotate","dash":"micromag-core-partials-spinner-dash"};
|
|
831
830
|
|
|
832
|
-
var propTypes$
|
|
831
|
+
var propTypes$K = {
|
|
833
832
|
animated: PropTypes$1.bool,
|
|
834
833
|
color: PropTypes$1.string,
|
|
835
834
|
strokeWidth: PropTypes$1.number,
|
|
836
835
|
className: PropTypes$1.string
|
|
837
836
|
};
|
|
838
|
-
var defaultProps$
|
|
837
|
+
var defaultProps$K = {
|
|
839
838
|
animated: true,
|
|
840
839
|
color: 'currentColor',
|
|
841
840
|
strokeWidth: 3,
|
|
@@ -862,20 +861,20 @@ var Spinner = function Spinner(_ref) {
|
|
|
862
861
|
strokeWidth: strokeWidth
|
|
863
862
|
}));
|
|
864
863
|
};
|
|
865
|
-
Spinner.propTypes = propTypes$
|
|
866
|
-
Spinner.defaultProps = defaultProps$
|
|
864
|
+
Spinner.propTypes = propTypes$K;
|
|
865
|
+
Spinner.defaultProps = defaultProps$K;
|
|
867
866
|
var Spinner$1 = Spinner;
|
|
868
867
|
|
|
869
868
|
var styles$s = {};
|
|
870
869
|
|
|
871
870
|
var _excluded$5 = ["description", "loading", "children", "className"];
|
|
872
|
-
var propTypes$
|
|
871
|
+
var propTypes$J = {
|
|
873
872
|
description: PropTypes$1.node,
|
|
874
873
|
loading: PropTypes$1.bool,
|
|
875
874
|
children: PropTypes$1.node,
|
|
876
875
|
className: PropTypes$1.string
|
|
877
876
|
};
|
|
878
|
-
var defaultProps$
|
|
877
|
+
var defaultProps$J = {
|
|
879
878
|
description: null,
|
|
880
879
|
loading: false,
|
|
881
880
|
children: null,
|
|
@@ -891,15 +890,15 @@ var FormPanel = function FormPanel(_ref) {
|
|
|
891
890
|
className: classNames([styles$s.container, _defineProperty({}, className, className !== null)])
|
|
892
891
|
}, props), description, loading ? /*#__PURE__*/React.createElement(Spinner$1, null) : children);
|
|
893
892
|
};
|
|
894
|
-
FormPanel.propTypes = propTypes$
|
|
895
|
-
FormPanel.defaultProps = defaultProps$
|
|
893
|
+
FormPanel.propTypes = propTypes$J;
|
|
894
|
+
FormPanel.defaultProps = defaultProps$J;
|
|
896
895
|
var FormPanel$1 = FormPanel;
|
|
897
896
|
|
|
898
|
-
var propTypes$
|
|
897
|
+
var propTypes$I = {
|
|
899
898
|
className: PropTypes$1.string,
|
|
900
899
|
color: PropTypes$1.string
|
|
901
900
|
};
|
|
902
|
-
var defaultProps$
|
|
901
|
+
var defaultProps$I = {
|
|
903
902
|
className: null,
|
|
904
903
|
color: '#fff'
|
|
905
904
|
};
|
|
@@ -920,15 +919,15 @@ var ArrowIcon = function ArrowIcon(_ref) {
|
|
|
920
919
|
fill: color
|
|
921
920
|
}));
|
|
922
921
|
};
|
|
923
|
-
ArrowIcon.propTypes = propTypes$
|
|
924
|
-
ArrowIcon.defaultProps = defaultProps$
|
|
922
|
+
ArrowIcon.propTypes = propTypes$I;
|
|
923
|
+
ArrowIcon.defaultProps = defaultProps$I;
|
|
925
924
|
var ArrowIcon$1 = ArrowIcon;
|
|
926
925
|
|
|
927
|
-
var propTypes$
|
|
926
|
+
var propTypes$H = {
|
|
928
927
|
className: PropTypes$1.string,
|
|
929
928
|
color: PropTypes$1.string
|
|
930
929
|
};
|
|
931
|
-
var defaultProps$
|
|
930
|
+
var defaultProps$H = {
|
|
932
931
|
className: null,
|
|
933
932
|
color: '#fff'
|
|
934
933
|
};
|
|
@@ -954,15 +953,15 @@ var CloseIcon = function CloseIcon(_ref) {
|
|
|
954
953
|
strokeLinecap: "round"
|
|
955
954
|
}));
|
|
956
955
|
};
|
|
957
|
-
CloseIcon.propTypes = propTypes$
|
|
958
|
-
CloseIcon.defaultProps = defaultProps$
|
|
956
|
+
CloseIcon.propTypes = propTypes$H;
|
|
957
|
+
CloseIcon.defaultProps = defaultProps$H;
|
|
959
958
|
var CloseIcon$1 = CloseIcon;
|
|
960
959
|
|
|
961
|
-
var propTypes$
|
|
960
|
+
var propTypes$G = {
|
|
962
961
|
className: PropTypes$1.string,
|
|
963
962
|
color: PropTypes$1.string
|
|
964
963
|
};
|
|
965
|
-
var defaultProps$
|
|
964
|
+
var defaultProps$G = {
|
|
966
965
|
className: null,
|
|
967
966
|
color: '#fff'
|
|
968
967
|
};
|
|
@@ -981,15 +980,15 @@ var FullscreenIcon = function FullscreenIcon(_ref) {
|
|
|
981
980
|
fill: color
|
|
982
981
|
}));
|
|
983
982
|
};
|
|
984
|
-
FullscreenIcon.propTypes = propTypes$
|
|
985
|
-
FullscreenIcon.defaultProps = defaultProps$
|
|
983
|
+
FullscreenIcon.propTypes = propTypes$G;
|
|
984
|
+
FullscreenIcon.defaultProps = defaultProps$G;
|
|
986
985
|
var FullscreenIcon$1 = FullscreenIcon;
|
|
987
986
|
|
|
988
|
-
var propTypes$
|
|
987
|
+
var propTypes$F = {
|
|
989
988
|
className: PropTypes$1.string,
|
|
990
989
|
color: PropTypes$1.string
|
|
991
990
|
};
|
|
992
|
-
var defaultProps$
|
|
991
|
+
var defaultProps$F = {
|
|
993
992
|
className: null,
|
|
994
993
|
color: '#fff'
|
|
995
994
|
};
|
|
@@ -1017,15 +1016,15 @@ var LinkIcon = function LinkIcon(_ref) {
|
|
|
1017
1016
|
strokeLinejoin: "round"
|
|
1018
1017
|
}));
|
|
1019
1018
|
};
|
|
1020
|
-
LinkIcon.propTypes = propTypes$
|
|
1021
|
-
LinkIcon.defaultProps = defaultProps$
|
|
1019
|
+
LinkIcon.propTypes = propTypes$F;
|
|
1020
|
+
LinkIcon.defaultProps = defaultProps$F;
|
|
1022
1021
|
var LinkIcon$1 = LinkIcon;
|
|
1023
1022
|
|
|
1024
|
-
var propTypes$
|
|
1023
|
+
var propTypes$E = {
|
|
1025
1024
|
className: PropTypes$1.string,
|
|
1026
1025
|
color: PropTypes$1.string
|
|
1027
1026
|
};
|
|
1028
|
-
var defaultProps$
|
|
1027
|
+
var defaultProps$E = {
|
|
1029
1028
|
className: null,
|
|
1030
1029
|
color: '#fff'
|
|
1031
1030
|
};
|
|
@@ -1050,15 +1049,15 @@ var MuteIcon = function MuteIcon(_ref) {
|
|
|
1050
1049
|
stroke: color
|
|
1051
1050
|
}));
|
|
1052
1051
|
};
|
|
1053
|
-
MuteIcon.propTypes = propTypes$
|
|
1054
|
-
MuteIcon.defaultProps = defaultProps$
|
|
1052
|
+
MuteIcon.propTypes = propTypes$E;
|
|
1053
|
+
MuteIcon.defaultProps = defaultProps$E;
|
|
1055
1054
|
var MuteIcon$1 = MuteIcon;
|
|
1056
1055
|
|
|
1057
|
-
var propTypes$
|
|
1056
|
+
var propTypes$D = {
|
|
1058
1057
|
className: PropTypes$1.string,
|
|
1059
1058
|
color: PropTypes$1.string
|
|
1060
1059
|
};
|
|
1061
|
-
var defaultProps$
|
|
1060
|
+
var defaultProps$D = {
|
|
1062
1061
|
className: null,
|
|
1063
1062
|
color: '#fff'
|
|
1064
1063
|
};
|
|
@@ -1085,15 +1084,15 @@ var PauseIcon = function PauseIcon(_ref) {
|
|
|
1085
1084
|
fill: color
|
|
1086
1085
|
}));
|
|
1087
1086
|
};
|
|
1088
|
-
PauseIcon.propTypes = propTypes$
|
|
1089
|
-
PauseIcon.defaultProps = defaultProps$
|
|
1087
|
+
PauseIcon.propTypes = propTypes$D;
|
|
1088
|
+
PauseIcon.defaultProps = defaultProps$D;
|
|
1090
1089
|
var PauseIcon$1 = PauseIcon;
|
|
1091
1090
|
|
|
1092
|
-
var propTypes$
|
|
1091
|
+
var propTypes$C = {
|
|
1093
1092
|
className: PropTypes$1.string,
|
|
1094
1093
|
color: PropTypes$1.string
|
|
1095
1094
|
};
|
|
1096
|
-
var defaultProps$
|
|
1095
|
+
var defaultProps$C = {
|
|
1097
1096
|
className: null,
|
|
1098
1097
|
color: '#fff'
|
|
1099
1098
|
};
|
|
@@ -1113,15 +1112,15 @@ var PlayIcon = function PlayIcon(_ref) {
|
|
|
1113
1112
|
stroke: color
|
|
1114
1113
|
}));
|
|
1115
1114
|
};
|
|
1116
|
-
PlayIcon.propTypes = propTypes$
|
|
1117
|
-
PlayIcon.defaultProps = defaultProps$
|
|
1115
|
+
PlayIcon.propTypes = propTypes$C;
|
|
1116
|
+
PlayIcon.defaultProps = defaultProps$C;
|
|
1118
1117
|
var PlayIcon$1 = PlayIcon;
|
|
1119
1118
|
|
|
1120
|
-
var propTypes$
|
|
1119
|
+
var propTypes$B = {
|
|
1121
1120
|
className: PropTypes$1.string,
|
|
1122
1121
|
color: PropTypes$1.string
|
|
1123
1122
|
};
|
|
1124
|
-
var defaultProps$
|
|
1123
|
+
var defaultProps$B = {
|
|
1125
1124
|
className: null,
|
|
1126
1125
|
color: '#fff'
|
|
1127
1126
|
};
|
|
@@ -1145,13 +1144,13 @@ var UnmuteIcon = function UnmuteIcon(_ref) {
|
|
|
1145
1144
|
fill: color
|
|
1146
1145
|
}));
|
|
1147
1146
|
};
|
|
1148
|
-
UnmuteIcon.propTypes = propTypes$
|
|
1149
|
-
UnmuteIcon.defaultProps = defaultProps$
|
|
1147
|
+
UnmuteIcon.propTypes = propTypes$B;
|
|
1148
|
+
UnmuteIcon.defaultProps = defaultProps$B;
|
|
1150
1149
|
var UnmuteIcon$1 = UnmuteIcon;
|
|
1151
1150
|
|
|
1152
1151
|
var styles$r = {"container":"micromag-core-menus-breadcrumb-container","arrow":"micromag-core-menus-breadcrumb-arrow"};
|
|
1153
1152
|
|
|
1154
|
-
var propTypes$
|
|
1153
|
+
var propTypes$A = {
|
|
1155
1154
|
items: PropTypes.menuItems,
|
|
1156
1155
|
theme: PropTypes.bootstrapThemes,
|
|
1157
1156
|
separator: PropTypes$1.oneOf([null, 'arrow']),
|
|
@@ -1159,7 +1158,7 @@ var propTypes$B = {
|
|
|
1159
1158
|
noWrap: PropTypes$1.bool,
|
|
1160
1159
|
className: PropTypes$1.string
|
|
1161
1160
|
};
|
|
1162
|
-
var defaultProps$
|
|
1161
|
+
var defaultProps$A = {
|
|
1163
1162
|
items: [],
|
|
1164
1163
|
theme: null,
|
|
1165
1164
|
separator: null,
|
|
@@ -1205,12 +1204,12 @@ var Breadcrumb = function Breadcrumb(_ref) {
|
|
|
1205
1204
|
}, /*#__PURE__*/React.createElement(Label$1, null, label)) : null);
|
|
1206
1205
|
})));
|
|
1207
1206
|
};
|
|
1208
|
-
Breadcrumb.propTypes = propTypes$
|
|
1209
|
-
Breadcrumb.defaultProps = defaultProps$
|
|
1207
|
+
Breadcrumb.propTypes = propTypes$A;
|
|
1208
|
+
Breadcrumb.defaultProps = defaultProps$A;
|
|
1210
1209
|
var Breadcrumb$1 = Breadcrumb;
|
|
1211
1210
|
|
|
1212
1211
|
var _excluded$4 = ["type", "className", "label", "children", "onClick", "active"];
|
|
1213
|
-
var propTypes$
|
|
1212
|
+
var propTypes$z = {
|
|
1214
1213
|
items: PropTypes.menuItems,
|
|
1215
1214
|
children: PropTypes$1.node,
|
|
1216
1215
|
visible: PropTypes$1.bool,
|
|
@@ -1220,7 +1219,7 @@ var propTypes$A = {
|
|
|
1220
1219
|
onClickItem: PropTypes$1.func,
|
|
1221
1220
|
onClickOutside: PropTypes$1.func
|
|
1222
1221
|
};
|
|
1223
|
-
var defaultProps$
|
|
1222
|
+
var defaultProps$z = {
|
|
1224
1223
|
items: [],
|
|
1225
1224
|
children: null,
|
|
1226
1225
|
visible: false,
|
|
@@ -1308,12 +1307,12 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
1308
1307
|
}, itemProps), label !== null ? /*#__PURE__*/React.createElement(Label$1, null, label) : itemChildren)) : null;
|
|
1309
1308
|
}));
|
|
1310
1309
|
};
|
|
1311
|
-
Dropdown.propTypes = propTypes$
|
|
1312
|
-
Dropdown.defaultProps = defaultProps$
|
|
1310
|
+
Dropdown.propTypes = propTypes$z;
|
|
1311
|
+
Dropdown.defaultProps = defaultProps$z;
|
|
1313
1312
|
var Dropdown$1 = Dropdown;
|
|
1314
1313
|
|
|
1315
1314
|
var _excluded$3 = ["id", "className", "linkClassName", "href", "label", "external", "items", "dropdown", "active", "onClick"];
|
|
1316
|
-
var propTypes$
|
|
1315
|
+
var propTypes$y = {
|
|
1317
1316
|
items: PropTypes.menuItems,
|
|
1318
1317
|
tagName: PropTypes$1.string,
|
|
1319
1318
|
itemTagName: PropTypes$1.string,
|
|
@@ -1332,7 +1331,7 @@ var propTypes$z = {
|
|
|
1332
1331
|
dropdownLinkClassName: PropTypes$1.string,
|
|
1333
1332
|
dropdownAlign: PropTypes.dropdownAlign
|
|
1334
1333
|
};
|
|
1335
|
-
var defaultProps$
|
|
1334
|
+
var defaultProps$y = {
|
|
1336
1335
|
items: [],
|
|
1337
1336
|
tagName: 'ul',
|
|
1338
1337
|
itemTagName: 'li',
|
|
@@ -1448,13 +1447,13 @@ var Menu = function Menu(_ref) {
|
|
|
1448
1447
|
}) : null);
|
|
1449
1448
|
}));
|
|
1450
1449
|
};
|
|
1451
|
-
Menu.propTypes = propTypes$
|
|
1452
|
-
Menu.defaultProps = defaultProps$
|
|
1450
|
+
Menu.propTypes = propTypes$y;
|
|
1451
|
+
Menu.defaultProps = defaultProps$y;
|
|
1453
1452
|
var Menu$1 = Menu;
|
|
1454
1453
|
|
|
1455
1454
|
var styles$q = {"collapse":"micromag-core-menus-navbar-collapse"};
|
|
1456
1455
|
|
|
1457
|
-
var propTypes$
|
|
1456
|
+
var propTypes$x = {
|
|
1458
1457
|
brand: PropTypes$1.node,
|
|
1459
1458
|
brandLink: PropTypes$1.string,
|
|
1460
1459
|
breadcrumbs: PropTypes$1.node,
|
|
@@ -1470,7 +1469,7 @@ var propTypes$y = {
|
|
|
1470
1469
|
breadCrumbsClassName: PropTypes$1.string,
|
|
1471
1470
|
collapseClassName: PropTypes$1.string
|
|
1472
1471
|
};
|
|
1473
|
-
var defaultProps$
|
|
1472
|
+
var defaultProps$x = {
|
|
1474
1473
|
brand: null,
|
|
1475
1474
|
brandLink: null,
|
|
1476
1475
|
breadcrumbs: null,
|
|
@@ -1540,8 +1539,8 @@ var Navbar = function Navbar(_ref) {
|
|
|
1540
1539
|
className: classNames(['navbar-collapse', 'collapse', styles$q.collapse, _defineProperty(_defineProperty({}, collapseClassName, collapseClassName !== null), "show", menuVisible)])
|
|
1541
1540
|
}, children) : children));
|
|
1542
1541
|
};
|
|
1543
|
-
Navbar.propTypes = propTypes$
|
|
1544
|
-
Navbar.defaultProps = defaultProps$
|
|
1542
|
+
Navbar.propTypes = propTypes$x;
|
|
1543
|
+
Navbar.defaultProps = defaultProps$x;
|
|
1545
1544
|
var Navbar$1 = Navbar;
|
|
1546
1545
|
|
|
1547
1546
|
var styles$p = {};
|
|
@@ -1562,7 +1561,7 @@ var messages = defineMessages({
|
|
|
1562
1561
|
}]
|
|
1563
1562
|
}
|
|
1564
1563
|
});
|
|
1565
|
-
var propTypes$
|
|
1564
|
+
var propTypes$w = {
|
|
1566
1565
|
page: PropTypes$1.number,
|
|
1567
1566
|
lastPage: PropTypes$1.number,
|
|
1568
1567
|
maxPages: PropTypes$1.number,
|
|
@@ -1577,7 +1576,7 @@ var propTypes$x = {
|
|
|
1577
1576
|
linkClassName: PropTypes$1.string,
|
|
1578
1577
|
onClickPage: PropTypes$1.func
|
|
1579
1578
|
};
|
|
1580
|
-
var defaultProps$
|
|
1579
|
+
var defaultProps$w = {
|
|
1581
1580
|
page: 1,
|
|
1582
1581
|
lastPage: 1,
|
|
1583
1582
|
maxPages: 10,
|
|
@@ -1680,13 +1679,13 @@ var PaginationMenu = function PaginationMenu(_ref) {
|
|
|
1680
1679
|
className: classNames(['page-link', _defineProperty({}, linkClassName, linkClassName !== null)])
|
|
1681
1680
|
}, /*#__PURE__*/React.createElement(Label$1, null, messages.next))) : null));
|
|
1682
1681
|
};
|
|
1683
|
-
PaginationMenu.propTypes = propTypes$
|
|
1684
|
-
PaginationMenu.defaultProps = defaultProps$
|
|
1682
|
+
PaginationMenu.propTypes = propTypes$w;
|
|
1683
|
+
PaginationMenu.defaultProps = defaultProps$w;
|
|
1685
1684
|
var PaginationMenu$1 = PaginationMenu;
|
|
1686
1685
|
|
|
1687
1686
|
var styles$o = {"container":"micromag-core-menus-tabs-container"};
|
|
1688
1687
|
|
|
1689
|
-
var propTypes$
|
|
1688
|
+
var propTypes$v = {
|
|
1690
1689
|
items: PropTypes.menuItems,
|
|
1691
1690
|
size: PropTypes.buttonSize,
|
|
1692
1691
|
theme: PropTypes.buttonTheme,
|
|
@@ -1695,7 +1694,7 @@ var propTypes$w = {
|
|
|
1695
1694
|
className: PropTypes$1.string,
|
|
1696
1695
|
onClickItem: PropTypes$1.func
|
|
1697
1696
|
};
|
|
1698
|
-
var defaultProps$
|
|
1697
|
+
var defaultProps$v = {
|
|
1699
1698
|
items: [],
|
|
1700
1699
|
size: null,
|
|
1701
1700
|
theme: 'secondary',
|
|
@@ -1724,18 +1723,18 @@ var TabsMenu = function TabsMenu(_ref) {
|
|
|
1724
1723
|
buttonClassName: classNames([styles$o.button, _defineProperty({}, buttonClassName, buttonClassName !== null)])
|
|
1725
1724
|
}));
|
|
1726
1725
|
};
|
|
1727
|
-
TabsMenu.propTypes = propTypes$
|
|
1728
|
-
TabsMenu.defaultProps = defaultProps$
|
|
1726
|
+
TabsMenu.propTypes = propTypes$v;
|
|
1727
|
+
TabsMenu.defaultProps = defaultProps$v;
|
|
1729
1728
|
var TabsMenu$1 = TabsMenu;
|
|
1730
1729
|
|
|
1731
1730
|
var styles$n = {"container":"micromag-core-modals-container","modals":"micromag-core-modals-modals","hasModals":"micromag-core-modals-hasModals"};
|
|
1732
1731
|
|
|
1733
|
-
var propTypes$
|
|
1732
|
+
var propTypes$u = {
|
|
1734
1733
|
modals: PropTypes.modals.isRequired,
|
|
1735
1734
|
setModalsContainer: PropTypes$1.func.isRequired,
|
|
1736
1735
|
className: PropTypes$1.string
|
|
1737
1736
|
};
|
|
1738
|
-
var defaultProps$
|
|
1737
|
+
var defaultProps$u = {
|
|
1739
1738
|
className: null
|
|
1740
1739
|
};
|
|
1741
1740
|
var ModalsContainer = function ModalsContainer(_ref) {
|
|
@@ -1753,14 +1752,14 @@ var ModalsContainer = function ModalsContainer(_ref) {
|
|
|
1753
1752
|
ref: containerRef
|
|
1754
1753
|
}));
|
|
1755
1754
|
};
|
|
1756
|
-
ModalsContainer.propTypes = propTypes$
|
|
1757
|
-
ModalsContainer.defaultProps = defaultProps$
|
|
1755
|
+
ModalsContainer.propTypes = propTypes$u;
|
|
1756
|
+
ModalsContainer.defaultProps = defaultProps$u;
|
|
1758
1757
|
var Modals = withModals(ModalsContainer);
|
|
1759
1758
|
|
|
1760
1759
|
var styles$m = {"container":"micromag-core-modals-modal-container","center":"micromag-core-modals-modal-center","inner":"micromag-core-modals-modal-inner","top":"micromag-core-modals-modal-top"};
|
|
1761
1760
|
|
|
1762
1761
|
/* eslint-disable react/no-array-index-key, react/jsx-props-no-spreading */
|
|
1763
|
-
var propTypes$
|
|
1762
|
+
var propTypes$t = {
|
|
1764
1763
|
id: PropTypes$1.string,
|
|
1765
1764
|
data: PropTypes$1.object,
|
|
1766
1765
|
// eslint-disable-line react/forbid-prop-types
|
|
@@ -1770,7 +1769,7 @@ var propTypes$u = {
|
|
|
1770
1769
|
unregister: PropTypes$1.func,
|
|
1771
1770
|
children: PropTypes$1.node
|
|
1772
1771
|
};
|
|
1773
|
-
var defaultProps$
|
|
1772
|
+
var defaultProps$t = {
|
|
1774
1773
|
id: null,
|
|
1775
1774
|
data: null,
|
|
1776
1775
|
container: null,
|
|
@@ -1800,18 +1799,18 @@ var ElementPortal = function ElementPortal(_ref) {
|
|
|
1800
1799
|
}, [finalId, data]);
|
|
1801
1800
|
return container !== null ? /*#__PURE__*/ReactDOM.createPortal(children, container) : null;
|
|
1802
1801
|
};
|
|
1803
|
-
ElementPortal.propTypes = propTypes$
|
|
1804
|
-
ElementPortal.defaultProps = defaultProps$
|
|
1802
|
+
ElementPortal.propTypes = propTypes$t;
|
|
1803
|
+
ElementPortal.defaultProps = defaultProps$t;
|
|
1805
1804
|
var ElementPortal$1 = ElementPortal;
|
|
1806
1805
|
|
|
1807
1806
|
/* eslint-disable react/no-array-index-key, react/jsx-props-no-spreading */
|
|
1808
|
-
var propTypes$
|
|
1807
|
+
var propTypes$s = {
|
|
1809
1808
|
id: PropTypes$1.string,
|
|
1810
1809
|
data: PropTypes$1.object,
|
|
1811
1810
|
// eslint-disable-line react/forbid-prop-types
|
|
1812
1811
|
children: PropTypes$1.node
|
|
1813
1812
|
};
|
|
1814
|
-
var defaultProps$
|
|
1813
|
+
var defaultProps$s = {
|
|
1815
1814
|
id: null,
|
|
1816
1815
|
data: null,
|
|
1817
1816
|
children: null
|
|
@@ -1834,17 +1833,17 @@ var ModalPortal = function ModalPortal(_ref) {
|
|
|
1834
1833
|
unregister: unregister
|
|
1835
1834
|
}, children);
|
|
1836
1835
|
};
|
|
1837
|
-
ModalPortal.propTypes = propTypes$
|
|
1838
|
-
ModalPortal.defaultProps = defaultProps$
|
|
1836
|
+
ModalPortal.propTypes = propTypes$s;
|
|
1837
|
+
ModalPortal.defaultProps = defaultProps$s;
|
|
1839
1838
|
var Portal$1 = ModalPortal;
|
|
1840
1839
|
|
|
1841
|
-
var propTypes$
|
|
1840
|
+
var propTypes$r = {
|
|
1842
1841
|
id: PropTypes$1.string,
|
|
1843
1842
|
title: PropTypes$1.string,
|
|
1844
1843
|
position: PropTypes$1.oneOf(['center', 'top']),
|
|
1845
1844
|
children: PropTypes$1.node
|
|
1846
1845
|
};
|
|
1847
|
-
var defaultProps$
|
|
1846
|
+
var defaultProps$r = {
|
|
1848
1847
|
id: null,
|
|
1849
1848
|
title: null,
|
|
1850
1849
|
position: 'center',
|
|
@@ -1872,33 +1871,31 @@ var Modal = function Modal(_ref) {
|
|
|
1872
1871
|
className: classNames([styles$m.inner, 'bg-dark'])
|
|
1873
1872
|
}, children)));
|
|
1874
1873
|
};
|
|
1875
|
-
Modal.propTypes = propTypes$
|
|
1876
|
-
Modal.defaultProps = defaultProps$
|
|
1874
|
+
Modal.propTypes = propTypes$r;
|
|
1875
|
+
Modal.defaultProps = defaultProps$r;
|
|
1877
1876
|
var Modal$1 = Modal;
|
|
1878
1877
|
|
|
1879
1878
|
var styles$l = {"container":"micromag-core-modals-dialog-container"};
|
|
1880
1879
|
|
|
1881
|
-
var propTypes$
|
|
1880
|
+
var propTypes$q = {
|
|
1882
1881
|
title: PropTypes.label,
|
|
1883
1882
|
header: PropTypes$1.node,
|
|
1884
1883
|
children: PropTypes$1.node,
|
|
1885
1884
|
footer: PropTypes$1.node,
|
|
1886
1885
|
size: PropTypes$1.string,
|
|
1887
1886
|
buttons: PropTypes.buttons,
|
|
1888
|
-
|
|
1889
|
-
onClickClose: PropTypes$1.func,
|
|
1887
|
+
onClose: PropTypes$1.func,
|
|
1890
1888
|
className: PropTypes$1.string,
|
|
1891
1889
|
bodyClassName: PropTypes$1.string
|
|
1892
1890
|
};
|
|
1893
|
-
var defaultProps$
|
|
1891
|
+
var defaultProps$q = {
|
|
1894
1892
|
title: null,
|
|
1895
1893
|
header: null,
|
|
1896
1894
|
children: null,
|
|
1897
1895
|
footer: null,
|
|
1898
1896
|
size: null,
|
|
1899
1897
|
buttons: null,
|
|
1900
|
-
|
|
1901
|
-
onClickClose: null,
|
|
1898
|
+
onClose: null,
|
|
1902
1899
|
className: null,
|
|
1903
1900
|
bodyClassName: null
|
|
1904
1901
|
};
|
|
@@ -1909,7 +1906,7 @@ var ModalDialog = function ModalDialog(_ref) {
|
|
|
1909
1906
|
buttons = _ref.buttons,
|
|
1910
1907
|
footer = _ref.footer,
|
|
1911
1908
|
size = _ref.size,
|
|
1912
|
-
|
|
1909
|
+
onClose = _ref.onClose,
|
|
1913
1910
|
className = _ref.className,
|
|
1914
1911
|
bodyClassName = _ref.bodyClassName;
|
|
1915
1912
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -1918,100 +1915,27 @@ var ModalDialog = function ModalDialog(_ref) {
|
|
|
1918
1915
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1919
1916
|
className: "modal-content"
|
|
1920
1917
|
}, header || /*#__PURE__*/React.createElement("div", {
|
|
1921
|
-
className: classNames(['modal-header', 'p-2', 'd-flex', 'justify-content-between', styles$l.header
|
|
1922
|
-
// 'bg-dark': theme === 'dark',
|
|
1923
|
-
// 'border-dark': theme === 'dark',
|
|
1924
|
-
// 'text-light': theme === 'dark',
|
|
1925
|
-
}])
|
|
1918
|
+
className: classNames(['modal-header', 'p-2', 'd-flex', 'justify-content-between', styles$l.header])
|
|
1926
1919
|
}, /*#__PURE__*/React.createElement("h5", {
|
|
1927
1920
|
className: "modal-title"
|
|
1928
1921
|
}, /*#__PURE__*/React.createElement(Label$1, null, title)), /*#__PURE__*/React.createElement("button", {
|
|
1929
1922
|
type: "button",
|
|
1930
1923
|
className: "btn btn-close p-2",
|
|
1931
1924
|
"aria-label": "Close",
|
|
1932
|
-
onClick:
|
|
1925
|
+
onClick: onClose
|
|
1933
1926
|
})), /*#__PURE__*/React.createElement("div", {
|
|
1934
1927
|
className: classNames(['modal-body', 'p-2', _defineProperty({}, bodyClassName, bodyClassName !== null)])
|
|
1935
1928
|
}, children), footer !== null || buttons !== null ? /*#__PURE__*/React.createElement("div", {
|
|
1936
|
-
className: classNames(['modal-footer', styles$l.footer])
|
|
1929
|
+
className: classNames(['modal-footer', 'p-2', styles$l.footer])
|
|
1937
1930
|
}, footer, buttons !== null ? /*#__PURE__*/React.createElement(Buttons$1, {
|
|
1938
1931
|
buttons: buttons,
|
|
1939
1932
|
className: styles$l.buttons
|
|
1940
1933
|
}) : null) : null));
|
|
1941
1934
|
};
|
|
1942
|
-
ModalDialog.propTypes = propTypes$
|
|
1943
|
-
ModalDialog.defaultProps = defaultProps$
|
|
1935
|
+
ModalDialog.propTypes = propTypes$q;
|
|
1936
|
+
ModalDialog.defaultProps = defaultProps$q;
|
|
1944
1937
|
var ModalDialog$1 = ModalDialog;
|
|
1945
1938
|
|
|
1946
|
-
// import classNames from 'classnames';
|
|
1947
|
-
// import { DashboardModal } from '@uppy/react';
|
|
1948
|
-
var DashboardModal = /*#__PURE__*/React.lazy(function () {
|
|
1949
|
-
return import('@uppy/react').then(function (_ref) {
|
|
1950
|
-
var Component = _ref.DashboardModal;
|
|
1951
|
-
return {
|
|
1952
|
-
"default": Component
|
|
1953
|
-
};
|
|
1954
|
-
});
|
|
1955
|
-
});
|
|
1956
|
-
var propTypes$q = {
|
|
1957
|
-
type: PropTypes$1.oneOfType([PropTypes.mediaTypes, PropTypes$1.array]),
|
|
1958
|
-
opened: PropTypes$1.bool,
|
|
1959
|
-
sources: PropTypes$1.arrayOf(PropTypes$1.string),
|
|
1960
|
-
onUploaded: PropTypes$1.func,
|
|
1961
|
-
onRequestClose: PropTypes$1.func
|
|
1962
|
-
};
|
|
1963
|
-
var defaultProps$q = {
|
|
1964
|
-
type: null,
|
|
1965
|
-
opened: false,
|
|
1966
|
-
sources: ['webcam', 'facebook', 'instagram', 'dropbox', 'google-drive'],
|
|
1967
|
-
onUploaded: null,
|
|
1968
|
-
onRequestClose: null
|
|
1969
|
-
};
|
|
1970
|
-
var UploadModal = function UploadModal(_ref2) {
|
|
1971
|
-
var type = _ref2.type,
|
|
1972
|
-
opened = _ref2.opened,
|
|
1973
|
-
sources = _ref2.sources,
|
|
1974
|
-
onUploaded = _ref2.onUploaded,
|
|
1975
|
-
onRequestClose = _ref2.onRequestClose;
|
|
1976
|
-
var onUppyComplete = useCallback(function (response) {
|
|
1977
|
-
if (onUploaded !== null) {
|
|
1978
|
-
onUploaded(response);
|
|
1979
|
-
}
|
|
1980
|
-
}, [onUploaded]);
|
|
1981
|
-
var fileTypes = useMemo(function () {
|
|
1982
|
-
if (isArray(type)) {
|
|
1983
|
-
return type.map(function (t) {
|
|
1984
|
-
return ['image', 'video', 'audio'].indexOf(t) !== -1 ? "".concat(t, "/*") : null;
|
|
1985
|
-
}).filter(function (t) {
|
|
1986
|
-
return t !== null;
|
|
1987
|
-
});
|
|
1988
|
-
}
|
|
1989
|
-
return ['image', 'video', 'audio'].indexOf(type) !== -1 ? ["".concat(type, "/*")] : null;
|
|
1990
|
-
}, [type]);
|
|
1991
|
-
var uppy = useUppy({
|
|
1992
|
-
onComplete: onUppyComplete,
|
|
1993
|
-
sources: sources,
|
|
1994
|
-
allowedFileTypes: fileTypes !== null && fileTypes.length > 0 ? fileTypes : null
|
|
1995
|
-
});
|
|
1996
|
-
useEffect(function () {
|
|
1997
|
-
if (uppy !== null && !opened) {
|
|
1998
|
-
uppy.cancelAll();
|
|
1999
|
-
}
|
|
2000
|
-
}, [uppy, opened]);
|
|
2001
|
-
return uppy !== null ? /*#__PURE__*/React.createElement(Suspense, {
|
|
2002
|
-
fallback: /*#__PURE__*/React.createElement("div", null)
|
|
2003
|
-
}, /*#__PURE__*/React.createElement(DashboardModal, {
|
|
2004
|
-
uppy: uppy,
|
|
2005
|
-
open: opened,
|
|
2006
|
-
closeAfterFinish: true,
|
|
2007
|
-
onRequestClose: onRequestClose,
|
|
2008
|
-
plugins: sources
|
|
2009
|
-
})) : null;
|
|
2010
|
-
};
|
|
2011
|
-
UploadModal.propTypes = propTypes$q;
|
|
2012
|
-
UploadModal.defaultProps = defaultProps$q;
|
|
2013
|
-
var UploadModal$1 = UploadModal;
|
|
2014
|
-
|
|
2015
1939
|
var styles$k = {"container":"micromag-core-panels-container"};
|
|
2016
1940
|
|
|
2017
1941
|
var propTypes$p = {
|
|
@@ -4521,4 +4445,4 @@ LinkStyle.propTypes = propTypes;
|
|
|
4521
4445
|
LinkStyle.defaultProps = defaultProps;
|
|
4522
4446
|
var LinkStyle$1 = LinkStyle;
|
|
4523
4447
|
|
|
4524
|
-
export { ArrowIcon$1 as ArrowIcon, BackButton$1 as BackButton, Breadcrumb$1 as Breadcrumb, Button$3 as Button, Buttons$1 as Buttons, Card$1 as Card, Close$1 as Close, CloseIcon$1 as CloseIcon, CollapsablePanel$1 as CollapsablePanel, Date$2 as Date, Detector$1 as Detector, Dropdown$1 as DropdownMenu, ElementComponent$1 as Element, Empty$1 as Empty, FieldForm$1 as FieldForm, FontFaces$1 as FontFaces, Form$1 as Form, FormPanel$1 as FormPanel, FullscreenIcon$1 as FullscreenIcon, HighlightStyle$1 as HighlightStyle, Label$1 as Label, Link$1 as Link, LinkIcon$1 as LinkIcon, LinkStyle$1 as LinkStyle, Media$1 as Media, Menu$1 as Menu, Meta$1 as Meta, Modal$1 as Modal, ModalDialog$1 as ModalDialog, Portal$1 as ModalPortal, Modals, MuteIcon$1 as MuteIcon, Navbar$1 as Navbar, PaginationMenu$1 as Pagination, Panel$1 as Panel, Portal as PanelPortal, Panels, PauseIcon$1 as PauseIcon, AdFrame$1 as PlaceholderAdFrame, AdImage$1 as PlaceholderAdImage, Audio$1 as PlaceholderAudio, Button$1 as PlaceholderButton, Image$1 as PlaceholderImage, Line$1 as PlaceholderLine, Map$1 as PlaceholderMap, MapPath$1 as PlaceholderMapPath, Quote$1 as PlaceholderQuote, ShortText$1 as PlaceholderShortText, Subtitle$1 as PlaceholderSubtitle, TextPlaceholder$1 as PlaceholderText, Timeline$1 as PlaceholderTimeline, Title$3 as PlaceholderTitle, Video$1 as PlaceholderVideo, Video360$1 as PlaceholderVideo360, VideoLoop$1 as PlaceholderVideoLoop, PlayIcon$1 as PlayIcon, Screen$1 as Screen, ScreenElement$1 as ScreenElement, Placeholder as ScreenPlaceholder, Preview as ScreenPreview, ScreenSizer$1 as ScreenSizer, Screens$1 as Screens, Slideshow$1 as Slideshow, Spinner$1 as Spinner, TabsMenu$1 as Tabs, Transitions, TransitionsStagger$1 as TransitionsStagger, UnmuteIcon$1 as UnmuteIcon
|
|
4448
|
+
export { ArrowIcon$1 as ArrowIcon, BackButton$1 as BackButton, Breadcrumb$1 as Breadcrumb, Button$3 as Button, Buttons$1 as Buttons, Card$1 as Card, Close$1 as Close, CloseIcon$1 as CloseIcon, CollapsablePanel$1 as CollapsablePanel, Date$2 as Date, Detector$1 as Detector, Dropdown$1 as DropdownMenu, ElementComponent$1 as Element, Empty$1 as Empty, FieldForm$1 as FieldForm, FontFaces$1 as FontFaces, Form$1 as Form, FormPanel$1 as FormPanel, FullscreenIcon$1 as FullscreenIcon, HighlightStyle$1 as HighlightStyle, Label$1 as Label, Link$1 as Link, LinkIcon$1 as LinkIcon, LinkStyle$1 as LinkStyle, Media$1 as Media, Menu$1 as Menu, Meta$1 as Meta, Modal$1 as Modal, ModalDialog$1 as ModalDialog, Portal$1 as ModalPortal, Modals, MuteIcon$1 as MuteIcon, Navbar$1 as Navbar, PaginationMenu$1 as Pagination, Panel$1 as Panel, Portal as PanelPortal, Panels, PauseIcon$1 as PauseIcon, AdFrame$1 as PlaceholderAdFrame, AdImage$1 as PlaceholderAdImage, Audio$1 as PlaceholderAudio, Button$1 as PlaceholderButton, Image$1 as PlaceholderImage, Line$1 as PlaceholderLine, Map$1 as PlaceholderMap, MapPath$1 as PlaceholderMapPath, Quote$1 as PlaceholderQuote, ShortText$1 as PlaceholderShortText, Subtitle$1 as PlaceholderSubtitle, TextPlaceholder$1 as PlaceholderText, Timeline$1 as PlaceholderTimeline, Title$3 as PlaceholderTitle, Video$1 as PlaceholderVideo, Video360$1 as PlaceholderVideo360, VideoLoop$1 as PlaceholderVideoLoop, PlayIcon$1 as PlayIcon, Screen$1 as Screen, ScreenElement$1 as ScreenElement, Placeholder as ScreenPlaceholder, Preview as ScreenPreview, ScreenSizer$1 as ScreenSizer, Screens$1 as Screens, Slideshow$1 as Slideshow, Spinner$1 as Spinner, TabsMenu$1 as Tabs, Transitions, TransitionsStagger$1 as TransitionsStagger, UnmuteIcon$1 as UnmuteIcon };
|