@micromag/core 0.3.480 → 0.3.482
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 +186 -115
- package/es/contexts.js +81 -125
- package/es/hooks.js +27 -11
- package/es/index.js +25 -104
- package/es/utils.js +66 -124
- package/lib/components.js +518 -179
- package/lib/contexts.js +353 -63
- package/lib/hooks.js +40 -24
- package/lib/index.js +34 -29
- package/lib/utils.js +109 -62
- package/package.json +8 -6
package/es/components.js
CHANGED
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
|
-
import classNames from 'classnames';
|
|
1
|
+
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
4
2
|
import PropTypes$1 from 'prop-types';
|
|
5
3
|
import React, { useCallback, useState, useEffect, useRef, useMemo, Suspense } from 'react';
|
|
6
|
-
import { Link as Link$1 } from 'react-router-dom';
|
|
7
4
|
import { PropTypes } from '@micromag/core';
|
|
8
|
-
import { FormattedMessage, defineMessages, FormattedDate, FormattedTime } from 'react-intl';
|
|
9
5
|
import { isMessage, getFieldFromPath, getComponentFromName, setFieldValue, validateFields, getDisplayName, pascalCase, convertStyleToString } from '@micromag/core/utils';
|
|
6
|
+
import { useFieldsManager, useFieldComponent, FieldContextProvider, withModals, useModals, useUppy, withPanels, usePanels, ScreenSizeProvider, useScreenComponent, ScreenProvider, useScreenRenderContext, useScreenSize } from '@micromag/core/contexts';
|
|
7
|
+
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
8
|
+
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
9
|
+
import { useSpring } from '@react-spring/core';
|
|
10
|
+
import { config, animated } from '@react-spring/web';
|
|
11
|
+
import classNames from 'classnames';
|
|
12
|
+
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
13
|
+
import { Link as Link$2 } from 'wouter';
|
|
14
|
+
import { FormattedMessage, defineMessages, FormattedDate, FormattedTime } from 'react-intl';
|
|
10
15
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
11
16
|
import { faAngleLeft } from '@fortawesome/free-solid-svg-icons/faAngleLeft';
|
|
12
17
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
13
|
-
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
14
18
|
import { useForm, useDocumentEvent, useIntersectionObserver, useDimensionObserver } from '@micromag/core/hooks';
|
|
15
|
-
import { useFieldsManager, useFieldComponent, FieldContextProvider, withModals, useModals, useUppy, withPanels, usePanels, ScreenSizeProvider, useScreenComponent, ScreenProvider, useScreenRenderContext, useScreenSize } from '@micromag/core/contexts';
|
|
16
|
-
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
17
19
|
import get from 'lodash/get';
|
|
18
20
|
import queryString from 'query-string';
|
|
19
21
|
import ReactDOM from 'react-dom';
|
|
@@ -40,8 +42,6 @@ import { faCheck } from '@fortawesome/free-solid-svg-icons/faCheck';
|
|
|
40
42
|
import { faTimes } from '@fortawesome/free-solid-svg-icons/faTimes';
|
|
41
43
|
import { faCircle } from '@fortawesome/free-solid-svg-icons/faCircle';
|
|
42
44
|
import { faPercent } from '@fortawesome/free-solid-svg-icons/faPercent';
|
|
43
|
-
import { useSpring } from '@react-spring/core';
|
|
44
|
-
import { config, animated } from '@react-spring/web';
|
|
45
45
|
|
|
46
46
|
/* eslint-disable react/jsx-props-no-spreading */
|
|
47
47
|
var propTypes$T = {
|
|
@@ -64,6 +64,7 @@ var Label = function Label(_ref) {
|
|
|
64
64
|
};
|
|
65
65
|
Label.propTypes = propTypes$T;
|
|
66
66
|
Label.defaultProps = defaultProps$T;
|
|
67
|
+
var Label$1 = Label;
|
|
67
68
|
|
|
68
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"};
|
|
69
70
|
|
|
@@ -132,7 +133,7 @@ var defaultProps$S = {
|
|
|
132
133
|
onClick: null,
|
|
133
134
|
refButton: null
|
|
134
135
|
};
|
|
135
|
-
var Button$
|
|
136
|
+
var Button$2 = function Button(_ref) {
|
|
136
137
|
var _ref8;
|
|
137
138
|
var type = _ref.type,
|
|
138
139
|
theme = _ref.theme,
|
|
@@ -165,7 +166,7 @@ var Button$1 = function Button(_ref) {
|
|
|
165
166
|
refButton = _ref.refButton,
|
|
166
167
|
props = _objectWithoutProperties(_ref, _excluded$b);
|
|
167
168
|
var finalLabel = label || children;
|
|
168
|
-
var text = finalLabel !== null ? /*#__PURE__*/React.createElement(Label, null, finalLabel) : null;
|
|
169
|
+
var text = finalLabel !== null ? /*#__PURE__*/React.createElement(Label$1, null, finalLabel) : null;
|
|
169
170
|
var hasChildren = label !== null && children !== null;
|
|
170
171
|
var hasIcon = icon !== null;
|
|
171
172
|
var hasInlineIcon = hasIcon && (iconPosition === 'inline' || text === null);
|
|
@@ -196,8 +197,8 @@ var Button$1 = function Button(_ref) {
|
|
|
196
197
|
target: external ? target : null,
|
|
197
198
|
ref: refButton,
|
|
198
199
|
tabIndex: focusable ? '' : '-1'
|
|
199
|
-
}), content) : /*#__PURE__*/React.createElement(Link$
|
|
200
|
-
|
|
200
|
+
}), content) : /*#__PURE__*/React.createElement(Link$2, {
|
|
201
|
+
href: href,
|
|
201
202
|
className: linkClassNames,
|
|
202
203
|
onClick: onClick,
|
|
203
204
|
ref: refButton,
|
|
@@ -213,8 +214,9 @@ var Button$1 = function Button(_ref) {
|
|
|
213
214
|
tabIndex: focusable ? '0' : '-1'
|
|
214
215
|
}), content);
|
|
215
216
|
};
|
|
216
|
-
Button$
|
|
217
|
-
Button$
|
|
217
|
+
Button$2.propTypes = propTypes$S;
|
|
218
|
+
Button$2.defaultProps = defaultProps$S;
|
|
219
|
+
var Button$3 = Button$2;
|
|
218
220
|
|
|
219
221
|
var styles$w = {};
|
|
220
222
|
|
|
@@ -269,11 +271,12 @@ var Buttons = function Buttons(_ref) {
|
|
|
269
271
|
},
|
|
270
272
|
theme: buttonTheme || theme
|
|
271
273
|
};
|
|
272
|
-
return renderButton !== null ? renderButton(button, index, fixedProps) : /*#__PURE__*/React.createElement(Button$
|
|
274
|
+
return renderButton !== null ? renderButton(button, index, fixedProps) : /*#__PURE__*/React.createElement(Button$3, Object.assign({}, fixedProps, buttonProps));
|
|
273
275
|
}));
|
|
274
276
|
};
|
|
275
277
|
Buttons.propTypes = propTypes$R;
|
|
276
278
|
Buttons.defaultProps = defaultProps$R;
|
|
279
|
+
var Buttons$1 = Buttons;
|
|
277
280
|
|
|
278
281
|
var _excluded$9 = ["className"];
|
|
279
282
|
var propTypes$Q = {
|
|
@@ -285,7 +288,7 @@ var defaultProps$Q = {
|
|
|
285
288
|
var BackButton = function BackButton(_ref) {
|
|
286
289
|
var className = _ref.className,
|
|
287
290
|
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
288
|
-
return /*#__PURE__*/React.createElement(Button$
|
|
291
|
+
return /*#__PURE__*/React.createElement(Button$3, Object.assign({
|
|
289
292
|
className: classNames(['px-2', _defineProperty({}, className, className)]),
|
|
290
293
|
size: "sm",
|
|
291
294
|
icon: /*#__PURE__*/React.createElement(FontAwesomeIcon, {
|
|
@@ -296,6 +299,7 @@ var BackButton = function BackButton(_ref) {
|
|
|
296
299
|
};
|
|
297
300
|
BackButton.propTypes = propTypes$Q;
|
|
298
301
|
BackButton.defaultProps = defaultProps$Q;
|
|
302
|
+
var BackButton$1 = BackButton;
|
|
299
303
|
|
|
300
304
|
var _excluded$8 = ["type"],
|
|
301
305
|
_excluded2 = ["component", "id", "settings"];
|
|
@@ -391,6 +395,7 @@ var FieldForm = function FieldForm(_ref) {
|
|
|
391
395
|
};
|
|
392
396
|
FieldForm.propTypes = propTypes$P;
|
|
393
397
|
FieldForm.defaultProps = defaultProps$P;
|
|
398
|
+
var FieldForm$1 = FieldForm;
|
|
394
399
|
|
|
395
400
|
var styles$v = {"actions":"micromag-core-forms-form-actions","left":"micromag-core-forms-form-left","right":"micromag-core-forms-form-right"};
|
|
396
401
|
|
|
@@ -569,14 +574,14 @@ var Form = function Form(_ref) {
|
|
|
569
574
|
onSubmit: onSubmit
|
|
570
575
|
}, !withoutBackButton && fields !== null && fields.length > 0 && fieldParams !== null ? /*#__PURE__*/React.createElement("div", {
|
|
571
576
|
className: "mb-2"
|
|
572
|
-
}, /*#__PURE__*/React.createElement(BackButton, {
|
|
577
|
+
}, /*#__PURE__*/React.createElement(BackButton$1, {
|
|
573
578
|
theme: "secondary",
|
|
574
579
|
outline: true,
|
|
575
580
|
onClick: closeFieldForm
|
|
576
581
|
})) : null, fields !== null && fields.length > 0 && fieldParams !== null ? /*#__PURE__*/React.createElement("div", {
|
|
577
582
|
className: classNames(['w-100', styles$v.panel]),
|
|
578
583
|
key: "field"
|
|
579
|
-
}, /*#__PURE__*/React.createElement(FieldForm, {
|
|
584
|
+
}, /*#__PURE__*/React.createElement(FieldForm$1, {
|
|
580
585
|
name: fieldName,
|
|
581
586
|
fields: fields,
|
|
582
587
|
value: value,
|
|
@@ -595,7 +600,7 @@ var Form = function Form(_ref) {
|
|
|
595
600
|
className: "text-danger my-1"
|
|
596
601
|
}, generalError) : null, children, !withoutActions && fieldParams === null ? /*#__PURE__*/React.createElement("div", {
|
|
597
602
|
className: classNames([styles$v.actions, _defineProperty(_defineProperty({}, styles$v[actionsAlign], actionsAlign), actionsClassName, actionsClassName !== null)])
|
|
598
|
-
}, onCancel !== null || onCancelHref !== null ? /*#__PURE__*/React.createElement(Button$
|
|
603
|
+
}, onCancel !== null || onCancelHref !== null ? /*#__PURE__*/React.createElement(Button$3, {
|
|
599
604
|
type: "button",
|
|
600
605
|
onClick: onCancel,
|
|
601
606
|
href: onCancelHref,
|
|
@@ -609,10 +614,10 @@ var Form = function Form(_ref) {
|
|
|
609
614
|
"type": 0,
|
|
610
615
|
"value": "Cancel"
|
|
611
616
|
}]
|
|
612
|
-
})) : null, buttons !== null ? /*#__PURE__*/React.createElement(Buttons, {
|
|
617
|
+
})) : null, buttons !== null ? /*#__PURE__*/React.createElement(Buttons$1, {
|
|
613
618
|
buttons: buttons,
|
|
614
619
|
className: styles$v.buttons
|
|
615
|
-
}) : /*#__PURE__*/React.createElement(Button$
|
|
620
|
+
}) : /*#__PURE__*/React.createElement(Button$3, {
|
|
616
621
|
type: "submit",
|
|
617
622
|
theme: submitButtonTheme || 'primary',
|
|
618
623
|
disabled: status === 'loading' || !canSave
|
|
@@ -628,6 +633,7 @@ var Form = function Form(_ref) {
|
|
|
628
633
|
};
|
|
629
634
|
Form.propTypes = propTypes$O;
|
|
630
635
|
Form.defaultProps = defaultProps$O;
|
|
636
|
+
var Form$1 = Form;
|
|
631
637
|
|
|
632
638
|
var styles$u = {"withoutStyle":"micromag-core-partials-link-withoutStyle"};
|
|
633
639
|
|
|
@@ -664,13 +670,14 @@ var Link = function Link(_ref) {
|
|
|
664
670
|
href: href,
|
|
665
671
|
target: target,
|
|
666
672
|
rel: rel
|
|
667
|
-
}, props), /*#__PURE__*/React.createElement(Label, null, children)) : /*#__PURE__*/React.createElement(Link$
|
|
673
|
+
}, props), /*#__PURE__*/React.createElement(Label$1, null, children)) : /*#__PURE__*/React.createElement(Link$2, Object.assign({
|
|
668
674
|
className: classNames([className, _defineProperty({}, styles$u.withoutStyle, withoutStyle)]),
|
|
669
|
-
|
|
670
|
-
}, props), /*#__PURE__*/React.createElement(Label, null, children));
|
|
675
|
+
href: href
|
|
676
|
+
}, props), /*#__PURE__*/React.createElement(Label$1, null, children));
|
|
671
677
|
};
|
|
672
678
|
Link.propTypes = propTypes$N;
|
|
673
679
|
Link.defaultProps = defaultProps$N;
|
|
680
|
+
var Link$1 = Link;
|
|
674
681
|
|
|
675
682
|
var _excluded$6 = ["label", "className"];
|
|
676
683
|
var propTypes$M = {
|
|
@@ -758,21 +765,21 @@ var Card = function Card(_ref) {
|
|
|
758
765
|
_ref2$className = _ref2.className,
|
|
759
766
|
linkClassName = _ref2$className === void 0 ? null : _ref2$className,
|
|
760
767
|
linkProps = _objectWithoutProperties(_ref2, _excluded$6);
|
|
761
|
-
return /*#__PURE__*/React.createElement(Link, Object.assign({
|
|
768
|
+
return /*#__PURE__*/React.createElement(Link$1, Object.assign({
|
|
762
769
|
key: "link-".concat(label, "-").concat(index),
|
|
763
770
|
className: classNames(['card-link', _defineProperty({}, linkClassName, linkClassName !== null)])
|
|
764
771
|
}, linkProps), label);
|
|
765
772
|
});
|
|
766
773
|
var bodyInner = title !== null || subtitle !== null || children !== null || links !== null && linksInSameBody ? /*#__PURE__*/React.createElement(React.Fragment, null, title !== null ? /*#__PURE__*/React.createElement("h5", {
|
|
767
774
|
className: classNames(['card-title', _defineProperty({}, titleClassName, titleClassName !== null)])
|
|
768
|
-
}, /*#__PURE__*/React.createElement(Label, null, title)) : null, subtitle !== null ? /*#__PURE__*/React.createElement("h6", {
|
|
775
|
+
}, /*#__PURE__*/React.createElement(Label$1, null, title)) : null, subtitle !== null ? /*#__PURE__*/React.createElement("h6", {
|
|
769
776
|
className: classNames(['card-subtitle', _defineProperty({}, subtitleClassName, subtitleClassName !== null)])
|
|
770
|
-
}, /*#__PURE__*/React.createElement(Label, null, subtitle)) : null, children, links !== null && linksInSameBody ? /*#__PURE__*/React.createElement("div", {
|
|
777
|
+
}, /*#__PURE__*/React.createElement(Label$1, null, subtitle)) : null, children, links !== null && linksInSameBody ? /*#__PURE__*/React.createElement("div", {
|
|
771
778
|
className: "d-flex"
|
|
772
779
|
}, linksElements) : null) : null;
|
|
773
780
|
var cardInner = /*#__PURE__*/React.createElement(React.Fragment, null, header !== null ? /*#__PURE__*/React.createElement("div", {
|
|
774
781
|
className: classNames(['card-header', _defineProperty({}, headerClassName, headerClassName !== null)])
|
|
775
|
-
}, /*#__PURE__*/React.createElement(Label, null, header)) : null, typeof image === 'string' ? /*#__PURE__*/React.createElement("img", {
|
|
782
|
+
}, /*#__PURE__*/React.createElement(Label$1, null, header)) : null, typeof image === 'string' ? /*#__PURE__*/React.createElement("img", {
|
|
776
783
|
src: image,
|
|
777
784
|
alt: imageAlt,
|
|
778
785
|
className: classNames(['card-img-top', _defineProperty({}, imageClassName, imageClassName !== null)])
|
|
@@ -794,12 +801,12 @@ var Card = function Card(_ref) {
|
|
|
794
801
|
type: "button",
|
|
795
802
|
className: classNames(['card-footer', _defineProperty({}, footerClassName, footerClassName !== null)]),
|
|
796
803
|
onClick: onClickFooter
|
|
797
|
-
}, /*#__PURE__*/React.createElement(Label, null, footer)) : /*#__PURE__*/React.createElement("div", {
|
|
804
|
+
}, /*#__PURE__*/React.createElement(Label$1, null, footer)) : /*#__PURE__*/React.createElement("div", {
|
|
798
805
|
className: classNames(['card-footer', _defineProperty({}, footerClassName, footerClassName !== null)])
|
|
799
|
-
}, /*#__PURE__*/React.createElement(Label, null, footer)) : null);
|
|
806
|
+
}, /*#__PURE__*/React.createElement(Label$1, null, footer)) : null);
|
|
800
807
|
var cardClassName = classNames(['card', _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "bg-".concat(theme), !imageOverlay && theme !== 'dark'), 'bg-dark', imageOverlay || theme === 'dark'), 'text-dark', theme === 'light'), 'text-light', imageOverlay || theme === 'dark' || theme === 'primary'), className, className !== null)]);
|
|
801
808
|
if (href !== null) {
|
|
802
|
-
return /*#__PURE__*/React.createElement(Link, {
|
|
809
|
+
return /*#__PURE__*/React.createElement(Link$1, {
|
|
803
810
|
href: href,
|
|
804
811
|
className: cardClassName
|
|
805
812
|
}, cardInner);
|
|
@@ -817,6 +824,7 @@ var Card = function Card(_ref) {
|
|
|
817
824
|
};
|
|
818
825
|
Card.propTypes = propTypes$M;
|
|
819
826
|
Card.defaultProps = defaultProps$M;
|
|
827
|
+
var Card$1 = Card;
|
|
820
828
|
|
|
821
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"};
|
|
822
830
|
|
|
@@ -855,6 +863,7 @@ var Spinner = function Spinner(_ref) {
|
|
|
855
863
|
};
|
|
856
864
|
Spinner.propTypes = propTypes$L;
|
|
857
865
|
Spinner.defaultProps = defaultProps$L;
|
|
866
|
+
var Spinner$1 = Spinner;
|
|
858
867
|
|
|
859
868
|
var styles$s = {};
|
|
860
869
|
|
|
@@ -877,12 +886,13 @@ var FormPanel = function FormPanel(_ref) {
|
|
|
877
886
|
children = _ref.children,
|
|
878
887
|
className = _ref.className,
|
|
879
888
|
props = _objectWithoutProperties(_ref, _excluded$5);
|
|
880
|
-
return /*#__PURE__*/React.createElement(Card, Object.assign({
|
|
889
|
+
return /*#__PURE__*/React.createElement(Card$1, Object.assign({
|
|
881
890
|
className: classNames([styles$s.container, _defineProperty({}, className, className !== null)])
|
|
882
|
-
}, props), description, loading ? /*#__PURE__*/React.createElement(Spinner, null) : children);
|
|
891
|
+
}, props), description, loading ? /*#__PURE__*/React.createElement(Spinner$1, null) : children);
|
|
883
892
|
};
|
|
884
893
|
FormPanel.propTypes = propTypes$K;
|
|
885
894
|
FormPanel.defaultProps = defaultProps$K;
|
|
895
|
+
var FormPanel$1 = FormPanel;
|
|
886
896
|
|
|
887
897
|
var propTypes$J = {
|
|
888
898
|
className: PropTypes$1.string,
|
|
@@ -911,6 +921,7 @@ var ArrowIcon = function ArrowIcon(_ref) {
|
|
|
911
921
|
};
|
|
912
922
|
ArrowIcon.propTypes = propTypes$J;
|
|
913
923
|
ArrowIcon.defaultProps = defaultProps$J;
|
|
924
|
+
var ArrowIcon$1 = ArrowIcon;
|
|
914
925
|
|
|
915
926
|
var propTypes$I = {
|
|
916
927
|
className: PropTypes$1.string,
|
|
@@ -944,6 +955,7 @@ var CloseIcon = function CloseIcon(_ref) {
|
|
|
944
955
|
};
|
|
945
956
|
CloseIcon.propTypes = propTypes$I;
|
|
946
957
|
CloseIcon.defaultProps = defaultProps$I;
|
|
958
|
+
var CloseIcon$1 = CloseIcon;
|
|
947
959
|
|
|
948
960
|
var propTypes$H = {
|
|
949
961
|
className: PropTypes$1.string,
|
|
@@ -970,6 +982,7 @@ var FullscreenIcon = function FullscreenIcon(_ref) {
|
|
|
970
982
|
};
|
|
971
983
|
FullscreenIcon.propTypes = propTypes$H;
|
|
972
984
|
FullscreenIcon.defaultProps = defaultProps$H;
|
|
985
|
+
var FullscreenIcon$1 = FullscreenIcon;
|
|
973
986
|
|
|
974
987
|
var propTypes$G = {
|
|
975
988
|
className: PropTypes$1.string,
|
|
@@ -1005,6 +1018,7 @@ var LinkIcon = function LinkIcon(_ref) {
|
|
|
1005
1018
|
};
|
|
1006
1019
|
LinkIcon.propTypes = propTypes$G;
|
|
1007
1020
|
LinkIcon.defaultProps = defaultProps$G;
|
|
1021
|
+
var LinkIcon$1 = LinkIcon;
|
|
1008
1022
|
|
|
1009
1023
|
var propTypes$F = {
|
|
1010
1024
|
className: PropTypes$1.string,
|
|
@@ -1037,6 +1051,7 @@ var MuteIcon = function MuteIcon(_ref) {
|
|
|
1037
1051
|
};
|
|
1038
1052
|
MuteIcon.propTypes = propTypes$F;
|
|
1039
1053
|
MuteIcon.defaultProps = defaultProps$F;
|
|
1054
|
+
var MuteIcon$1 = MuteIcon;
|
|
1040
1055
|
|
|
1041
1056
|
var propTypes$E = {
|
|
1042
1057
|
className: PropTypes$1.string,
|
|
@@ -1071,6 +1086,7 @@ var PauseIcon = function PauseIcon(_ref) {
|
|
|
1071
1086
|
};
|
|
1072
1087
|
PauseIcon.propTypes = propTypes$E;
|
|
1073
1088
|
PauseIcon.defaultProps = defaultProps$E;
|
|
1089
|
+
var PauseIcon$1 = PauseIcon;
|
|
1074
1090
|
|
|
1075
1091
|
var propTypes$D = {
|
|
1076
1092
|
className: PropTypes$1.string,
|
|
@@ -1098,6 +1114,7 @@ var PlayIcon = function PlayIcon(_ref) {
|
|
|
1098
1114
|
};
|
|
1099
1115
|
PlayIcon.propTypes = propTypes$D;
|
|
1100
1116
|
PlayIcon.defaultProps = defaultProps$D;
|
|
1117
|
+
var PlayIcon$1 = PlayIcon;
|
|
1101
1118
|
|
|
1102
1119
|
var propTypes$C = {
|
|
1103
1120
|
className: PropTypes$1.string,
|
|
@@ -1129,6 +1146,7 @@ var UnmuteIcon = function UnmuteIcon(_ref) {
|
|
|
1129
1146
|
};
|
|
1130
1147
|
UnmuteIcon.propTypes = propTypes$C;
|
|
1131
1148
|
UnmuteIcon.defaultProps = defaultProps$C;
|
|
1149
|
+
var UnmuteIcon$1 = UnmuteIcon;
|
|
1132
1150
|
|
|
1133
1151
|
var styles$r = {"container":"micromag-core-menus-breadcrumb-container","arrow":"micromag-core-menus-breadcrumb-arrow"};
|
|
1134
1152
|
|
|
@@ -1176,18 +1194,19 @@ var Breadcrumb = function Breadcrumb(_ref) {
|
|
|
1176
1194
|
active: active
|
|
1177
1195
|
}, styles$r.arrow, separator === 'arrow'), "text-".concat(theme), active && theme !== null)]),
|
|
1178
1196
|
key: "item-".concat(index)
|
|
1179
|
-
}, active ? /*#__PURE__*/React.createElement(Label, null, label) : null, !active && url ? /*#__PURE__*/React.createElement(Link$
|
|
1180
|
-
|
|
1197
|
+
}, active ? /*#__PURE__*/React.createElement(Label$1, null, label) : null, !active && url ? /*#__PURE__*/React.createElement(Link$2, {
|
|
1198
|
+
href: url,
|
|
1181
1199
|
onClick: onClick,
|
|
1182
1200
|
className: classNames(['font-weight-bold', 'text-decoration-none', _defineProperty({}, "text-".concat(theme), theme !== null)])
|
|
1183
|
-
}, /*#__PURE__*/React.createElement(Label, null, label)) : null, !active && onClick ? /*#__PURE__*/React.createElement(Button$
|
|
1201
|
+
}, /*#__PURE__*/React.createElement(Label$1, null, label)) : null, !active && onClick ? /*#__PURE__*/React.createElement(Button$3, {
|
|
1184
1202
|
onClick: onClick,
|
|
1185
1203
|
className: classNames(['font-weight-bold', 'text-decoration-none', _defineProperty({}, "text-".concat(theme), theme !== null)])
|
|
1186
|
-
}, /*#__PURE__*/React.createElement(Label, null, label)) : null);
|
|
1204
|
+
}, /*#__PURE__*/React.createElement(Label$1, null, label)) : null);
|
|
1187
1205
|
})));
|
|
1188
1206
|
};
|
|
1189
1207
|
Breadcrumb.propTypes = propTypes$B;
|
|
1190
1208
|
Breadcrumb.defaultProps = defaultProps$B;
|
|
1209
|
+
var Breadcrumb$1 = Breadcrumb;
|
|
1191
1210
|
|
|
1192
1211
|
var _excluded$4 = ["type", "className", "label", "children", "onClick", "active"];
|
|
1193
1212
|
var propTypes$A = {
|
|
@@ -1259,7 +1278,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
1259
1278
|
itemProps = _objectWithoutProperties(it, _excluded$4);
|
|
1260
1279
|
var ItemComponent = 'div';
|
|
1261
1280
|
if (type === 'link') {
|
|
1262
|
-
ItemComponent = Link;
|
|
1281
|
+
ItemComponent = Link$1;
|
|
1263
1282
|
} else if (type === 'button') {
|
|
1264
1283
|
ItemComponent = 'button';
|
|
1265
1284
|
} else if (type === 'header') {
|
|
@@ -1285,11 +1304,12 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
1285
1304
|
active: active
|
|
1286
1305
|
}, itemClassName, itemClassName !== null), customClassName, customClassName !== null)]),
|
|
1287
1306
|
onClick: finalOnClickItem
|
|
1288
|
-
}, itemProps), label !== null ? /*#__PURE__*/React.createElement(Label, null, label) : itemChildren)) : null;
|
|
1307
|
+
}, itemProps), label !== null ? /*#__PURE__*/React.createElement(Label$1, null, label) : itemChildren)) : null;
|
|
1289
1308
|
}));
|
|
1290
1309
|
};
|
|
1291
1310
|
Dropdown.propTypes = propTypes$A;
|
|
1292
1311
|
Dropdown.defaultProps = defaultProps$A;
|
|
1312
|
+
var Dropdown$1 = Dropdown;
|
|
1293
1313
|
|
|
1294
1314
|
var _excluded$3 = ["id", "className", "linkClassName", "href", "label", "external", "items", "dropdown", "active", "onClick"];
|
|
1295
1315
|
var propTypes$z = {
|
|
@@ -1388,7 +1408,7 @@ var Menu = function Menu(_ref) {
|
|
|
1388
1408
|
setDropdownsVisible([].concat(_toConsumableArray(dropdownsVisible.slice(0, index)), [false], _toConsumableArray(dropdownsVisible.slice(index + 1))));
|
|
1389
1409
|
} : null;
|
|
1390
1410
|
var ItemComponent = itemTagName;
|
|
1391
|
-
return linkAsItem ? /*#__PURE__*/React.createElement(Link, Object.assign({}, itemProps, {
|
|
1411
|
+
return linkAsItem ? /*#__PURE__*/React.createElement(Link$1, Object.assign({}, itemProps, {
|
|
1392
1412
|
key: "item-".concat(id || index),
|
|
1393
1413
|
onClick: onClickItem,
|
|
1394
1414
|
href: href,
|
|
@@ -1402,12 +1422,12 @@ var Menu = function Menu(_ref) {
|
|
|
1402
1422
|
dropdown: dropdown !== null,
|
|
1403
1423
|
active: active
|
|
1404
1424
|
}, itemClassName, itemClassName !== null), customClassName, customClassName !== null), hasSubMenuClassName, subItems !== null && hasSubMenuClassName !== null), hasDropdownClassName, subItems !== null && hasDropdownClassName !== null))
|
|
1405
|
-
}, href !== null ? /*#__PURE__*/React.createElement(Link, Object.assign({}, itemProps, {
|
|
1425
|
+
}, href !== null ? /*#__PURE__*/React.createElement(Link$1, Object.assign({}, itemProps, {
|
|
1406
1426
|
onClick: onClickItem,
|
|
1407
1427
|
href: href,
|
|
1408
1428
|
external: external,
|
|
1409
1429
|
className: classNames(_defineProperty(_defineProperty(_defineProperty({}, linkClassName, linkClassName !== null), 'dropdown-toggle', dropdown !== null), customLinkClassName, customLinkClassName !== null))
|
|
1410
|
-
}), label) : null, href === null && onClickItem !== null ? /*#__PURE__*/React.createElement(Button$
|
|
1430
|
+
}), label) : null, href === null && onClickItem !== null ? /*#__PURE__*/React.createElement(Button$3, Object.assign({}, itemProps, {
|
|
1411
1431
|
onClick: onClickItem,
|
|
1412
1432
|
className: classNames(_defineProperty(_defineProperty(_defineProperty({}, linkClassName, linkClassName !== null), 'dropdown-toggle', dropdown !== null), customLinkClassName, customLinkClassName !== null))
|
|
1413
1433
|
}), label) : null, subItems !== null ? /*#__PURE__*/React.createElement(Menu, {
|
|
@@ -1415,7 +1435,7 @@ var Menu = function Menu(_ref) {
|
|
|
1415
1435
|
className: subMenuClassName,
|
|
1416
1436
|
itemClassName: classNames(_defineProperty(_defineProperty({}, subMenuItemClassName, subMenuItemClassName !== null), itemClassName, subMenuItemClassName === null && itemClassName !== null)),
|
|
1417
1437
|
linkClassName: classNames(_defineProperty(_defineProperty({}, subMenuLinkClassName, subMenuLinkClassName !== null), linkClassName, subMenuLinkClassName === null && linkClassName !== null))
|
|
1418
|
-
}) : null, dropdown !== null ? /*#__PURE__*/React.createElement(Dropdown, {
|
|
1438
|
+
}) : null, dropdown !== null ? /*#__PURE__*/React.createElement(Dropdown$1, {
|
|
1419
1439
|
items: dropdown,
|
|
1420
1440
|
visible: dropdownsVisible[index] || false,
|
|
1421
1441
|
className: dropdownClassName,
|
|
@@ -1429,6 +1449,7 @@ var Menu = function Menu(_ref) {
|
|
|
1429
1449
|
};
|
|
1430
1450
|
Menu.propTypes = propTypes$z;
|
|
1431
1451
|
Menu.defaultProps = defaultProps$z;
|
|
1452
|
+
var Menu$1 = Menu;
|
|
1432
1453
|
|
|
1433
1454
|
var styles$q = {"collapse":"micromag-core-menus-navbar-collapse"};
|
|
1434
1455
|
|
|
@@ -1492,7 +1513,7 @@ var Navbar = function Navbar(_ref) {
|
|
|
1492
1513
|
className: classNames(['container-fluid', {
|
|
1493
1514
|
'px-0': compact
|
|
1494
1515
|
}])
|
|
1495
|
-
}, brand !== null && brandLink !== null ? /*#__PURE__*/React.createElement(Link, {
|
|
1516
|
+
}, brand !== null && brandLink !== null ? /*#__PURE__*/React.createElement(Link$1, {
|
|
1496
1517
|
className: classNames(['navbar-brand', _defineProperty({
|
|
1497
1518
|
'py-0': compact
|
|
1498
1519
|
}, brandClassName, brandClassName !== null)]),
|
|
@@ -1505,7 +1526,7 @@ var Navbar = function Navbar(_ref) {
|
|
|
1505
1526
|
className: classNames(['navbar-breadcrumbs', _defineProperty({
|
|
1506
1527
|
'py-0': compact
|
|
1507
1528
|
}, breadCrumbsClassName, breadCrumbsClassName !== null)])
|
|
1508
|
-
}, breadcrumbs) : null, !withoutCollapse && !withoutCollapseToggle ? /*#__PURE__*/React.createElement(Button$
|
|
1529
|
+
}, breadcrumbs) : null, !withoutCollapse && !withoutCollapseToggle ? /*#__PURE__*/React.createElement(Button$3, {
|
|
1509
1530
|
className: "navbar-toggler",
|
|
1510
1531
|
onClick: onClickMenu,
|
|
1511
1532
|
withoutTheme: true,
|
|
@@ -1520,6 +1541,7 @@ var Navbar = function Navbar(_ref) {
|
|
|
1520
1541
|
};
|
|
1521
1542
|
Navbar.propTypes = propTypes$y;
|
|
1522
1543
|
Navbar.defaultProps = defaultProps$y;
|
|
1544
|
+
var Navbar$1 = Navbar;
|
|
1523
1545
|
|
|
1524
1546
|
var styles$p = {};
|
|
1525
1547
|
|
|
@@ -1622,7 +1644,7 @@ var PaginationMenu = function PaginationMenu(_ref) {
|
|
|
1622
1644
|
className: classNames(['page-item', _defineProperty({
|
|
1623
1645
|
disabled: page <= 1
|
|
1624
1646
|
}, itemClassName, itemClassName !== null)])
|
|
1625
|
-
}, page > 1 ? /*#__PURE__*/React.createElement(Link, {
|
|
1647
|
+
}, page > 1 ? /*#__PURE__*/React.createElement(Link$1, {
|
|
1626
1648
|
className: classNames(['page-link', _defineProperty({}, linkClassName, linkClassName !== null)]),
|
|
1627
1649
|
href: getUrl(page - 1),
|
|
1628
1650
|
onClick: onClickPage !== null ? function () {
|
|
@@ -1630,13 +1652,13 @@ var PaginationMenu = function PaginationMenu(_ref) {
|
|
|
1630
1652
|
} : null
|
|
1631
1653
|
}, messages.previous) : /*#__PURE__*/React.createElement("span", {
|
|
1632
1654
|
className: classNames(['page-link', _defineProperty({}, linkClassName, linkClassName !== null)])
|
|
1633
|
-
}, /*#__PURE__*/React.createElement(Label, null, messages.previous))) : null, pages.map(function (pageNumber) {
|
|
1655
|
+
}, /*#__PURE__*/React.createElement(Label$1, null, messages.previous))) : null, pages.map(function (pageNumber) {
|
|
1634
1656
|
return /*#__PURE__*/React.createElement("li", {
|
|
1635
1657
|
key: "page-".concat(pageNumber),
|
|
1636
1658
|
className: classNames(['page-item', _defineProperty({
|
|
1637
1659
|
active: pageNumber === page
|
|
1638
1660
|
}, itemClassName, itemClassName !== null)])
|
|
1639
|
-
}, /*#__PURE__*/React.createElement(Link, {
|
|
1661
|
+
}, /*#__PURE__*/React.createElement(Link$1, {
|
|
1640
1662
|
className: classNames(['page-link', _defineProperty({}, linkClassName, linkClassName !== null)]),
|
|
1641
1663
|
href: getUrl(pageNumber),
|
|
1642
1664
|
onClick: onClickPage !== null ? function () {
|
|
@@ -1647,7 +1669,7 @@ var PaginationMenu = function PaginationMenu(_ref) {
|
|
|
1647
1669
|
className: classNames(['page-item', _defineProperty({
|
|
1648
1670
|
disabled: page >= total
|
|
1649
1671
|
}, itemClassName, itemClassName !== null)])
|
|
1650
|
-
}, page < total ? /*#__PURE__*/React.createElement(Link, {
|
|
1672
|
+
}, page < total ? /*#__PURE__*/React.createElement(Link$1, {
|
|
1651
1673
|
className: classNames(['page-link', _defineProperty({}, linkClassName, linkClassName !== null)]),
|
|
1652
1674
|
href: getUrl(page + 1),
|
|
1653
1675
|
onClick: onClickPage !== null ? function () {
|
|
@@ -1655,10 +1677,11 @@ var PaginationMenu = function PaginationMenu(_ref) {
|
|
|
1655
1677
|
} : null
|
|
1656
1678
|
}, messages.next) : /*#__PURE__*/React.createElement("span", {
|
|
1657
1679
|
className: classNames(['page-link', _defineProperty({}, linkClassName, linkClassName !== null)])
|
|
1658
|
-
}, /*#__PURE__*/React.createElement(Label, null, messages.next))) : null));
|
|
1680
|
+
}, /*#__PURE__*/React.createElement(Label$1, null, messages.next))) : null));
|
|
1659
1681
|
};
|
|
1660
1682
|
PaginationMenu.propTypes = propTypes$x;
|
|
1661
1683
|
PaginationMenu.defaultProps = defaultProps$x;
|
|
1684
|
+
var PaginationMenu$1 = PaginationMenu;
|
|
1662
1685
|
|
|
1663
1686
|
var styles$o = {"container":"micromag-core-menus-tabs-container"};
|
|
1664
1687
|
|
|
@@ -1690,7 +1713,7 @@ var TabsMenu = function TabsMenu(_ref) {
|
|
|
1690
1713
|
onClickItem = _ref.onClickItem;
|
|
1691
1714
|
return /*#__PURE__*/React.createElement("div", {
|
|
1692
1715
|
className: classNames([styles$o.container, _defineProperty({}, className, className)])
|
|
1693
|
-
}, /*#__PURE__*/React.createElement(Buttons, {
|
|
1716
|
+
}, /*#__PURE__*/React.createElement(Buttons$1, {
|
|
1694
1717
|
buttons: items,
|
|
1695
1718
|
size: size,
|
|
1696
1719
|
theme: theme,
|
|
@@ -1702,6 +1725,7 @@ var TabsMenu = function TabsMenu(_ref) {
|
|
|
1702
1725
|
};
|
|
1703
1726
|
TabsMenu.propTypes = propTypes$w;
|
|
1704
1727
|
TabsMenu.defaultProps = defaultProps$w;
|
|
1728
|
+
var TabsMenu$1 = TabsMenu;
|
|
1705
1729
|
|
|
1706
1730
|
var styles$n = {"container":"micromag-core-modals-container","modals":"micromag-core-modals-modals","hasModals":"micromag-core-modals-hasModals"};
|
|
1707
1731
|
|
|
@@ -1777,6 +1801,7 @@ var ElementPortal = function ElementPortal(_ref) {
|
|
|
1777
1801
|
};
|
|
1778
1802
|
ElementPortal.propTypes = propTypes$u;
|
|
1779
1803
|
ElementPortal.defaultProps = defaultProps$u;
|
|
1804
|
+
var ElementPortal$1 = ElementPortal;
|
|
1780
1805
|
|
|
1781
1806
|
/* eslint-disable react/no-array-index-key, react/jsx-props-no-spreading */
|
|
1782
1807
|
var propTypes$t = {
|
|
@@ -1800,7 +1825,7 @@ var ModalPortal = function ModalPortal(_ref) {
|
|
|
1800
1825
|
register = _useModals$register === void 0 ? null : _useModals$register,
|
|
1801
1826
|
_useModals$unregister = _useModals.unregister,
|
|
1802
1827
|
unregister = _useModals$unregister === void 0 ? null : _useModals$unregister;
|
|
1803
|
-
return /*#__PURE__*/React.createElement(ElementPortal, {
|
|
1828
|
+
return /*#__PURE__*/React.createElement(ElementPortal$1, {
|
|
1804
1829
|
id: id,
|
|
1805
1830
|
data: data,
|
|
1806
1831
|
container: container,
|
|
@@ -1810,6 +1835,7 @@ var ModalPortal = function ModalPortal(_ref) {
|
|
|
1810
1835
|
};
|
|
1811
1836
|
ModalPortal.propTypes = propTypes$t;
|
|
1812
1837
|
ModalPortal.defaultProps = defaultProps$t;
|
|
1838
|
+
var Portal$1 = ModalPortal;
|
|
1813
1839
|
|
|
1814
1840
|
var propTypes$s = {
|
|
1815
1841
|
id: PropTypes$1.string,
|
|
@@ -1836,7 +1862,7 @@ var Modal = function Modal(_ref) {
|
|
|
1836
1862
|
title: title
|
|
1837
1863
|
};
|
|
1838
1864
|
}, [title]);
|
|
1839
|
-
return /*#__PURE__*/React.createElement(
|
|
1865
|
+
return /*#__PURE__*/React.createElement(Portal$1, {
|
|
1840
1866
|
id: finalId,
|
|
1841
1867
|
data: data
|
|
1842
1868
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -1847,6 +1873,7 @@ var Modal = function Modal(_ref) {
|
|
|
1847
1873
|
};
|
|
1848
1874
|
Modal.propTypes = propTypes$s;
|
|
1849
1875
|
Modal.defaultProps = defaultProps$s;
|
|
1876
|
+
var Modal$1 = Modal;
|
|
1850
1877
|
|
|
1851
1878
|
var styles$l = {"container":"micromag-core-modals-dialog-container"};
|
|
1852
1879
|
|
|
@@ -1894,7 +1921,7 @@ var ModalDialog = function ModalDialog(_ref) {
|
|
|
1894
1921
|
}])
|
|
1895
1922
|
}, /*#__PURE__*/React.createElement("h5", {
|
|
1896
1923
|
className: "modal-title"
|
|
1897
|
-
}, /*#__PURE__*/React.createElement(Label, null, title)), /*#__PURE__*/React.createElement("button", {
|
|
1924
|
+
}, /*#__PURE__*/React.createElement(Label$1, null, title)), /*#__PURE__*/React.createElement("button", {
|
|
1898
1925
|
type: "button",
|
|
1899
1926
|
className: "btn-close",
|
|
1900
1927
|
"aria-label": "Close",
|
|
@@ -1903,13 +1930,14 @@ var ModalDialog = function ModalDialog(_ref) {
|
|
|
1903
1930
|
className: classNames(['modal-body', 'p-2', styles$l.body, _defineProperty({}, bodyClassName, bodyClassName !== null)])
|
|
1904
1931
|
}, children), footer !== null || buttons !== null ? /*#__PURE__*/React.createElement("div", {
|
|
1905
1932
|
className: classNames(['modal-footer', styles$l.footer])
|
|
1906
|
-
}, footer, buttons !== null ? /*#__PURE__*/React.createElement(Buttons, {
|
|
1933
|
+
}, footer, buttons !== null ? /*#__PURE__*/React.createElement(Buttons$1, {
|
|
1907
1934
|
buttons: buttons,
|
|
1908
1935
|
className: styles$l.buttons
|
|
1909
1936
|
}) : null) : null));
|
|
1910
1937
|
};
|
|
1911
1938
|
ModalDialog.propTypes = propTypes$r;
|
|
1912
1939
|
ModalDialog.defaultProps = defaultProps$r;
|
|
1940
|
+
var ModalDialog$1 = ModalDialog;
|
|
1913
1941
|
|
|
1914
1942
|
// import classNames from 'classnames';
|
|
1915
1943
|
// import { DashboardModal } from '@uppy/react';
|
|
@@ -1978,6 +2006,7 @@ var UploadModal = function UploadModal(_ref2) {
|
|
|
1978
2006
|
};
|
|
1979
2007
|
UploadModal.propTypes = propTypes$q;
|
|
1980
2008
|
UploadModal.defaultProps = defaultProps$q;
|
|
2009
|
+
var UploadModal$1 = UploadModal;
|
|
1981
2010
|
|
|
1982
2011
|
var styles$k = {"container":"micromag-core-panels-container"};
|
|
1983
2012
|
|
|
@@ -2037,7 +2066,7 @@ var PanelPortal = function PanelPortal(_ref) {
|
|
|
2037
2066
|
if (panels === null) {
|
|
2038
2067
|
return children;
|
|
2039
2068
|
}
|
|
2040
|
-
return /*#__PURE__*/React.createElement(ElementPortal, {
|
|
2069
|
+
return /*#__PURE__*/React.createElement(ElementPortal$1, {
|
|
2041
2070
|
id: id,
|
|
2042
2071
|
data: data,
|
|
2043
2072
|
container: container,
|
|
@@ -2047,6 +2076,7 @@ var PanelPortal = function PanelPortal(_ref) {
|
|
|
2047
2076
|
};
|
|
2048
2077
|
PanelPortal.propTypes = propTypes$o;
|
|
2049
2078
|
PanelPortal.defaultProps = defaultProps$o;
|
|
2079
|
+
var Portal = PanelPortal;
|
|
2050
2080
|
|
|
2051
2081
|
var styles$j = {"container":"micromag-core-panels-panel-container"};
|
|
2052
2082
|
|
|
@@ -2073,7 +2103,7 @@ var Panel = function Panel(_ref) {
|
|
|
2073
2103
|
title: title
|
|
2074
2104
|
};
|
|
2075
2105
|
}, [title]);
|
|
2076
|
-
return /*#__PURE__*/React.createElement(
|
|
2106
|
+
return /*#__PURE__*/React.createElement(Portal, {
|
|
2077
2107
|
id: finalId,
|
|
2078
2108
|
data: data
|
|
2079
2109
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -2082,6 +2112,7 @@ var Panel = function Panel(_ref) {
|
|
|
2082
2112
|
};
|
|
2083
2113
|
Panel.propTypes = propTypes$n;
|
|
2084
2114
|
Panel.defaultProps = defaultProps$n;
|
|
2115
|
+
var Panel$1 = Panel;
|
|
2085
2116
|
|
|
2086
2117
|
var styles$i = {"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"};
|
|
2087
2118
|
|
|
@@ -2122,7 +2153,7 @@ var CollapsablePanel = function CollapsablePanel(_ref) {
|
|
|
2122
2153
|
className: classNames([styles$i.container, _defineProperty(_defineProperty(_defineProperty({}, styles$i.isOpened, opened), openedClassName, opened && openedClassName !== null), className, className !== null)])
|
|
2123
2154
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2124
2155
|
className: classNames([styles$i.top, _defineProperty({}, topClassName, topClassName !== null)])
|
|
2125
|
-
}, /*#__PURE__*/React.createElement(Button$
|
|
2156
|
+
}, /*#__PURE__*/React.createElement(Button$3, {
|
|
2126
2157
|
withoutStyle: true,
|
|
2127
2158
|
className: classNames([styles$i.button, _defineProperty({}, buttonClassName, buttonClassName !== null)]),
|
|
2128
2159
|
icon: /*#__PURE__*/React.createElement(FontAwesomeIcon, {
|
|
@@ -2138,6 +2169,7 @@ var CollapsablePanel = function CollapsablePanel(_ref) {
|
|
|
2138
2169
|
};
|
|
2139
2170
|
CollapsablePanel.propTypes = propTypes$m;
|
|
2140
2171
|
CollapsablePanel.defaultProps = defaultProps$m;
|
|
2172
|
+
var CollapsablePanel$1 = CollapsablePanel;
|
|
2141
2173
|
|
|
2142
2174
|
var propTypes$l = {
|
|
2143
2175
|
stroke: PropTypes$1.string,
|
|
@@ -2190,6 +2222,7 @@ var Close = function Close(_ref) {
|
|
|
2190
2222
|
};
|
|
2191
2223
|
Close.propTypes = propTypes$l;
|
|
2192
2224
|
Close.defaultProps = defaultProps$l;
|
|
2225
|
+
var Close$1 = Close;
|
|
2193
2226
|
|
|
2194
2227
|
/* eslint-disable react/jsx-props-no-spreading */
|
|
2195
2228
|
var propTypes$k = {
|
|
@@ -2220,6 +2253,7 @@ var Date$1 = function Date(_ref) {
|
|
|
2220
2253
|
};
|
|
2221
2254
|
Date$1.propTypes = propTypes$k;
|
|
2222
2255
|
Date$1.defaultProps = defaultProps$k;
|
|
2256
|
+
var Date$2 = Date$1;
|
|
2223
2257
|
|
|
2224
2258
|
/* eslint-disable react/no-danger */
|
|
2225
2259
|
var propTypes$j = {
|
|
@@ -2298,6 +2332,7 @@ var Detector = function Detector(_ref) {
|
|
|
2298
2332
|
};
|
|
2299
2333
|
Detector.propTypes = propTypes$j;
|
|
2300
2334
|
Detector.defaultProps = defaultProps$j;
|
|
2335
|
+
var Detector$1 = Detector;
|
|
2301
2336
|
|
|
2302
2337
|
var styles$h = {"container":"micromag-core-partials-placeholder-block-container","outline":"micromag-core-partials-placeholder-block-outline","withInvertedColors":"micromag-core-partials-placeholder-block-withInvertedColors","box":"micromag-core-partials-placeholder-block-box"};
|
|
2303
2338
|
|
|
@@ -2339,6 +2374,7 @@ var PlaceholderBlock = function PlaceholderBlock(_ref) {
|
|
|
2339
2374
|
};
|
|
2340
2375
|
PlaceholderBlock.propTypes = propTypes$i;
|
|
2341
2376
|
PlaceholderBlock.defaultProps = defaultProps$i;
|
|
2377
|
+
var PlaceholderBlock$1 = PlaceholderBlock;
|
|
2342
2378
|
|
|
2343
2379
|
/* eslint-disable react/jsx-props-no-spreading */
|
|
2344
2380
|
|
|
@@ -2373,7 +2409,7 @@ var ElementComponent = function ElementComponent(_ref) {
|
|
|
2373
2409
|
if (isPlaceholder) {
|
|
2374
2410
|
// TODO: figure out what this did
|
|
2375
2411
|
// const PlaceholderComponent = Placeholders[pascalCase(name)];
|
|
2376
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock, placeholderProps);
|
|
2412
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock$1, placeholderProps);
|
|
2377
2413
|
}
|
|
2378
2414
|
var RealComponent = components[pascalCase(name)];
|
|
2379
2415
|
if (!RealComponent) {
|
|
@@ -2385,6 +2421,7 @@ var ElementComponent = function ElementComponent(_ref) {
|
|
|
2385
2421
|
};
|
|
2386
2422
|
ElementComponent.propTypes = propTypes$h;
|
|
2387
2423
|
ElementComponent.defaultProps = defaultProps$h;
|
|
2424
|
+
var ElementComponent$1 = ElementComponent;
|
|
2388
2425
|
|
|
2389
2426
|
var styles$g = {"container":"micromag-core-partials-empty-container","middle":"micromag-core-partials-empty-middle","withoutBorder":"micromag-core-partials-empty-withoutBorder","invertColor":"micromag-core-partials-empty-invertColor"};
|
|
2390
2427
|
|
|
@@ -2409,10 +2446,11 @@ var Empty = function Empty(_ref) {
|
|
|
2409
2446
|
className: classNames([styles$g.container, _defineProperty(_defineProperty(_defineProperty({}, styles$g.withoutBorder, withoutBorder), styles$g.light, light), className, className)])
|
|
2410
2447
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2411
2448
|
className: styles$g.middle
|
|
2412
|
-
}, /*#__PURE__*/React.createElement(Label, null, children)));
|
|
2449
|
+
}, /*#__PURE__*/React.createElement(Label$1, null, children)));
|
|
2413
2450
|
};
|
|
2414
2451
|
Empty.propTypes = propTypes$g;
|
|
2415
2452
|
Empty.defaultProps = defaultProps$g;
|
|
2453
|
+
var Empty$1 = Empty;
|
|
2416
2454
|
|
|
2417
2455
|
var getUrlsFromMedia = function getUrlsFromMedia(media, formats) {
|
|
2418
2456
|
var _ref = media || {},
|
|
@@ -2495,6 +2533,7 @@ var FontFaces = function FontFaces(_ref4) {
|
|
|
2495
2533
|
};
|
|
2496
2534
|
FontFaces.propTypes = propTypes$f;
|
|
2497
2535
|
FontFaces.defaultProps = defaultProps$f;
|
|
2536
|
+
var FontFaces$1 = FontFaces;
|
|
2498
2537
|
|
|
2499
2538
|
var styles$f = {};
|
|
2500
2539
|
|
|
@@ -2541,10 +2580,11 @@ var Media = function Media(_ref) {
|
|
|
2541
2580
|
className: classNames(['card-body', styles$f.body, _defineProperty({}, bodyClassName, bodyClassName !== null)])
|
|
2542
2581
|
}, title !== null ? /*#__PURE__*/React.createElement("h5", {
|
|
2543
2582
|
className: classNames(['mt-0', 'text-truncate', styles$f.title, _defineProperty({}, titleClassName, titleClassName !== null)])
|
|
2544
|
-
}, /*#__PURE__*/React.createElement(Label, null, title)) : null, children) : null);
|
|
2583
|
+
}, /*#__PURE__*/React.createElement(Label$1, null, title)) : null, children) : null);
|
|
2545
2584
|
};
|
|
2546
2585
|
Media.propTypes = propTypes$e;
|
|
2547
2586
|
Media.defaultProps = defaultProps$e;
|
|
2587
|
+
var Media$1 = Media;
|
|
2548
2588
|
|
|
2549
2589
|
/**
|
|
2550
2590
|
* Core
|
|
@@ -3264,6 +3304,7 @@ var Meta = function Meta(_ref) {
|
|
|
3264
3304
|
};
|
|
3265
3305
|
Meta.propTypes = propTypes$d;
|
|
3266
3306
|
Meta.defaultProps = defaultProps$d;
|
|
3307
|
+
var Meta$1 = Meta;
|
|
3267
3308
|
|
|
3268
3309
|
var styles$e = {"container":"micromag-core-partials-slideshow-container","items":"micromag-core-partials-slideshow-items","item":"micromag-core-partials-slideshow-item","prev":"micromag-core-partials-slideshow-prev","current":"micromag-core-partials-slideshow-current","next":"micromag-core-partials-slideshow-next"};
|
|
3269
3310
|
|
|
@@ -3332,6 +3373,7 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
3332
3373
|
};
|
|
3333
3374
|
Slideshow.propTypes = propTypes$c;
|
|
3334
3375
|
Slideshow.defaultProps = defaultProps$c;
|
|
3376
|
+
var Slideshow$1 = Slideshow;
|
|
3335
3377
|
|
|
3336
3378
|
var styles$d = {"icon":"micromag-core-placeholders-icon"};
|
|
3337
3379
|
|
|
@@ -3340,7 +3382,7 @@ var AdFrame = function AdFrame(_ref) {
|
|
|
3340
3382
|
var width = _ref.width,
|
|
3341
3383
|
height = _ref.height,
|
|
3342
3384
|
className = _ref.className;
|
|
3343
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock, {
|
|
3385
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock$1, {
|
|
3344
3386
|
width: width,
|
|
3345
3387
|
height: height,
|
|
3346
3388
|
className: className
|
|
@@ -3349,13 +3391,14 @@ var AdFrame = function AdFrame(_ref) {
|
|
|
3349
3391
|
className: styles$d.icon
|
|
3350
3392
|
}));
|
|
3351
3393
|
};
|
|
3394
|
+
var AdFrame$1 = AdFrame;
|
|
3352
3395
|
|
|
3353
3396
|
/* eslint-disable react/prop-types */
|
|
3354
3397
|
var AdImage = function AdImage(_ref) {
|
|
3355
3398
|
var width = _ref.width,
|
|
3356
3399
|
height = _ref.height,
|
|
3357
3400
|
className = _ref.className;
|
|
3358
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock, {
|
|
3401
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock$1, {
|
|
3359
3402
|
width: width,
|
|
3360
3403
|
height: height,
|
|
3361
3404
|
className: className
|
|
@@ -3364,6 +3407,7 @@ var AdImage = function AdImage(_ref) {
|
|
|
3364
3407
|
className: styles$d.icon
|
|
3365
3408
|
}));
|
|
3366
3409
|
};
|
|
3410
|
+
var AdImage$1 = AdImage;
|
|
3367
3411
|
|
|
3368
3412
|
/* eslint-disable react/destructuring-assignment, react/prop-types */
|
|
3369
3413
|
var Audio = function Audio(_ref) {
|
|
@@ -3372,7 +3416,7 @@ var Audio = function Audio(_ref) {
|
|
|
3372
3416
|
_ref$height = _ref.height,
|
|
3373
3417
|
height = _ref$height === void 0 ? '2em' : _ref$height,
|
|
3374
3418
|
className = _ref.className;
|
|
3375
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock, {
|
|
3419
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock$1, {
|
|
3376
3420
|
width: width,
|
|
3377
3421
|
height: height,
|
|
3378
3422
|
className: className
|
|
@@ -3381,6 +3425,7 @@ var Audio = function Audio(_ref) {
|
|
|
3381
3425
|
className: styles$d.icon
|
|
3382
3426
|
}));
|
|
3383
3427
|
};
|
|
3428
|
+
var Audio$1 = Audio;
|
|
3384
3429
|
|
|
3385
3430
|
var styles$c = {"container":"micromag-core-partials-placeholder-text-container","withInvertedColors":"micromag-core-partials-placeholder-text-withInvertedColors","line":"micromag-core-partials-placeholder-text-line"};
|
|
3386
3431
|
|
|
@@ -3429,6 +3474,7 @@ var PlaceholderText = function PlaceholderText(_ref) {
|
|
|
3429
3474
|
};
|
|
3430
3475
|
PlaceholderText.propTypes = propTypes$b;
|
|
3431
3476
|
PlaceholderText.defaultProps = defaultProps$b;
|
|
3477
|
+
var PlaceholderText$1 = PlaceholderText;
|
|
3432
3478
|
|
|
3433
3479
|
/* eslint-disable react/destructuring-assignment, react/prop-types */
|
|
3434
3480
|
var Button = function Button(_ref) {
|
|
@@ -3437,16 +3483,17 @@ var Button = function Button(_ref) {
|
|
|
3437
3483
|
_ref$height = _ref.height,
|
|
3438
3484
|
height = _ref$height === void 0 ? '0.4em' : _ref$height,
|
|
3439
3485
|
className = _ref.className;
|
|
3440
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock, {
|
|
3486
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock$1, {
|
|
3441
3487
|
outline: true,
|
|
3442
3488
|
width: width,
|
|
3443
3489
|
height: height,
|
|
3444
3490
|
className: className
|
|
3445
|
-
}, /*#__PURE__*/React.createElement(PlaceholderText, {
|
|
3491
|
+
}, /*#__PURE__*/React.createElement(PlaceholderText$1, {
|
|
3446
3492
|
line: 1,
|
|
3447
3493
|
height: "0.1em"
|
|
3448
3494
|
}));
|
|
3449
3495
|
};
|
|
3496
|
+
var Button$1 = Button;
|
|
3450
3497
|
|
|
3451
3498
|
var _excluded$2 = ["width", "height", "className"];
|
|
3452
3499
|
var Image = function Image(_ref) {
|
|
@@ -3454,7 +3501,7 @@ var Image = function Image(_ref) {
|
|
|
3454
3501
|
height = _ref.height,
|
|
3455
3502
|
className = _ref.className,
|
|
3456
3503
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
3457
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock, Object.assign({}, props, {
|
|
3504
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock$1, Object.assign({}, props, {
|
|
3458
3505
|
width: width,
|
|
3459
3506
|
height: height,
|
|
3460
3507
|
className: className
|
|
@@ -3463,20 +3510,22 @@ var Image = function Image(_ref) {
|
|
|
3463
3510
|
className: styles$d.icon
|
|
3464
3511
|
}));
|
|
3465
3512
|
};
|
|
3513
|
+
var Image$1 = Image;
|
|
3466
3514
|
|
|
3467
3515
|
/* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
|
|
3468
3516
|
var Line = function Line(props) {
|
|
3469
|
-
return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
|
|
3517
|
+
return /*#__PURE__*/React.createElement(PlaceholderText$1, Object.assign({}, props, {
|
|
3470
3518
|
className: classNames([props.className, styles$d.shortText]),
|
|
3471
3519
|
height: 0.2,
|
|
3472
3520
|
lines: 1
|
|
3473
3521
|
}));
|
|
3474
3522
|
};
|
|
3523
|
+
var Line$1 = Line;
|
|
3475
3524
|
|
|
3476
3525
|
var styles$b = {"container":"micromag-core-placeholders-map-container","icon":"micromag-core-placeholders-map-icon"};
|
|
3477
3526
|
|
|
3478
3527
|
var Map = function Map(props) {
|
|
3479
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock, Object.assign({}, props, {
|
|
3528
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock$1, Object.assign({}, props, {
|
|
3480
3529
|
width: "100%",
|
|
3481
3530
|
height: "100%",
|
|
3482
3531
|
className: classNames([styles$b.container, _defineProperty({}, props.className, props.className !== null)])
|
|
@@ -3494,10 +3543,11 @@ var Map = function Map(props) {
|
|
|
3494
3543
|
className: styles$b.icon
|
|
3495
3544
|
}));
|
|
3496
3545
|
};
|
|
3546
|
+
var Map$1 = Map;
|
|
3497
3547
|
|
|
3498
3548
|
/* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
|
|
3499
3549
|
var MapPath = function MapPath(props) {
|
|
3500
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock, Object.assign({}, props, {
|
|
3550
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock$1, Object.assign({}, props, {
|
|
3501
3551
|
width: "100%",
|
|
3502
3552
|
height: "70%",
|
|
3503
3553
|
className: classNames([props.className, styles$d.mapPath])
|
|
@@ -3507,33 +3557,37 @@ var MapPath = function MapPath(props) {
|
|
|
3507
3557
|
className: styles$d.icon
|
|
3508
3558
|
}));
|
|
3509
3559
|
};
|
|
3560
|
+
var MapPath$1 = MapPath;
|
|
3510
3561
|
|
|
3511
3562
|
/* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
|
|
3512
3563
|
var Quote = function Quote(props) {
|
|
3513
|
-
return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
|
|
3564
|
+
return /*#__PURE__*/React.createElement(PlaceholderText$1, Object.assign({}, props, {
|
|
3514
3565
|
className: classNames([props.className, styles$d.subtitle]),
|
|
3515
3566
|
height: 0.5,
|
|
3516
3567
|
lines: 6
|
|
3517
3568
|
}));
|
|
3518
3569
|
};
|
|
3570
|
+
var Quote$1 = Quote;
|
|
3519
3571
|
|
|
3520
3572
|
/* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
|
|
3521
3573
|
var ShortText = function ShortText(props) {
|
|
3522
|
-
return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
|
|
3574
|
+
return /*#__PURE__*/React.createElement(PlaceholderText$1, Object.assign({}, props, {
|
|
3523
3575
|
className: classNames([props.className, styles$d.shortText]),
|
|
3524
3576
|
height: 0.2,
|
|
3525
3577
|
lines: 2
|
|
3526
3578
|
}));
|
|
3527
3579
|
};
|
|
3580
|
+
var ShortText$1 = ShortText;
|
|
3528
3581
|
|
|
3529
3582
|
/* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
|
|
3530
3583
|
var Subtitle = function Subtitle(props) {
|
|
3531
|
-
return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
|
|
3584
|
+
return /*#__PURE__*/React.createElement(PlaceholderText$1, Object.assign({}, props, {
|
|
3532
3585
|
className: classNames([props.className, styles$d.subtitle]),
|
|
3533
3586
|
height: 0.3,
|
|
3534
3587
|
lines: 1
|
|
3535
3588
|
}));
|
|
3536
3589
|
};
|
|
3590
|
+
var Subtitle$1 = Subtitle;
|
|
3537
3591
|
|
|
3538
3592
|
/* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
|
|
3539
3593
|
var TextPlaceholder = function TextPlaceholder(props) {
|
|
@@ -3545,43 +3599,46 @@ var TextPlaceholder = function TextPlaceholder(props) {
|
|
|
3545
3599
|
lines = _props$lines === void 0 ? 4 : _props$lines,
|
|
3546
3600
|
_props$lineMargin = props.lineMargin,
|
|
3547
3601
|
lineMargin = _props$lineMargin === void 0 ? 2 : _props$lineMargin;
|
|
3548
|
-
return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
|
|
3602
|
+
return /*#__PURE__*/React.createElement(PlaceholderText$1, Object.assign({}, props, {
|
|
3549
3603
|
height: height,
|
|
3550
3604
|
lines: lines,
|
|
3551
3605
|
lineMargin: lineMargin,
|
|
3552
3606
|
className: classNames([className, styles$d.text])
|
|
3553
3607
|
}));
|
|
3554
3608
|
};
|
|
3609
|
+
var TextPlaceholder$1 = TextPlaceholder;
|
|
3555
3610
|
|
|
3556
3611
|
/* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
|
|
3557
3612
|
var Timeline = function Timeline(props) {
|
|
3558
|
-
return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
|
|
3613
|
+
return /*#__PURE__*/React.createElement(PlaceholderText$1, Object.assign({}, props, {
|
|
3559
3614
|
className: classNames([props.className, styles$d.timeline])
|
|
3560
3615
|
}));
|
|
3561
3616
|
};
|
|
3617
|
+
var Timeline$1 = Timeline;
|
|
3562
3618
|
|
|
3563
3619
|
/* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
|
|
3564
|
-
var Title$
|
|
3620
|
+
var Title$2 = function Title(props) {
|
|
3565
3621
|
var _props$height = props.height,
|
|
3566
3622
|
height = _props$height === void 0 ? 0.5 : _props$height,
|
|
3567
3623
|
_props$lines = props.lines,
|
|
3568
3624
|
lines = _props$lines === void 0 ? 2 : _props$lines,
|
|
3569
3625
|
_props$lineMargin = props.lineMargin,
|
|
3570
3626
|
lineMargin = _props$lineMargin === void 0 ? 2 : _props$lineMargin;
|
|
3571
|
-
return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
|
|
3627
|
+
return /*#__PURE__*/React.createElement(PlaceholderText$1, Object.assign({}, props, {
|
|
3572
3628
|
className: classNames([props.className, styles$d.title]),
|
|
3573
3629
|
height: height,
|
|
3574
3630
|
lines: lines,
|
|
3575
3631
|
lineMargin: lineMargin
|
|
3576
3632
|
}));
|
|
3577
3633
|
};
|
|
3634
|
+
var Title$3 = Title$2;
|
|
3578
3635
|
|
|
3579
3636
|
/* eslint-disable react/prop-types */
|
|
3580
3637
|
var Video = function Video(_ref) {
|
|
3581
3638
|
var width = _ref.width,
|
|
3582
3639
|
height = _ref.height,
|
|
3583
3640
|
className = _ref.className;
|
|
3584
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock, {
|
|
3641
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock$1, {
|
|
3585
3642
|
width: width,
|
|
3586
3643
|
height: height,
|
|
3587
3644
|
className: className
|
|
@@ -3590,6 +3647,7 @@ var Video = function Video(_ref) {
|
|
|
3590
3647
|
className: styles$d.icon
|
|
3591
3648
|
}));
|
|
3592
3649
|
};
|
|
3650
|
+
var Video$1 = Video;
|
|
3593
3651
|
|
|
3594
3652
|
var styles$a = {"container":"micromag-core-placeholders-video-360-container","box":"micromag-core-placeholders-video-360-box","icon":"micromag-core-placeholders-video-360-icon","label":"micromag-core-placeholders-video-360-label"};
|
|
3595
3653
|
|
|
@@ -3597,7 +3655,7 @@ var Video360 = function Video360(_ref) {
|
|
|
3597
3655
|
var width = _ref.width,
|
|
3598
3656
|
height = _ref.height,
|
|
3599
3657
|
className = _ref.className;
|
|
3600
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock, {
|
|
3658
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock$1, {
|
|
3601
3659
|
width: width,
|
|
3602
3660
|
height: height,
|
|
3603
3661
|
className: classNames([styles$a.container, _defineProperty({}, className, className !== null)]),
|
|
@@ -3609,13 +3667,14 @@ var Video360 = function Video360(_ref) {
|
|
|
3609
3667
|
className: styles$a.label
|
|
3610
3668
|
}, "360"));
|
|
3611
3669
|
};
|
|
3670
|
+
var Video360$1 = Video360;
|
|
3612
3671
|
|
|
3613
3672
|
/* eslint-disable react/prop-types */
|
|
3614
3673
|
var VideoLoop = function VideoLoop(_ref) {
|
|
3615
3674
|
var width = _ref.width,
|
|
3616
3675
|
height = _ref.height,
|
|
3617
3676
|
className = _ref.className;
|
|
3618
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock, {
|
|
3677
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock$1, {
|
|
3619
3678
|
width: width,
|
|
3620
3679
|
height: height,
|
|
3621
3680
|
className: className
|
|
@@ -3627,6 +3686,7 @@ var VideoLoop = function VideoLoop(_ref) {
|
|
|
3627
3686
|
className: styles$d.icon
|
|
3628
3687
|
}));
|
|
3629
3688
|
};
|
|
3689
|
+
var VideoLoop$1 = VideoLoop;
|
|
3630
3690
|
|
|
3631
3691
|
var styles$9 = {"container":"micromag-core-screens-screen-sizer-container","frame":"micromag-core-screens-screen-sizer-frame","screen":"micromag-core-screens-screen-sizer-screen"};
|
|
3632
3692
|
|
|
@@ -3739,6 +3799,7 @@ var ScreenSizer = function ScreenSizer(_ref) {
|
|
|
3739
3799
|
};
|
|
3740
3800
|
ScreenSizer.propTypes = propTypes$a;
|
|
3741
3801
|
ScreenSizer.defaultProps = defaultProps$a;
|
|
3802
|
+
var ScreenSizer$1 = ScreenSizer;
|
|
3742
3803
|
|
|
3743
3804
|
var styles$8 = {"container":"micromag-core-screens-screen-container"};
|
|
3744
3805
|
|
|
@@ -3837,7 +3898,7 @@ var ScreenPlaceholder = function ScreenPlaceholder(_ref) {
|
|
|
3837
3898
|
layout: layout,
|
|
3838
3899
|
className: classNames([styles$7.screen, _defineProperty({}, className, !withSize)])
|
|
3839
3900
|
}, props));
|
|
3840
|
-
return withSize ? /*#__PURE__*/React.createElement(ScreenSizer, {
|
|
3901
|
+
return withSize ? /*#__PURE__*/React.createElement(ScreenSizer$1, {
|
|
3841
3902
|
className: className,
|
|
3842
3903
|
screenWidth: screenWidth,
|
|
3843
3904
|
screenHeight: screenHeight
|
|
@@ -3891,7 +3952,7 @@ var ScreenPreview = function ScreenPreview(_ref) {
|
|
|
3891
3952
|
className: classNames([styles$6.screen, _defineProperty({}, className, !withSize)])
|
|
3892
3953
|
}, props));
|
|
3893
3954
|
var element = !hidden ? screenElement : /*#__PURE__*/React.createElement("div", null);
|
|
3894
|
-
var screenWithSize = withSize ? /*#__PURE__*/React.createElement(ScreenSizer, {
|
|
3955
|
+
var screenWithSize = withSize ? /*#__PURE__*/React.createElement(ScreenSizer$1, {
|
|
3895
3956
|
className: className,
|
|
3896
3957
|
screenWidth: screenWidth,
|
|
3897
3958
|
screenHeight: screenHeight,
|
|
@@ -3919,6 +3980,7 @@ var Conversation = function Conversation() {
|
|
|
3919
3980
|
className: styles$5.icon
|
|
3920
3981
|
}));
|
|
3921
3982
|
};
|
|
3983
|
+
var Conversation$1 = Conversation;
|
|
3922
3984
|
|
|
3923
3985
|
/* eslint-disable react/prop-types */
|
|
3924
3986
|
var InputText = function InputText(_ref) {
|
|
@@ -3927,17 +3989,18 @@ var InputText = function InputText(_ref) {
|
|
|
3927
3989
|
_ref$height = _ref.height,
|
|
3928
3990
|
height = _ref$height === void 0 ? '0.5em' : _ref$height,
|
|
3929
3991
|
className = _ref.className;
|
|
3930
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock, {
|
|
3992
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock$1, {
|
|
3931
3993
|
outline: true,
|
|
3932
3994
|
width: width,
|
|
3933
3995
|
height: height,
|
|
3934
3996
|
className: className
|
|
3935
3997
|
});
|
|
3936
3998
|
};
|
|
3999
|
+
var InputText$1 = InputText;
|
|
3937
4000
|
|
|
3938
4001
|
var styles$4 = {"container":"micromag-core-placeholders-quiz-answer-container","block":"micromag-core-placeholders-quiz-answer-block","answer":"micromag-core-placeholders-quiz-answer-answer","answerIcon":"micromag-core-placeholders-quiz-answer-answerIcon","good":"micromag-core-placeholders-quiz-answer-good"};
|
|
3939
4002
|
|
|
3940
|
-
var Answer$
|
|
4003
|
+
var Answer$2 = function Answer(_ref) {
|
|
3941
4004
|
var _ref$width = _ref.width,
|
|
3942
4005
|
width = _ref$width === void 0 ? '75%' : _ref$width,
|
|
3943
4006
|
_ref$height = _ref.height,
|
|
@@ -3952,21 +4015,22 @@ var Answer$1 = function Answer(_ref) {
|
|
|
3952
4015
|
}, /*#__PURE__*/React.createElement(FontAwesomeIcon, {
|
|
3953
4016
|
className: styles$4.answerIcon,
|
|
3954
4017
|
icon: good ? faCheck : faTimes
|
|
3955
|
-
})), /*#__PURE__*/React.createElement(PlaceholderBlock, {
|
|
4018
|
+
})), /*#__PURE__*/React.createElement(PlaceholderBlock$1, {
|
|
3956
4019
|
outline: true,
|
|
3957
4020
|
width: width,
|
|
3958
4021
|
height: height,
|
|
3959
4022
|
className: styles$4.block
|
|
3960
|
-
}, /*#__PURE__*/React.createElement(PlaceholderText, {
|
|
4023
|
+
}, /*#__PURE__*/React.createElement(PlaceholderText$1, {
|
|
3961
4024
|
line: 1,
|
|
3962
4025
|
height: "0.2em"
|
|
3963
4026
|
})));
|
|
3964
4027
|
};
|
|
4028
|
+
var Answer$3 = Answer$2;
|
|
3965
4029
|
|
|
3966
4030
|
var styles$3 = {"container":"micromag-core-placeholders-share-options-container","box":"micromag-core-placeholders-share-options-box","icon":"micromag-core-placeholders-share-options-icon","item":"micromag-core-placeholders-share-options-item","button":"micromag-core-placeholders-share-options-button"};
|
|
3967
4031
|
|
|
3968
4032
|
var Title = function Title(props) {
|
|
3969
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock, Object.assign({}, props, {
|
|
4033
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock$1, Object.assign({}, props, {
|
|
3970
4034
|
width: "100%",
|
|
3971
4035
|
height: "100%",
|
|
3972
4036
|
className: classNames([styles$3.container, _defineProperty({}, props.className, props.className !== null)]),
|
|
@@ -3988,6 +4052,7 @@ var Title = function Title(props) {
|
|
|
3988
4052
|
className: styles$3.icon
|
|
3989
4053
|
})));
|
|
3990
4054
|
};
|
|
4055
|
+
var Title$1 = Title;
|
|
3991
4056
|
|
|
3992
4057
|
var styles$2 = {"container":"micromag-core-placeholders-survey-answer-container","block":"micromag-core-placeholders-survey-answer-block","percent":"micromag-core-placeholders-survey-answer-percent","percentIcon":"micromag-core-placeholders-survey-answer-percentIcon"};
|
|
3993
4058
|
|
|
@@ -3999,12 +4064,12 @@ var Answer = function Answer(_ref) {
|
|
|
3999
4064
|
className = _ref.className;
|
|
4000
4065
|
return /*#__PURE__*/React.createElement("div", {
|
|
4001
4066
|
className: classNames([styles$2.container, _defineProperty({}, className, className !== null)])
|
|
4002
|
-
}, /*#__PURE__*/React.createElement(PlaceholderBlock, {
|
|
4067
|
+
}, /*#__PURE__*/React.createElement(PlaceholderBlock$1, {
|
|
4003
4068
|
outline: true,
|
|
4004
4069
|
width: width,
|
|
4005
4070
|
height: height,
|
|
4006
4071
|
className: styles$2.block
|
|
4007
|
-
}, /*#__PURE__*/React.createElement(PlaceholderText, {
|
|
4072
|
+
}, /*#__PURE__*/React.createElement(PlaceholderText$1, {
|
|
4008
4073
|
line: 1,
|
|
4009
4074
|
height: "0.2em"
|
|
4010
4075
|
})), /*#__PURE__*/React.createElement("div", {
|
|
@@ -4014,31 +4079,32 @@ var Answer = function Answer(_ref) {
|
|
|
4014
4079
|
icon: faPercent
|
|
4015
4080
|
})));
|
|
4016
4081
|
};
|
|
4082
|
+
var Answer$1 = Answer;
|
|
4017
4083
|
|
|
4018
4084
|
var Placeholders = /*#__PURE__*/Object.freeze({
|
|
4019
4085
|
__proto__: null,
|
|
4020
|
-
AdFrame: AdFrame,
|
|
4021
|
-
AdImage: AdImage,
|
|
4022
|
-
Audio: Audio,
|
|
4023
|
-
Button: Button,
|
|
4024
|
-
Conversation: Conversation,
|
|
4025
|
-
Image: Image,
|
|
4026
|
-
InputText: InputText,
|
|
4027
|
-
Line: Line,
|
|
4028
|
-
Map: Map,
|
|
4029
|
-
MapPath: MapPath,
|
|
4030
|
-
QuizAnswer: Answer$
|
|
4031
|
-
Quote: Quote,
|
|
4032
|
-
ShareOptions: Title,
|
|
4033
|
-
ShortText: ShortText,
|
|
4034
|
-
Subtitle: Subtitle,
|
|
4035
|
-
SurveyAnswer: Answer,
|
|
4036
|
-
Text: TextPlaceholder,
|
|
4037
|
-
Timeline: Timeline,
|
|
4038
|
-
Title: Title$
|
|
4039
|
-
Video: Video,
|
|
4040
|
-
Video360: Video360,
|
|
4041
|
-
VideoLoop: VideoLoop
|
|
4086
|
+
AdFrame: AdFrame$1,
|
|
4087
|
+
AdImage: AdImage$1,
|
|
4088
|
+
Audio: Audio$1,
|
|
4089
|
+
Button: Button$1,
|
|
4090
|
+
Conversation: Conversation$1,
|
|
4091
|
+
Image: Image$1,
|
|
4092
|
+
InputText: InputText$1,
|
|
4093
|
+
Line: Line$1,
|
|
4094
|
+
Map: Map$1,
|
|
4095
|
+
MapPath: MapPath$1,
|
|
4096
|
+
QuizAnswer: Answer$3,
|
|
4097
|
+
Quote: Quote$1,
|
|
4098
|
+
ShareOptions: Title$1,
|
|
4099
|
+
ShortText: ShortText$1,
|
|
4100
|
+
Subtitle: Subtitle$1,
|
|
4101
|
+
SurveyAnswer: Answer$1,
|
|
4102
|
+
Text: TextPlaceholder$1,
|
|
4103
|
+
Timeline: Timeline$1,
|
|
4104
|
+
Title: Title$3,
|
|
4105
|
+
Video: Video$1,
|
|
4106
|
+
Video360: Video360$1,
|
|
4107
|
+
VideoLoop: VideoLoop$1
|
|
4042
4108
|
});
|
|
4043
4109
|
|
|
4044
4110
|
/* eslint-disable react/jsx-props-no-spreading */
|
|
@@ -4081,7 +4147,7 @@ var ScreenElement = function ScreenElement(_ref) {
|
|
|
4081
4147
|
return PlaceholderComponent !== null ? /*#__PURE__*/React.createElement(PlaceholderComponent, placeholderProps) : placeholder;
|
|
4082
4148
|
}
|
|
4083
4149
|
if (isEdit && isEmpty) {
|
|
4084
|
-
return empty !== null ? empty : /*#__PURE__*/React.createElement(Empty, {
|
|
4150
|
+
return empty !== null ? empty : /*#__PURE__*/React.createElement(Empty$1, {
|
|
4085
4151
|
className: emptyClassName
|
|
4086
4152
|
}, emptyLabel);
|
|
4087
4153
|
}
|
|
@@ -4092,6 +4158,7 @@ var ScreenElement = function ScreenElement(_ref) {
|
|
|
4092
4158
|
};
|
|
4093
4159
|
ScreenElement.propTypes = propTypes$6;
|
|
4094
4160
|
ScreenElement.defaultProps = defaultProps$6;
|
|
4161
|
+
var ScreenElement$1 = ScreenElement;
|
|
4095
4162
|
|
|
4096
4163
|
var styles$1 = {"container":"micromag-core-screens-container","screen":"micromag-core-screens-screen","visible":"micromag-core-screens-visible"};
|
|
4097
4164
|
|
|
@@ -4121,6 +4188,7 @@ var Screens = function Screens(_ref) {
|
|
|
4121
4188
|
};
|
|
4122
4189
|
Screens.propTypes = propTypes$5;
|
|
4123
4190
|
Screens.defaultProps = defaultProps$5;
|
|
4191
|
+
var Screens$1 = Screens;
|
|
4124
4192
|
|
|
4125
4193
|
var styles = {"container":"micromag-core-transitions-transition-container","fullscreen":"micromag-core-transitions-transition-fullscreen"};
|
|
4126
4194
|
|
|
@@ -4393,6 +4461,7 @@ var TransitionsStagger = function TransitionsStagger(_ref) {
|
|
|
4393
4461
|
};
|
|
4394
4462
|
TransitionsStagger.propTypes = propTypes$2;
|
|
4395
4463
|
TransitionsStagger.defaultProps = defaultProps$2;
|
|
4464
|
+
var TransitionsStagger$1 = TransitionsStagger;
|
|
4396
4465
|
|
|
4397
4466
|
var propTypes$1 = {
|
|
4398
4467
|
selector: PropTypes$1.string,
|
|
@@ -4416,6 +4485,7 @@ var HighlightStyle = function HighlightStyle(_ref) {
|
|
|
4416
4485
|
};
|
|
4417
4486
|
HighlightStyle.propTypes = propTypes$1;
|
|
4418
4487
|
HighlightStyle.defaultProps = defaultProps$1;
|
|
4488
|
+
var HighlightStyle$1 = HighlightStyle;
|
|
4419
4489
|
|
|
4420
4490
|
var propTypes = {
|
|
4421
4491
|
selector: PropTypes$1.string,
|
|
@@ -4439,5 +4509,6 @@ var LinkStyle = function LinkStyle(_ref) {
|
|
|
4439
4509
|
};
|
|
4440
4510
|
LinkStyle.propTypes = propTypes;
|
|
4441
4511
|
LinkStyle.defaultProps = defaultProps;
|
|
4512
|
+
var LinkStyle$1 = LinkStyle;
|
|
4442
4513
|
|
|
4443
|
-
export { ArrowIcon, BackButton, Breadcrumb, Button$
|
|
4514
|
+
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, UploadModal$1 as UploadModal };
|