@micromag/core 0.3.618 → 0.3.628
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 +716 -716
- package/es/contexts.js +1 -1
- package/es/index.js +2 -2
- package/es/utils.js +1 -1
- package/package.json +3 -3
package/es/components.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
|
-
import PropTypes
|
|
4
|
+
import PropTypes from 'prop-types';
|
|
5
5
|
import React, { useCallback, useState, useEffect, useRef, useMemo } from 'react';
|
|
6
6
|
import { Link as Link$1 } from 'wouter';
|
|
7
|
-
import { PropTypes } from '@micromag/core';
|
|
7
|
+
import { PropTypes as PropTypes$1 } from '@micromag/core';
|
|
8
8
|
import { FormattedMessage, defineMessages, FormattedDate, FormattedTime } from 'react-intl';
|
|
9
9
|
import { isMessage, getFieldFromPath, getComponentFromName, setFieldValue, validateFields, getDisplayName, pascalCase, convertStyleToString } from '@micromag/core/utils';
|
|
10
10
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
@@ -46,9 +46,9 @@ import { config, animated } from '@react-spring/web';
|
|
|
46
46
|
|
|
47
47
|
/* eslint-disable react/jsx-props-no-spreading */
|
|
48
48
|
var propTypes$T = {
|
|
49
|
-
children: PropTypes.label.isRequired,
|
|
50
|
-
isHtml: PropTypes
|
|
51
|
-
values: PropTypes
|
|
49
|
+
children: PropTypes$1.label.isRequired,
|
|
50
|
+
isHtml: PropTypes.bool,
|
|
51
|
+
values: PropTypes.object // eslint-disable-line react/forbid-prop-types
|
|
52
52
|
};
|
|
53
53
|
var defaultProps$T = {
|
|
54
54
|
isHtml: false,
|
|
@@ -66,40 +66,40 @@ var Label = function Label(_ref) {
|
|
|
66
66
|
Label.propTypes = propTypes$T;
|
|
67
67
|
Label.defaultProps = defaultProps$T;
|
|
68
68
|
|
|
69
|
-
var styles$y = {"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","
|
|
69
|
+
var styles$y = {"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","withIconColumns":"micromag-core-buttons-button-withIconColumns","linkDisabled":"micromag-core-buttons-button-linkDisabled"};
|
|
70
70
|
|
|
71
71
|
var _excluded$c = ["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"];
|
|
72
72
|
var propTypes$S = {
|
|
73
|
-
type: PropTypes
|
|
74
|
-
theme: PropTypes.buttonTheme,
|
|
75
|
-
size: PropTypes.buttonSize,
|
|
76
|
-
href: PropTypes
|
|
77
|
-
external: PropTypes
|
|
78
|
-
direct: PropTypes
|
|
79
|
-
target: PropTypes
|
|
80
|
-
label: PropTypes.label,
|
|
81
|
-
children: PropTypes.label,
|
|
82
|
-
focusable: PropTypes
|
|
83
|
-
active: PropTypes
|
|
84
|
-
icon: PropTypes
|
|
85
|
-
iconPosition: PropTypes
|
|
86
|
-
disabled: PropTypes
|
|
87
|
-
loading: PropTypes
|
|
88
|
-
disableOnLoading: PropTypes
|
|
89
|
-
small: PropTypes
|
|
90
|
-
big: PropTypes
|
|
91
|
-
withShadow: PropTypes
|
|
92
|
-
withoutStyle: PropTypes
|
|
93
|
-
withoutBootstrapStyles: PropTypes
|
|
94
|
-
withoutTheme: PropTypes
|
|
95
|
-
outline: PropTypes
|
|
96
|
-
asLink: PropTypes
|
|
97
|
-
className: PropTypes
|
|
98
|
-
iconClassName: PropTypes
|
|
99
|
-
labelClassName: PropTypes
|
|
100
|
-
onClick: PropTypes
|
|
101
|
-
refButton: PropTypes
|
|
102
|
-
current: PropTypes
|
|
73
|
+
type: PropTypes.string,
|
|
74
|
+
theme: PropTypes$1.buttonTheme,
|
|
75
|
+
size: PropTypes$1.buttonSize,
|
|
76
|
+
href: PropTypes.string,
|
|
77
|
+
external: PropTypes.bool,
|
|
78
|
+
direct: PropTypes.bool,
|
|
79
|
+
target: PropTypes.string,
|
|
80
|
+
label: PropTypes$1.label,
|
|
81
|
+
children: PropTypes$1.label,
|
|
82
|
+
focusable: PropTypes.bool,
|
|
83
|
+
active: PropTypes.bool,
|
|
84
|
+
icon: PropTypes.node,
|
|
85
|
+
iconPosition: PropTypes.oneOf(['left', 'right', 'inline']),
|
|
86
|
+
disabled: PropTypes.bool,
|
|
87
|
+
loading: PropTypes.bool,
|
|
88
|
+
disableOnLoading: PropTypes.bool,
|
|
89
|
+
small: PropTypes.bool,
|
|
90
|
+
big: PropTypes.bool,
|
|
91
|
+
withShadow: PropTypes.bool,
|
|
92
|
+
withoutStyle: PropTypes.bool,
|
|
93
|
+
withoutBootstrapStyles: PropTypes.bool,
|
|
94
|
+
withoutTheme: PropTypes.bool,
|
|
95
|
+
outline: PropTypes.bool,
|
|
96
|
+
asLink: PropTypes.bool,
|
|
97
|
+
className: PropTypes.string,
|
|
98
|
+
iconClassName: PropTypes.string,
|
|
99
|
+
labelClassName: PropTypes.string,
|
|
100
|
+
onClick: PropTypes.func,
|
|
101
|
+
refButton: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
|
|
102
|
+
current: PropTypes.any // eslint-disable-line
|
|
103
103
|
})])
|
|
104
104
|
};
|
|
105
105
|
var defaultProps$S = {
|
|
@@ -221,13 +221,13 @@ var styles$x = {};
|
|
|
221
221
|
|
|
222
222
|
var _excluded$b = ["className", "onClick", "theme"];
|
|
223
223
|
var propTypes$R = {
|
|
224
|
-
buttons: PropTypes.buttons,
|
|
225
|
-
size: PropTypes.buttonSize,
|
|
226
|
-
theme: PropTypes.buttonTheme,
|
|
227
|
-
renderButton: PropTypes
|
|
228
|
-
onClickButton: PropTypes
|
|
229
|
-
className: PropTypes
|
|
230
|
-
buttonClassName: PropTypes
|
|
224
|
+
buttons: PropTypes$1.buttons,
|
|
225
|
+
size: PropTypes$1.buttonSize,
|
|
226
|
+
theme: PropTypes$1.buttonTheme,
|
|
227
|
+
renderButton: PropTypes.func,
|
|
228
|
+
onClickButton: PropTypes.func,
|
|
229
|
+
className: PropTypes.string,
|
|
230
|
+
buttonClassName: PropTypes.string
|
|
231
231
|
};
|
|
232
232
|
var defaultProps$R = {
|
|
233
233
|
buttons: [],
|
|
@@ -278,7 +278,7 @@ Buttons.defaultProps = defaultProps$R;
|
|
|
278
278
|
|
|
279
279
|
var _excluded$a = ["className"];
|
|
280
280
|
var propTypes$Q = {
|
|
281
|
-
className: PropTypes
|
|
281
|
+
className: PropTypes.string
|
|
282
282
|
};
|
|
283
283
|
var defaultProps$Q = {
|
|
284
284
|
className: null
|
|
@@ -302,8 +302,8 @@ var styles$w = {"container":"micromag-core-buttons-clear-container","icon":"micr
|
|
|
302
302
|
|
|
303
303
|
var _excluded$9 = ["onClick", "className"];
|
|
304
304
|
var propTypes$P = {
|
|
305
|
-
onClick: PropTypes
|
|
306
|
-
className: PropTypes
|
|
305
|
+
onClick: PropTypes.func,
|
|
306
|
+
className: PropTypes.string
|
|
307
307
|
};
|
|
308
308
|
var defaultProps$P = {
|
|
309
309
|
onClick: null,
|
|
@@ -328,17 +328,17 @@ ClearButton.defaultProps = defaultProps$P;
|
|
|
328
328
|
var _excluded$8 = ["type"],
|
|
329
329
|
_excluded2 = ["component", "id", "settings"];
|
|
330
330
|
var propTypes$O = {
|
|
331
|
-
name: PropTypes
|
|
331
|
+
name: PropTypes.string,
|
|
332
332
|
// .isRequired,
|
|
333
|
-
value: PropTypes.component,
|
|
334
|
-
form: PropTypes
|
|
335
|
-
formComponents: PropTypes.components,
|
|
336
|
-
fields: PropTypes.fields,
|
|
337
|
-
className: PropTypes
|
|
338
|
-
onChange: PropTypes
|
|
339
|
-
gotoFieldForm: PropTypes
|
|
340
|
-
closeFieldForm: PropTypes
|
|
341
|
-
fieldContext: PropTypes
|
|
333
|
+
value: PropTypes$1.component,
|
|
334
|
+
form: PropTypes.string,
|
|
335
|
+
formComponents: PropTypes$1.components,
|
|
336
|
+
fields: PropTypes$1.fields,
|
|
337
|
+
className: PropTypes.string,
|
|
338
|
+
onChange: PropTypes.func,
|
|
339
|
+
gotoFieldForm: PropTypes.func.isRequired,
|
|
340
|
+
closeFieldForm: PropTypes.func.isRequired,
|
|
341
|
+
fieldContext: PropTypes.any // eslint-disable-line react/forbid-prop-types
|
|
342
342
|
};
|
|
343
343
|
var defaultProps$O = {
|
|
344
344
|
name: null,
|
|
@@ -423,33 +423,33 @@ FieldForm.defaultProps = defaultProps$O;
|
|
|
423
423
|
var styles$v = {"actions":"micromag-core-forms-form-actions","left":"micromag-core-forms-form-left","right":"micromag-core-forms-form-right"};
|
|
424
424
|
|
|
425
425
|
var propTypes$N = {
|
|
426
|
-
action: PropTypes
|
|
427
|
-
method: PropTypes
|
|
428
|
-
fields: PropTypes.formFields,
|
|
429
|
-
initialValue: PropTypes
|
|
426
|
+
action: PropTypes.string.isRequired,
|
|
427
|
+
method: PropTypes.string,
|
|
428
|
+
fields: PropTypes$1.formFields,
|
|
429
|
+
initialValue: PropTypes.object,
|
|
430
430
|
// eslint-disable-line react/forbid-prop-types
|
|
431
|
-
postForm: PropTypes
|
|
432
|
-
submitButtonLabel: PropTypes.label,
|
|
433
|
-
submitButtonLoadingLabel: PropTypes.label,
|
|
434
|
-
submitButtonTheme: PropTypes
|
|
435
|
-
cancelButtonTheme: PropTypes
|
|
436
|
-
buttons: PropTypes.buttons,
|
|
437
|
-
children: PropTypes
|
|
438
|
-
actionsAlign: PropTypes
|
|
439
|
-
withoutActions: PropTypes
|
|
440
|
-
withoutComplete: PropTypes
|
|
441
|
-
withoutBackButton: PropTypes
|
|
442
|
-
onComplete: PropTypes
|
|
443
|
-
onResponse: PropTypes
|
|
444
|
-
onMessage: PropTypes
|
|
445
|
-
onCancel: PropTypes
|
|
446
|
-
onCancelHref: PropTypes
|
|
447
|
-
onOpenFieldForm: PropTypes
|
|
448
|
-
onCloseFieldForm: PropTypes
|
|
449
|
-
className: PropTypes
|
|
450
|
-
fieldsClassName: PropTypes
|
|
451
|
-
actionsClassName: PropTypes
|
|
452
|
-
cancelClassName: PropTypes
|
|
431
|
+
postForm: PropTypes.func,
|
|
432
|
+
submitButtonLabel: PropTypes$1.label,
|
|
433
|
+
submitButtonLoadingLabel: PropTypes$1.label,
|
|
434
|
+
submitButtonTheme: PropTypes.string,
|
|
435
|
+
cancelButtonTheme: PropTypes.string,
|
|
436
|
+
buttons: PropTypes$1.buttons,
|
|
437
|
+
children: PropTypes.node,
|
|
438
|
+
actionsAlign: PropTypes.oneOf(['left', 'right']),
|
|
439
|
+
withoutActions: PropTypes.bool,
|
|
440
|
+
withoutComplete: PropTypes.bool,
|
|
441
|
+
withoutBackButton: PropTypes.bool,
|
|
442
|
+
onComplete: PropTypes.func,
|
|
443
|
+
onResponse: PropTypes.func,
|
|
444
|
+
onMessage: PropTypes.func,
|
|
445
|
+
onCancel: PropTypes.func,
|
|
446
|
+
onCancelHref: PropTypes.string,
|
|
447
|
+
onOpenFieldForm: PropTypes.func,
|
|
448
|
+
onCloseFieldForm: PropTypes.func,
|
|
449
|
+
className: PropTypes.string,
|
|
450
|
+
fieldsClassName: PropTypes.string,
|
|
451
|
+
actionsClassName: PropTypes.string,
|
|
452
|
+
cancelClassName: PropTypes.string
|
|
453
453
|
};
|
|
454
454
|
var defaultProps$N = {
|
|
455
455
|
method: 'POST',
|
|
@@ -661,13 +661,13 @@ var styles$u = {"withoutStyle":"micromag-core-partials-link-withoutStyle"};
|
|
|
661
661
|
|
|
662
662
|
var _excluded$7 = ["href", "external", "children", "target", "rel", "className", "withoutStyle"];
|
|
663
663
|
var propTypes$M = {
|
|
664
|
-
href: PropTypes
|
|
665
|
-
external: PropTypes
|
|
666
|
-
target: PropTypes
|
|
667
|
-
children: PropTypes.label,
|
|
668
|
-
rel: PropTypes
|
|
669
|
-
withoutStyle: PropTypes
|
|
670
|
-
className: PropTypes
|
|
664
|
+
href: PropTypes.string,
|
|
665
|
+
external: PropTypes.bool,
|
|
666
|
+
target: PropTypes.string,
|
|
667
|
+
children: PropTypes$1.label,
|
|
668
|
+
rel: PropTypes.string,
|
|
669
|
+
withoutStyle: PropTypes.bool,
|
|
670
|
+
className: PropTypes.string
|
|
671
671
|
};
|
|
672
672
|
var defaultProps$M = {
|
|
673
673
|
href: '',
|
|
@@ -702,33 +702,33 @@ Link.defaultProps = defaultProps$M;
|
|
|
702
702
|
|
|
703
703
|
var _excluded$6 = ["label", "className"];
|
|
704
704
|
var propTypes$L = {
|
|
705
|
-
href: PropTypes
|
|
706
|
-
header: PropTypes
|
|
707
|
-
image: PropTypes
|
|
708
|
-
imageAlt: PropTypes
|
|
709
|
-
imageOverlay: PropTypes
|
|
710
|
-
beforeBody: PropTypes
|
|
711
|
-
title: PropTypes.label,
|
|
712
|
-
subtitle: PropTypes.label,
|
|
713
|
-
children: PropTypes
|
|
714
|
-
afterBody: PropTypes
|
|
715
|
-
links: PropTypes
|
|
716
|
-
label: PropTypes.label,
|
|
717
|
-
href: PropTypes
|
|
705
|
+
href: PropTypes.string,
|
|
706
|
+
header: PropTypes.node,
|
|
707
|
+
image: PropTypes.node,
|
|
708
|
+
imageAlt: PropTypes.string,
|
|
709
|
+
imageOverlay: PropTypes.bool,
|
|
710
|
+
beforeBody: PropTypes.node,
|
|
711
|
+
title: PropTypes$1.label,
|
|
712
|
+
subtitle: PropTypes$1.label,
|
|
713
|
+
children: PropTypes.node,
|
|
714
|
+
afterBody: PropTypes.node,
|
|
715
|
+
links: PropTypes.arrayOf(PropTypes.shape({
|
|
716
|
+
label: PropTypes$1.label,
|
|
717
|
+
href: PropTypes.string
|
|
718
718
|
})),
|
|
719
|
-
linksInSameBody: PropTypes
|
|
720
|
-
footer: PropTypes
|
|
721
|
-
theme: PropTypes
|
|
722
|
-
className: PropTypes
|
|
723
|
-
imageClassName: PropTypes
|
|
724
|
-
headerClassName: PropTypes
|
|
725
|
-
titleClassName: PropTypes
|
|
726
|
-
subtitleClassName: PropTypes
|
|
727
|
-
bodyClassName: PropTypes
|
|
728
|
-
footerClassName: PropTypes
|
|
729
|
-
onClick: PropTypes
|
|
730
|
-
onClickBody: PropTypes
|
|
731
|
-
onClickFooter: PropTypes
|
|
719
|
+
linksInSameBody: PropTypes.bool,
|
|
720
|
+
footer: PropTypes.node,
|
|
721
|
+
theme: PropTypes.oneOf([null, 'dark', 'primary', 'light']),
|
|
722
|
+
className: PropTypes.string,
|
|
723
|
+
imageClassName: PropTypes.string,
|
|
724
|
+
headerClassName: PropTypes.string,
|
|
725
|
+
titleClassName: PropTypes.string,
|
|
726
|
+
subtitleClassName: PropTypes.string,
|
|
727
|
+
bodyClassName: PropTypes.string,
|
|
728
|
+
footerClassName: PropTypes.string,
|
|
729
|
+
onClick: PropTypes.func,
|
|
730
|
+
onClickBody: PropTypes.func,
|
|
731
|
+
onClickFooter: PropTypes.func
|
|
732
732
|
};
|
|
733
733
|
var defaultProps$L = {
|
|
734
734
|
href: null,
|
|
@@ -846,13 +846,13 @@ var Card = function Card(_ref) {
|
|
|
846
846
|
Card.propTypes = propTypes$L;
|
|
847
847
|
Card.defaultProps = defaultProps$L;
|
|
848
848
|
|
|
849
|
-
var styles$t = {"container":"micromag-core-partials-spinner-container","path":"micromag-core-partials-spinner-path","animated":"micromag-core-partials-spinner-animated"
|
|
849
|
+
var styles$t = {"container":"micromag-core-partials-spinner-container","path":"micromag-core-partials-spinner-path","animated":"micromag-core-partials-spinner-animated"};
|
|
850
850
|
|
|
851
851
|
var propTypes$K = {
|
|
852
|
-
animated: PropTypes
|
|
853
|
-
color: PropTypes
|
|
854
|
-
strokeWidth: PropTypes
|
|
855
|
-
className: PropTypes
|
|
852
|
+
animated: PropTypes.bool,
|
|
853
|
+
color: PropTypes.string,
|
|
854
|
+
strokeWidth: PropTypes.number,
|
|
855
|
+
className: PropTypes.string
|
|
856
856
|
};
|
|
857
857
|
var defaultProps$K = {
|
|
858
858
|
animated: true,
|
|
@@ -888,10 +888,10 @@ var styles$s = {};
|
|
|
888
888
|
|
|
889
889
|
var _excluded$5 = ["description", "loading", "children", "className"];
|
|
890
890
|
var propTypes$J = {
|
|
891
|
-
description: PropTypes
|
|
892
|
-
loading: PropTypes
|
|
893
|
-
children: PropTypes
|
|
894
|
-
className: PropTypes
|
|
891
|
+
description: PropTypes.node,
|
|
892
|
+
loading: PropTypes.bool,
|
|
893
|
+
children: PropTypes.node,
|
|
894
|
+
className: PropTypes.string
|
|
895
895
|
};
|
|
896
896
|
var defaultProps$J = {
|
|
897
897
|
description: null,
|
|
@@ -913,8 +913,8 @@ FormPanel.propTypes = propTypes$J;
|
|
|
913
913
|
FormPanel.defaultProps = defaultProps$J;
|
|
914
914
|
|
|
915
915
|
var propTypes$I = {
|
|
916
|
-
className: PropTypes
|
|
917
|
-
color: PropTypes
|
|
916
|
+
className: PropTypes.string,
|
|
917
|
+
color: PropTypes.string
|
|
918
918
|
};
|
|
919
919
|
var defaultProps$I = {
|
|
920
920
|
className: null,
|
|
@@ -941,8 +941,8 @@ ArrowIcon.propTypes = propTypes$I;
|
|
|
941
941
|
ArrowIcon.defaultProps = defaultProps$I;
|
|
942
942
|
|
|
943
943
|
var propTypes$H = {
|
|
944
|
-
className: PropTypes
|
|
945
|
-
color: PropTypes
|
|
944
|
+
className: PropTypes.string,
|
|
945
|
+
color: PropTypes.string
|
|
946
946
|
};
|
|
947
947
|
var defaultProps$H = {
|
|
948
948
|
className: null,
|
|
@@ -974,8 +974,8 @@ CloseIcon.propTypes = propTypes$H;
|
|
|
974
974
|
CloseIcon.defaultProps = defaultProps$H;
|
|
975
975
|
|
|
976
976
|
var propTypes$G = {
|
|
977
|
-
className: PropTypes
|
|
978
|
-
color: PropTypes
|
|
977
|
+
className: PropTypes.string,
|
|
978
|
+
color: PropTypes.string
|
|
979
979
|
};
|
|
980
980
|
var defaultProps$G = {
|
|
981
981
|
className: null,
|
|
@@ -1000,8 +1000,8 @@ FullscreenIcon.propTypes = propTypes$G;
|
|
|
1000
1000
|
FullscreenIcon.defaultProps = defaultProps$G;
|
|
1001
1001
|
|
|
1002
1002
|
var propTypes$F = {
|
|
1003
|
-
className: PropTypes
|
|
1004
|
-
color: PropTypes
|
|
1003
|
+
className: PropTypes.string,
|
|
1004
|
+
color: PropTypes.string
|
|
1005
1005
|
};
|
|
1006
1006
|
var defaultProps$F = {
|
|
1007
1007
|
className: null,
|
|
@@ -1035,8 +1035,8 @@ LinkIcon.propTypes = propTypes$F;
|
|
|
1035
1035
|
LinkIcon.defaultProps = defaultProps$F;
|
|
1036
1036
|
|
|
1037
1037
|
var propTypes$E = {
|
|
1038
|
-
className: PropTypes
|
|
1039
|
-
color: PropTypes
|
|
1038
|
+
className: PropTypes.string,
|
|
1039
|
+
color: PropTypes.string
|
|
1040
1040
|
};
|
|
1041
1041
|
var defaultProps$E = {
|
|
1042
1042
|
className: null,
|
|
@@ -1067,8 +1067,8 @@ MuteIcon.propTypes = propTypes$E;
|
|
|
1067
1067
|
MuteIcon.defaultProps = defaultProps$E;
|
|
1068
1068
|
|
|
1069
1069
|
var propTypes$D = {
|
|
1070
|
-
className: PropTypes
|
|
1071
|
-
color: PropTypes
|
|
1070
|
+
className: PropTypes.string,
|
|
1071
|
+
color: PropTypes.string
|
|
1072
1072
|
};
|
|
1073
1073
|
var defaultProps$D = {
|
|
1074
1074
|
className: null,
|
|
@@ -1101,8 +1101,8 @@ PauseIcon.propTypes = propTypes$D;
|
|
|
1101
1101
|
PauseIcon.defaultProps = defaultProps$D;
|
|
1102
1102
|
|
|
1103
1103
|
var propTypes$C = {
|
|
1104
|
-
className: PropTypes
|
|
1105
|
-
color: PropTypes
|
|
1104
|
+
className: PropTypes.string,
|
|
1105
|
+
color: PropTypes.string
|
|
1106
1106
|
};
|
|
1107
1107
|
var defaultProps$C = {
|
|
1108
1108
|
className: null,
|
|
@@ -1128,8 +1128,8 @@ PlayIcon.propTypes = propTypes$C;
|
|
|
1128
1128
|
PlayIcon.defaultProps = defaultProps$C;
|
|
1129
1129
|
|
|
1130
1130
|
var propTypes$B = {
|
|
1131
|
-
className: PropTypes
|
|
1132
|
-
color: PropTypes
|
|
1131
|
+
className: PropTypes.string,
|
|
1132
|
+
color: PropTypes.string
|
|
1133
1133
|
};
|
|
1134
1134
|
var defaultProps$B = {
|
|
1135
1135
|
className: null,
|
|
@@ -1161,12 +1161,12 @@ UnmuteIcon.defaultProps = defaultProps$B;
|
|
|
1161
1161
|
var styles$r = {"container":"micromag-core-menus-breadcrumb-container","arrow":"micromag-core-menus-breadcrumb-arrow"};
|
|
1162
1162
|
|
|
1163
1163
|
var propTypes$A = {
|
|
1164
|
-
items: PropTypes.menuItems,
|
|
1165
|
-
theme: PropTypes.bootstrapThemes,
|
|
1166
|
-
separator: PropTypes
|
|
1167
|
-
withoutBar: PropTypes
|
|
1168
|
-
noWrap: PropTypes
|
|
1169
|
-
className: PropTypes
|
|
1164
|
+
items: PropTypes$1.menuItems,
|
|
1165
|
+
theme: PropTypes$1.bootstrapThemes,
|
|
1166
|
+
separator: PropTypes.oneOf([null, 'arrow']),
|
|
1167
|
+
withoutBar: PropTypes.bool,
|
|
1168
|
+
noWrap: PropTypes.bool,
|
|
1169
|
+
className: PropTypes.string
|
|
1170
1170
|
};
|
|
1171
1171
|
var defaultProps$A = {
|
|
1172
1172
|
items: [],
|
|
@@ -1219,14 +1219,14 @@ Breadcrumb.defaultProps = defaultProps$A;
|
|
|
1219
1219
|
|
|
1220
1220
|
var _excluded$4 = ["type", "className", "label", "children", "onClick", "active"];
|
|
1221
1221
|
var propTypes$z = {
|
|
1222
|
-
items: PropTypes.menuItems,
|
|
1223
|
-
children: PropTypes
|
|
1224
|
-
visible: PropTypes
|
|
1225
|
-
align: PropTypes.dropdownAlign,
|
|
1226
|
-
className: PropTypes
|
|
1227
|
-
itemClassName: PropTypes
|
|
1228
|
-
onClickItem: PropTypes
|
|
1229
|
-
onClickOutside: PropTypes
|
|
1222
|
+
items: PropTypes$1.menuItems,
|
|
1223
|
+
children: PropTypes.node,
|
|
1224
|
+
visible: PropTypes.bool,
|
|
1225
|
+
align: PropTypes$1.dropdownAlign,
|
|
1226
|
+
className: PropTypes.string,
|
|
1227
|
+
itemClassName: PropTypes.string,
|
|
1228
|
+
onClickItem: PropTypes.func,
|
|
1229
|
+
onClickOutside: PropTypes.func
|
|
1230
1230
|
};
|
|
1231
1231
|
var defaultProps$z = {
|
|
1232
1232
|
items: [],
|
|
@@ -1321,23 +1321,23 @@ Dropdown.defaultProps = defaultProps$z;
|
|
|
1321
1321
|
|
|
1322
1322
|
var _excluded$3 = ["id", "className", "linkClassName", "href", "label", "external", "items", "dropdown", "active", "onClick"];
|
|
1323
1323
|
var propTypes$y = {
|
|
1324
|
-
items: PropTypes.menuItems,
|
|
1325
|
-
tagName: PropTypes
|
|
1326
|
-
itemTagName: PropTypes
|
|
1327
|
-
children: PropTypes
|
|
1328
|
-
linkAsItem: PropTypes
|
|
1329
|
-
className: PropTypes
|
|
1330
|
-
itemClassName: PropTypes
|
|
1331
|
-
linkClassName: PropTypes
|
|
1332
|
-
hasSubMenuClassName: PropTypes
|
|
1333
|
-
subMenuClassName: PropTypes
|
|
1334
|
-
subMenuItemClassName: PropTypes
|
|
1335
|
-
subMenuLinkClassName: PropTypes
|
|
1336
|
-
hasDropdownClassName: PropTypes
|
|
1337
|
-
dropdownClassName: PropTypes
|
|
1338
|
-
dropdownItemClassName: PropTypes
|
|
1339
|
-
dropdownLinkClassName: PropTypes
|
|
1340
|
-
dropdownAlign: PropTypes.dropdownAlign
|
|
1324
|
+
items: PropTypes$1.menuItems,
|
|
1325
|
+
tagName: PropTypes.string,
|
|
1326
|
+
itemTagName: PropTypes.string,
|
|
1327
|
+
children: PropTypes.node,
|
|
1328
|
+
linkAsItem: PropTypes.bool,
|
|
1329
|
+
className: PropTypes.string,
|
|
1330
|
+
itemClassName: PropTypes.string,
|
|
1331
|
+
linkClassName: PropTypes.string,
|
|
1332
|
+
hasSubMenuClassName: PropTypes.string,
|
|
1333
|
+
subMenuClassName: PropTypes.string,
|
|
1334
|
+
subMenuItemClassName: PropTypes.string,
|
|
1335
|
+
subMenuLinkClassName: PropTypes.string,
|
|
1336
|
+
hasDropdownClassName: PropTypes.string,
|
|
1337
|
+
dropdownClassName: PropTypes.string,
|
|
1338
|
+
dropdownItemClassName: PropTypes.string,
|
|
1339
|
+
dropdownLinkClassName: PropTypes.string,
|
|
1340
|
+
dropdownAlign: PropTypes$1.dropdownAlign
|
|
1341
1341
|
};
|
|
1342
1342
|
var defaultProps$y = {
|
|
1343
1343
|
items: [],
|
|
@@ -1461,20 +1461,20 @@ _Menu.defaultProps = defaultProps$y;
|
|
|
1461
1461
|
var styles$q = {"collapse":"micromag-core-menus-navbar-collapse"};
|
|
1462
1462
|
|
|
1463
1463
|
var propTypes$x = {
|
|
1464
|
-
brand: PropTypes
|
|
1465
|
-
brandLink: PropTypes
|
|
1466
|
-
breadcrumbs: PropTypes
|
|
1467
|
-
theme: PropTypes
|
|
1468
|
-
size: PropTypes
|
|
1469
|
-
compact: PropTypes
|
|
1470
|
-
noWrap: PropTypes
|
|
1471
|
-
withoutCollapse: PropTypes
|
|
1472
|
-
withoutCollapseToggle: PropTypes
|
|
1473
|
-
children: PropTypes
|
|
1474
|
-
className: PropTypes
|
|
1475
|
-
brandClassName: PropTypes
|
|
1476
|
-
breadCrumbsClassName: PropTypes
|
|
1477
|
-
collapseClassName: PropTypes
|
|
1464
|
+
brand: PropTypes.node,
|
|
1465
|
+
brandLink: PropTypes.string,
|
|
1466
|
+
breadcrumbs: PropTypes.node,
|
|
1467
|
+
theme: PropTypes.oneOf(['light', 'dark', 'primary', null]),
|
|
1468
|
+
size: PropTypes.oneOf(['sm', 'md', 'lg']),
|
|
1469
|
+
compact: PropTypes.bool,
|
|
1470
|
+
noWrap: PropTypes.bool,
|
|
1471
|
+
withoutCollapse: PropTypes.bool,
|
|
1472
|
+
withoutCollapseToggle: PropTypes.bool,
|
|
1473
|
+
children: PropTypes.node,
|
|
1474
|
+
className: PropTypes.string,
|
|
1475
|
+
brandClassName: PropTypes.string,
|
|
1476
|
+
breadCrumbsClassName: PropTypes.string,
|
|
1477
|
+
collapseClassName: PropTypes.string
|
|
1478
1478
|
};
|
|
1479
1479
|
var defaultProps$x = {
|
|
1480
1480
|
brand: null,
|
|
@@ -1568,19 +1568,19 @@ var messages = defineMessages({
|
|
|
1568
1568
|
}
|
|
1569
1569
|
});
|
|
1570
1570
|
var propTypes$w = {
|
|
1571
|
-
page: PropTypes
|
|
1572
|
-
lastPage: PropTypes
|
|
1573
|
-
maxPages: PropTypes
|
|
1574
|
-
total: PropTypes
|
|
1575
|
-
url: PropTypes
|
|
1576
|
-
query: PropTypes
|
|
1571
|
+
page: PropTypes.number,
|
|
1572
|
+
lastPage: PropTypes.number,
|
|
1573
|
+
maxPages: PropTypes.number,
|
|
1574
|
+
total: PropTypes.number,
|
|
1575
|
+
url: PropTypes.string,
|
|
1576
|
+
query: PropTypes.object,
|
|
1577
1577
|
// eslint-disable-line react/forbid-prop-types
|
|
1578
|
-
withPreviousNext: PropTypes
|
|
1579
|
-
className: PropTypes
|
|
1580
|
-
paginationClassName: PropTypes
|
|
1581
|
-
itemClassName: PropTypes
|
|
1582
|
-
linkClassName: PropTypes
|
|
1583
|
-
onClickPage: PropTypes
|
|
1578
|
+
withPreviousNext: PropTypes.bool,
|
|
1579
|
+
className: PropTypes.string,
|
|
1580
|
+
paginationClassName: PropTypes.string,
|
|
1581
|
+
itemClassName: PropTypes.string,
|
|
1582
|
+
linkClassName: PropTypes.string,
|
|
1583
|
+
onClickPage: PropTypes.func
|
|
1584
1584
|
};
|
|
1585
1585
|
var defaultProps$w = {
|
|
1586
1586
|
page: 1,
|
|
@@ -1691,13 +1691,13 @@ PaginationMenu.defaultProps = defaultProps$w;
|
|
|
1691
1691
|
var styles$o = {"container":"micromag-core-menus-tabs-container"};
|
|
1692
1692
|
|
|
1693
1693
|
var propTypes$v = {
|
|
1694
|
-
items: PropTypes.menuItems,
|
|
1695
|
-
size: PropTypes.buttonSize,
|
|
1696
|
-
theme: PropTypes.buttonTheme,
|
|
1697
|
-
renderItemButton: PropTypes
|
|
1698
|
-
buttonClassName: PropTypes
|
|
1699
|
-
className: PropTypes
|
|
1700
|
-
onClickItem: PropTypes
|
|
1694
|
+
items: PropTypes$1.menuItems,
|
|
1695
|
+
size: PropTypes$1.buttonSize,
|
|
1696
|
+
theme: PropTypes$1.buttonTheme,
|
|
1697
|
+
renderItemButton: PropTypes.func,
|
|
1698
|
+
buttonClassName: PropTypes.string,
|
|
1699
|
+
className: PropTypes.string,
|
|
1700
|
+
onClickItem: PropTypes.func
|
|
1701
1701
|
};
|
|
1702
1702
|
var defaultProps$v = {
|
|
1703
1703
|
items: [],
|
|
@@ -1734,9 +1734,9 @@ TabsMenu.defaultProps = defaultProps$v;
|
|
|
1734
1734
|
var styles$n = {"container":"micromag-core-modals-container","modals":"micromag-core-modals-modals","hasModals":"micromag-core-modals-hasModals"};
|
|
1735
1735
|
|
|
1736
1736
|
var propTypes$u = {
|
|
1737
|
-
modals: PropTypes.modals.isRequired,
|
|
1738
|
-
setModalsContainer: PropTypes
|
|
1739
|
-
className: PropTypes
|
|
1737
|
+
modals: PropTypes$1.modals.isRequired,
|
|
1738
|
+
setModalsContainer: PropTypes.func.isRequired,
|
|
1739
|
+
className: PropTypes.string
|
|
1740
1740
|
};
|
|
1741
1741
|
var defaultProps$u = {
|
|
1742
1742
|
className: null
|
|
@@ -1762,14 +1762,14 @@ var Modals = withModals(ModalsContainer);
|
|
|
1762
1762
|
|
|
1763
1763
|
/* eslint-disable react/no-array-index-key, react/jsx-props-no-spreading */
|
|
1764
1764
|
var propTypes$t = {
|
|
1765
|
-
id: PropTypes
|
|
1766
|
-
data: PropTypes
|
|
1765
|
+
id: PropTypes.string,
|
|
1766
|
+
data: PropTypes.object,
|
|
1767
1767
|
// eslint-disable-line react/forbid-prop-types
|
|
1768
|
-
container: PropTypes
|
|
1768
|
+
container: PropTypes.object,
|
|
1769
1769
|
// eslint-disable-line react/forbid-prop-types
|
|
1770
|
-
register: PropTypes
|
|
1771
|
-
unregister: PropTypes
|
|
1772
|
-
children: PropTypes
|
|
1770
|
+
register: PropTypes.func,
|
|
1771
|
+
unregister: PropTypes.func,
|
|
1772
|
+
children: PropTypes.node
|
|
1773
1773
|
};
|
|
1774
1774
|
var defaultProps$t = {
|
|
1775
1775
|
id: null,
|
|
@@ -1806,10 +1806,10 @@ ElementPortal.defaultProps = defaultProps$t;
|
|
|
1806
1806
|
|
|
1807
1807
|
/* eslint-disable react/no-array-index-key, react/jsx-props-no-spreading */
|
|
1808
1808
|
var propTypes$s = {
|
|
1809
|
-
id: PropTypes
|
|
1810
|
-
data: PropTypes
|
|
1809
|
+
id: PropTypes.string,
|
|
1810
|
+
data: PropTypes.object,
|
|
1811
1811
|
// eslint-disable-line react/forbid-prop-types
|
|
1812
|
-
children: PropTypes
|
|
1812
|
+
children: PropTypes.node
|
|
1813
1813
|
};
|
|
1814
1814
|
var defaultProps$s = {
|
|
1815
1815
|
id: null,
|
|
@@ -1840,10 +1840,10 @@ ModalPortal.defaultProps = defaultProps$s;
|
|
|
1840
1840
|
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"};
|
|
1841
1841
|
|
|
1842
1842
|
var propTypes$r = {
|
|
1843
|
-
id: PropTypes
|
|
1844
|
-
title: PropTypes
|
|
1845
|
-
position: PropTypes
|
|
1846
|
-
children: PropTypes
|
|
1843
|
+
id: PropTypes.string,
|
|
1844
|
+
title: PropTypes.string,
|
|
1845
|
+
position: PropTypes.oneOf(['center', 'top']),
|
|
1846
|
+
children: PropTypes.node
|
|
1847
1847
|
};
|
|
1848
1848
|
var defaultProps$r = {
|
|
1849
1849
|
id: null,
|
|
@@ -1879,15 +1879,15 @@ Modal.defaultProps = defaultProps$r;
|
|
|
1879
1879
|
var styles$l = {"container":"micromag-core-modals-dialog-container"};
|
|
1880
1880
|
|
|
1881
1881
|
var propTypes$q = {
|
|
1882
|
-
title: PropTypes.label,
|
|
1883
|
-
header: PropTypes
|
|
1884
|
-
children: PropTypes
|
|
1885
|
-
footer: PropTypes
|
|
1886
|
-
size: PropTypes
|
|
1887
|
-
buttons: PropTypes.buttons,
|
|
1888
|
-
onClose: PropTypes
|
|
1889
|
-
className: PropTypes
|
|
1890
|
-
bodyClassName: PropTypes
|
|
1882
|
+
title: PropTypes$1.label,
|
|
1883
|
+
header: PropTypes.node,
|
|
1884
|
+
children: PropTypes.node,
|
|
1885
|
+
footer: PropTypes.node,
|
|
1886
|
+
size: PropTypes.string,
|
|
1887
|
+
buttons: PropTypes$1.buttons,
|
|
1888
|
+
onClose: PropTypes.func,
|
|
1889
|
+
className: PropTypes.string,
|
|
1890
|
+
bodyClassName: PropTypes.string
|
|
1891
1891
|
};
|
|
1892
1892
|
var defaultProps$q = {
|
|
1893
1893
|
title: null,
|
|
@@ -1939,9 +1939,9 @@ ModalDialog.defaultProps = defaultProps$q;
|
|
|
1939
1939
|
var styles$k = {"container":"micromag-core-panels-container"};
|
|
1940
1940
|
|
|
1941
1941
|
var propTypes$p = {
|
|
1942
|
-
panels: PropTypes.panels,
|
|
1943
|
-
setPanelsContainer: PropTypes
|
|
1944
|
-
className: PropTypes
|
|
1942
|
+
panels: PropTypes$1.panels,
|
|
1943
|
+
setPanelsContainer: PropTypes.func,
|
|
1944
|
+
className: PropTypes.string
|
|
1945
1945
|
};
|
|
1946
1946
|
var defaultProps$p = {
|
|
1947
1947
|
panels: [],
|
|
@@ -1969,10 +1969,10 @@ var Panels = withPanels(PanelsContainer);
|
|
|
1969
1969
|
|
|
1970
1970
|
/* eslint-disable react/no-array-index-key, react/jsx-props-no-spreading */
|
|
1971
1971
|
var propTypes$o = {
|
|
1972
|
-
id: PropTypes
|
|
1973
|
-
data: PropTypes
|
|
1972
|
+
id: PropTypes.string,
|
|
1973
|
+
data: PropTypes.object,
|
|
1974
1974
|
// eslint-disable-line react/forbid-prop-types
|
|
1975
|
-
children: PropTypes
|
|
1975
|
+
children: PropTypes.node
|
|
1976
1976
|
};
|
|
1977
1977
|
var defaultProps$o = {
|
|
1978
1978
|
id: null,
|
|
@@ -2009,9 +2009,9 @@ var styles$j = {"container":"micromag-core-panels-panel-container"};
|
|
|
2009
2009
|
|
|
2010
2010
|
/* eslint-disable react/no-array-index-key, react/jsx-props-no-spreading */
|
|
2011
2011
|
var propTypes$n = {
|
|
2012
|
-
id: PropTypes
|
|
2013
|
-
title: PropTypes
|
|
2014
|
-
children: PropTypes
|
|
2012
|
+
id: PropTypes.string,
|
|
2013
|
+
title: PropTypes.string,
|
|
2014
|
+
children: PropTypes.node
|
|
2015
2015
|
};
|
|
2016
2016
|
var defaultProps$n = {
|
|
2017
2017
|
id: null,
|
|
@@ -2043,13 +2043,13 @@ Panel.defaultProps = defaultProps$n;
|
|
|
2043
2043
|
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"};
|
|
2044
2044
|
|
|
2045
2045
|
var propTypes$m = {
|
|
2046
|
-
title: PropTypes
|
|
2047
|
-
children: PropTypes
|
|
2048
|
-
className: PropTypes
|
|
2049
|
-
topClassName: PropTypes
|
|
2050
|
-
contentClassName: PropTypes
|
|
2051
|
-
openedClassName: PropTypes
|
|
2052
|
-
buttonClassName: PropTypes
|
|
2046
|
+
title: PropTypes.node,
|
|
2047
|
+
children: PropTypes.node,
|
|
2048
|
+
className: PropTypes.string,
|
|
2049
|
+
topClassName: PropTypes.string,
|
|
2050
|
+
contentClassName: PropTypes.string,
|
|
2051
|
+
openedClassName: PropTypes.string,
|
|
2052
|
+
buttonClassName: PropTypes.string
|
|
2053
2053
|
};
|
|
2054
2054
|
var defaultProps$m = {
|
|
2055
2055
|
title: null,
|
|
@@ -2097,10 +2097,10 @@ CollapsablePanel.propTypes = propTypes$m;
|
|
|
2097
2097
|
CollapsablePanel.defaultProps = defaultProps$m;
|
|
2098
2098
|
|
|
2099
2099
|
var propTypes$l = {
|
|
2100
|
-
stroke: PropTypes
|
|
2101
|
-
border: PropTypes
|
|
2102
|
-
fill: PropTypes
|
|
2103
|
-
className: PropTypes
|
|
2100
|
+
stroke: PropTypes.string,
|
|
2101
|
+
border: PropTypes.string,
|
|
2102
|
+
fill: PropTypes.string,
|
|
2103
|
+
className: PropTypes.string
|
|
2104
2104
|
};
|
|
2105
2105
|
var defaultProps$l = {
|
|
2106
2106
|
stroke: 'currentColor',
|
|
@@ -2150,9 +2150,9 @@ Close.defaultProps = defaultProps$l;
|
|
|
2150
2150
|
|
|
2151
2151
|
/* eslint-disable react/jsx-props-no-spreading */
|
|
2152
2152
|
var propTypes$k = {
|
|
2153
|
-
date: PropTypes
|
|
2154
|
-
withTime: PropTypes
|
|
2155
|
-
timeSeparator: PropTypes
|
|
2153
|
+
date: PropTypes.string,
|
|
2154
|
+
withTime: PropTypes.bool,
|
|
2155
|
+
timeSeparator: PropTypes.node
|
|
2156
2156
|
};
|
|
2157
2157
|
var defaultProps$k = {
|
|
2158
2158
|
date: null,
|
|
@@ -2180,14 +2180,14 @@ Date$1.defaultProps = defaultProps$k;
|
|
|
2180
2180
|
|
|
2181
2181
|
/* eslint-disable react/no-danger */
|
|
2182
2182
|
var propTypes$j = {
|
|
2183
|
-
throttleDelay: PropTypes
|
|
2184
|
-
threshold: PropTypes
|
|
2185
|
-
onEnter: PropTypes
|
|
2186
|
-
onLeave: PropTypes
|
|
2187
|
-
onChange: PropTypes
|
|
2188
|
-
disabled: PropTypes
|
|
2189
|
-
children: PropTypes
|
|
2190
|
-
className: PropTypes
|
|
2183
|
+
throttleDelay: PropTypes.number,
|
|
2184
|
+
threshold: PropTypes.arrayOf(PropTypes.number),
|
|
2185
|
+
onEnter: PropTypes.func,
|
|
2186
|
+
onLeave: PropTypes.func,
|
|
2187
|
+
onChange: PropTypes.func,
|
|
2188
|
+
disabled: PropTypes.bool,
|
|
2189
|
+
children: PropTypes.node,
|
|
2190
|
+
className: PropTypes.string
|
|
2191
2191
|
};
|
|
2192
2192
|
var defaultProps$j = {
|
|
2193
2193
|
throttleDelay: null,
|
|
@@ -2259,13 +2259,13 @@ Detector.defaultProps = defaultProps$j;
|
|
|
2259
2259
|
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"};
|
|
2260
2260
|
|
|
2261
2261
|
var propTypes$i = {
|
|
2262
|
-
width: PropTypes
|
|
2263
|
-
height: PropTypes
|
|
2264
|
-
outline: PropTypes
|
|
2265
|
-
className: PropTypes
|
|
2266
|
-
boxClassName: PropTypes
|
|
2267
|
-
children: PropTypes
|
|
2268
|
-
withInvertedColors: PropTypes
|
|
2262
|
+
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
2263
|
+
height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
2264
|
+
outline: PropTypes.bool,
|
|
2265
|
+
className: PropTypes.string,
|
|
2266
|
+
boxClassName: PropTypes.string,
|
|
2267
|
+
children: PropTypes.node,
|
|
2268
|
+
withInvertedColors: PropTypes.bool
|
|
2269
2269
|
};
|
|
2270
2270
|
var defaultProps$i = {
|
|
2271
2271
|
width: '100%',
|
|
@@ -2302,14 +2302,14 @@ PlaceholderBlock.defaultProps = defaultProps$i;
|
|
|
2302
2302
|
// import { PropTypes as MicromagPropTypes } from '@micromag/core';
|
|
2303
2303
|
|
|
2304
2304
|
var propTypes$h = {
|
|
2305
|
-
name: PropTypes
|
|
2306
|
-
components: PropTypes
|
|
2305
|
+
name: PropTypes.string.isRequired,
|
|
2306
|
+
components: PropTypes.object.isRequired,
|
|
2307
2307
|
// eslint-disable-line
|
|
2308
|
-
props: PropTypes
|
|
2308
|
+
props: PropTypes.object,
|
|
2309
2309
|
// eslint-disable-line
|
|
2310
|
-
isPlaceholder: PropTypes
|
|
2311
|
-
className: PropTypes
|
|
2312
|
-
placeholderProps: PropTypes
|
|
2310
|
+
isPlaceholder: PropTypes.bool,
|
|
2311
|
+
className: PropTypes.string,
|
|
2312
|
+
placeholderProps: PropTypes.object // eslint-disable-line
|
|
2313
2313
|
};
|
|
2314
2314
|
var defaultProps$h = {
|
|
2315
2315
|
props: {},
|
|
@@ -2343,13 +2343,13 @@ var ElementComponent = function ElementComponent(_ref) {
|
|
|
2343
2343
|
ElementComponent.propTypes = propTypes$h;
|
|
2344
2344
|
ElementComponent.defaultProps = defaultProps$h;
|
|
2345
2345
|
|
|
2346
|
-
var styles$g = {"container":"micromag-core-partials-empty-container","middle":"micromag-core-partials-empty-middle","withoutBorder":"micromag-core-partials-empty-withoutBorder"
|
|
2346
|
+
var styles$g = {"container":"micromag-core-partials-empty-container","middle":"micromag-core-partials-empty-middle","withoutBorder":"micromag-core-partials-empty-withoutBorder"};
|
|
2347
2347
|
|
|
2348
2348
|
var propTypes$g = {
|
|
2349
|
-
children: PropTypes
|
|
2350
|
-
withoutBorder: PropTypes
|
|
2351
|
-
light: PropTypes
|
|
2352
|
-
className: PropTypes
|
|
2349
|
+
children: PropTypes.node,
|
|
2350
|
+
withoutBorder: PropTypes.bool,
|
|
2351
|
+
light: PropTypes.bool,
|
|
2352
|
+
className: PropTypes.string
|
|
2353
2353
|
};
|
|
2354
2354
|
var defaultProps$g = {
|
|
2355
2355
|
children: null,
|
|
@@ -2400,10 +2400,10 @@ var getUrlsFromMedia = function getUrlsFromMedia(media, formats) {
|
|
|
2400
2400
|
return urls;
|
|
2401
2401
|
};
|
|
2402
2402
|
var propTypes$f = {
|
|
2403
|
-
fonts: PropTypes.fonts,
|
|
2404
|
-
formats: PropTypes
|
|
2405
|
-
name: PropTypes
|
|
2406
|
-
format: PropTypes
|
|
2403
|
+
fonts: PropTypes$1.fonts,
|
|
2404
|
+
formats: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
2405
|
+
name: PropTypes.string,
|
|
2406
|
+
format: PropTypes.string
|
|
2407
2407
|
})]))
|
|
2408
2408
|
};
|
|
2409
2409
|
var defaultProps$f = {
|
|
@@ -2456,14 +2456,14 @@ FontFaces.defaultProps = defaultProps$f;
|
|
|
2456
2456
|
var styles$f = {};
|
|
2457
2457
|
|
|
2458
2458
|
var propTypes$e = {
|
|
2459
|
-
thumbnail: PropTypes
|
|
2460
|
-
thumbnailAlign: PropTypes
|
|
2461
|
-
children: PropTypes
|
|
2462
|
-
title: PropTypes.label,
|
|
2463
|
-
className: PropTypes
|
|
2464
|
-
thumbnailClassName: PropTypes
|
|
2465
|
-
bodyClassName: PropTypes
|
|
2466
|
-
titleClassName: PropTypes
|
|
2459
|
+
thumbnail: PropTypes.node,
|
|
2460
|
+
thumbnailAlign: PropTypes.oneOf(['top', 'center', 'bottom']),
|
|
2461
|
+
children: PropTypes.node,
|
|
2462
|
+
title: PropTypes$1.label,
|
|
2463
|
+
className: PropTypes.string,
|
|
2464
|
+
thumbnailClassName: PropTypes.string,
|
|
2465
|
+
bodyClassName: PropTypes.string,
|
|
2466
|
+
titleClassName: PropTypes.string
|
|
2467
2467
|
};
|
|
2468
2468
|
var defaultProps$e = {
|
|
2469
2469
|
thumbnail: null,
|
|
@@ -2506,365 +2506,365 @@ Media.defaultProps = defaultProps$e;
|
|
|
2506
2506
|
/**
|
|
2507
2507
|
* Core
|
|
2508
2508
|
*/
|
|
2509
|
-
PropTypes
|
|
2510
|
-
listen: PropTypes
|
|
2511
|
-
push: PropTypes
|
|
2509
|
+
PropTypes.shape({
|
|
2510
|
+
listen: PropTypes.func.isRequired,
|
|
2511
|
+
push: PropTypes.func.isRequired
|
|
2512
2512
|
});
|
|
2513
|
-
PropTypes
|
|
2514
|
-
pathname: PropTypes
|
|
2515
|
-
search: PropTypes
|
|
2513
|
+
PropTypes.shape({
|
|
2514
|
+
pathname: PropTypes.string,
|
|
2515
|
+
search: PropTypes.string
|
|
2516
2516
|
});
|
|
2517
|
-
PropTypes
|
|
2518
|
-
locale: PropTypes
|
|
2519
|
-
formatMessage: PropTypes
|
|
2517
|
+
PropTypes.shape({
|
|
2518
|
+
locale: PropTypes.string.isRequired,
|
|
2519
|
+
formatMessage: PropTypes.func.isRequired
|
|
2520
2520
|
});
|
|
2521
|
-
var defaultMessageContent = PropTypes
|
|
2522
|
-
type: PropTypes
|
|
2523
|
-
value: PropTypes
|
|
2521
|
+
var defaultMessageContent = PropTypes.shape({
|
|
2522
|
+
type: PropTypes.number,
|
|
2523
|
+
value: PropTypes.string
|
|
2524
2524
|
});
|
|
2525
|
-
var defaultMessage = PropTypes
|
|
2526
|
-
var message = PropTypes
|
|
2527
|
-
id: PropTypes
|
|
2525
|
+
var defaultMessage = PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(defaultMessageContent)]);
|
|
2526
|
+
var message = PropTypes.shape({
|
|
2527
|
+
id: PropTypes.string,
|
|
2528
2528
|
defaultMessage: defaultMessage.isRequired,
|
|
2529
|
-
description: PropTypes
|
|
2529
|
+
description: PropTypes.string
|
|
2530
2530
|
});
|
|
2531
|
-
var text = PropTypes
|
|
2532
|
-
var label = PropTypes
|
|
2533
|
-
PropTypes
|
|
2534
|
-
PropTypes
|
|
2535
|
-
current: PropTypes
|
|
2536
|
-
}), PropTypes
|
|
2537
|
-
var target = PropTypes
|
|
2538
|
-
var interaction = PropTypes
|
|
2539
|
-
PropTypes
|
|
2540
|
-
PropTypes
|
|
2541
|
-
PropTypes
|
|
2542
|
-
currentTime: PropTypes
|
|
2543
|
-
duration: PropTypes
|
|
2531
|
+
var text = PropTypes.oneOfType([message, PropTypes.string]);
|
|
2532
|
+
var label = PropTypes.oneOfType([message, PropTypes.node]);
|
|
2533
|
+
PropTypes.oneOf([401, 403, 404, 500]);
|
|
2534
|
+
PropTypes.oneOfType([PropTypes.shape({
|
|
2535
|
+
current: PropTypes.any // eslint-disable-line react/forbid-prop-types
|
|
2536
|
+
}), PropTypes.func]);
|
|
2537
|
+
var target = PropTypes.oneOf(['_blank', '_self', '_parent']);
|
|
2538
|
+
var interaction = PropTypes.oneOf(['tap', 'swipe']);
|
|
2539
|
+
PropTypes.arrayOf(interaction);
|
|
2540
|
+
PropTypes.objectOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.array]));
|
|
2541
|
+
PropTypes.shape({
|
|
2542
|
+
currentTime: PropTypes.number,
|
|
2543
|
+
duration: PropTypes.number
|
|
2544
2544
|
});
|
|
2545
2545
|
|
|
2546
2546
|
/**
|
|
2547
2547
|
* Site
|
|
2548
2548
|
*/
|
|
2549
|
-
PropTypes
|
|
2550
|
-
id: PropTypes
|
|
2551
|
-
firstname: PropTypes
|
|
2552
|
-
lastname: PropTypes
|
|
2553
|
-
email: PropTypes
|
|
2554
|
-
gender: PropTypes
|
|
2555
|
-
birthdate: PropTypes
|
|
2549
|
+
PropTypes.shape({
|
|
2550
|
+
id: PropTypes.number,
|
|
2551
|
+
firstname: PropTypes.string,
|
|
2552
|
+
lastname: PropTypes.string,
|
|
2553
|
+
email: PropTypes.string,
|
|
2554
|
+
gender: PropTypes.string,
|
|
2555
|
+
birthdate: PropTypes.string
|
|
2556
2556
|
});
|
|
2557
|
-
var menuItem = PropTypes
|
|
2558
|
-
id: PropTypes
|
|
2557
|
+
var menuItem = PropTypes.shape({
|
|
2558
|
+
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
2559
2559
|
label: label,
|
|
2560
|
-
url: PropTypes
|
|
2561
|
-
external: PropTypes
|
|
2562
|
-
active: PropTypes
|
|
2560
|
+
url: PropTypes.string,
|
|
2561
|
+
external: PropTypes.bool,
|
|
2562
|
+
active: PropTypes.bool
|
|
2563
2563
|
});
|
|
2564
|
-
PropTypes
|
|
2565
|
-
var breadcrumb = PropTypes
|
|
2564
|
+
PropTypes.arrayOf(menuItem);
|
|
2565
|
+
var breadcrumb = PropTypes.shape({
|
|
2566
2566
|
label: label,
|
|
2567
|
-
url: PropTypes
|
|
2567
|
+
url: PropTypes.string
|
|
2568
2568
|
});
|
|
2569
|
-
PropTypes
|
|
2570
|
-
var device = PropTypes
|
|
2571
|
-
id: PropTypes
|
|
2569
|
+
PropTypes.arrayOf(breadcrumb);
|
|
2570
|
+
var device = PropTypes.shape({
|
|
2571
|
+
id: PropTypes.string.isRequired
|
|
2572
2572
|
});
|
|
2573
|
-
PropTypes
|
|
2574
|
-
var modal = PropTypes
|
|
2575
|
-
id: PropTypes
|
|
2573
|
+
PropTypes.arrayOf(device);
|
|
2574
|
+
var modal = PropTypes.shape({
|
|
2575
|
+
id: PropTypes.string.isRequired
|
|
2576
2576
|
});
|
|
2577
|
-
PropTypes
|
|
2578
|
-
var panel = PropTypes
|
|
2579
|
-
id: PropTypes
|
|
2577
|
+
PropTypes.arrayOf(modal);
|
|
2578
|
+
var panel = PropTypes.shape({
|
|
2579
|
+
id: PropTypes.string.isRequired
|
|
2580
2580
|
});
|
|
2581
|
-
PropTypes
|
|
2582
|
-
var button = PropTypes
|
|
2581
|
+
PropTypes.arrayOf(panel);
|
|
2582
|
+
var button = PropTypes.shape({
|
|
2583
2583
|
label: label,
|
|
2584
|
-
onClick: PropTypes
|
|
2584
|
+
onClick: PropTypes.func
|
|
2585
2585
|
});
|
|
2586
|
-
PropTypes
|
|
2586
|
+
PropTypes.arrayOf(button);
|
|
2587
2587
|
var bootstrapThemeStrings = ['primary', 'secondary', 'success', 'danger', 'warning', 'info', 'light', 'dark'];
|
|
2588
|
-
PropTypes
|
|
2589
|
-
PropTypes
|
|
2590
|
-
PropTypes
|
|
2591
|
-
PropTypes
|
|
2592
|
-
PropTypes
|
|
2593
|
-
var component = PropTypes
|
|
2594
|
-
PropTypes
|
|
2588
|
+
PropTypes.oneOf(bootstrapThemeStrings);
|
|
2589
|
+
PropTypes.oneOf([].concat(bootstrapThemeStrings, ['outline-primary', 'outline-secondary', 'outline-success', 'outline-danger', 'outline-warning', 'outline-info', 'outline-light', 'outline-dark', 'outline-link', null]));
|
|
2590
|
+
PropTypes.oneOf(['lg', 'sm', null]);
|
|
2591
|
+
PropTypes.oneOf(['lg', 'sm', null]);
|
|
2592
|
+
PropTypes.oneOf(['start', 'end']);
|
|
2593
|
+
var component = PropTypes.oneOfType([PropTypes.object, PropTypes.func]);
|
|
2594
|
+
PropTypes.objectOf(component);
|
|
2595
2595
|
|
|
2596
2596
|
/**
|
|
2597
2597
|
* Forms
|
|
2598
2598
|
*/
|
|
2599
|
-
var errors = PropTypes
|
|
2600
|
-
PropTypes
|
|
2601
|
-
var selectOption = PropTypes
|
|
2602
|
-
value: PropTypes
|
|
2599
|
+
var errors = PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string)]);
|
|
2600
|
+
PropTypes.objectOf(errors);
|
|
2601
|
+
var selectOption = PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
2602
|
+
value: PropTypes.any,
|
|
2603
2603
|
// eslint-disable-line
|
|
2604
2604
|
label: label
|
|
2605
2605
|
})]);
|
|
2606
|
-
PropTypes
|
|
2607
|
-
var formField = PropTypes
|
|
2608
|
-
name: PropTypes
|
|
2606
|
+
PropTypes.arrayOf(selectOption);
|
|
2607
|
+
var formField = PropTypes.shape({
|
|
2608
|
+
name: PropTypes.string,
|
|
2609
2609
|
component: component
|
|
2610
2610
|
});
|
|
2611
|
-
PropTypes
|
|
2611
|
+
PropTypes.arrayOf(formField);
|
|
2612
2612
|
|
|
2613
2613
|
/**
|
|
2614
2614
|
* Medias
|
|
2615
2615
|
*/
|
|
2616
2616
|
var mediaMetadataShape = {
|
|
2617
|
-
filename: PropTypes
|
|
2618
|
-
size: PropTypes
|
|
2619
|
-
mime: PropTypes
|
|
2620
|
-
};
|
|
2621
|
-
var mediaFile = PropTypes
|
|
2622
|
-
id: PropTypes
|
|
2623
|
-
handle: PropTypes
|
|
2624
|
-
type: PropTypes
|
|
2625
|
-
mime: PropTypes
|
|
2626
|
-
url: PropTypes
|
|
2617
|
+
filename: PropTypes.string,
|
|
2618
|
+
size: PropTypes.number,
|
|
2619
|
+
mime: PropTypes.string
|
|
2620
|
+
};
|
|
2621
|
+
var mediaFile = PropTypes.shape({
|
|
2622
|
+
id: PropTypes.string,
|
|
2623
|
+
handle: PropTypes.string,
|
|
2624
|
+
type: PropTypes.string,
|
|
2625
|
+
mime: PropTypes.string,
|
|
2626
|
+
url: PropTypes.string
|
|
2627
2627
|
});
|
|
2628
2628
|
var mediaShape = {
|
|
2629
|
-
id: PropTypes
|
|
2630
|
-
type: PropTypes
|
|
2631
|
-
url: PropTypes
|
|
2629
|
+
id: PropTypes.string,
|
|
2630
|
+
type: PropTypes.string.isRequired,
|
|
2631
|
+
url: PropTypes.string,
|
|
2632
2632
|
// .isRequired,
|
|
2633
|
-
thumbnail_url: PropTypes
|
|
2634
|
-
name: PropTypes
|
|
2635
|
-
metadata: PropTypes
|
|
2636
|
-
files: PropTypes
|
|
2637
|
-
};
|
|
2638
|
-
var media = PropTypes
|
|
2639
|
-
PropTypes
|
|
2640
|
-
PropTypes
|
|
2641
|
-
var imageMedia = PropTypes
|
|
2642
|
-
type: PropTypes
|
|
2643
|
-
metadata: PropTypes
|
|
2644
|
-
width: PropTypes
|
|
2645
|
-
height: PropTypes
|
|
2633
|
+
thumbnail_url: PropTypes.string,
|
|
2634
|
+
name: PropTypes.string,
|
|
2635
|
+
metadata: PropTypes.shape(_objectSpread({}, mediaMetadataShape)),
|
|
2636
|
+
files: PropTypes.objectOf(mediaFile)
|
|
2637
|
+
};
|
|
2638
|
+
var media = PropTypes.shape(mediaShape);
|
|
2639
|
+
PropTypes.arrayOf(media);
|
|
2640
|
+
PropTypes.oneOf(['image', 'video', 'audio', 'closed-captions', 'font']);
|
|
2641
|
+
var imageMedia = PropTypes.shape(_objectSpread(_objectSpread({}, mediaShape), {}, {
|
|
2642
|
+
type: PropTypes.oneOf(['image', 'video']),
|
|
2643
|
+
metadata: PropTypes.shape(_objectSpread(_objectSpread({}, mediaMetadataShape), {}, {
|
|
2644
|
+
width: PropTypes.number,
|
|
2645
|
+
height: PropTypes.number
|
|
2646
2646
|
}))
|
|
2647
2647
|
}));
|
|
2648
|
-
PropTypes
|
|
2649
|
-
var fontMedia = PropTypes
|
|
2650
|
-
type: PropTypes
|
|
2651
|
-
metadata: PropTypes
|
|
2648
|
+
PropTypes.arrayOf(imageMedia);
|
|
2649
|
+
var fontMedia = PropTypes.shape(_objectSpread(_objectSpread({}, mediaShape), {}, {
|
|
2650
|
+
type: PropTypes.oneOf(['font']),
|
|
2651
|
+
metadata: PropTypes.shape(_objectSpread({}, mediaMetadataShape))
|
|
2652
2652
|
}));
|
|
2653
|
-
PropTypes
|
|
2654
|
-
var videoMedia = PropTypes
|
|
2655
|
-
type: PropTypes
|
|
2656
|
-
metadata: PropTypes
|
|
2657
|
-
width: PropTypes
|
|
2658
|
-
height: PropTypes
|
|
2659
|
-
duration: PropTypes
|
|
2653
|
+
PropTypes.arrayOf(fontMedia);
|
|
2654
|
+
var videoMedia = PropTypes.shape(_objectSpread(_objectSpread({}, mediaShape), {}, {
|
|
2655
|
+
type: PropTypes.oneOf(['video']),
|
|
2656
|
+
metadata: PropTypes.shape(_objectSpread(_objectSpread({}, mediaMetadataShape), {}, {
|
|
2657
|
+
width: PropTypes.number,
|
|
2658
|
+
height: PropTypes.number,
|
|
2659
|
+
duration: PropTypes.number
|
|
2660
2660
|
}))
|
|
2661
2661
|
}));
|
|
2662
|
-
PropTypes
|
|
2663
|
-
var audioMedia = PropTypes
|
|
2664
|
-
type: PropTypes
|
|
2665
|
-
metadata: PropTypes
|
|
2666
|
-
duration: PropTypes
|
|
2662
|
+
PropTypes.arrayOf(videoMedia);
|
|
2663
|
+
var audioMedia = PropTypes.shape(_objectSpread(_objectSpread({}, mediaShape), {}, {
|
|
2664
|
+
type: PropTypes.oneOf(['audio']),
|
|
2665
|
+
metadata: PropTypes.shape(_objectSpread(_objectSpread({}, mediaMetadataShape), {}, {
|
|
2666
|
+
duration: PropTypes.number
|
|
2667
2667
|
}))
|
|
2668
2668
|
}));
|
|
2669
|
-
PropTypes
|
|
2670
|
-
var closedCaptionsMedia = PropTypes
|
|
2671
|
-
type: PropTypes
|
|
2669
|
+
PropTypes.arrayOf(audioMedia);
|
|
2670
|
+
var closedCaptionsMedia = PropTypes.shape(_objectSpread(_objectSpread({}, mediaShape), {}, {
|
|
2671
|
+
type: PropTypes.oneOf(['closed-captions'])
|
|
2672
2672
|
}));
|
|
2673
2673
|
|
|
2674
2674
|
/**
|
|
2675
2675
|
* Style
|
|
2676
2676
|
*/
|
|
2677
2677
|
|
|
2678
|
-
PropTypes
|
|
2679
|
-
type: PropTypes
|
|
2680
|
-
name: PropTypes
|
|
2678
|
+
PropTypes.shape({
|
|
2679
|
+
type: PropTypes.oneOf(['system', 'google', 'custom']),
|
|
2680
|
+
name: PropTypes.string,
|
|
2681
2681
|
media: fontMedia
|
|
2682
2682
|
});
|
|
2683
|
-
var font = PropTypes
|
|
2684
|
-
PropTypes
|
|
2685
|
-
var textAlign = PropTypes
|
|
2686
|
-
var colorObject = PropTypes
|
|
2687
|
-
color: PropTypes
|
|
2688
|
-
alpha: PropTypes
|
|
2683
|
+
var font = PropTypes.oneOfType([PropTypes.object, PropTypes.string]);
|
|
2684
|
+
PropTypes.arrayOf(font);
|
|
2685
|
+
var textAlign = PropTypes.oneOf(['left', 'right', 'center']);
|
|
2686
|
+
var colorObject = PropTypes.shape({
|
|
2687
|
+
color: PropTypes.string,
|
|
2688
|
+
alpha: PropTypes.number
|
|
2689
2689
|
});
|
|
2690
|
-
var color = PropTypes
|
|
2691
|
-
var textStyle = PropTypes
|
|
2690
|
+
var color = PropTypes.oneOfType([colorObject, PropTypes.string]);
|
|
2691
|
+
var textStyle = PropTypes.shape({
|
|
2692
2692
|
fontFamily: font,
|
|
2693
|
-
fontSize: PropTypes
|
|
2694
|
-
fontStyle: PropTypes
|
|
2695
|
-
bold: PropTypes
|
|
2696
|
-
italic: PropTypes
|
|
2697
|
-
underline: PropTypes
|
|
2698
|
-
upperCase: PropTypes
|
|
2693
|
+
fontSize: PropTypes.number,
|
|
2694
|
+
fontStyle: PropTypes.shape({
|
|
2695
|
+
bold: PropTypes.bool,
|
|
2696
|
+
italic: PropTypes.bool,
|
|
2697
|
+
underline: PropTypes.bool,
|
|
2698
|
+
upperCase: PropTypes.bool
|
|
2699
2699
|
}),
|
|
2700
2700
|
align: textAlign,
|
|
2701
2701
|
color: color,
|
|
2702
|
-
letterSpacing: PropTypes
|
|
2703
|
-
lineHeight: PropTypes
|
|
2702
|
+
letterSpacing: PropTypes.number,
|
|
2703
|
+
lineHeight: PropTypes.number
|
|
2704
2704
|
});
|
|
2705
|
-
var borderTypes = PropTypes
|
|
2706
|
-
var shadowType = PropTypes
|
|
2707
|
-
shadowDistance: PropTypes
|
|
2708
|
-
shadowBlur: PropTypes
|
|
2705
|
+
var borderTypes = PropTypes.oneOf(['dotted', 'dashed', 'solid', 'double', 'groove', 'ridge', 'inset', 'outset', 'hidden']);
|
|
2706
|
+
var shadowType = PropTypes.shape({
|
|
2707
|
+
shadowDistance: PropTypes.number,
|
|
2708
|
+
shadowBlur: PropTypes.number,
|
|
2709
2709
|
shadowColor: color
|
|
2710
2710
|
});
|
|
2711
|
-
PropTypes
|
|
2712
|
-
width: PropTypes
|
|
2711
|
+
PropTypes.shape({
|
|
2712
|
+
width: PropTypes.number,
|
|
2713
2713
|
style: borderTypes,
|
|
2714
|
-
radius: PropTypes
|
|
2714
|
+
radius: PropTypes.number,
|
|
2715
2715
|
color: color
|
|
2716
2716
|
});
|
|
2717
|
-
var boxStyle = PropTypes
|
|
2717
|
+
var boxStyle = PropTypes.shape({
|
|
2718
2718
|
backgroundColor: color,
|
|
2719
|
-
borderRadius: PropTypes
|
|
2720
|
-
borderWidth: PropTypes
|
|
2719
|
+
borderRadius: PropTypes.number,
|
|
2720
|
+
borderWidth: PropTypes.number,
|
|
2721
2721
|
borderColor: color,
|
|
2722
2722
|
borderStyle: borderTypes,
|
|
2723
2723
|
shadow: shadowType
|
|
2724
2724
|
});
|
|
2725
|
-
PropTypes
|
|
2726
|
-
top: PropTypes
|
|
2727
|
-
bottom: PropTypes
|
|
2725
|
+
PropTypes.shape({
|
|
2726
|
+
top: PropTypes.number,
|
|
2727
|
+
bottom: PropTypes.number
|
|
2728
2728
|
});
|
|
2729
|
-
PropTypes
|
|
2730
|
-
rows: PropTypes
|
|
2731
|
-
columns: PropTypes
|
|
2729
|
+
PropTypes.arrayOf(PropTypes.shape({
|
|
2730
|
+
rows: PropTypes.oneOfType([PropTypes.number, PropTypes.arrayOf(PropTypes.number)]),
|
|
2731
|
+
columns: PropTypes.oneOfType([PropTypes.number, PropTypes.arrayOf(PropTypes.number)])
|
|
2732
2732
|
}));
|
|
2733
|
-
var objectFitSize = PropTypes
|
|
2734
|
-
PropTypes
|
|
2733
|
+
var objectFitSize = PropTypes.oneOf(['cover', 'contain', null]);
|
|
2734
|
+
PropTypes.shape({
|
|
2735
2735
|
fit: objectFitSize,
|
|
2736
|
-
horizontalPosition: PropTypes
|
|
2737
|
-
verticalPosition: PropTypes
|
|
2736
|
+
horizontalPosition: PropTypes.oneOf(['left', 'center', 'right']),
|
|
2737
|
+
verticalPosition: PropTypes.oneOf(['top', 'center', 'bottom'])
|
|
2738
2738
|
});
|
|
2739
2739
|
|
|
2740
2740
|
/**
|
|
2741
2741
|
* Elements
|
|
2742
2742
|
*/
|
|
2743
2743
|
|
|
2744
|
-
var textElement = PropTypes
|
|
2745
|
-
body: PropTypes
|
|
2744
|
+
var textElement = PropTypes.shape({
|
|
2745
|
+
body: PropTypes.string,
|
|
2746
2746
|
textStyle: textStyle
|
|
2747
2747
|
});
|
|
2748
2748
|
var headingElement = textElement;
|
|
2749
|
-
PropTypes
|
|
2750
|
-
label: PropTypes
|
|
2749
|
+
PropTypes.shape({
|
|
2750
|
+
label: PropTypes.string,
|
|
2751
2751
|
textStyle: textStyle
|
|
2752
2752
|
});
|
|
2753
|
-
var imageElement = PropTypes
|
|
2753
|
+
var imageElement = PropTypes.shape({
|
|
2754
2754
|
media: imageMedia
|
|
2755
2755
|
});
|
|
2756
|
-
PropTypes
|
|
2757
|
-
PropTypes
|
|
2756
|
+
PropTypes.arrayOf(imageElement);
|
|
2757
|
+
PropTypes.shape({
|
|
2758
2758
|
media: videoMedia,
|
|
2759
|
-
autoPlay: PropTypes
|
|
2760
|
-
loop: PropTypes
|
|
2759
|
+
autoPlay: PropTypes.bool,
|
|
2760
|
+
loop: PropTypes.bool,
|
|
2761
2761
|
closedCaptions: closedCaptionsMedia,
|
|
2762
|
-
withSeekBar: PropTypes
|
|
2763
|
-
withControls: PropTypes
|
|
2762
|
+
withSeekBar: PropTypes.bool,
|
|
2763
|
+
withControls: PropTypes.bool
|
|
2764
2764
|
});
|
|
2765
|
-
var visualElement = PropTypes
|
|
2765
|
+
var visualElement = PropTypes.shape({
|
|
2766
2766
|
media: imageMedia
|
|
2767
2767
|
});
|
|
2768
|
-
PropTypes
|
|
2769
|
-
PropTypes
|
|
2768
|
+
PropTypes.arrayOf(visualElement);
|
|
2769
|
+
PropTypes.shape({
|
|
2770
2770
|
media: audioMedia,
|
|
2771
|
-
autoPlay: PropTypes
|
|
2772
|
-
loop: PropTypes
|
|
2771
|
+
autoPlay: PropTypes.bool,
|
|
2772
|
+
loop: PropTypes.bool,
|
|
2773
2773
|
closedCaptions: closedCaptionsMedia,
|
|
2774
|
-
withPlayPause: PropTypes
|
|
2774
|
+
withPlayPause: PropTypes.bool
|
|
2775
2775
|
});
|
|
2776
|
-
PropTypes
|
|
2776
|
+
PropTypes.shape({
|
|
2777
2777
|
media: closedCaptionsMedia
|
|
2778
2778
|
});
|
|
2779
|
-
var backgroundElement = PropTypes
|
|
2779
|
+
var backgroundElement = PropTypes.shape({
|
|
2780
2780
|
color: color,
|
|
2781
2781
|
image: imageMedia,
|
|
2782
2782
|
video: videoMedia
|
|
2783
2783
|
});
|
|
2784
|
-
var imageElementWithCaption = PropTypes
|
|
2784
|
+
var imageElementWithCaption = PropTypes.shape({
|
|
2785
2785
|
image: imageMedia,
|
|
2786
2786
|
caption: textElement
|
|
2787
2787
|
});
|
|
2788
|
-
PropTypes
|
|
2789
|
-
var stackDirection = PropTypes
|
|
2790
|
-
var stackAlign = PropTypes
|
|
2791
|
-
var stackSpacing = PropTypes
|
|
2792
|
-
PropTypes
|
|
2788
|
+
PropTypes.arrayOf(imageElementWithCaption);
|
|
2789
|
+
var stackDirection = PropTypes.oneOf(['horizontal', 'vertical']);
|
|
2790
|
+
var stackAlign = PropTypes.oneOf(['start', 'center', 'end']);
|
|
2791
|
+
var stackSpacing = PropTypes.oneOfType([PropTypes.number, PropTypes.oneOf(['between', 'evenly', 'around'])]);
|
|
2792
|
+
PropTypes.shape({
|
|
2793
2793
|
direction: stackDirection,
|
|
2794
2794
|
align: stackAlign,
|
|
2795
|
-
width: PropTypes
|
|
2796
|
-
height: PropTypes
|
|
2795
|
+
width: PropTypes.number,
|
|
2796
|
+
height: PropTypes.number,
|
|
2797
2797
|
spacing: stackSpacing,
|
|
2798
|
-
reverse: PropTypes
|
|
2798
|
+
reverse: PropTypes.bool
|
|
2799
2799
|
});
|
|
2800
|
-
PropTypes
|
|
2801
|
-
layout: PropTypes
|
|
2802
|
-
spacing: PropTypes
|
|
2800
|
+
PropTypes.shape({
|
|
2801
|
+
layout: PropTypes.arrayOf(PropTypes.string),
|
|
2802
|
+
spacing: PropTypes.number
|
|
2803
2803
|
});
|
|
2804
|
-
var geoPosition = PropTypes
|
|
2805
|
-
lat: PropTypes
|
|
2806
|
-
lng: PropTypes
|
|
2804
|
+
var geoPosition = PropTypes.shape({
|
|
2805
|
+
lat: PropTypes.number,
|
|
2806
|
+
lng: PropTypes.number
|
|
2807
2807
|
});
|
|
2808
2808
|
var markerShape = {
|
|
2809
|
-
id: PropTypes
|
|
2809
|
+
id: PropTypes.number,
|
|
2810
2810
|
geoPosition: geoPosition,
|
|
2811
2811
|
title: headingElement,
|
|
2812
2812
|
subtitle: headingElement,
|
|
2813
2813
|
description: textElement
|
|
2814
2814
|
};
|
|
2815
|
-
var marker = PropTypes
|
|
2816
|
-
PropTypes
|
|
2817
|
-
var markerWithImage = PropTypes
|
|
2815
|
+
var marker = PropTypes.shape(_objectSpread({}, markerShape));
|
|
2816
|
+
PropTypes.arrayOf(marker);
|
|
2817
|
+
var markerWithImage = PropTypes.shape(_objectSpread(_objectSpread({}, markerShape), {}, {
|
|
2818
2818
|
image: imageMedia
|
|
2819
2819
|
}));
|
|
2820
|
-
PropTypes
|
|
2820
|
+
PropTypes.arrayOf(markerWithImage);
|
|
2821
2821
|
var answerShape = {
|
|
2822
|
-
id: PropTypes
|
|
2822
|
+
id: PropTypes.string,
|
|
2823
2823
|
label: textElement
|
|
2824
2824
|
};
|
|
2825
|
-
var answer = PropTypes
|
|
2826
|
-
var quizAnswer = PropTypes
|
|
2827
|
-
good: PropTypes
|
|
2825
|
+
var answer = PropTypes.shape(_objectSpread({}, answerShape));
|
|
2826
|
+
var quizAnswer = PropTypes.shape(_objectSpread(_objectSpread({}, answerShape), {}, {
|
|
2827
|
+
good: PropTypes.bool
|
|
2828
2828
|
}));
|
|
2829
|
-
PropTypes
|
|
2830
|
-
PropTypes
|
|
2831
|
-
var callToActionTypes = PropTypes
|
|
2832
|
-
var callToAction = PropTypes
|
|
2833
|
-
active: PropTypes
|
|
2829
|
+
PropTypes.arrayOf(answer);
|
|
2830
|
+
PropTypes.arrayOf(quizAnswer);
|
|
2831
|
+
var callToActionTypes = PropTypes.oneOf(['swipe-up', 'button']);
|
|
2832
|
+
var callToAction = PropTypes.shape({
|
|
2833
|
+
active: PropTypes.bool,
|
|
2834
2834
|
type: callToActionTypes,
|
|
2835
|
-
url: PropTypes
|
|
2835
|
+
url: PropTypes.string,
|
|
2836
2836
|
label: textElement,
|
|
2837
2837
|
buttonStyle: boxStyle
|
|
2838
2838
|
});
|
|
2839
|
-
PropTypes
|
|
2840
|
-
active: PropTypes
|
|
2839
|
+
PropTypes.shape({
|
|
2840
|
+
active: PropTypes.bool,
|
|
2841
2841
|
label: textElement,
|
|
2842
2842
|
boxStyle: boxStyle
|
|
2843
2843
|
});
|
|
2844
|
-
PropTypes
|
|
2845
|
-
active: PropTypes
|
|
2844
|
+
PropTypes.shape({
|
|
2845
|
+
active: PropTypes.bool
|
|
2846
2846
|
});
|
|
2847
|
-
var speaker = PropTypes
|
|
2848
|
-
id: PropTypes
|
|
2849
|
-
name: PropTypes
|
|
2847
|
+
var speaker = PropTypes.shape({
|
|
2848
|
+
id: PropTypes.string,
|
|
2849
|
+
name: PropTypes.string,
|
|
2850
2850
|
avatar: imageMedia,
|
|
2851
|
-
side: PropTypes
|
|
2851
|
+
side: PropTypes.oneOf(['left', 'right']),
|
|
2852
2852
|
color: color
|
|
2853
2853
|
});
|
|
2854
|
-
var speakers = PropTypes
|
|
2855
|
-
var conversationMessage = PropTypes
|
|
2856
|
-
speaker: PropTypes
|
|
2857
|
-
message: PropTypes
|
|
2854
|
+
var speakers = PropTypes.arrayOf(speaker);
|
|
2855
|
+
var conversationMessage = PropTypes.shape({
|
|
2856
|
+
speaker: PropTypes.string,
|
|
2857
|
+
message: PropTypes.string,
|
|
2858
2858
|
image: imageMedia,
|
|
2859
2859
|
audio: audioMedia,
|
|
2860
|
-
timingOverrides: PropTypes
|
|
2861
|
-
enabled: PropTypes
|
|
2862
|
-
appearDelay: PropTypes
|
|
2863
|
-
writingStateDuration: PropTypes
|
|
2860
|
+
timingOverrides: PropTypes.shape({
|
|
2861
|
+
enabled: PropTypes.bool,
|
|
2862
|
+
appearDelay: PropTypes.number,
|
|
2863
|
+
writingStateDuration: PropTypes.number
|
|
2864
2864
|
})
|
|
2865
2865
|
});
|
|
2866
|
-
var conversationMessages = PropTypes
|
|
2867
|
-
PropTypes
|
|
2866
|
+
var conversationMessages = PropTypes.arrayOf(conversationMessage);
|
|
2867
|
+
PropTypes.shape({
|
|
2868
2868
|
speakers: speakers,
|
|
2869
2869
|
textStyle: textStyle,
|
|
2870
2870
|
messages: conversationMessages
|
|
@@ -2875,54 +2875,54 @@ PropTypes$1.shape({
|
|
|
2875
2875
|
*/
|
|
2876
2876
|
|
|
2877
2877
|
var fieldShape = {
|
|
2878
|
-
name: PropTypes
|
|
2879
|
-
type: PropTypes
|
|
2878
|
+
name: PropTypes.string,
|
|
2879
|
+
type: PropTypes.string.isRequired,
|
|
2880
2880
|
label: text
|
|
2881
2881
|
};
|
|
2882
|
-
var field = PropTypes
|
|
2883
|
-
isSection: PropTypes
|
|
2884
|
-
fields: PropTypes
|
|
2882
|
+
var field = PropTypes.shape(_objectSpread(_objectSpread({}, fieldShape), {}, {
|
|
2883
|
+
isSection: PropTypes.bool,
|
|
2884
|
+
fields: PropTypes.arrayOf(PropTypes.shape(fieldShape))
|
|
2885
2885
|
}));
|
|
2886
|
-
var fields = PropTypes
|
|
2887
|
-
var screenDefinition = PropTypes
|
|
2888
|
-
id: PropTypes
|
|
2889
|
-
type: PropTypes
|
|
2886
|
+
var fields = PropTypes.arrayOf(field);
|
|
2887
|
+
var screenDefinition = PropTypes.shape({
|
|
2888
|
+
id: PropTypes.string.isRequired,
|
|
2889
|
+
type: PropTypes.oneOf(['screen']).isRequired,
|
|
2890
2890
|
title: text.isRequired,
|
|
2891
|
-
layouts: PropTypes
|
|
2891
|
+
layouts: PropTypes.arrayOf(PropTypes.string),
|
|
2892
2892
|
fields: fields
|
|
2893
2893
|
});
|
|
2894
|
-
PropTypes
|
|
2895
|
-
var fieldDefinition = PropTypes
|
|
2896
|
-
id: PropTypes
|
|
2897
|
-
type: PropTypes
|
|
2894
|
+
PropTypes.arrayOf(screenDefinition);
|
|
2895
|
+
var fieldDefinition = PropTypes.shape({
|
|
2896
|
+
id: PropTypes.string.isRequired,
|
|
2897
|
+
type: PropTypes.oneOf(['field']).isRequired,
|
|
2898
2898
|
title: text.isRequired,
|
|
2899
2899
|
fields: fields
|
|
2900
2900
|
});
|
|
2901
|
-
PropTypes
|
|
2901
|
+
PropTypes.arrayOf(fieldDefinition);
|
|
2902
2902
|
|
|
2903
2903
|
/**
|
|
2904
2904
|
* Components
|
|
2905
2905
|
*/
|
|
2906
2906
|
var storyComponentShape = {
|
|
2907
|
-
type: PropTypes
|
|
2907
|
+
type: PropTypes.string.isRequired
|
|
2908
2908
|
};
|
|
2909
|
-
var storyComponent = PropTypes
|
|
2910
|
-
PropTypes
|
|
2911
|
-
var screenComponent = PropTypes
|
|
2912
|
-
var screenComponents = PropTypes
|
|
2909
|
+
var storyComponent = PropTypes.shape(_objectSpread({}, storyComponentShape));
|
|
2910
|
+
PropTypes.arrayOf(storyComponent);
|
|
2911
|
+
var screenComponent = PropTypes.shape(_objectSpread({}, storyComponentShape));
|
|
2912
|
+
var screenComponents = PropTypes.arrayOf(screenComponent);
|
|
2913
2913
|
|
|
2914
2914
|
/**
|
|
2915
2915
|
* Theme
|
|
2916
2916
|
*/
|
|
2917
|
-
var theme = PropTypes
|
|
2918
|
-
id: PropTypes
|
|
2919
|
-
textStyles: PropTypes
|
|
2917
|
+
var theme = PropTypes.shape({
|
|
2918
|
+
id: PropTypes.string,
|
|
2919
|
+
textStyles: PropTypes.objectOf(textStyle),
|
|
2920
2920
|
// renamed to textstyles
|
|
2921
2921
|
background: backgroundElement,
|
|
2922
|
-
colors: PropTypes
|
|
2922
|
+
colors: PropTypes.objectOf(color),
|
|
2923
2923
|
components: screenComponents
|
|
2924
2924
|
});
|
|
2925
|
-
PropTypes
|
|
2925
|
+
PropTypes.shape(_objectSpread({
|
|
2926
2926
|
logo: imageMedia
|
|
2927
2927
|
}, theme));
|
|
2928
2928
|
|
|
@@ -2941,23 +2941,23 @@ PropTypes$1.shape(_objectSpread({
|
|
|
2941
2941
|
/**
|
|
2942
2942
|
* Metadata
|
|
2943
2943
|
*/
|
|
2944
|
-
var metadata = PropTypes
|
|
2945
|
-
description: PropTypes
|
|
2946
|
-
shareUrl: PropTypes
|
|
2944
|
+
var metadata = PropTypes.shape({
|
|
2945
|
+
description: PropTypes.string,
|
|
2946
|
+
shareUrl: PropTypes.string,
|
|
2947
2947
|
shareImage: imageMedia,
|
|
2948
2948
|
favIcon: imageMedia
|
|
2949
2949
|
});
|
|
2950
|
-
var tag = PropTypes
|
|
2951
|
-
label: PropTypes
|
|
2952
|
-
value: PropTypes
|
|
2950
|
+
var tag = PropTypes.shape({
|
|
2951
|
+
label: PropTypes.string,
|
|
2952
|
+
value: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
|
|
2953
2953
|
});
|
|
2954
|
-
PropTypes
|
|
2954
|
+
PropTypes.arrayOf(tag);
|
|
2955
2955
|
|
|
2956
2956
|
/**
|
|
2957
2957
|
* Story
|
|
2958
2958
|
*/
|
|
2959
|
-
PropTypes
|
|
2960
|
-
id: PropTypes
|
|
2959
|
+
PropTypes.shape({
|
|
2960
|
+
id: PropTypes.string,
|
|
2961
2961
|
theme: theme,
|
|
2962
2962
|
components: screenComponents,
|
|
2963
2963
|
metadata: metadata
|
|
@@ -2966,68 +2966,68 @@ PropTypes$1.shape({
|
|
|
2966
2966
|
/**
|
|
2967
2967
|
* Render
|
|
2968
2968
|
*/
|
|
2969
|
-
var deviceScreen = PropTypes
|
|
2970
|
-
name: PropTypes
|
|
2971
|
-
mediaQuery: PropTypes
|
|
2969
|
+
var deviceScreen = PropTypes.shape({
|
|
2970
|
+
name: PropTypes.string.isRequired,
|
|
2971
|
+
mediaQuery: PropTypes.string
|
|
2972
2972
|
});
|
|
2973
|
-
PropTypes
|
|
2974
|
-
PropTypes
|
|
2975
|
-
screen: PropTypes
|
|
2976
|
-
screens: PropTypes
|
|
2977
|
-
width: PropTypes
|
|
2978
|
-
height: PropTypes
|
|
2979
|
-
landscape: PropTypes
|
|
2973
|
+
PropTypes.arrayOf(deviceScreen);
|
|
2974
|
+
PropTypes.shape({
|
|
2975
|
+
screen: PropTypes.string,
|
|
2976
|
+
screens: PropTypes.arrayOf(PropTypes.string),
|
|
2977
|
+
width: PropTypes.number,
|
|
2978
|
+
height: PropTypes.number,
|
|
2979
|
+
landscape: PropTypes.bool
|
|
2980
2980
|
});
|
|
2981
|
-
PropTypes
|
|
2981
|
+
PropTypes.oneOf(['view', 'placeholder', 'edit', 'preview', 'static', 'capture']);
|
|
2982
2982
|
|
|
2983
2983
|
/**
|
|
2984
2984
|
* Screens
|
|
2985
2985
|
*/
|
|
2986
2986
|
|
|
2987
|
-
PropTypes
|
|
2988
|
-
width: PropTypes
|
|
2989
|
-
height: PropTypes
|
|
2987
|
+
PropTypes.shape({
|
|
2988
|
+
width: PropTypes.number,
|
|
2989
|
+
height: PropTypes.number
|
|
2990
2990
|
});
|
|
2991
|
-
PropTypes
|
|
2992
|
-
width: PropTypes
|
|
2993
|
-
height: PropTypes
|
|
2994
|
-
url: PropTypes
|
|
2991
|
+
PropTypes.shape({
|
|
2992
|
+
width: PropTypes.number,
|
|
2993
|
+
height: PropTypes.number,
|
|
2994
|
+
url: PropTypes.string,
|
|
2995
2995
|
target: target,
|
|
2996
|
-
iframe: PropTypes
|
|
2996
|
+
iframe: PropTypes.string,
|
|
2997
2997
|
image: imageMedia
|
|
2998
2998
|
});
|
|
2999
|
-
PropTypes
|
|
3000
|
-
src: PropTypes
|
|
3001
|
-
track: PropTypes
|
|
3002
|
-
trackLng: PropTypes
|
|
3003
|
-
controls: PropTypes
|
|
2999
|
+
PropTypes.shape({
|
|
3000
|
+
src: PropTypes.string,
|
|
3001
|
+
track: PropTypes.string,
|
|
3002
|
+
trackLng: PropTypes.number,
|
|
3003
|
+
controls: PropTypes.bool
|
|
3004
3004
|
});
|
|
3005
|
-
var slide = PropTypes
|
|
3005
|
+
var slide = PropTypes.shape({
|
|
3006
3006
|
image: imageMedia,
|
|
3007
|
-
text: PropTypes
|
|
3007
|
+
text: PropTypes.string
|
|
3008
3008
|
});
|
|
3009
|
-
PropTypes
|
|
3009
|
+
PropTypes.arrayOf(slide);
|
|
3010
3010
|
|
|
3011
3011
|
// export const imageStyle = PropTypes.shape({
|
|
3012
3012
|
// alt: PropTypes.string,
|
|
3013
3013
|
// fit: PropTypes.object,
|
|
3014
3014
|
// });
|
|
3015
3015
|
|
|
3016
|
-
PropTypes
|
|
3016
|
+
PropTypes.shape({});
|
|
3017
3017
|
|
|
3018
3018
|
/**
|
|
3019
3019
|
* Transitions
|
|
3020
3020
|
*/
|
|
3021
3021
|
|
|
3022
|
-
var transitionName = PropTypes
|
|
3022
|
+
var transitionName = PropTypes.oneOf(['fade', 'scale', 'slide']);
|
|
3023
3023
|
var transitionParams = {
|
|
3024
|
-
duration: PropTypes
|
|
3025
|
-
easing: PropTypes
|
|
3024
|
+
duration: PropTypes.number,
|
|
3025
|
+
easing: PropTypes.oneOf(['ease', 'ease-in', 'ease-out', 'ease-in-out', 'linear'])
|
|
3026
3026
|
};
|
|
3027
|
-
var transition = PropTypes
|
|
3027
|
+
var transition = PropTypes.oneOfType([transitionName.isRequired, PropTypes.shape(_objectSpread({
|
|
3028
3028
|
name: transitionName.isRequired
|
|
3029
3029
|
}, transitionParams))]);
|
|
3030
|
-
PropTypes
|
|
3030
|
+
PropTypes.shape({
|
|
3031
3031
|
"in": transition,
|
|
3032
3032
|
out: transition
|
|
3033
3033
|
});
|
|
@@ -3036,65 +3036,65 @@ PropTypes$1.shape({
|
|
|
3036
3036
|
* Search
|
|
3037
3037
|
*/
|
|
3038
3038
|
|
|
3039
|
-
var searchFilter = PropTypes
|
|
3040
|
-
type: PropTypes
|
|
3041
|
-
value: PropTypes
|
|
3039
|
+
var searchFilter = PropTypes.shape({
|
|
3040
|
+
type: PropTypes.string,
|
|
3041
|
+
value: PropTypes.oneOf([PropTypes.string, PropTypes.number])
|
|
3042
3042
|
});
|
|
3043
|
-
PropTypes
|
|
3043
|
+
PropTypes.arrayOf(searchFilter);
|
|
3044
3044
|
|
|
3045
3045
|
/**
|
|
3046
3046
|
* Payments
|
|
3047
3047
|
*/
|
|
3048
3048
|
|
|
3049
|
-
var paymentItem = PropTypes
|
|
3050
|
-
id: PropTypes
|
|
3051
|
-
date: PropTypes
|
|
3052
|
-
type: PropTypes
|
|
3053
|
-
invoice_link: PropTypes
|
|
3054
|
-
amount: PropTypes
|
|
3049
|
+
var paymentItem = PropTypes.shape({
|
|
3050
|
+
id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
3051
|
+
date: PropTypes.string,
|
|
3052
|
+
type: PropTypes.string,
|
|
3053
|
+
invoice_link: PropTypes.string,
|
|
3054
|
+
amount: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
3055
3055
|
});
|
|
3056
|
-
PropTypes
|
|
3056
|
+
PropTypes.arrayOf(paymentItem);
|
|
3057
3057
|
|
|
3058
3058
|
/**
|
|
3059
3059
|
* Page Metadada
|
|
3060
3060
|
*/
|
|
3061
3061
|
|
|
3062
|
-
var pageMetadata = PropTypes
|
|
3063
|
-
canonical: PropTypes
|
|
3064
|
-
description: PropTypes
|
|
3065
|
-
keywords: PropTypes
|
|
3066
|
-
image: PropTypes
|
|
3067
|
-
url: PropTypes
|
|
3062
|
+
var pageMetadata = PropTypes.shape({
|
|
3063
|
+
canonical: PropTypes.string,
|
|
3064
|
+
description: PropTypes.string,
|
|
3065
|
+
keywords: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
|
|
3066
|
+
image: PropTypes.shape({
|
|
3067
|
+
url: PropTypes.string
|
|
3068
3068
|
}),
|
|
3069
|
-
favicon: PropTypes
|
|
3070
|
-
url: PropTypes
|
|
3069
|
+
favicon: PropTypes.shape({
|
|
3070
|
+
url: PropTypes.string
|
|
3071
3071
|
}),
|
|
3072
|
-
rssUrl: PropTypes
|
|
3073
|
-
atomUrl: PropTypes
|
|
3074
|
-
microformats: PropTypes
|
|
3072
|
+
rssUrl: PropTypes.string,
|
|
3073
|
+
atomUrl: PropTypes.string,
|
|
3074
|
+
microformats: PropTypes.arrayOf(PropTypes.shape({}))
|
|
3075
3075
|
});
|
|
3076
|
-
PropTypes
|
|
3076
|
+
PropTypes.shape({
|
|
3077
3077
|
name: textElement,
|
|
3078
|
-
avatar: PropTypes
|
|
3079
|
-
url: PropTypes
|
|
3078
|
+
avatar: PropTypes.shape({
|
|
3079
|
+
url: PropTypes.string
|
|
3080
3080
|
})
|
|
3081
3081
|
});
|
|
3082
|
-
PropTypes
|
|
3083
|
-
id: PropTypes
|
|
3084
|
-
name: PropTypes
|
|
3082
|
+
PropTypes.shape({
|
|
3083
|
+
id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
3084
|
+
name: PropTypes.string
|
|
3085
3085
|
});
|
|
3086
|
-
var badge = PropTypes
|
|
3086
|
+
var badge = PropTypes.shape({
|
|
3087
3087
|
label: textElement,
|
|
3088
3088
|
buttonStyle: boxStyle
|
|
3089
3089
|
});
|
|
3090
|
-
PropTypes
|
|
3090
|
+
PropTypes.shape({
|
|
3091
3091
|
badge: badge
|
|
3092
3092
|
});
|
|
3093
|
-
PropTypes
|
|
3093
|
+
PropTypes.shape({
|
|
3094
3094
|
callToAction: callToAction
|
|
3095
3095
|
});
|
|
3096
|
-
PropTypes
|
|
3097
|
-
PropTypes
|
|
3096
|
+
PropTypes.shape();
|
|
3097
|
+
PropTypes.shape({
|
|
3098
3098
|
file: closedCaptionsMedia,
|
|
3099
3099
|
textStyle: textStyle,
|
|
3100
3100
|
boxStyle: boxStyle
|
|
@@ -3102,12 +3102,12 @@ PropTypes$1.shape({
|
|
|
3102
3102
|
|
|
3103
3103
|
/* eslint-disable react/no-array-index-key */
|
|
3104
3104
|
var propTypes$d = {
|
|
3105
|
-
title: PropTypes
|
|
3106
|
-
url: PropTypes
|
|
3105
|
+
title: PropTypes.string,
|
|
3106
|
+
url: PropTypes.string,
|
|
3107
3107
|
metadata: pageMetadata,
|
|
3108
|
-
fullTitle: PropTypes
|
|
3109
|
-
suffix: PropTypes
|
|
3110
|
-
children: PropTypes
|
|
3108
|
+
fullTitle: PropTypes.string,
|
|
3109
|
+
suffix: PropTypes.string,
|
|
3110
|
+
children: PropTypes.node
|
|
3111
3111
|
};
|
|
3112
3112
|
var defaultProps$d = {
|
|
3113
3113
|
title: null,
|
|
@@ -3231,13 +3231,13 @@ Meta.defaultProps = defaultProps$d;
|
|
|
3231
3231
|
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"};
|
|
3232
3232
|
|
|
3233
3233
|
var propTypes$c = {
|
|
3234
|
-
items: PropTypes
|
|
3235
|
-
auto: PropTypes
|
|
3236
|
-
delay: PropTypes
|
|
3237
|
-
width: PropTypes
|
|
3238
|
-
height: PropTypes
|
|
3239
|
-
className: PropTypes
|
|
3240
|
-
children: PropTypes
|
|
3234
|
+
items: PropTypes.arrayOf(PropTypes.node),
|
|
3235
|
+
auto: PropTypes.bool,
|
|
3236
|
+
delay: PropTypes.number,
|
|
3237
|
+
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
3238
|
+
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
3239
|
+
className: PropTypes.string,
|
|
3240
|
+
children: PropTypes.node
|
|
3241
3241
|
};
|
|
3242
3242
|
var defaultProps$c = {
|
|
3243
3243
|
items: [],
|
|
@@ -3348,13 +3348,13 @@ var Audio = function Audio(_ref) {
|
|
|
3348
3348
|
var styles$c = {"container":"micromag-core-partials-placeholder-text-container","withInvertedColors":"micromag-core-partials-placeholder-text-withInvertedColors","line":"micromag-core-partials-placeholder-text-line"};
|
|
3349
3349
|
|
|
3350
3350
|
var propTypes$b = {
|
|
3351
|
-
lines: PropTypes
|
|
3352
|
-
lineMargin: PropTypes
|
|
3353
|
-
width: PropTypes
|
|
3354
|
-
height: PropTypes
|
|
3355
|
-
fontSize: PropTypes
|
|
3356
|
-
className: PropTypes
|
|
3357
|
-
withInvertedColors: PropTypes
|
|
3351
|
+
lines: PropTypes.number,
|
|
3352
|
+
lineMargin: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
3353
|
+
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
3354
|
+
height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
3355
|
+
fontSize: PropTypes.number,
|
|
3356
|
+
className: PropTypes.string,
|
|
3357
|
+
withInvertedColors: PropTypes.bool
|
|
3358
3358
|
};
|
|
3359
3359
|
var defaultProps$b = {
|
|
3360
3360
|
lines: 1,
|
|
@@ -3595,13 +3595,13 @@ var styles$9 = {"container":"micromag-core-screens-screen-sizer-container","fram
|
|
|
3595
3595
|
|
|
3596
3596
|
var devicePixelRatio = typeof window !== 'undefined' ? window.devicePixelRatio || 1 : 1;
|
|
3597
3597
|
var propTypes$a = {
|
|
3598
|
-
width: PropTypes
|
|
3599
|
-
height: PropTypes
|
|
3600
|
-
fit: PropTypes
|
|
3601
|
-
screenWidth: PropTypes
|
|
3602
|
-
screenHeight: PropTypes
|
|
3603
|
-
className: PropTypes
|
|
3604
|
-
children: PropTypes
|
|
3598
|
+
width: PropTypes.number,
|
|
3599
|
+
height: PropTypes.number,
|
|
3600
|
+
fit: PropTypes.oneOf([null, 'cover', 'contain']),
|
|
3601
|
+
screenWidth: PropTypes.number,
|
|
3602
|
+
screenHeight: PropTypes.number,
|
|
3603
|
+
className: PropTypes.string,
|
|
3604
|
+
children: PropTypes.node.isRequired
|
|
3605
3605
|
};
|
|
3606
3606
|
var defaultProps$a = {
|
|
3607
3607
|
width: null,
|
|
@@ -3706,17 +3706,17 @@ ScreenSizer.defaultProps = defaultProps$a;
|
|
|
3706
3706
|
var styles$8 = {"container":"micromag-core-screens-screen-container"};
|
|
3707
3707
|
|
|
3708
3708
|
var propTypes$9 = {
|
|
3709
|
-
screen: PropTypes.storyComponent.isRequired,
|
|
3710
|
-
renderContext: PropTypes.renderContext,
|
|
3711
|
-
screenState: PropTypes
|
|
3712
|
-
index: PropTypes
|
|
3713
|
-
active: PropTypes
|
|
3714
|
-
preload: PropTypes
|
|
3715
|
-
current: PropTypes
|
|
3716
|
-
component: PropTypes
|
|
3717
|
-
components: PropTypes.components,
|
|
3718
|
-
className: PropTypes
|
|
3719
|
-
mediaRef: PropTypes
|
|
3709
|
+
screen: PropTypes$1.storyComponent.isRequired,
|
|
3710
|
+
renderContext: PropTypes$1.renderContext,
|
|
3711
|
+
screenState: PropTypes.string,
|
|
3712
|
+
index: PropTypes.number,
|
|
3713
|
+
active: PropTypes.bool,
|
|
3714
|
+
preload: PropTypes.bool,
|
|
3715
|
+
current: PropTypes.bool,
|
|
3716
|
+
component: PropTypes.node,
|
|
3717
|
+
components: PropTypes$1.components,
|
|
3718
|
+
className: PropTypes.string,
|
|
3719
|
+
mediaRef: PropTypes.func
|
|
3720
3720
|
};
|
|
3721
3721
|
var defaultProps$9 = {
|
|
3722
3722
|
active: true,
|
|
@@ -3772,13 +3772,13 @@ var styles$7 = {"screen":"micromag-core-screens-screen-placeholder-screen"};
|
|
|
3772
3772
|
|
|
3773
3773
|
var _excluded$1 = ["screen", "layout", "screenWidth", "screenHeight", "screenState", "withSize", "className"];
|
|
3774
3774
|
var propTypes$8 = {
|
|
3775
|
-
screen: PropTypes.component.isRequired,
|
|
3776
|
-
layout: PropTypes
|
|
3777
|
-
screenWidth: PropTypes
|
|
3778
|
-
screenHeight: PropTypes
|
|
3779
|
-
screenState: PropTypes
|
|
3780
|
-
withSize: PropTypes
|
|
3781
|
-
className: PropTypes
|
|
3775
|
+
screen: PropTypes$1.component.isRequired,
|
|
3776
|
+
layout: PropTypes.string,
|
|
3777
|
+
screenWidth: PropTypes.number,
|
|
3778
|
+
screenHeight: PropTypes.number,
|
|
3779
|
+
screenState: PropTypes.string,
|
|
3780
|
+
withSize: PropTypes.bool,
|
|
3781
|
+
className: PropTypes.string
|
|
3782
3782
|
};
|
|
3783
3783
|
var defaultProps$8 = {
|
|
3784
3784
|
layout: undefined,
|
|
@@ -3814,19 +3814,19 @@ ScreenPlaceholder.propTypes = propTypes$8;
|
|
|
3814
3814
|
ScreenPlaceholder.defaultProps = defaultProps$8;
|
|
3815
3815
|
var Placeholder = /*#__PURE__*/React.memo(ScreenPlaceholder);
|
|
3816
3816
|
|
|
3817
|
-
var styles$6 = {"
|
|
3817
|
+
var styles$6 = {"screen":"micromag-core-screens-preview-screen"};
|
|
3818
3818
|
|
|
3819
3819
|
var _excluded = ["screen", "screenState", "width", "height", "screenWidth", "screenHeight", "className", "withSize", "fit", "hidden"];
|
|
3820
3820
|
var propTypes$7 = {
|
|
3821
|
-
screen: PropTypes.component.isRequired,
|
|
3822
|
-
screenState: PropTypes
|
|
3823
|
-
width: PropTypes
|
|
3824
|
-
height: PropTypes
|
|
3825
|
-
screenWidth: PropTypes
|
|
3826
|
-
screenHeight: PropTypes
|
|
3827
|
-
className: PropTypes
|
|
3828
|
-
withSize: PropTypes
|
|
3829
|
-
hidden: PropTypes
|
|
3821
|
+
screen: PropTypes$1.component.isRequired,
|
|
3822
|
+
screenState: PropTypes.string,
|
|
3823
|
+
width: PropTypes.number,
|
|
3824
|
+
height: PropTypes.number,
|
|
3825
|
+
screenWidth: PropTypes.number,
|
|
3826
|
+
screenHeight: PropTypes.number,
|
|
3827
|
+
className: PropTypes.string,
|
|
3828
|
+
withSize: PropTypes.bool,
|
|
3829
|
+
hidden: PropTypes.bool
|
|
3830
3830
|
};
|
|
3831
3831
|
var defaultProps$7 = {
|
|
3832
3832
|
screenState: null,
|
|
@@ -3932,7 +3932,7 @@ var Answer$1 = function Answer(_ref) {
|
|
|
3932
3932
|
})));
|
|
3933
3933
|
};
|
|
3934
3934
|
|
|
3935
|
-
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"
|
|
3935
|
+
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"};
|
|
3936
3936
|
|
|
3937
3937
|
var Title = function Title(props) {
|
|
3938
3938
|
return /*#__PURE__*/React.createElement(PlaceholderBlock, Object.assign({}, props, {
|
|
@@ -4012,15 +4012,15 @@ var Placeholders = /*#__PURE__*/Object.freeze({
|
|
|
4012
4012
|
|
|
4013
4013
|
/* eslint-disable react/jsx-props-no-spreading */
|
|
4014
4014
|
var propTypes$6 = {
|
|
4015
|
-
children: PropTypes
|
|
4016
|
-
placeholder: PropTypes
|
|
4017
|
-
preview: PropTypes
|
|
4018
|
-
empty: PropTypes
|
|
4019
|
-
emptyLabel: PropTypes.label,
|
|
4020
|
-
isEmpty: PropTypes
|
|
4021
|
-
placeholderProps: PropTypes
|
|
4015
|
+
children: PropTypes.node,
|
|
4016
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
4017
|
+
preview: PropTypes.node,
|
|
4018
|
+
empty: PropTypes.node,
|
|
4019
|
+
emptyLabel: PropTypes$1.label,
|
|
4020
|
+
isEmpty: PropTypes.bool,
|
|
4021
|
+
placeholderProps: PropTypes.object,
|
|
4022
4022
|
// eslint-disable-line
|
|
4023
|
-
emptyClassName: PropTypes
|
|
4023
|
+
emptyClassName: PropTypes.string
|
|
4024
4024
|
};
|
|
4025
4025
|
var defaultProps$6 = {
|
|
4026
4026
|
children: null,
|
|
@@ -4065,9 +4065,9 @@ ScreenElement.defaultProps = defaultProps$6;
|
|
|
4065
4065
|
var styles$1 = {"container":"micromag-core-screens-container","screen":"micromag-core-screens-screen","visible":"micromag-core-screens-visible"};
|
|
4066
4066
|
|
|
4067
4067
|
var propTypes$5 = {
|
|
4068
|
-
screens: PropTypes.storyComponents.isRequired,
|
|
4069
|
-
screen: PropTypes
|
|
4070
|
-
className: PropTypes
|
|
4068
|
+
screens: PropTypes$1.storyComponents.isRequired,
|
|
4069
|
+
screen: PropTypes.string,
|
|
4070
|
+
className: PropTypes.string
|
|
4071
4071
|
};
|
|
4072
4072
|
var defaultProps$5 = {
|
|
4073
4073
|
screen: null,
|
|
@@ -4094,26 +4094,26 @@ Screens.defaultProps = defaultProps$5;
|
|
|
4094
4094
|
var styles = {"container":"micromag-core-transitions-transition-container","fullscreen":"micromag-core-transitions-transition-fullscreen"};
|
|
4095
4095
|
|
|
4096
4096
|
var propTypes$4 = {
|
|
4097
|
-
fullscreen: PropTypes
|
|
4098
|
-
from: PropTypes
|
|
4097
|
+
fullscreen: PropTypes.bool,
|
|
4098
|
+
from: PropTypes.objectOf(PropTypes.any),
|
|
4099
4099
|
// eslint-disable-line react/forbid-prop-types
|
|
4100
|
-
to: PropTypes
|
|
4100
|
+
to: PropTypes.objectOf(PropTypes.any),
|
|
4101
4101
|
// eslint-disable-line react/forbid-prop-types
|
|
4102
|
-
playing: PropTypes
|
|
4103
|
-
direction: PropTypes
|
|
4104
|
-
delay: PropTypes
|
|
4105
|
-
reversible: PropTypes
|
|
4106
|
-
duration: PropTypes
|
|
4107
|
-
easing: PropTypes
|
|
4108
|
-
config: PropTypes
|
|
4109
|
-
mass: PropTypes
|
|
4110
|
-
friction: PropTypes
|
|
4111
|
-
tension: PropTypes
|
|
4102
|
+
playing: PropTypes.bool,
|
|
4103
|
+
direction: PropTypes.oneOf(['in', 'out']),
|
|
4104
|
+
delay: PropTypes.number,
|
|
4105
|
+
reversible: PropTypes.bool,
|
|
4106
|
+
duration: PropTypes.number,
|
|
4107
|
+
easing: PropTypes.func,
|
|
4108
|
+
config: PropTypes.shape({
|
|
4109
|
+
mass: PropTypes.number,
|
|
4110
|
+
friction: PropTypes.number,
|
|
4111
|
+
tension: PropTypes.number
|
|
4112
4112
|
}),
|
|
4113
|
-
children: PropTypes
|
|
4114
|
-
className: PropTypes
|
|
4115
|
-
onStart: PropTypes
|
|
4116
|
-
onComplete: PropTypes
|
|
4113
|
+
children: PropTypes.node,
|
|
4114
|
+
className: PropTypes.string,
|
|
4115
|
+
onStart: PropTypes.func,
|
|
4116
|
+
onComplete: PropTypes.func
|
|
4117
4117
|
};
|
|
4118
4118
|
var defaultProps$4 = {
|
|
4119
4119
|
fullscreen: false,
|
|
@@ -4227,13 +4227,13 @@ var TransitionComponents = {
|
|
|
4227
4227
|
};
|
|
4228
4228
|
|
|
4229
4229
|
var propTypes$3 = {
|
|
4230
|
-
fullscreen: PropTypes
|
|
4231
|
-
playing: PropTypes
|
|
4232
|
-
delay: PropTypes
|
|
4233
|
-
transitions: PropTypes.transitions,
|
|
4234
|
-
onComplete: PropTypes
|
|
4235
|
-
disabled: PropTypes
|
|
4236
|
-
children: PropTypes
|
|
4230
|
+
fullscreen: PropTypes.bool,
|
|
4231
|
+
playing: PropTypes.bool,
|
|
4232
|
+
delay: PropTypes.number,
|
|
4233
|
+
transitions: PropTypes$1.transitions,
|
|
4234
|
+
onComplete: PropTypes.func,
|
|
4235
|
+
disabled: PropTypes.bool,
|
|
4236
|
+
children: PropTypes.node
|
|
4237
4237
|
};
|
|
4238
4238
|
var defaultProps$3 = {
|
|
4239
4239
|
fullscreen: false,
|
|
@@ -4311,13 +4311,13 @@ Transitions.propTypes = propTypes$3;
|
|
|
4311
4311
|
Transitions.defaultProps = defaultProps$3;
|
|
4312
4312
|
|
|
4313
4313
|
var propTypes$2 = {
|
|
4314
|
-
transitions: PropTypes.transitions,
|
|
4315
|
-
stagger: PropTypes
|
|
4316
|
-
playing: PropTypes
|
|
4317
|
-
disabled: PropTypes
|
|
4318
|
-
delay: PropTypes
|
|
4319
|
-
fullscreen: PropTypes
|
|
4320
|
-
children: PropTypes
|
|
4314
|
+
transitions: PropTypes$1.transitions,
|
|
4315
|
+
stagger: PropTypes.number,
|
|
4316
|
+
playing: PropTypes.bool,
|
|
4317
|
+
disabled: PropTypes.bool,
|
|
4318
|
+
delay: PropTypes.number,
|
|
4319
|
+
fullscreen: PropTypes.bool,
|
|
4320
|
+
children: PropTypes.node
|
|
4321
4321
|
};
|
|
4322
4322
|
var defaultProps$2 = {
|
|
4323
4323
|
transitions: null,
|
|
@@ -4364,9 +4364,9 @@ TransitionsStagger.propTypes = propTypes$2;
|
|
|
4364
4364
|
TransitionsStagger.defaultProps = defaultProps$2;
|
|
4365
4365
|
|
|
4366
4366
|
var propTypes$1 = {
|
|
4367
|
-
selector: PropTypes
|
|
4368
|
-
highlightSelector: PropTypes
|
|
4369
|
-
style: PropTypes
|
|
4367
|
+
selector: PropTypes.string,
|
|
4368
|
+
highlightSelector: PropTypes.string,
|
|
4369
|
+
style: PropTypes.objectOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number]))
|
|
4370
4370
|
};
|
|
4371
4371
|
var defaultProps$1 = {
|
|
4372
4372
|
selector: null,
|
|
@@ -4387,9 +4387,9 @@ HighlightStyle.propTypes = propTypes$1;
|
|
|
4387
4387
|
HighlightStyle.defaultProps = defaultProps$1;
|
|
4388
4388
|
|
|
4389
4389
|
var propTypes = {
|
|
4390
|
-
selector: PropTypes
|
|
4391
|
-
linkSelector: PropTypes
|
|
4392
|
-
style: PropTypes
|
|
4390
|
+
selector: PropTypes.string,
|
|
4391
|
+
linkSelector: PropTypes.string,
|
|
4392
|
+
style: PropTypes.objectOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number]))
|
|
4393
4393
|
};
|
|
4394
4394
|
var defaultProps = {
|
|
4395
4395
|
selector: null,
|