@micromag/core 0.3.832 → 0.4.4

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.
Files changed (64) hide show
  1. package/assets/css/styles.css +31 -31
  2. package/assets/css/vendor.css +4 -3
  3. package/es/components.d.ts +628 -0
  4. package/es/components.js +947 -2301
  5. package/es/contexts.d.ts +297 -0
  6. package/es/contexts.js +154 -341
  7. package/es/hooks.d.ts +333 -0
  8. package/es/hooks.js +22 -17
  9. package/es/index.d.ts +665 -0
  10. package/es/index.js +2 -772
  11. package/es/styles.css +35 -0
  12. package/es/utils.d.ts +214 -0
  13. package/lib/components.js +955 -2309
  14. package/lib/contexts.js +153 -340
  15. package/lib/hooks.js +21 -16
  16. package/lib/index.js +0 -771
  17. package/lib/styles.css +35 -0
  18. package/package.json +39 -46
  19. package/styles/bootstrap-overrides.css +111 -0
  20. package/styles/bootstrap-patches.css +486 -0
  21. package/styles/breadcrumb.module.css +5 -0
  22. package/styles/button.module.css +82 -0
  23. package/styles/buttons.module.css +3 -0
  24. package/styles/clear.module.css +23 -0
  25. package/styles/collapsable-panel.module.css +31 -0
  26. package/styles/conversation.module.css +37 -0
  27. package/styles/dialog.module.css +13 -0
  28. package/styles/empty.module.css +22 -0
  29. package/styles/form-panel.module.css +3 -0
  30. package/styles/form.module.css +22 -0
  31. package/styles/link.module.css +9 -0
  32. package/styles/map.module.css +43 -0
  33. package/styles/media.module.css +3 -0
  34. package/styles/modal.module.css +22 -0
  35. package/styles/modals.module.css +12 -0
  36. package/styles/navbar.module.css +9 -0
  37. package/styles/pagination.module.css +3 -0
  38. package/styles/panel.module.css +3 -0
  39. package/styles/panels.module.css +3 -0
  40. package/styles/placeholder-block.module.css +29 -0
  41. package/styles/placeholder-text.module.css +17 -0
  42. package/styles/placeholders.module.css +3 -0
  43. package/styles/preview.module.css +34 -0
  44. package/styles/quiz-answer.module.css +29 -0
  45. package/styles/screen-placeholder.module.css +5 -0
  46. package/styles/screen-sizer.module.css +14 -0
  47. package/styles/screen.module.css +52 -0
  48. package/styles/screens.module.css +16 -0
  49. package/styles/share-options.module.css +27 -0
  50. package/{scss/_placeholders.scss → styles/shared.module.css} +103 -97
  51. package/styles/slideshow.module.css +28 -0
  52. package/styles/spinner.module.css +43 -0
  53. package/styles/styles.css +1 -0
  54. package/styles/survey-answer.module.css +18 -0
  55. package/styles/tabs.module.css +4 -0
  56. package/styles/theme.css +84 -0
  57. package/styles/transition.module.css +9 -0
  58. package/{scss/vendor.scss → styles/vendor.css} +16 -30
  59. package/styles/video-360.module.css +15 -0
  60. package/scss/_mixins.scss +0 -34
  61. package/scss/_theme.scss +0 -114
  62. package/scss/_variables.scss +0 -12
  63. package/scss/styles.scss +0 -1
  64. package/scss/upload.scss +0 -1
package/es/components.js CHANGED
@@ -1,12 +1,10 @@
1
- import PropTypes from 'prop-types';
2
1
  import React, { useCallback, useState, useEffect, useRef, useMemo } from 'react';
3
2
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
4
3
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
5
- import classNames from 'classnames';
6
- import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
7
4
  import { faAngleLeft } from '@fortawesome/free-solid-svg-icons/faAngleLeft';
5
+ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
6
+ import classNames from 'classnames';
8
7
  import { Link as Link$1 } from 'wouter';
9
- import { PropTypes as PropTypes$1 } from '@micromag/core';
10
8
  import { FormattedMessage, defineMessages, FormattedDate, FormattedTime } from 'react-intl';
11
9
  import { isMessage, getFieldFromPath, getComponentFromName, setFieldValue, validateFields, getDisplayName, pascalCase, convertStyleToString } from '@micromag/core/utils';
12
10
  import { faClose } from '@fortawesome/free-solid-svg-icons/faClose';
@@ -21,9 +19,9 @@ import get from 'lodash/get';
21
19
  import { useFieldsManager, useFieldComponent, FieldContextProvider, withModals, useModals, withPanels, usePanels, ScreenSizeProvider, useScreenComponent, ScreenProvider, useScreenRenderContext, useScreenSize } from '@micromag/core/contexts';
22
20
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
23
21
  import isObject from 'lodash/isObject';
24
- import { Helmet } from 'react-helmet';
25
- import isString from 'lodash/isString';
26
22
  import isArray from 'lodash/isArray';
23
+ import isString from 'lodash/isString';
24
+ import { Helmet } from 'react-helmet';
27
25
  import { createPortal } from 'react-dom';
28
26
  import queryString from 'query-string';
29
27
  import { faAd } from '@fortawesome/free-solid-svg-icons/faAd';
@@ -45,125 +43,81 @@ import { useSpring } from '@react-spring/core';
45
43
  import { config, animated } from '@react-spring/web';
46
44
 
47
45
  /* eslint-disable react/jsx-props-no-spreading */
48
- var propTypes$T = {
49
- children: PropTypes$1.label.isRequired,
50
- isHtml: PropTypes.bool,
51
- values: PropTypes.object // eslint-disable-line react/forbid-prop-types
52
- };
53
- var defaultProps$T = {
54
- isHtml: false,
55
- values: {}
56
- };
57
- var Label = function Label(_ref) {
46
+ function Label(_ref) {
58
47
  var children = _ref.children,
59
- isHtml = _ref.isHtml,
60
- values = _ref.values;
48
+ _ref$isHtml = _ref.isHtml,
49
+ isHtml = _ref$isHtml === void 0 ? false : _ref$isHtml,
50
+ _ref$values = _ref.values,
51
+ values = _ref$values === void 0 ? {} : _ref$values;
61
52
  var Message = isHtml ? FormattedMessage : FormattedMessage;
62
53
  return isMessage(children) ? /*#__PURE__*/React.createElement(Message, Object.assign({
63
54
  values: values
64
55
  }, children)) : children;
65
- };
66
- Label.propTypes = propTypes$T;
67
- Label.defaultProps = defaultProps$T;
56
+ }
68
57
 
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"};
58
+ var styles$y = {"container":"container","icon":"icon","label":"label","withoutStyle":"withoutStyle","asLink":"asLink","withIcon":"withIcon","right":"right","withIconColumns":"withIconColumns","linkDisabled":"linkDisabled"};
70
59
 
71
60
  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
- var propTypes$S = {
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
- })])
104
- };
105
- var defaultProps$S = {
106
- type: 'button',
107
- theme: null,
108
- size: null,
109
- href: null,
110
- external: false,
111
- direct: false,
112
- target: '_blank',
113
- label: null,
114
- children: null,
115
- focusable: true,
116
- active: false,
117
- icon: null,
118
- iconPosition: 'inline',
119
- disabled: false,
120
- loading: false,
121
- disableOnLoading: true,
122
- small: false,
123
- big: false,
124
- withShadow: false,
125
- withoutStyle: false,
126
- withoutBootstrapStyles: false,
127
- withoutTheme: false,
128
- outline: false,
129
- asLink: false,
130
- className: null,
131
- iconClassName: null,
132
- labelClassName: null,
133
- onClick: null,
134
- refButton: null
135
- };
136
- var Button$1 = function Button(_ref) {
61
+ function Button$1(_ref) {
137
62
  var _ref8;
138
- var type = _ref.type,
139
- theme = _ref.theme,
140
- size = _ref.size,
141
- href = _ref.href,
142
- external = _ref.external,
143
- direct = _ref.direct,
144
- target = _ref.target,
145
- label = _ref.label,
146
- children = _ref.children,
147
- focusable = _ref.focusable,
148
- active = _ref.active,
149
- icon = _ref.icon,
150
- iconPosition = _ref.iconPosition,
151
- disabled = _ref.disabled,
152
- loading = _ref.loading,
153
- disableOnLoading = _ref.disableOnLoading,
154
- small = _ref.small,
155
- big = _ref.big,
156
- withShadow = _ref.withShadow,
157
- withoutStyle = _ref.withoutStyle,
158
- withoutBootstrapStyles = _ref.withoutBootstrapStyles,
159
- withoutTheme = _ref.withoutTheme,
160
- asLink = _ref.asLink,
161
- outline = _ref.outline,
162
- onClick = _ref.onClick,
163
- className = _ref.className,
164
- iconClassName = _ref.iconClassName,
165
- labelClassName = _ref.labelClassName,
166
- refButton = _ref.refButton,
63
+ var _ref$type = _ref.type,
64
+ type = _ref$type === void 0 ? 'button' : _ref$type,
65
+ _ref$theme = _ref.theme,
66
+ theme = _ref$theme === void 0 ? null : _ref$theme,
67
+ _ref$size = _ref.size,
68
+ size = _ref$size === void 0 ? null : _ref$size,
69
+ _ref$href = _ref.href,
70
+ href = _ref$href === void 0 ? null : _ref$href,
71
+ _ref$external = _ref.external,
72
+ external = _ref$external === void 0 ? false : _ref$external,
73
+ _ref$direct = _ref.direct,
74
+ direct = _ref$direct === void 0 ? false : _ref$direct,
75
+ _ref$target = _ref.target,
76
+ target = _ref$target === void 0 ? '_blank' : _ref$target,
77
+ _ref$label = _ref.label,
78
+ label = _ref$label === void 0 ? null : _ref$label,
79
+ _ref$children = _ref.children,
80
+ children = _ref$children === void 0 ? null : _ref$children,
81
+ _ref$focusable = _ref.focusable,
82
+ focusable = _ref$focusable === void 0 ? true : _ref$focusable,
83
+ _ref$active = _ref.active,
84
+ active = _ref$active === void 0 ? false : _ref$active,
85
+ _ref$icon = _ref.icon,
86
+ icon = _ref$icon === void 0 ? null : _ref$icon,
87
+ _ref$iconPosition = _ref.iconPosition,
88
+ iconPosition = _ref$iconPosition === void 0 ? 'inline' : _ref$iconPosition,
89
+ _ref$disabled = _ref.disabled,
90
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
91
+ _ref$loading = _ref.loading,
92
+ loading = _ref$loading === void 0 ? false : _ref$loading,
93
+ _ref$disableOnLoading = _ref.disableOnLoading,
94
+ disableOnLoading = _ref$disableOnLoading === void 0 ? true : _ref$disableOnLoading,
95
+ _ref$small = _ref.small,
96
+ small = _ref$small === void 0 ? false : _ref$small,
97
+ _ref$big = _ref.big,
98
+ big = _ref$big === void 0 ? false : _ref$big,
99
+ _ref$withShadow = _ref.withShadow,
100
+ withShadow = _ref$withShadow === void 0 ? false : _ref$withShadow,
101
+ _ref$withoutStyle = _ref.withoutStyle,
102
+ withoutStyle = _ref$withoutStyle === void 0 ? false : _ref$withoutStyle,
103
+ _ref$withoutBootstrap = _ref.withoutBootstrapStyles,
104
+ withoutBootstrapStyles = _ref$withoutBootstrap === void 0 ? false : _ref$withoutBootstrap,
105
+ _ref$withoutTheme = _ref.withoutTheme,
106
+ withoutTheme = _ref$withoutTheme === void 0 ? false : _ref$withoutTheme,
107
+ _ref$asLink = _ref.asLink,
108
+ asLink = _ref$asLink === void 0 ? false : _ref$asLink,
109
+ _ref$outline = _ref.outline,
110
+ outline = _ref$outline === void 0 ? false : _ref$outline,
111
+ _ref$onClick = _ref.onClick,
112
+ onClick = _ref$onClick === void 0 ? null : _ref$onClick,
113
+ _ref$className = _ref.className,
114
+ className = _ref$className === void 0 ? null : _ref$className,
115
+ _ref$iconClassName = _ref.iconClassName,
116
+ iconClassName = _ref$iconClassName === void 0 ? null : _ref$iconClassName,
117
+ _ref$labelClassName = _ref.labelClassName,
118
+ labelClassName = _ref$labelClassName === void 0 ? null : _ref$labelClassName,
119
+ _ref$refButton = _ref.refButton,
120
+ refButton = _ref$refButton === void 0 ? null : _ref$refButton,
167
121
  props = _objectWithoutProperties(_ref, _excluded$c);
168
122
  var finalLabel = label || children;
169
123
  var text = finalLabel !== null ? /*#__PURE__*/React.createElement(Label, null, finalLabel) : null;
@@ -213,39 +167,26 @@ var Button$1 = function Button(_ref) {
213
167
  ref: refButton,
214
168
  tabIndex: focusable ? '0' : '-1'
215
169
  }), content);
216
- };
217
- Button$1.propTypes = propTypes$S;
218
- Button$1.defaultProps = defaultProps$S;
170
+ }
219
171
 
220
- var styles$x = {};
172
+ var styles$x = {"container":"container"};
221
173
 
222
174
  var _excluded$b = ["className", "onClick", "theme"];
223
- var propTypes$R = {
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
- };
232
- var defaultProps$R = {
233
- buttons: [],
234
- size: null,
235
- theme: undefined,
236
- renderButton: null,
237
- onClickButton: null,
238
- className: null,
239
- buttonClassName: null
240
- };
241
- var Buttons = function Buttons(_ref) {
242
- var buttons = _ref.buttons,
243
- size = _ref.size,
244
- theme = _ref.theme,
245
- renderButton = _ref.renderButton,
246
- onClickButton = _ref.onClickButton,
247
- buttonClassName = _ref.buttonClassName,
248
- className = _ref.className;
175
+ function Buttons(_ref) {
176
+ var _ref$buttons = _ref.buttons,
177
+ buttons = _ref$buttons === void 0 ? [] : _ref$buttons,
178
+ _ref$size = _ref.size,
179
+ size = _ref$size === void 0 ? null : _ref$size,
180
+ _ref$theme = _ref.theme,
181
+ theme = _ref$theme === void 0 ? undefined : _ref$theme,
182
+ _ref$renderButton = _ref.renderButton,
183
+ renderButton = _ref$renderButton === void 0 ? null : _ref$renderButton,
184
+ _ref$onClickButton = _ref.onClickButton,
185
+ onClickButton = _ref$onClickButton === void 0 ? null : _ref$onClickButton,
186
+ _ref$buttonClassName = _ref.buttonClassName,
187
+ buttonClassName = _ref$buttonClassName === void 0 ? null : _ref$buttonClassName,
188
+ _ref$className = _ref.className,
189
+ className = _ref$className === void 0 ? null : _ref$className;
249
190
  return /*#__PURE__*/React.createElement("div", {
250
191
  className: classNames(['btn-group', _defineProperty({}, "btn-group-".concat(size), size !== null), styles$x.container, _defineProperty({}, className, className !== null)]),
251
192
  role: "group"
@@ -272,19 +213,12 @@ var Buttons = function Buttons(_ref) {
272
213
  };
273
214
  return renderButton !== null ? renderButton(button, index, fixedProps) : /*#__PURE__*/React.createElement(Button$1, Object.assign({}, fixedProps, buttonProps));
274
215
  }));
275
- };
276
- Buttons.propTypes = propTypes$R;
277
- Buttons.defaultProps = defaultProps$R;
216
+ }
278
217
 
279
218
  var _excluded$a = ["className"];
280
- var propTypes$Q = {
281
- className: PropTypes.string
282
- };
283
- var defaultProps$Q = {
284
- className: null
285
- };
286
- var BackButton = function BackButton(_ref) {
287
- var className = _ref.className,
219
+ function BackButton(_ref) {
220
+ var _ref$className = _ref.className,
221
+ className = _ref$className === void 0 ? null : _ref$className,
288
222
  props = _objectWithoutProperties(_ref, _excluded$a);
289
223
  return /*#__PURE__*/React.createElement(Button$1, Object.assign({
290
224
  className: classNames(['px-2', _defineProperty({}, className, className)]),
@@ -294,24 +228,16 @@ var BackButton = function BackButton(_ref) {
294
228
  size: "lg"
295
229
  })
296
230
  }, props));
297
- };
298
- BackButton.propTypes = propTypes$Q;
299
- BackButton.defaultProps = defaultProps$Q;
231
+ }
300
232
 
301
- var styles$w = {"container":"micromag-core-buttons-clear-container","icon":"micromag-core-buttons-clear-icon"};
233
+ var styles$w = {"container":"container","icon":"icon"};
302
234
 
303
235
  var _excluded$9 = ["onClick", "className"];
304
- var propTypes$P = {
305
- onClick: PropTypes.func,
306
- className: PropTypes.string
307
- };
308
- var defaultProps$P = {
309
- onClick: null,
310
- className: null
311
- };
312
- var ClearButton = function ClearButton(_ref) {
313
- var onClick = _ref.onClick,
314
- className = _ref.className,
236
+ function ClearButton(_ref) {
237
+ var _ref$onClick = _ref.onClick,
238
+ onClick = _ref$onClick === void 0 ? null : _ref$onClick,
239
+ _ref$className = _ref.className,
240
+ className = _ref$className === void 0 ? null : _ref$className,
315
241
  props = _objectWithoutProperties(_ref, _excluded$9);
316
242
  return /*#__PURE__*/React.createElement("button", Object.assign({
317
243
  className: classNames([styles$w.container, _defineProperty({}, className, className)]),
@@ -321,46 +247,29 @@ var ClearButton = function ClearButton(_ref) {
321
247
  icon: faClose,
322
248
  size: "md"
323
249
  }));
324
- };
325
- ClearButton.propTypes = propTypes$P;
326
- ClearButton.defaultProps = defaultProps$P;
250
+ }
327
251
 
328
252
  var _excluded$8 = ["type"],
329
253
  _excluded2 = ["component", "id", "settings"];
330
- var propTypes$O = {
331
- name: PropTypes.string,
332
- // .isRequired,
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
- };
343
- var defaultProps$O = {
344
- name: null,
345
- form: null,
346
- formComponents: {},
347
- fields: [],
348
- value: null,
349
- className: null,
350
- onChange: null,
351
- fieldContext: null
352
- };
353
- var FieldForm = function FieldForm(_ref) {
354
- var name = _ref.name,
355
- value = _ref.value,
356
- form = _ref.form,
357
- formComponents = _ref.formComponents,
358
- fields = _ref.fields,
359
- className = _ref.className,
360
- onChange = _ref.onChange,
254
+ function FieldForm(_ref) {
255
+ var _ref$name = _ref.name,
256
+ name = _ref$name === void 0 ? null : _ref$name,
257
+ _ref$value = _ref.value,
258
+ value = _ref$value === void 0 ? null : _ref$value,
259
+ _ref$form = _ref.form,
260
+ form = _ref$form === void 0 ? null : _ref$form,
261
+ _ref$formComponents = _ref.formComponents,
262
+ formComponents = _ref$formComponents === void 0 ? {} : _ref$formComponents,
263
+ _ref$fields = _ref.fields,
264
+ fields = _ref$fields === void 0 ? [] : _ref$fields,
265
+ _ref$className = _ref.className,
266
+ className = _ref$className === void 0 ? null : _ref$className,
267
+ _ref$onChange = _ref.onChange,
268
+ onChange = _ref$onChange === void 0 ? null : _ref$onChange,
361
269
  gotoFieldForm = _ref.gotoFieldForm,
362
270
  closeFieldForm = _ref.closeFieldForm,
363
- fieldContext = _ref.fieldContext;
271
+ _ref$fieldContext = _ref.fieldContext,
272
+ fieldContext = _ref$fieldContext === void 0 ? null : _ref$fieldContext;
364
273
  var fieldsManager = useFieldsManager();
365
274
  var field = getFieldFromPath(name.split('.'), fields, fieldsManager);
366
275
  var parentField = name.match(/\.[0-9]+$/) !== null ? getFieldFromPath(name.split('.').slice(0, -1), fields, fieldsManager) : null;
@@ -419,101 +328,68 @@ var FieldForm = function FieldForm(_ref) {
419
328
  }, definitionProps, fieldProps, itemsProps, {
420
329
  isForm: true
421
330
  }, formProps))) : null;
422
- };
423
- FieldForm.propTypes = propTypes$O;
424
- FieldForm.defaultProps = defaultProps$O;
331
+ }
425
332
 
426
- var styles$v = {"actions":"micromag-core-forms-form-actions","left":"micromag-core-forms-form-left","right":"micromag-core-forms-form-right"};
333
+ var styles$v = {"container":"container","panel":"panel","actions":"actions","left":"left","right":"right"};
427
334
 
428
- var propTypes$N = {
429
- action: PropTypes.string.isRequired,
430
- method: PropTypes.string,
431
- fields: PropTypes$1.formFields,
432
- initialValue: PropTypes.object,
433
- // eslint-disable-line react/forbid-prop-types
434
- postForm: PropTypes.func,
435
- submitButtonLabel: PropTypes$1.label,
436
- submitButtonLoadingLabel: PropTypes$1.label,
437
- submitButtonTheme: PropTypes.string,
438
- cancelButtonTheme: PropTypes.string,
439
- buttons: PropTypes$1.buttons,
440
- children: PropTypes.node,
441
- actionsAlign: PropTypes.oneOf(['left', 'right']),
442
- withoutActions: PropTypes.bool,
443
- withoutComplete: PropTypes.bool,
444
- withoutBackButton: PropTypes.bool,
445
- onComplete: PropTypes.func,
446
- onResponse: PropTypes.func,
447
- onMessage: PropTypes.func,
448
- onCancel: PropTypes.func,
449
- onCancelHref: PropTypes.string,
450
- onOpenFieldForm: PropTypes.func,
451
- onCloseFieldForm: PropTypes.func,
452
- className: PropTypes.string,
453
- fieldsClassName: PropTypes.string,
454
- actionsClassName: PropTypes.string,
455
- cancelClassName: PropTypes.string
456
- };
457
- var defaultProps$N = {
458
- method: 'POST',
459
- fields: [],
460
- initialValue: null,
461
- postForm: null,
462
- submitButtonLabel: /*#__PURE__*/React.createElement(FormattedMessage, {
463
- id: "ZLDmja",
464
- defaultMessage: [{
465
- "type": 0,
466
- "value": "Submit"
467
- }]
468
- }),
469
- submitButtonLoadingLabel: null,
470
- submitButtonTheme: null,
471
- cancelButtonTheme: null,
472
- buttons: null,
473
- children: null,
474
- actionsAlign: 'left',
475
- withoutActions: false,
476
- withoutComplete: false,
477
- withoutBackButton: false,
478
- onComplete: null,
479
- onResponse: null,
480
- onMessage: null,
481
- onCancel: null,
482
- onCancelHref: null,
483
- onOpenFieldForm: null,
484
- onCloseFieldForm: null,
485
- className: null,
486
- fieldsClassName: null,
487
- actionsClassName: null,
488
- cancelClassName: null
489
- };
490
- var Form = function Form(_ref) {
335
+ function Form(_ref) {
491
336
  var action = _ref.action,
492
- method = _ref.method,
493
- initialFields = _ref.fields,
494
- initialValue = _ref.initialValue,
495
- postForm = _ref.postForm,
496
- submitButtonLabel = _ref.submitButtonLabel,
497
- submitButtonLoadingLabel = _ref.submitButtonLoadingLabel,
498
- submitButtonTheme = _ref.submitButtonTheme,
499
- cancelButtonTheme = _ref.cancelButtonTheme,
500
- buttons = _ref.buttons,
501
- children = _ref.children,
502
- actionsAlign = _ref.actionsAlign,
503
- withoutActions = _ref.withoutActions,
504
- withoutComplete = _ref.withoutComplete,
505
- withoutBackButton = _ref.withoutBackButton,
506
- onComplete = _ref.onComplete,
507
- onResponse = _ref.onResponse,
508
- onMessage = _ref.onMessage,
509
- onCancel = _ref.onCancel,
510
- onCancelHref = _ref.onCancelHref,
511
- onOpenFieldForm = _ref.onOpenFieldForm,
512
- onCloseFieldForm = _ref.onCloseFieldForm,
513
- className = _ref.className,
514
- fieldsClassName = _ref.fieldsClassName,
515
- actionsClassName = _ref.actionsClassName,
516
- cancelClassName = _ref.cancelClassName;
337
+ _ref$method = _ref.method,
338
+ method = _ref$method === void 0 ? 'POST' : _ref$method,
339
+ _ref$fields = _ref.fields,
340
+ initialFields = _ref$fields === void 0 ? [] : _ref$fields,
341
+ _ref$initialValue = _ref.initialValue,
342
+ initialValue = _ref$initialValue === void 0 ? null : _ref$initialValue,
343
+ _ref$postForm = _ref.postForm,
344
+ postForm = _ref$postForm === void 0 ? null : _ref$postForm,
345
+ _ref$submitButtonLabe = _ref.submitButtonLabel,
346
+ submitButtonLabel = _ref$submitButtonLabe === void 0 ? /*#__PURE__*/React.createElement(FormattedMessage, {
347
+ id: "ZLDmja",
348
+ defaultMessage: [{
349
+ "type": 0,
350
+ "value": "Submit"
351
+ }]
352
+ }) : _ref$submitButtonLabe,
353
+ _ref$submitButtonLoad = _ref.submitButtonLoadingLabel,
354
+ submitButtonLoadingLabel = _ref$submitButtonLoad === void 0 ? null : _ref$submitButtonLoad,
355
+ _ref$submitButtonThem = _ref.submitButtonTheme,
356
+ submitButtonTheme = _ref$submitButtonThem === void 0 ? null : _ref$submitButtonThem,
357
+ _ref$cancelButtonThem = _ref.cancelButtonTheme,
358
+ cancelButtonTheme = _ref$cancelButtonThem === void 0 ? null : _ref$cancelButtonThem,
359
+ _ref$buttons = _ref.buttons,
360
+ buttons = _ref$buttons === void 0 ? null : _ref$buttons,
361
+ _ref$children = _ref.children,
362
+ children = _ref$children === void 0 ? null : _ref$children,
363
+ _ref$actionsAlign = _ref.actionsAlign,
364
+ actionsAlign = _ref$actionsAlign === void 0 ? 'left' : _ref$actionsAlign,
365
+ _ref$withoutActions = _ref.withoutActions,
366
+ withoutActions = _ref$withoutActions === void 0 ? false : _ref$withoutActions,
367
+ _ref$withoutComplete = _ref.withoutComplete,
368
+ withoutComplete = _ref$withoutComplete === void 0 ? false : _ref$withoutComplete,
369
+ _ref$withoutBackButto = _ref.withoutBackButton,
370
+ withoutBackButton = _ref$withoutBackButto === void 0 ? false : _ref$withoutBackButto,
371
+ _ref$onComplete = _ref.onComplete,
372
+ onComplete = _ref$onComplete === void 0 ? null : _ref$onComplete,
373
+ _ref$onResponse = _ref.onResponse,
374
+ onResponse = _ref$onResponse === void 0 ? null : _ref$onResponse,
375
+ _ref$onMessage = _ref.onMessage,
376
+ onMessage = _ref$onMessage === void 0 ? null : _ref$onMessage,
377
+ _ref$onCancel = _ref.onCancel,
378
+ onCancel = _ref$onCancel === void 0 ? null : _ref$onCancel,
379
+ _ref$onCancelHref = _ref.onCancelHref,
380
+ onCancelHref = _ref$onCancelHref === void 0 ? null : _ref$onCancelHref,
381
+ _ref$onOpenFieldForm = _ref.onOpenFieldForm,
382
+ onOpenFieldForm = _ref$onOpenFieldForm === void 0 ? null : _ref$onOpenFieldForm,
383
+ _ref$onCloseFieldForm = _ref.onCloseFieldForm,
384
+ onCloseFieldForm = _ref$onCloseFieldForm === void 0 ? null : _ref$onCloseFieldForm,
385
+ _ref$className = _ref.className,
386
+ className = _ref$className === void 0 ? null : _ref$className,
387
+ _ref$fieldsClassName = _ref.fieldsClassName,
388
+ fieldsClassName = _ref$fieldsClassName === void 0 ? null : _ref$fieldsClassName,
389
+ _ref$actionsClassName = _ref.actionsClassName,
390
+ actionsClassName = _ref$actionsClassName === void 0 ? null : _ref$actionsClassName,
391
+ _ref$cancelClassName = _ref.cancelClassName,
392
+ cancelClassName = _ref$cancelClassName === void 0 ? null : _ref$cancelClassName;
517
393
  var _useState = useState(false),
518
394
  _useState2 = _slicedToArray(_useState, 2),
519
395
  complete = _useState2[0],
@@ -656,39 +532,26 @@ var Form = function Form(_ref) {
656
532
  "value": "Success"
657
533
  }]
658
534
  })) : null) : null);
659
- };
660
- Form.propTypes = propTypes$N;
661
- Form.defaultProps = defaultProps$N;
535
+ }
662
536
 
663
- var styles$u = {"withoutStyle":"micromag-core-partials-link-withoutStyle"};
537
+ var styles$u = {"withoutStyle":"withoutStyle"};
664
538
 
665
539
  var _excluded$7 = ["href", "external", "children", "target", "rel", "className", "withoutStyle"];
666
- var propTypes$M = {
667
- href: PropTypes.string,
668
- external: PropTypes.bool,
669
- target: PropTypes.string,
670
- children: PropTypes$1.label,
671
- rel: PropTypes.string,
672
- withoutStyle: PropTypes.bool,
673
- className: PropTypes.string
674
- };
675
- var defaultProps$M = {
676
- href: '',
677
- external: false,
678
- target: '_blank',
679
- rel: 'noopener noreferrer',
680
- children: null,
681
- withoutStyle: false,
682
- className: null
683
- };
684
- var Link = function Link(_ref) {
685
- var href = _ref.href,
686
- external = _ref.external,
687
- children = _ref.children,
688
- target = _ref.target,
689
- rel = _ref.rel,
690
- className = _ref.className,
691
- withoutStyle = _ref.withoutStyle,
540
+ function Link(_ref) {
541
+ var _ref$href = _ref.href,
542
+ href = _ref$href === void 0 ? '' : _ref$href,
543
+ _ref$external = _ref.external,
544
+ external = _ref$external === void 0 ? false : _ref$external,
545
+ _ref$children = _ref.children,
546
+ children = _ref$children === void 0 ? null : _ref$children,
547
+ _ref$target = _ref.target,
548
+ target = _ref$target === void 0 ? '_blank' : _ref$target,
549
+ _ref$rel = _ref.rel,
550
+ rel = _ref$rel === void 0 ? 'noopener noreferrer' : _ref$rel,
551
+ _ref$className = _ref.className,
552
+ className = _ref$className === void 0 ? null : _ref$className,
553
+ _ref$withoutStyle = _ref.withoutStyle,
554
+ withoutStyle = _ref$withoutStyle === void 0 ? false : _ref$withoutStyle,
692
555
  props = _objectWithoutProperties(_ref, _excluded$7);
693
556
  return external ? /*#__PURE__*/React.createElement("a", Object.assign({
694
557
  className: classNames([className, _defineProperty({}, styles$u.withoutStyle, withoutStyle)]),
@@ -699,91 +562,58 @@ var Link = function Link(_ref) {
699
562
  className: classNames([className, _defineProperty({}, styles$u.withoutStyle, withoutStyle)]),
700
563
  href: href
701
564
  }, props), /*#__PURE__*/React.createElement(Label, null, children));
702
- };
703
- Link.propTypes = propTypes$M;
704
- Link.defaultProps = defaultProps$M;
565
+ }
705
566
 
706
567
  var _excluded$6 = ["label", "className"];
707
- var propTypes$L = {
708
- href: PropTypes.string,
709
- header: PropTypes.node,
710
- image: PropTypes.node,
711
- imageAlt: PropTypes.string,
712
- imageOverlay: PropTypes.bool,
713
- beforeBody: PropTypes.node,
714
- title: PropTypes$1.label,
715
- subtitle: PropTypes$1.label,
716
- children: PropTypes.node,
717
- afterBody: PropTypes.node,
718
- links: PropTypes.arrayOf(PropTypes.shape({
719
- label: PropTypes$1.label,
720
- href: PropTypes.string
721
- })),
722
- linksInSameBody: PropTypes.bool,
723
- footer: PropTypes.node,
724
- theme: PropTypes.oneOf([null, 'dark', 'primary', 'light']),
725
- className: PropTypes.string,
726
- imageClassName: PropTypes.string,
727
- headerClassName: PropTypes.string,
728
- titleClassName: PropTypes.string,
729
- subtitleClassName: PropTypes.string,
730
- bodyClassName: PropTypes.string,
731
- footerClassName: PropTypes.string,
732
- onClick: PropTypes.func,
733
- onClickBody: PropTypes.func,
734
- onClickFooter: PropTypes.func
735
- };
736
- var defaultProps$L = {
737
- href: null,
738
- header: null,
739
- image: null,
740
- imageAlt: null,
741
- imageOverlay: false,
742
- beforeBody: null,
743
- title: null,
744
- subtitle: null,
745
- children: null,
746
- afterBody: null,
747
- links: null,
748
- linksInSameBody: false,
749
- footer: null,
750
- theme: null,
751
- className: null,
752
- imageClassName: null,
753
- headerClassName: null,
754
- titleClassName: null,
755
- subtitleClassName: null,
756
- bodyClassName: null,
757
- footerClassName: null,
758
- onClick: null,
759
- onClickBody: null,
760
- onClickFooter: null
761
- };
762
- var Card = function Card(_ref) {
763
- var href = _ref.href,
764
- header = _ref.header,
765
- image = _ref.image,
766
- imageAlt = _ref.imageAlt,
767
- imageOverlay = _ref.imageOverlay,
768
- beforeBody = _ref.beforeBody,
769
- title = _ref.title,
770
- subtitle = _ref.subtitle,
771
- children = _ref.children,
772
- afterBody = _ref.afterBody,
773
- links = _ref.links,
774
- linksInSameBody = _ref.linksInSameBody,
775
- footer = _ref.footer,
776
- theme = _ref.theme,
777
- className = _ref.className,
778
- imageClassName = _ref.imageClassName,
779
- headerClassName = _ref.headerClassName,
780
- titleClassName = _ref.titleClassName,
781
- subtitleClassName = _ref.subtitleClassName,
782
- bodyClassName = _ref.bodyClassName,
783
- footerClassName = _ref.footerClassName,
784
- onClick = _ref.onClick,
785
- onClickBody = _ref.onClickBody,
786
- onClickFooter = _ref.onClickFooter;
568
+ function Card(_ref) {
569
+ var _ref$href = _ref.href,
570
+ href = _ref$href === void 0 ? null : _ref$href,
571
+ _ref$header = _ref.header,
572
+ header = _ref$header === void 0 ? null : _ref$header,
573
+ _ref$image = _ref.image,
574
+ image = _ref$image === void 0 ? null : _ref$image,
575
+ _ref$imageAlt = _ref.imageAlt,
576
+ imageAlt = _ref$imageAlt === void 0 ? null : _ref$imageAlt,
577
+ _ref$imageOverlay = _ref.imageOverlay,
578
+ imageOverlay = _ref$imageOverlay === void 0 ? false : _ref$imageOverlay,
579
+ _ref$beforeBody = _ref.beforeBody,
580
+ beforeBody = _ref$beforeBody === void 0 ? null : _ref$beforeBody,
581
+ _ref$title = _ref.title,
582
+ title = _ref$title === void 0 ? null : _ref$title,
583
+ _ref$subtitle = _ref.subtitle,
584
+ subtitle = _ref$subtitle === void 0 ? null : _ref$subtitle,
585
+ _ref$children = _ref.children,
586
+ children = _ref$children === void 0 ? null : _ref$children,
587
+ _ref$afterBody = _ref.afterBody,
588
+ afterBody = _ref$afterBody === void 0 ? null : _ref$afterBody,
589
+ _ref$links = _ref.links,
590
+ links = _ref$links === void 0 ? null : _ref$links,
591
+ _ref$linksInSameBody = _ref.linksInSameBody,
592
+ linksInSameBody = _ref$linksInSameBody === void 0 ? false : _ref$linksInSameBody,
593
+ _ref$footer = _ref.footer,
594
+ footer = _ref$footer === void 0 ? null : _ref$footer,
595
+ _ref$theme = _ref.theme,
596
+ theme = _ref$theme === void 0 ? null : _ref$theme,
597
+ _ref$className = _ref.className,
598
+ className = _ref$className === void 0 ? null : _ref$className,
599
+ _ref$imageClassName = _ref.imageClassName,
600
+ imageClassName = _ref$imageClassName === void 0 ? null : _ref$imageClassName,
601
+ _ref$headerClassName = _ref.headerClassName,
602
+ headerClassName = _ref$headerClassName === void 0 ? null : _ref$headerClassName,
603
+ _ref$titleClassName = _ref.titleClassName,
604
+ titleClassName = _ref$titleClassName === void 0 ? null : _ref$titleClassName,
605
+ _ref$subtitleClassNam = _ref.subtitleClassName,
606
+ subtitleClassName = _ref$subtitleClassNam === void 0 ? null : _ref$subtitleClassNam,
607
+ _ref$bodyClassName = _ref.bodyClassName,
608
+ bodyClassName = _ref$bodyClassName === void 0 ? null : _ref$bodyClassName,
609
+ _ref$footerClassName = _ref.footerClassName,
610
+ footerClassName = _ref$footerClassName === void 0 ? null : _ref$footerClassName,
611
+ _ref$onClick = _ref.onClick,
612
+ onClick = _ref$onClick === void 0 ? null : _ref$onClick,
613
+ _ref$onClickBody = _ref.onClickBody,
614
+ onClickBody = _ref$onClickBody === void 0 ? null : _ref$onClickBody,
615
+ _ref$onClickFooter = _ref.onClickFooter,
616
+ onClickFooter = _ref$onClickFooter === void 0 ? null : _ref$onClickFooter;
787
617
  var linksElements = (links || []).map(function (_ref2, index) {
788
618
  var label = _ref2.label,
789
619
  _ref2$className = _ref2.className,
@@ -845,29 +675,19 @@ var Card = function Card(_ref) {
845
675
  return /*#__PURE__*/React.createElement("div", {
846
676
  className: cardClassName
847
677
  }, cardInner);
848
- };
849
- Card.propTypes = propTypes$L;
850
- Card.defaultProps = defaultProps$L;
851
-
852
- var styles$t = {"container":"micromag-core-partials-spinner-container","path":"micromag-core-partials-spinner-path","animated":"micromag-core-partials-spinner-animated"};
678
+ }
853
679
 
854
- var propTypes$K = {
855
- animated: PropTypes.bool,
856
- color: PropTypes.string,
857
- strokeWidth: PropTypes.number,
858
- className: PropTypes.string
859
- };
860
- var defaultProps$K = {
861
- animated: true,
862
- color: 'currentColor',
863
- strokeWidth: 3,
864
- className: null
865
- };
866
- var Spinner = function Spinner(_ref) {
867
- var animated = _ref.animated,
868
- color = _ref.color,
869
- strokeWidth = _ref.strokeWidth,
870
- className = _ref.className;
680
+ var styles$t = {"container":"container","path":"path","animated":"animated"};
681
+
682
+ function Spinner(_ref) {
683
+ var _ref$animated = _ref.animated,
684
+ animated = _ref$animated === void 0 ? true : _ref$animated,
685
+ _ref$color = _ref.color,
686
+ color = _ref$color === void 0 ? 'currentColor' : _ref$color,
687
+ _ref$strokeWidth = _ref.strokeWidth,
688
+ strokeWidth = _ref$strokeWidth === void 0 ? 3 : _ref$strokeWidth,
689
+ _ref$className = _ref.className,
690
+ className = _ref$className === void 0 ? null : _ref$className;
871
691
  return /*#__PURE__*/React.createElement("svg", {
872
692
  className: classNames([styles$t.container, _defineProperty(_defineProperty({}, styles$t.animated, animated), className, className !== null)]),
873
693
  width: "40",
@@ -883,49 +703,31 @@ var Spinner = function Spinner(_ref) {
883
703
  stroke: color,
884
704
  strokeWidth: strokeWidth
885
705
  }));
886
- };
887
- Spinner.propTypes = propTypes$K;
888
- Spinner.defaultProps = defaultProps$K;
706
+ }
889
707
 
890
- var styles$s = {};
708
+ var styles$s = {"container":"container"};
891
709
 
892
710
  var _excluded$5 = ["description", "loading", "children", "className"];
893
- var propTypes$J = {
894
- description: PropTypes.node,
895
- loading: PropTypes.bool,
896
- children: PropTypes.node,
897
- className: PropTypes.string
898
- };
899
- var defaultProps$J = {
900
- description: null,
901
- loading: false,
902
- children: null,
903
- className: null
904
- };
905
- var FormPanel = function FormPanel(_ref) {
906
- var description = _ref.description,
907
- loading = _ref.loading,
908
- children = _ref.children,
909
- className = _ref.className,
711
+ function FormPanel(_ref) {
712
+ var _ref$description = _ref.description,
713
+ description = _ref$description === void 0 ? null : _ref$description,
714
+ _ref$loading = _ref.loading,
715
+ loading = _ref$loading === void 0 ? false : _ref$loading,
716
+ _ref$children = _ref.children,
717
+ children = _ref$children === void 0 ? null : _ref$children,
718
+ _ref$className = _ref.className,
719
+ className = _ref$className === void 0 ? null : _ref$className,
910
720
  props = _objectWithoutProperties(_ref, _excluded$5);
911
721
  return /*#__PURE__*/React.createElement(Card, Object.assign({
912
722
  className: classNames([styles$s.container, _defineProperty({}, className, className !== null)])
913
723
  }, props), description, loading ? /*#__PURE__*/React.createElement(Spinner, null) : children);
914
- };
915
- FormPanel.propTypes = propTypes$J;
916
- FormPanel.defaultProps = defaultProps$J;
724
+ }
917
725
 
918
- var propTypes$I = {
919
- className: PropTypes.string,
920
- color: PropTypes.string
921
- };
922
- var defaultProps$I = {
923
- className: null,
924
- color: '#fff'
925
- };
926
- var ArrowIcon = function ArrowIcon(_ref) {
927
- var color = _ref.color,
928
- className = _ref.className;
726
+ function ArrowIcon(_ref) {
727
+ var _ref$color = _ref.color,
728
+ color = _ref$color === void 0 ? '#fff' : _ref$color,
729
+ _ref$className = _ref.className,
730
+ className = _ref$className === void 0 ? null : _ref$className;
929
731
  return /*#__PURE__*/React.createElement("svg", {
930
732
  width: "20",
931
733
  height: "14",
@@ -939,21 +741,13 @@ var ArrowIcon = function ArrowIcon(_ref) {
939
741
  d: "M13.353 0.371014L19.319 6.33704C19.6851 6.70314 19.6851 7.29671 19.319 7.66282L13.353 13.6288C12.9869 13.9949 12.3933 13.9949 12.0272 13.6288C11.6611 13.2627 11.6611 12.6692 12.0272 12.3031L16.3929 7.9374H0V6.06246H16.3929L12.0272 1.6968C11.6611 1.33069 11.6611 0.737119 12.0272 0.371014C12.3933 0.0049094 12.9869 0.0049094 13.353 0.371014Z",
940
742
  fill: color
941
743
  }));
942
- };
943
- ArrowIcon.propTypes = propTypes$I;
944
- ArrowIcon.defaultProps = defaultProps$I;
744
+ }
945
745
 
946
- var propTypes$H = {
947
- className: PropTypes.string,
948
- color: PropTypes.string
949
- };
950
- var defaultProps$H = {
951
- className: null,
952
- color: '#fff'
953
- };
954
- var CloseIcon = function CloseIcon(_ref) {
955
- var color = _ref.color,
956
- className = _ref.className;
746
+ function CloseIcon(_ref) {
747
+ var _ref$color = _ref.color,
748
+ color = _ref$color === void 0 ? '#fff' : _ref$color,
749
+ _ref$className = _ref.className,
750
+ className = _ref$className === void 0 ? null : _ref$className;
957
751
  return /*#__PURE__*/React.createElement("svg", {
958
752
  width: "22",
959
753
  height: "22",
@@ -972,21 +766,13 @@ var CloseIcon = function CloseIcon(_ref) {
972
766
  strokeWidth: "1.5",
973
767
  strokeLinecap: "round"
974
768
  }));
975
- };
976
- CloseIcon.propTypes = propTypes$H;
977
- CloseIcon.defaultProps = defaultProps$H;
769
+ }
978
770
 
979
- var propTypes$G = {
980
- className: PropTypes.string,
981
- color: PropTypes.string
982
- };
983
- var defaultProps$G = {
984
- className: null,
985
- color: '#fff'
986
- };
987
- var FullscreenIcon = function FullscreenIcon(_ref) {
988
- var color = _ref.color,
989
- className = _ref.className;
771
+ function FullscreenIcon(_ref) {
772
+ var _ref$color = _ref.color,
773
+ color = _ref$color === void 0 ? '#fff' : _ref$color,
774
+ _ref$className = _ref.className,
775
+ className = _ref$className === void 0 ? null : _ref$className;
990
776
  return /*#__PURE__*/React.createElement("svg", {
991
777
  width: "16",
992
778
  height: "14",
@@ -998,21 +784,13 @@ var FullscreenIcon = function FullscreenIcon(_ref) {
998
784
  d: "M11.2 0H16V4.66667H14.4V1.55556H11.2V0ZM0 0H4.8V1.55556H1.6V4.66667H0V0ZM14.4 12.4444V9.33333H16V14H11.2V12.4444H14.4ZM1.6 12.4444H4.8V14H0V9.33333H1.6V12.4444Z",
999
785
  fill: color
1000
786
  }));
1001
- };
1002
- FullscreenIcon.propTypes = propTypes$G;
1003
- FullscreenIcon.defaultProps = defaultProps$G;
787
+ }
1004
788
 
1005
- var propTypes$F = {
1006
- className: PropTypes.string,
1007
- color: PropTypes.string
1008
- };
1009
- var defaultProps$F = {
1010
- className: null,
1011
- color: '#fff'
1012
- };
1013
- var LinkIcon = function LinkIcon(_ref) {
1014
- var color = _ref.color,
1015
- className = _ref.className;
789
+ function LinkIcon(_ref) {
790
+ var _ref$color = _ref.color,
791
+ color = _ref$color === void 0 ? '#fff' : _ref$color,
792
+ _ref$className = _ref.className,
793
+ className = _ref$className === void 0 ? null : _ref$className;
1016
794
  return /*#__PURE__*/React.createElement("svg", {
1017
795
  width: "16",
1018
796
  height: "16",
@@ -1033,21 +811,13 @@ var LinkIcon = function LinkIcon(_ref) {
1033
811
  strokeLinecap: "round",
1034
812
  strokeLinejoin: "round"
1035
813
  }));
1036
- };
1037
- LinkIcon.propTypes = propTypes$F;
1038
- LinkIcon.defaultProps = defaultProps$F;
814
+ }
1039
815
 
1040
- var propTypes$E = {
1041
- className: PropTypes.string,
1042
- color: PropTypes.string
1043
- };
1044
- var defaultProps$E = {
1045
- className: null,
1046
- color: '#fff'
1047
- };
1048
- var MuteIcon = function MuteIcon(_ref) {
1049
- var color = _ref.color,
1050
- className = _ref.className;
816
+ function MuteIcon(_ref) {
817
+ var _ref$color = _ref.color,
818
+ color = _ref$color === void 0 ? '#fff' : _ref$color,
819
+ _ref$className = _ref.className,
820
+ className = _ref$className === void 0 ? null : _ref$className;
1051
821
  return /*#__PURE__*/React.createElement("svg", {
1052
822
  width: "26",
1053
823
  height: "26",
@@ -1065,21 +835,13 @@ var MuteIcon = function MuteIcon(_ref) {
1065
835
  d: "M18 15.6875C19.6569 15.6875 21 14.3444 21 12.6875C21 11.0306 19.6569 9.6875 18 9.6875",
1066
836
  stroke: color
1067
837
  }));
1068
- };
1069
- MuteIcon.propTypes = propTypes$E;
1070
- MuteIcon.defaultProps = defaultProps$E;
838
+ }
1071
839
 
1072
- var propTypes$D = {
1073
- className: PropTypes.string,
1074
- color: PropTypes.string
1075
- };
1076
- var defaultProps$D = {
1077
- className: null,
1078
- color: '#fff'
1079
- };
1080
- var PauseIcon = function PauseIcon(_ref) {
1081
- var color = _ref.color,
1082
- className = _ref.className;
840
+ function PauseIcon(_ref) {
841
+ var _ref$color = _ref.color,
842
+ color = _ref$color === void 0 ? '#fff' : _ref$color,
843
+ _ref$className = _ref.className,
844
+ className = _ref$className === void 0 ? null : _ref$className;
1083
845
  return /*#__PURE__*/React.createElement("svg", {
1084
846
  className: className,
1085
847
  width: "14",
@@ -1099,21 +861,13 @@ var PauseIcon = function PauseIcon(_ref) {
1099
861
  rx: "2",
1100
862
  fill: color
1101
863
  }));
1102
- };
1103
- PauseIcon.propTypes = propTypes$D;
1104
- PauseIcon.defaultProps = defaultProps$D;
864
+ }
1105
865
 
1106
- var propTypes$C = {
1107
- className: PropTypes.string,
1108
- color: PropTypes.string
1109
- };
1110
- var defaultProps$C = {
1111
- className: null,
1112
- color: '#fff'
1113
- };
1114
- var PlayIcon = function PlayIcon(_ref) {
1115
- var color = _ref.color,
1116
- className = _ref.className;
866
+ function PlayIcon(_ref) {
867
+ var _ref$color = _ref.color,
868
+ color = _ref$color === void 0 ? '#fff' : _ref$color,
869
+ _ref$className = _ref.className,
870
+ className = _ref$className === void 0 ? null : _ref$className;
1117
871
  return /*#__PURE__*/React.createElement("svg", {
1118
872
  width: "40",
1119
873
  height: "45.1",
@@ -1126,21 +880,13 @@ var PlayIcon = function PlayIcon(_ref) {
1126
880
  fill: color,
1127
881
  stroke: color
1128
882
  }));
1129
- };
1130
- PlayIcon.propTypes = propTypes$C;
1131
- PlayIcon.defaultProps = defaultProps$C;
883
+ }
1132
884
 
1133
- var propTypes$B = {
1134
- className: PropTypes.string,
1135
- color: PropTypes.string
1136
- };
1137
- var defaultProps$B = {
1138
- className: null,
1139
- color: '#fff'
1140
- };
1141
- var UnmuteIcon = function UnmuteIcon(_ref) {
1142
- var color = _ref.color,
1143
- className = _ref.className;
885
+ function UnmuteIcon(_ref) {
886
+ var _ref$color = _ref.color,
887
+ color = _ref$color === void 0 ? '#fff' : _ref$color,
888
+ _ref$className = _ref.className,
889
+ className = _ref$className === void 0 ? null : _ref$className;
1144
890
  return /*#__PURE__*/React.createElement("svg", {
1145
891
  width: "26",
1146
892
  height: "26",
@@ -1157,35 +903,23 @@ var UnmuteIcon = function UnmuteIcon(_ref) {
1157
903
  d: "M20.8536 13.3946L23 15.5411L23.7071 14.834L21.5607 12.6875L23.7071 10.5411L23 9.83398L20.8536 11.9804L18.7071 9.83398L18 10.5411L20.1464 12.6875L18 14.834L18.7071 15.5411L20.8536 13.3946Z",
1158
904
  fill: color
1159
905
  }));
1160
- };
1161
- UnmuteIcon.propTypes = propTypes$B;
1162
- UnmuteIcon.defaultProps = defaultProps$B;
1163
-
1164
- var styles$r = {"container":"micromag-core-menus-breadcrumb-container","arrow":"micromag-core-menus-breadcrumb-arrow"};
906
+ }
1165
907
 
1166
- var propTypes$A = {
1167
- items: PropTypes$1.menuItems,
1168
- theme: PropTypes$1.bootstrapThemes,
1169
- separator: PropTypes.oneOf([null, 'arrow']),
1170
- withoutBar: PropTypes.bool,
1171
- noWrap: PropTypes.bool,
1172
- className: PropTypes.string
1173
- };
1174
- var defaultProps$A = {
1175
- items: [],
1176
- theme: null,
1177
- separator: null,
1178
- withoutBar: false,
1179
- noWrap: false,
1180
- className: null
1181
- };
1182
- var Breadcrumb = function Breadcrumb(_ref) {
1183
- var items = _ref.items,
1184
- theme = _ref.theme,
1185
- separator = _ref.separator,
1186
- withoutBar = _ref.withoutBar,
1187
- noWrap = _ref.noWrap,
1188
- className = _ref.className;
908
+ var styles$r = {"container":"container","arrow":"arrow"};
909
+
910
+ function Breadcrumb(_ref) {
911
+ var _ref$items = _ref.items,
912
+ items = _ref$items === void 0 ? [] : _ref$items,
913
+ _ref$theme = _ref.theme,
914
+ theme = _ref$theme === void 0 ? null : _ref$theme,
915
+ _ref$separator = _ref.separator,
916
+ separator = _ref$separator === void 0 ? null : _ref$separator,
917
+ _ref$withoutBar = _ref.withoutBar,
918
+ withoutBar = _ref$withoutBar === void 0 ? false : _ref$withoutBar,
919
+ _ref$noWrap = _ref.noWrap,
920
+ noWrap = _ref$noWrap === void 0 ? false : _ref$noWrap,
921
+ _ref$className = _ref.className,
922
+ className = _ref$className === void 0 ? null : _ref$className;
1189
923
  return /*#__PURE__*/React.createElement("nav", {
1190
924
  className: className
1191
925
  }, /*#__PURE__*/React.createElement("ol", {
@@ -1216,40 +950,26 @@ var Breadcrumb = function Breadcrumb(_ref) {
1216
950
  className: classNames(['font-weight-bold', 'text-decoration-none', _defineProperty({}, "text-".concat(theme), theme !== null)])
1217
951
  }, /*#__PURE__*/React.createElement(Label, null, label)) : null);
1218
952
  })));
1219
- };
1220
- Breadcrumb.propTypes = propTypes$A;
1221
- Breadcrumb.defaultProps = defaultProps$A;
953
+ }
1222
954
 
1223
955
  var _excluded$4 = ["type", "className", "label", "children", "onClick", "active"];
1224
- var propTypes$z = {
1225
- items: PropTypes$1.menuItems,
1226
- children: PropTypes.node,
1227
- visible: PropTypes.bool,
1228
- align: PropTypes$1.dropdownAlign,
1229
- className: PropTypes.string,
1230
- itemClassName: PropTypes.string,
1231
- onClickItem: PropTypes.func,
1232
- onClickOutside: PropTypes.func
1233
- };
1234
- var defaultProps$z = {
1235
- items: [],
1236
- children: null,
1237
- visible: false,
1238
- align: null,
1239
- className: null,
1240
- itemClassName: null,
1241
- onClickItem: null,
1242
- onClickOutside: null
1243
- };
1244
- var Dropdown = function Dropdown(_ref) {
1245
- var items = _ref.items,
1246
- children = _ref.children,
1247
- visible = _ref.visible,
1248
- align = _ref.align,
1249
- className = _ref.className,
1250
- itemClassName = _ref.itemClassName,
1251
- onClickItem = _ref.onClickItem,
1252
- onClickOutside = _ref.onClickOutside;
956
+ function Dropdown(_ref) {
957
+ var _ref$items = _ref.items,
958
+ items = _ref$items === void 0 ? [] : _ref$items,
959
+ _ref$children = _ref.children,
960
+ children = _ref$children === void 0 ? null : _ref$children,
961
+ _ref$visible = _ref.visible,
962
+ visible = _ref$visible === void 0 ? false : _ref$visible,
963
+ _ref$align = _ref.align,
964
+ align = _ref$align === void 0 ? null : _ref$align,
965
+ _ref$className = _ref.className,
966
+ className = _ref$className === void 0 ? null : _ref$className,
967
+ _ref$itemClassName = _ref.itemClassName,
968
+ itemClassName = _ref$itemClassName === void 0 ? null : _ref$itemClassName,
969
+ _ref$onClickItem = _ref.onClickItem,
970
+ onClickItem = _ref$onClickItem === void 0 ? null : _ref$onClickItem,
971
+ _ref$onClickOutside = _ref.onClickOutside,
972
+ onClickOutside = _ref$onClickOutside === void 0 ? null : _ref$onClickOutside;
1253
973
  var refContainer = useRef(null);
1254
974
  var _useState = useState(visible),
1255
975
  _useState2 = _slicedToArray(_useState, 2),
@@ -1318,67 +1038,44 @@ var Dropdown = function Dropdown(_ref) {
1318
1038
  onClick: finalOnClickItem
1319
1039
  }, itemProps), label !== null ? /*#__PURE__*/React.createElement(Label, null, label) : itemChildren)) : null;
1320
1040
  }));
1321
- };
1322
- Dropdown.propTypes = propTypes$z;
1323
- Dropdown.defaultProps = defaultProps$z;
1041
+ }
1324
1042
 
1325
1043
  var _excluded$3 = ["id", "className", "linkClassName", "href", "label", "external", "items", "dropdown", "active", "onClick"];
1326
- var propTypes$y = {
1327
- items: PropTypes$1.menuItems,
1328
- tagName: PropTypes.string,
1329
- itemTagName: PropTypes.string,
1330
- children: PropTypes.node,
1331
- linkAsItem: PropTypes.bool,
1332
- className: PropTypes.string,
1333
- itemClassName: PropTypes.string,
1334
- linkClassName: PropTypes.string,
1335
- hasSubMenuClassName: PropTypes.string,
1336
- subMenuClassName: PropTypes.string,
1337
- subMenuItemClassName: PropTypes.string,
1338
- subMenuLinkClassName: PropTypes.string,
1339
- hasDropdownClassName: PropTypes.string,
1340
- dropdownClassName: PropTypes.string,
1341
- dropdownItemClassName: PropTypes.string,
1342
- dropdownLinkClassName: PropTypes.string,
1343
- dropdownAlign: PropTypes$1.dropdownAlign
1344
- };
1345
- var defaultProps$y = {
1346
- items: [],
1347
- tagName: 'ul',
1348
- itemTagName: 'li',
1349
- children: null,
1350
- linkAsItem: false,
1351
- className: null,
1352
- itemClassName: null,
1353
- linkClassName: null,
1354
- hasSubMenuClassName: null,
1355
- subMenuClassName: null,
1356
- subMenuItemClassName: null,
1357
- subMenuLinkClassName: null,
1358
- hasDropdownClassName: null,
1359
- dropdownClassName: null,
1360
- dropdownItemClassName: null,
1361
- dropdownLinkClassName: null,
1362
- dropdownAlign: null
1363
- };
1364
- var _Menu = function Menu(_ref) {
1365
- var items = _ref.items,
1366
- tagName = _ref.tagName,
1367
- itemTagName = _ref.itemTagName,
1368
- children = _ref.children,
1369
- linkAsItem = _ref.linkAsItem,
1370
- className = _ref.className,
1371
- itemClassName = _ref.itemClassName,
1372
- linkClassName = _ref.linkClassName,
1373
- hasSubMenuClassName = _ref.hasSubMenuClassName,
1374
- subMenuClassName = _ref.subMenuClassName,
1375
- subMenuItemClassName = _ref.subMenuItemClassName,
1376
- subMenuLinkClassName = _ref.subMenuLinkClassName,
1377
- hasDropdownClassName = _ref.hasDropdownClassName,
1378
- dropdownClassName = _ref.dropdownClassName,
1379
- dropdownItemClassName = _ref.dropdownItemClassName,
1380
- dropdownLinkClassName = _ref.dropdownLinkClassName,
1381
- dropdownAlign = _ref.dropdownAlign;
1044
+ function Menu(_ref) {
1045
+ var _ref$items = _ref.items,
1046
+ items = _ref$items === void 0 ? [] : _ref$items,
1047
+ _ref$tagName = _ref.tagName,
1048
+ tagName = _ref$tagName === void 0 ? 'ul' : _ref$tagName,
1049
+ _ref$itemTagName = _ref.itemTagName,
1050
+ itemTagName = _ref$itemTagName === void 0 ? 'li' : _ref$itemTagName,
1051
+ _ref$children = _ref.children,
1052
+ children = _ref$children === void 0 ? null : _ref$children,
1053
+ _ref$linkAsItem = _ref.linkAsItem,
1054
+ linkAsItem = _ref$linkAsItem === void 0 ? false : _ref$linkAsItem,
1055
+ _ref$className = _ref.className,
1056
+ className = _ref$className === void 0 ? null : _ref$className,
1057
+ _ref$itemClassName = _ref.itemClassName,
1058
+ itemClassName = _ref$itemClassName === void 0 ? null : _ref$itemClassName,
1059
+ _ref$linkClassName = _ref.linkClassName,
1060
+ linkClassName = _ref$linkClassName === void 0 ? null : _ref$linkClassName,
1061
+ _ref$hasSubMenuClassN = _ref.hasSubMenuClassName,
1062
+ hasSubMenuClassName = _ref$hasSubMenuClassN === void 0 ? null : _ref$hasSubMenuClassN,
1063
+ _ref$subMenuClassName = _ref.subMenuClassName,
1064
+ subMenuClassName = _ref$subMenuClassName === void 0 ? null : _ref$subMenuClassName,
1065
+ _ref$subMenuItemClass = _ref.subMenuItemClassName,
1066
+ subMenuItemClassName = _ref$subMenuItemClass === void 0 ? null : _ref$subMenuItemClass,
1067
+ _ref$subMenuLinkClass = _ref.subMenuLinkClassName,
1068
+ subMenuLinkClassName = _ref$subMenuLinkClass === void 0 ? null : _ref$subMenuLinkClass,
1069
+ _ref$hasDropdownClass = _ref.hasDropdownClassName,
1070
+ hasDropdownClassName = _ref$hasDropdownClass === void 0 ? null : _ref$hasDropdownClass,
1071
+ _ref$dropdownClassNam = _ref.dropdownClassName,
1072
+ dropdownClassName = _ref$dropdownClassNam === void 0 ? null : _ref$dropdownClassNam,
1073
+ _ref$dropdownItemClas = _ref.dropdownItemClassName,
1074
+ dropdownItemClassName = _ref$dropdownItemClas === void 0 ? null : _ref$dropdownItemClas,
1075
+ _ref$dropdownLinkClas = _ref.dropdownLinkClassName,
1076
+ dropdownLinkClassName = _ref$dropdownLinkClas === void 0 ? null : _ref$dropdownLinkClas,
1077
+ _ref$dropdownAlign = _ref.dropdownAlign,
1078
+ dropdownAlign = _ref$dropdownAlign === void 0 ? null : _ref$dropdownAlign;
1382
1079
  var _useState = useState(items.map(function () {
1383
1080
  return false;
1384
1081
  })),
@@ -1441,7 +1138,7 @@ var _Menu = function Menu(_ref) {
1441
1138
  }), label) : null, href === null && onClickItem !== null ? /*#__PURE__*/React.createElement(Button$1, Object.assign({}, itemProps, {
1442
1139
  onClick: onClickItem,
1443
1140
  className: classNames(_defineProperty(_defineProperty(_defineProperty({}, linkClassName, linkClassName !== null), 'dropdown-toggle', dropdown !== null), customLinkClassName, customLinkClassName !== null))
1444
- }), label) : null, subItems !== null ? /*#__PURE__*/React.createElement(_Menu, {
1141
+ }), label) : null, subItems !== null ? /*#__PURE__*/React.createElement(Menu, {
1445
1142
  items: subItems,
1446
1143
  className: subMenuClassName,
1447
1144
  itemClassName: classNames(_defineProperty(_defineProperty({}, subMenuItemClassName, subMenuItemClassName !== null), itemClassName, subMenuItemClassName === null && itemClassName !== null)),
@@ -1457,59 +1154,39 @@ var _Menu = function Menu(_ref) {
1457
1154
  onClickOutside: closeDropdown
1458
1155
  }) : null);
1459
1156
  }));
1460
- };
1461
- _Menu.propTypes = propTypes$y;
1462
- _Menu.defaultProps = defaultProps$y;
1463
-
1464
- var styles$q = {"collapse":"micromag-core-menus-navbar-collapse"};
1157
+ }
1465
1158
 
1466
- var propTypes$x = {
1467
- brand: PropTypes.node,
1468
- brandLink: PropTypes.string,
1469
- breadcrumbs: PropTypes.node,
1470
- theme: PropTypes.oneOf(['light', 'dark', 'primary', null]),
1471
- size: PropTypes.oneOf(['sm', 'md', 'lg']),
1472
- compact: PropTypes.bool,
1473
- noWrap: PropTypes.bool,
1474
- withoutCollapse: PropTypes.bool,
1475
- withoutCollapseToggle: PropTypes.bool,
1476
- children: PropTypes.node,
1477
- className: PropTypes.string,
1478
- brandClassName: PropTypes.string,
1479
- breadCrumbsClassName: PropTypes.string,
1480
- collapseClassName: PropTypes.string
1481
- };
1482
- var defaultProps$x = {
1483
- brand: null,
1484
- brandLink: null,
1485
- breadcrumbs: null,
1486
- theme: null,
1487
- size: 'md',
1488
- compact: false,
1489
- noWrap: false,
1490
- withoutCollapse: false,
1491
- withoutCollapseToggle: false,
1492
- children: null,
1493
- className: null,
1494
- brandClassName: null,
1495
- breadCrumbsClassName: null,
1496
- collapseClassName: null
1497
- };
1498
- var Navbar = function Navbar(_ref) {
1499
- var brand = _ref.brand,
1500
- brandLink = _ref.brandLink,
1501
- breadcrumbs = _ref.breadcrumbs,
1502
- theme = _ref.theme,
1503
- size = _ref.size,
1504
- compact = _ref.compact,
1505
- noWrap = _ref.noWrap,
1506
- withoutCollapse = _ref.withoutCollapse,
1507
- withoutCollapseToggle = _ref.withoutCollapseToggle,
1508
- children = _ref.children,
1509
- className = _ref.className,
1510
- brandClassName = _ref.brandClassName,
1511
- breadCrumbsClassName = _ref.breadCrumbsClassName,
1512
- collapseClassName = _ref.collapseClassName;
1159
+ var styles$q = {"collapse":"collapse"};
1160
+
1161
+ function Navbar(_ref) {
1162
+ var _ref$brand = _ref.brand,
1163
+ brand = _ref$brand === void 0 ? null : _ref$brand,
1164
+ _ref$brandLink = _ref.brandLink,
1165
+ brandLink = _ref$brandLink === void 0 ? null : _ref$brandLink,
1166
+ _ref$breadcrumbs = _ref.breadcrumbs,
1167
+ breadcrumbs = _ref$breadcrumbs === void 0 ? null : _ref$breadcrumbs,
1168
+ _ref$theme = _ref.theme,
1169
+ theme = _ref$theme === void 0 ? null : _ref$theme,
1170
+ _ref$size = _ref.size,
1171
+ size = _ref$size === void 0 ? 'md' : _ref$size,
1172
+ _ref$compact = _ref.compact,
1173
+ compact = _ref$compact === void 0 ? false : _ref$compact,
1174
+ _ref$noWrap = _ref.noWrap,
1175
+ noWrap = _ref$noWrap === void 0 ? false : _ref$noWrap,
1176
+ _ref$withoutCollapse = _ref.withoutCollapse,
1177
+ withoutCollapse = _ref$withoutCollapse === void 0 ? false : _ref$withoutCollapse,
1178
+ _ref$withoutCollapseT = _ref.withoutCollapseToggle,
1179
+ withoutCollapseToggle = _ref$withoutCollapseT === void 0 ? false : _ref$withoutCollapseT,
1180
+ _ref$children = _ref.children,
1181
+ children = _ref$children === void 0 ? null : _ref$children,
1182
+ _ref$className = _ref.className,
1183
+ className = _ref$className === void 0 ? null : _ref$className,
1184
+ _ref$brandClassName = _ref.brandClassName,
1185
+ brandClassName = _ref$brandClassName === void 0 ? null : _ref$brandClassName,
1186
+ _ref$breadCrumbsClass = _ref.breadCrumbsClassName,
1187
+ breadCrumbsClassName = _ref$breadCrumbsClass === void 0 ? null : _ref$breadCrumbsClass,
1188
+ _ref$collapseClassNam = _ref.collapseClassName,
1189
+ collapseClassName = _ref$collapseClassNam === void 0 ? null : _ref$collapseClassNam;
1513
1190
  var _useState = useState(false),
1514
1191
  _useState2 = _slicedToArray(_useState, 2),
1515
1192
  menuVisible = _useState2[0],
@@ -1548,11 +1225,9 @@ var Navbar = function Navbar(_ref) {
1548
1225
  })) : null, !withoutCollapse ? /*#__PURE__*/React.createElement("div", {
1549
1226
  className: classNames(['navbar-collapse', 'collapse', styles$q.collapse, _defineProperty(_defineProperty({}, collapseClassName, collapseClassName !== null), "show", menuVisible)])
1550
1227
  }, children) : children));
1551
- };
1552
- Navbar.propTypes = propTypes$x;
1553
- Navbar.defaultProps = defaultProps$x;
1228
+ }
1554
1229
 
1555
- var styles$p = {};
1230
+ var styles$p = {"container":"container"};
1556
1231
 
1557
1232
  var messages = defineMessages({
1558
1233
  previous: {
@@ -1570,48 +1245,31 @@ var messages = defineMessages({
1570
1245
  }]
1571
1246
  }
1572
1247
  });
1573
- var propTypes$w = {
1574
- page: PropTypes.number,
1575
- lastPage: PropTypes.number,
1576
- maxPages: PropTypes.number,
1577
- total: PropTypes.number,
1578
- url: PropTypes.string,
1579
- query: PropTypes.object,
1580
- // eslint-disable-line react/forbid-prop-types
1581
- withPreviousNext: PropTypes.bool,
1582
- className: PropTypes.string,
1583
- paginationClassName: PropTypes.string,
1584
- itemClassName: PropTypes.string,
1585
- linkClassName: PropTypes.string,
1586
- onClickPage: PropTypes.func
1587
- };
1588
- var defaultProps$w = {
1589
- page: 1,
1590
- lastPage: 1,
1591
- maxPages: 10,
1592
- total: 1,
1593
- url: null,
1594
- query: null,
1595
- withPreviousNext: false,
1596
- className: null,
1597
- paginationClassName: null,
1598
- itemClassName: null,
1599
- linkClassName: null,
1600
- onClickPage: null
1601
- };
1602
- var PaginationMenu = function PaginationMenu(_ref) {
1603
- var parentPage = _ref.page,
1604
- parentLastPage = _ref.lastPage,
1605
- parentMaxPages = _ref.maxPages,
1606
- parentTotal = _ref.total,
1607
- url = _ref.url,
1608
- query = _ref.query,
1609
- withPreviousNext = _ref.withPreviousNext,
1610
- className = _ref.className,
1611
- paginationClassName = _ref.paginationClassName,
1612
- itemClassName = _ref.itemClassName,
1613
- linkClassName = _ref.linkClassName,
1614
- onClickPage = _ref.onClickPage;
1248
+ function PaginationMenu(_ref) {
1249
+ var _ref$page = _ref.page,
1250
+ parentPage = _ref$page === void 0 ? 1 : _ref$page,
1251
+ _ref$lastPage = _ref.lastPage,
1252
+ parentLastPage = _ref$lastPage === void 0 ? 1 : _ref$lastPage,
1253
+ _ref$maxPages = _ref.maxPages,
1254
+ parentMaxPages = _ref$maxPages === void 0 ? 10 : _ref$maxPages,
1255
+ _ref$total = _ref.total,
1256
+ parentTotal = _ref$total === void 0 ? 1 : _ref$total,
1257
+ _ref$url = _ref.url,
1258
+ url = _ref$url === void 0 ? null : _ref$url,
1259
+ _ref$query = _ref.query,
1260
+ query = _ref$query === void 0 ? null : _ref$query,
1261
+ _ref$withPreviousNext = _ref.withPreviousNext,
1262
+ withPreviousNext = _ref$withPreviousNext === void 0 ? false : _ref$withPreviousNext,
1263
+ _ref$className = _ref.className,
1264
+ className = _ref$className === void 0 ? null : _ref$className,
1265
+ _ref$paginationClassN = _ref.paginationClassName,
1266
+ paginationClassName = _ref$paginationClassN === void 0 ? null : _ref$paginationClassN,
1267
+ _ref$itemClassName = _ref.itemClassName,
1268
+ itemClassName = _ref$itemClassName === void 0 ? null : _ref$itemClassName,
1269
+ _ref$linkClassName = _ref.linkClassName,
1270
+ linkClassName = _ref$linkClassName === void 0 ? null : _ref$linkClassName,
1271
+ _ref$onClickPage = _ref.onClickPage,
1272
+ onClickPage = _ref$onClickPage === void 0 ? null : _ref$onClickPage;
1615
1273
  var getUrl = useCallback(function (currentPage) {
1616
1274
  return url !== null ? "".concat(url, "?").concat(queryString.stringify(_objectSpread(_objectSpread({}, query), {}, {
1617
1275
  page: currentPage
@@ -1687,38 +1345,25 @@ var PaginationMenu = function PaginationMenu(_ref) {
1687
1345
  }, messages.next) : /*#__PURE__*/React.createElement("span", {
1688
1346
  className: classNames(['page-link', _defineProperty({}, linkClassName, linkClassName !== null)])
1689
1347
  }, /*#__PURE__*/React.createElement(Label, null, messages.next))) : null));
1690
- };
1691
- PaginationMenu.propTypes = propTypes$w;
1692
- PaginationMenu.defaultProps = defaultProps$w;
1693
-
1694
- var styles$o = {"container":"micromag-core-menus-tabs-container"};
1348
+ }
1695
1349
 
1696
- var propTypes$v = {
1697
- items: PropTypes$1.menuItems,
1698
- size: PropTypes$1.buttonSize,
1699
- theme: PropTypes$1.buttonTheme,
1700
- renderItemButton: PropTypes.func,
1701
- buttonClassName: PropTypes.string,
1702
- className: PropTypes.string,
1703
- onClickItem: PropTypes.func
1704
- };
1705
- var defaultProps$v = {
1706
- items: [],
1707
- size: null,
1708
- theme: 'secondary',
1709
- renderItemButton: null,
1710
- buttonClassName: null,
1711
- className: null,
1712
- onClickItem: null
1713
- };
1714
- var TabsMenu = function TabsMenu(_ref) {
1715
- var items = _ref.items,
1716
- size = _ref.size,
1717
- theme = _ref.theme,
1718
- renderItemButton = _ref.renderItemButton,
1719
- buttonClassName = _ref.buttonClassName,
1720
- className = _ref.className,
1721
- onClickItem = _ref.onClickItem;
1350
+ var styles$o = {"container":"container"};
1351
+
1352
+ function TabsMenu(_ref) {
1353
+ var _ref$items = _ref.items,
1354
+ items = _ref$items === void 0 ? [] : _ref$items,
1355
+ _ref$size = _ref.size,
1356
+ size = _ref$size === void 0 ? null : _ref$size,
1357
+ _ref$theme = _ref.theme,
1358
+ theme = _ref$theme === void 0 ? 'secondary' : _ref$theme,
1359
+ _ref$renderItemButton = _ref.renderItemButton,
1360
+ renderItemButton = _ref$renderItemButton === void 0 ? null : _ref$renderItemButton,
1361
+ _ref$buttonClassName = _ref.buttonClassName,
1362
+ buttonClassName = _ref$buttonClassName === void 0 ? null : _ref$buttonClassName,
1363
+ _ref$className = _ref.className,
1364
+ className = _ref$className === void 0 ? null : _ref$className,
1365
+ _ref$onClickItem = _ref.onClickItem,
1366
+ onClickItem = _ref$onClickItem === void 0 ? null : _ref$onClickItem;
1722
1367
  return /*#__PURE__*/React.createElement("div", {
1723
1368
  className: classNames([styles$o.container, _defineProperty({}, className, className)])
1724
1369
  }, /*#__PURE__*/React.createElement(Buttons, {
@@ -1730,24 +1375,15 @@ var TabsMenu = function TabsMenu(_ref) {
1730
1375
  className: styles$o.buttons,
1731
1376
  buttonClassName: classNames([styles$o.button, _defineProperty({}, buttonClassName, buttonClassName !== null)])
1732
1377
  }));
1733
- };
1734
- TabsMenu.propTypes = propTypes$v;
1735
- TabsMenu.defaultProps = defaultProps$v;
1378
+ }
1736
1379
 
1737
- var styles$n = {"container":"micromag-core-modals-container","modals":"micromag-core-modals-modals","hasModals":"micromag-core-modals-hasModals"};
1380
+ var styles$n = {"container":"container","modals":"modals","hasModals":"hasModals"};
1738
1381
 
1739
- var propTypes$u = {
1740
- modals: PropTypes$1.modals.isRequired,
1741
- setModalsContainer: PropTypes.func.isRequired,
1742
- className: PropTypes.string
1743
- };
1744
- var defaultProps$u = {
1745
- className: null
1746
- };
1747
- var ModalsContainer = function ModalsContainer(_ref) {
1382
+ function ModalsContainer(_ref) {
1748
1383
  var modals = _ref.modals,
1749
1384
  setModalsContainer = _ref.setModalsContainer,
1750
- className = _ref.className;
1385
+ _ref$className = _ref.className,
1386
+ className = _ref$className === void 0 ? null : _ref$className;
1751
1387
  var containerRef = useRef(null);
1752
1388
  useEffect(function () {
1753
1389
  setModalsContainer(containerRef.current);
@@ -1758,37 +1394,23 @@ var ModalsContainer = function ModalsContainer(_ref) {
1758
1394
  className: classNames([styles$n.modals, _defineProperty({}, styles$n.hasModals, modals.length > 0)]),
1759
1395
  ref: containerRef
1760
1396
  }));
1761
- };
1762
- ModalsContainer.propTypes = propTypes$u;
1763
- ModalsContainer.defaultProps = defaultProps$u;
1397
+ }
1764
1398
  var Modals = withModals(ModalsContainer);
1765
1399
 
1766
1400
  /* eslint-disable react/no-array-index-key, react/jsx-props-no-spreading */
1767
- var propTypes$t = {
1768
- id: PropTypes.string,
1769
- data: PropTypes.object,
1770
- // eslint-disable-line react/forbid-prop-types
1771
- container: PropTypes.object,
1772
- // eslint-disable-line react/forbid-prop-types
1773
- register: PropTypes.func,
1774
- unregister: PropTypes.func,
1775
- children: PropTypes.node
1776
- };
1777
- var defaultProps$t = {
1778
- id: null,
1779
- data: null,
1780
- container: null,
1781
- register: null,
1782
- unregister: null,
1783
- children: null
1784
- };
1785
- var ElementPortal = function ElementPortal(_ref) {
1786
- var id = _ref.id,
1787
- data = _ref.data,
1788
- children = _ref.children,
1789
- container = _ref.container,
1790
- register = _ref.register,
1791
- unregister = _ref.unregister;
1401
+ function ElementPortal(_ref) {
1402
+ var _ref$id = _ref.id,
1403
+ id = _ref$id === void 0 ? null : _ref$id,
1404
+ _ref$data = _ref.data,
1405
+ data = _ref$data === void 0 ? null : _ref$data,
1406
+ _ref$children = _ref.children,
1407
+ children = _ref$children === void 0 ? null : _ref$children,
1408
+ _ref$container = _ref.container,
1409
+ container = _ref$container === void 0 ? null : _ref$container,
1410
+ _ref$register = _ref.register,
1411
+ register = _ref$register === void 0 ? null : _ref$register,
1412
+ _ref$unregister = _ref.unregister,
1413
+ unregister = _ref$unregister === void 0 ? null : _ref$unregister;
1792
1414
  var finalId = useMemo(function () {
1793
1415
  return id || "element-".concat(new Date().getTime());
1794
1416
  }, [id]);
@@ -1803,26 +1425,16 @@ var ElementPortal = function ElementPortal(_ref) {
1803
1425
  };
1804
1426
  }, [finalId, data]);
1805
1427
  return container !== null ? /*#__PURE__*/createPortal(children, container) : null;
1806
- };
1807
- ElementPortal.propTypes = propTypes$t;
1808
- ElementPortal.defaultProps = defaultProps$t;
1428
+ }
1809
1429
 
1810
1430
  /* eslint-disable react/no-array-index-key, react/jsx-props-no-spreading */
1811
- var propTypes$s = {
1812
- id: PropTypes.string,
1813
- data: PropTypes.object,
1814
- // eslint-disable-line react/forbid-prop-types
1815
- children: PropTypes.node
1816
- };
1817
- var defaultProps$s = {
1818
- id: null,
1819
- data: null,
1820
- children: null
1821
- };
1822
- var ModalPortal = function ModalPortal(_ref) {
1823
- var id = _ref.id,
1824
- data = _ref.data,
1825
- children = _ref.children;
1431
+ function ModalPortal(_ref) {
1432
+ var _ref$id = _ref.id,
1433
+ id = _ref$id === void 0 ? null : _ref$id,
1434
+ _ref$data = _ref.data,
1435
+ data = _ref$data === void 0 ? null : _ref$data,
1436
+ _ref$children = _ref.children,
1437
+ children = _ref$children === void 0 ? null : _ref$children;
1826
1438
  var _useModals = useModals(),
1827
1439
  container = _useModals.container,
1828
1440
  _useModals$register = _useModals.register,
@@ -1836,29 +1448,19 @@ var ModalPortal = function ModalPortal(_ref) {
1836
1448
  register: register,
1837
1449
  unregister: unregister
1838
1450
  }, children);
1839
- };
1840
- ModalPortal.propTypes = propTypes$s;
1841
- ModalPortal.defaultProps = defaultProps$s;
1842
-
1843
- 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"};
1451
+ }
1844
1452
 
1845
- var propTypes$r = {
1846
- id: PropTypes.string,
1847
- title: PropTypes.string,
1848
- position: PropTypes.oneOf(['center', 'top']),
1849
- children: PropTypes.node
1850
- };
1851
- var defaultProps$r = {
1852
- id: null,
1853
- title: null,
1854
- position: 'center',
1855
- children: null
1856
- };
1857
- var Modal = function Modal(_ref) {
1858
- var id = _ref.id,
1859
- children = _ref.children,
1860
- position = _ref.position,
1861
- title = _ref.title;
1453
+ var styles$m = {"container":"container","center":"center","inner":"inner","top":"top"};
1454
+
1455
+ function Modal(_ref) {
1456
+ var _ref$id = _ref.id,
1457
+ id = _ref$id === void 0 ? null : _ref$id,
1458
+ _ref$children = _ref.children,
1459
+ children = _ref$children === void 0 ? null : _ref$children,
1460
+ _ref$position = _ref.position,
1461
+ position = _ref$position === void 0 ? 'center' : _ref$position,
1462
+ _ref$title = _ref.title,
1463
+ title = _ref$title === void 0 ? null : _ref$title;
1862
1464
  var finalId = useMemo(function () {
1863
1465
  return id || getDisplayName(children.type);
1864
1466
  }, [id, children.type]);
@@ -1875,44 +1477,29 @@ var Modal = function Modal(_ref) {
1875
1477
  }, /*#__PURE__*/React.createElement("div", {
1876
1478
  className: classNames([styles$m.inner, 'bg-dark', 'rounded'])
1877
1479
  }, children)));
1878
- };
1879
- Modal.propTypes = propTypes$r;
1880
- Modal.defaultProps = defaultProps$r;
1881
-
1882
- var styles$l = {"container":"micromag-core-modals-dialog-container"};
1480
+ }
1883
1481
 
1884
- var propTypes$q = {
1885
- title: PropTypes$1.label,
1886
- header: PropTypes.node,
1887
- children: PropTypes.node,
1888
- footer: PropTypes.node,
1889
- size: PropTypes.string,
1890
- buttons: PropTypes$1.buttons,
1891
- onClose: PropTypes.func,
1892
- className: PropTypes.string,
1893
- bodyClassName: PropTypes.string
1894
- };
1895
- var defaultProps$q = {
1896
- title: null,
1897
- header: null,
1898
- children: null,
1899
- footer: null,
1900
- size: null,
1901
- buttons: null,
1902
- onClose: null,
1903
- className: null,
1904
- bodyClassName: null
1905
- };
1906
- var ModalDialog = function ModalDialog(_ref) {
1907
- var title = _ref.title,
1908
- header = _ref.header,
1909
- children = _ref.children,
1910
- buttons = _ref.buttons,
1911
- footer = _ref.footer,
1912
- size = _ref.size,
1913
- onClose = _ref.onClose,
1914
- className = _ref.className,
1915
- bodyClassName = _ref.bodyClassName;
1482
+ var styles$l = {"container":"container"};
1483
+
1484
+ function ModalDialog(_ref) {
1485
+ var _ref$title = _ref.title,
1486
+ title = _ref$title === void 0 ? null : _ref$title,
1487
+ _ref$header = _ref.header,
1488
+ header = _ref$header === void 0 ? null : _ref$header,
1489
+ _ref$children = _ref.children,
1490
+ children = _ref$children === void 0 ? null : _ref$children,
1491
+ _ref$buttons = _ref.buttons,
1492
+ buttons = _ref$buttons === void 0 ? null : _ref$buttons,
1493
+ _ref$footer = _ref.footer,
1494
+ footer = _ref$footer === void 0 ? null : _ref$footer,
1495
+ _ref$size = _ref.size,
1496
+ size = _ref$size === void 0 ? null : _ref$size,
1497
+ _ref$onClose = _ref.onClose,
1498
+ onClose = _ref$onClose === void 0 ? null : _ref$onClose,
1499
+ _ref$className = _ref.className,
1500
+ className = _ref$className === void 0 ? null : _ref$className,
1501
+ _ref$bodyClassName = _ref.bodyClassName,
1502
+ bodyClassName = _ref$bodyClassName === void 0 ? null : _ref$bodyClassName;
1916
1503
  return /*#__PURE__*/React.createElement("div", {
1917
1504
  className: classNames([styles$l.container, 'modal-dialog', _defineProperty(_defineProperty({}, "modal-".concat(size), size !== null), className, className)]),
1918
1505
  role: "dialog"
@@ -1935,26 +1522,17 @@ var ModalDialog = function ModalDialog(_ref) {
1935
1522
  buttons: buttons,
1936
1523
  className: styles$l.buttons
1937
1524
  }) : null) : null));
1938
- };
1939
- ModalDialog.propTypes = propTypes$q;
1940
- ModalDialog.defaultProps = defaultProps$q;
1525
+ }
1941
1526
 
1942
- var styles$k = {"container":"micromag-core-panels-container"};
1527
+ var styles$k = {"container":"container"};
1943
1528
 
1944
- var propTypes$p = {
1945
- panels: PropTypes$1.panels,
1946
- setPanelsContainer: PropTypes.func,
1947
- className: PropTypes.string
1948
- };
1949
- var defaultProps$p = {
1950
- panels: [],
1951
- setPanelsContainer: null,
1952
- className: null
1953
- };
1954
- var PanelsContainer = function PanelsContainer(_ref) {
1955
- var panels = _ref.panels,
1956
- setPanelsContainer = _ref.setPanelsContainer,
1957
- className = _ref.className;
1529
+ function PanelsContainer(_ref) {
1530
+ var _ref$panels = _ref.panels,
1531
+ panels = _ref$panels === void 0 ? [] : _ref$panels,
1532
+ _ref$setPanelsContain = _ref.setPanelsContainer,
1533
+ setPanelsContainer = _ref$setPanelsContain === void 0 ? null : _ref$setPanelsContain,
1534
+ _ref$className = _ref.className,
1535
+ className = _ref$className === void 0 ? null : _ref$className;
1958
1536
  var containerRef = useRef(null);
1959
1537
  useEffect(function () {
1960
1538
  setPanelsContainer(containerRef.current);
@@ -1965,27 +1543,17 @@ var PanelsContainer = function PanelsContainer(_ref) {
1965
1543
  className: classNames([styles$k.panels, _defineProperty({}, styles$k.hasPanels, panels.length > 0)]),
1966
1544
  ref: containerRef
1967
1545
  }));
1968
- };
1969
- PanelsContainer.propTypes = propTypes$p;
1970
- PanelsContainer.defaultProps = defaultProps$p;
1546
+ }
1971
1547
  var Panels = withPanels(PanelsContainer);
1972
1548
 
1973
1549
  /* eslint-disable react/no-array-index-key, react/jsx-props-no-spreading */
1974
- var propTypes$o = {
1975
- id: PropTypes.string,
1976
- data: PropTypes.object,
1977
- // eslint-disable-line react/forbid-prop-types
1978
- children: PropTypes.node
1979
- };
1980
- var defaultProps$o = {
1981
- id: null,
1982
- data: null,
1983
- children: null
1984
- };
1985
- var PanelPortal = function PanelPortal(_ref) {
1986
- var id = _ref.id,
1987
- data = _ref.data,
1988
- children = _ref.children;
1550
+ function PanelPortal(_ref) {
1551
+ var _ref$id = _ref.id,
1552
+ id = _ref$id === void 0 ? null : _ref$id,
1553
+ _ref$data = _ref.data,
1554
+ data = _ref$data === void 0 ? null : _ref$data,
1555
+ _ref$children = _ref.children,
1556
+ children = _ref$children === void 0 ? null : _ref$children;
1989
1557
  var _usePanels = usePanels(),
1990
1558
  _usePanels$panels = _usePanels.panels,
1991
1559
  panels = _usePanels$panels === void 0 ? null : _usePanels$panels,
@@ -2004,27 +1572,18 @@ var PanelPortal = function PanelPortal(_ref) {
2004
1572
  register: register,
2005
1573
  unregister: unregister
2006
1574
  }, children);
2007
- };
2008
- PanelPortal.propTypes = propTypes$o;
2009
- PanelPortal.defaultProps = defaultProps$o;
1575
+ }
2010
1576
 
2011
- var styles$j = {"container":"micromag-core-panels-panel-container"};
1577
+ var styles$j = {"container":"container"};
2012
1578
 
2013
1579
  /* eslint-disable react/no-array-index-key, react/jsx-props-no-spreading */
2014
- var propTypes$n = {
2015
- id: PropTypes.string,
2016
- title: PropTypes.string,
2017
- children: PropTypes.node
2018
- };
2019
- var defaultProps$n = {
2020
- id: null,
2021
- title: null,
2022
- children: null
2023
- };
2024
- var Panel = function Panel(_ref) {
2025
- var id = _ref.id,
2026
- children = _ref.children,
2027
- title = _ref.title;
1580
+ function Panel(_ref) {
1581
+ var _ref$id = _ref.id,
1582
+ id = _ref$id === void 0 ? null : _ref$id,
1583
+ _ref$children = _ref.children,
1584
+ children = _ref$children === void 0 ? null : _ref$children,
1585
+ _ref$title = _ref.title,
1586
+ title = _ref$title === void 0 ? null : _ref$title;
2028
1587
  var finalId = useMemo(function () {
2029
1588
  return id || getDisplayName(children.type);
2030
1589
  }, [id, children.type]);
@@ -2039,38 +1598,25 @@ var Panel = function Panel(_ref) {
2039
1598
  }, /*#__PURE__*/React.createElement("div", {
2040
1599
  className: styles$j.container
2041
1600
  }, children));
2042
- };
2043
- Panel.propTypes = propTypes$n;
2044
- Panel.defaultProps = defaultProps$n;
2045
-
2046
- 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"};
1601
+ }
2047
1602
 
2048
- var propTypes$m = {
2049
- title: PropTypes.node,
2050
- children: PropTypes.node,
2051
- className: PropTypes.string,
2052
- topClassName: PropTypes.string,
2053
- contentClassName: PropTypes.string,
2054
- openedClassName: PropTypes.string,
2055
- buttonClassName: PropTypes.string
2056
- };
2057
- var defaultProps$m = {
2058
- title: null,
2059
- children: null,
2060
- className: null,
2061
- topClassName: null,
2062
- contentClassName: null,
2063
- openedClassName: null,
2064
- buttonClassName: null
2065
- };
2066
- var CollapsablePanel = function CollapsablePanel(_ref) {
2067
- var title = _ref.title,
2068
- children = _ref.children,
2069
- className = _ref.className,
2070
- topClassName = _ref.topClassName,
2071
- contentClassName = _ref.contentClassName,
2072
- openedClassName = _ref.openedClassName,
2073
- buttonClassName = _ref.buttonClassName;
1603
+ var styles$i = {"container":"container","top":"top","button":"button","label":"label","content":"content","isOpened":"isOpened"};
1604
+
1605
+ function CollapsablePanel(_ref) {
1606
+ var _ref$title = _ref.title,
1607
+ title = _ref$title === void 0 ? null : _ref$title,
1608
+ _ref$children = _ref.children,
1609
+ children = _ref$children === void 0 ? null : _ref$children,
1610
+ _ref$className = _ref.className,
1611
+ className = _ref$className === void 0 ? null : _ref$className,
1612
+ _ref$topClassName = _ref.topClassName,
1613
+ topClassName = _ref$topClassName === void 0 ? null : _ref$topClassName,
1614
+ _ref$contentClassName = _ref.contentClassName,
1615
+ contentClassName = _ref$contentClassName === void 0 ? null : _ref$contentClassName,
1616
+ _ref$openedClassName = _ref.openedClassName,
1617
+ openedClassName = _ref$openedClassName === void 0 ? null : _ref$openedClassName,
1618
+ _ref$buttonClassName = _ref.buttonClassName,
1619
+ buttonClassName = _ref$buttonClassName === void 0 ? null : _ref$buttonClassName;
2074
1620
  var _useState = useState(false),
2075
1621
  _useState2 = _slicedToArray(_useState, 2),
2076
1622
  opened = _useState2[0],
@@ -2095,27 +1641,17 @@ var CollapsablePanel = function CollapsablePanel(_ref) {
2095
1641
  }, title)), /*#__PURE__*/React.createElement("div", {
2096
1642
  className: classNames([styles$i.content, _defineProperty({}, contentClassName, contentClassName !== null)])
2097
1643
  }, children));
2098
- };
2099
- CollapsablePanel.propTypes = propTypes$m;
2100
- CollapsablePanel.defaultProps = defaultProps$m;
1644
+ }
2101
1645
 
2102
- var propTypes$l = {
2103
- stroke: PropTypes.string,
2104
- border: PropTypes.string,
2105
- fill: PropTypes.string,
2106
- className: PropTypes.string
2107
- };
2108
- var defaultProps$l = {
2109
- stroke: 'currentColor',
2110
- border: 'rgba(0,0,0,0.67)',
2111
- fill: '#fff',
2112
- className: null
2113
- };
2114
- var Close = function Close(_ref) {
2115
- var stroke = _ref.stroke,
2116
- border = _ref.border,
2117
- fill = _ref.fill,
2118
- className = _ref.className;
1646
+ function Close(_ref) {
1647
+ var _ref$stroke = _ref.stroke,
1648
+ stroke = _ref$stroke === void 0 ? 'currentColor' : _ref$stroke,
1649
+ _ref$border = _ref.border,
1650
+ border = _ref$border === void 0 ? 'rgba(0,0,0,0.67)' : _ref$border,
1651
+ _ref$fill = _ref.fill,
1652
+ fill = _ref$fill === void 0 ? '#fff' : _ref$fill,
1653
+ _ref$className = _ref.className,
1654
+ className = _ref$className === void 0 ? null : _ref$className;
2119
1655
  return /*#__PURE__*/React.createElement("svg", {
2120
1656
  xmlns: "http://www.w3.org/2000/svg",
2121
1657
  width: "42.9",
@@ -2147,25 +1683,16 @@ var Close = function Close(_ref) {
2147
1683
  strokeLinecap: "round",
2148
1684
  d: "M0.3,0l13.7,14.2"
2149
1685
  })))));
2150
- };
2151
- Close.propTypes = propTypes$l;
2152
- Close.defaultProps = defaultProps$l;
1686
+ }
2153
1687
 
2154
1688
  /* eslint-disable react/jsx-props-no-spreading */
2155
- var propTypes$k = {
2156
- date: PropTypes.string,
2157
- withTime: PropTypes.bool,
2158
- timeSeparator: PropTypes.node
2159
- };
2160
- var defaultProps$k = {
2161
- date: null,
2162
- withTime: false,
2163
- timeSeparator: ', '
2164
- };
2165
- var Date$1 = function Date(_ref) {
2166
- var date = _ref.date,
2167
- withTime = _ref.withTime,
2168
- timeSeparator = _ref.timeSeparator;
1689
+ function Date$1(_ref) {
1690
+ var _ref$date = _ref.date,
1691
+ date = _ref$date === void 0 ? null : _ref$date,
1692
+ _ref$withTime = _ref.withTime,
1693
+ withTime = _ref$withTime === void 0 ? false : _ref$withTime,
1694
+ _ref$timeSeparator = _ref.timeSeparator,
1695
+ timeSeparator = _ref$timeSeparator === void 0 ? ', ' : _ref$timeSeparator;
2169
1696
  var dateObject = useMemo(function () {
2170
1697
  return dayjs(date).toDate();
2171
1698
  }, [date]);
@@ -2177,40 +1704,26 @@ var Date$1 = function Date(_ref) {
2177
1704
  }), withTime ? timeSeparator : null, withTime ? /*#__PURE__*/React.createElement(FormattedTime, {
2178
1705
  value: dateObject
2179
1706
  }) : null);
2180
- };
2181
- Date$1.propTypes = propTypes$k;
2182
- Date$1.defaultProps = defaultProps$k;
1707
+ }
2183
1708
 
2184
1709
  /* eslint-disable react/no-danger */
2185
- var propTypes$j = {
2186
- throttleDelay: PropTypes.number,
2187
- threshold: PropTypes.arrayOf(PropTypes.number),
2188
- onEnter: PropTypes.func,
2189
- onLeave: PropTypes.func,
2190
- onChange: PropTypes.func,
2191
- disabled: PropTypes.bool,
2192
- children: PropTypes.node,
2193
- className: PropTypes.string
2194
- };
2195
- var defaultProps$j = {
2196
- throttleDelay: null,
2197
- threshold: undefined,
2198
- onEnter: null,
2199
- onLeave: null,
2200
- onChange: null,
2201
- disabled: false,
2202
- children: null,
2203
- className: null
2204
- };
2205
- var Detector = function Detector(_ref) {
2206
- var throttleDelay = _ref.throttleDelay,
2207
- threshold = _ref.threshold,
2208
- onEnter = _ref.onEnter,
2209
- onLeave = _ref.onLeave,
2210
- onChange = _ref.onChange,
2211
- disabled = _ref.disabled,
2212
- children = _ref.children,
2213
- className = _ref.className;
1710
+ function Detector(_ref) {
1711
+ var _ref$throttleDelay = _ref.throttleDelay,
1712
+ throttleDelay = _ref$throttleDelay === void 0 ? null : _ref$throttleDelay,
1713
+ _ref$threshold = _ref.threshold,
1714
+ threshold = _ref$threshold === void 0 ? undefined : _ref$threshold,
1715
+ _ref$onEnter = _ref.onEnter,
1716
+ onEnter = _ref$onEnter === void 0 ? null : _ref$onEnter,
1717
+ _ref$onLeave = _ref.onLeave,
1718
+ onLeave = _ref$onLeave === void 0 ? null : _ref$onLeave,
1719
+ _ref$onChange = _ref.onChange,
1720
+ onChange = _ref$onChange === void 0 ? null : _ref$onChange,
1721
+ _ref$disabled = _ref.disabled,
1722
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
1723
+ _ref$children = _ref.children,
1724
+ children = _ref$children === void 0 ? null : _ref$children,
1725
+ _ref$className = _ref.className,
1726
+ className = _ref$className === void 0 ? null : _ref$className;
2214
1727
  var _useIntersectionObser = useIntersectionObserver({
2215
1728
  threshold: threshold
2216
1729
  }),
@@ -2255,38 +1768,25 @@ var Detector = function Detector(_ref) {
2255
1768
  className: className,
2256
1769
  ref: ref
2257
1770
  }, children);
2258
- };
2259
- Detector.propTypes = propTypes$j;
2260
- Detector.defaultProps = defaultProps$j;
1771
+ }
2261
1772
 
2262
- 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"};
1773
+ var styles$h = {"container":"container","outline":"outline","withInvertedColors":"withInvertedColors","box":"box"};
2263
1774
 
2264
- var propTypes$i = {
2265
- width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
2266
- height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
2267
- outline: PropTypes.bool,
2268
- className: PropTypes.string,
2269
- boxClassName: PropTypes.string,
2270
- children: PropTypes.node,
2271
- withInvertedColors: PropTypes.bool
2272
- };
2273
- var defaultProps$i = {
2274
- width: '100%',
2275
- height: '3em',
2276
- outline: false,
2277
- className: null,
2278
- boxClassName: null,
2279
- children: null,
2280
- withInvertedColors: true
2281
- };
2282
- var PlaceholderBlock = function PlaceholderBlock(_ref) {
2283
- var width = _ref.width,
2284
- height = _ref.height,
2285
- outline = _ref.outline,
2286
- className = _ref.className,
2287
- boxClassName = _ref.boxClassName,
2288
- withInvertedColors = _ref.withInvertedColors,
2289
- children = _ref.children;
1775
+ function PlaceholderBlock(_ref) {
1776
+ var _ref$width = _ref.width,
1777
+ width = _ref$width === void 0 ? '100%' : _ref$width,
1778
+ _ref$height = _ref.height,
1779
+ height = _ref$height === void 0 ? '3em' : _ref$height,
1780
+ _ref$outline = _ref.outline,
1781
+ outline = _ref$outline === void 0 ? false : _ref$outline,
1782
+ _ref$className = _ref.className,
1783
+ className = _ref$className === void 0 ? null : _ref$className,
1784
+ _ref$boxClassName = _ref.boxClassName,
1785
+ boxClassName = _ref$boxClassName === void 0 ? null : _ref$boxClassName,
1786
+ _ref$withInvertedColo = _ref.withInvertedColors,
1787
+ withInvertedColors = _ref$withInvertedColo === void 0 ? true : _ref$withInvertedColo,
1788
+ _ref$children = _ref.children,
1789
+ children = _ref$children === void 0 ? null : _ref$children;
2290
1790
  return /*#__PURE__*/React.createElement("div", {
2291
1791
  className: classNames([styles$h.container, _defineProperty(_defineProperty(_defineProperty({}, className, className !== null), styles$h.outline, outline), styles$h.withInvertedColors, withInvertedColors)])
2292
1792
  }, /*#__PURE__*/React.createElement("div", {
@@ -2296,37 +1796,20 @@ var PlaceholderBlock = function PlaceholderBlock(_ref) {
2296
1796
  height: height
2297
1797
  }
2298
1798
  }, children));
2299
- };
2300
- PlaceholderBlock.propTypes = propTypes$i;
2301
- PlaceholderBlock.defaultProps = defaultProps$i;
1799
+ }
2302
1800
 
2303
1801
  /* eslint-disable react/jsx-props-no-spreading */
2304
-
2305
- // import { PropTypes as MicromagPropTypes } from '@micromag/core';
2306
-
2307
- var propTypes$h = {
2308
- name: PropTypes.string.isRequired,
2309
- components: PropTypes.object.isRequired,
2310
- // eslint-disable-line
2311
- props: PropTypes.object,
2312
- // eslint-disable-line
2313
- isPlaceholder: PropTypes.bool,
2314
- className: PropTypes.string,
2315
- placeholderProps: PropTypes.object // eslint-disable-line
2316
- };
2317
- var defaultProps$h = {
2318
- props: {},
2319
- isPlaceholder: false,
2320
- className: null,
2321
- placeholderProps: null
2322
- };
2323
- var ElementComponent = function ElementComponent(_ref) {
1802
+ function ElementComponent(_ref) {
2324
1803
  var name = _ref.name,
2325
1804
  components = _ref.components,
2326
- props = _ref.props,
2327
- isPlaceholder = _ref.isPlaceholder,
2328
- className = _ref.className,
2329
- placeholderProps = _ref.placeholderProps;
1805
+ _ref$props = _ref.props,
1806
+ props = _ref$props === void 0 ? {} : _ref$props,
1807
+ _ref$isPlaceholder = _ref.isPlaceholder,
1808
+ isPlaceholder = _ref$isPlaceholder === void 0 ? false : _ref$isPlaceholder,
1809
+ _ref$className = _ref.className,
1810
+ className = _ref$className === void 0 ? null : _ref$className,
1811
+ _ref$placeholderProps = _ref.placeholderProps,
1812
+ placeholderProps = _ref$placeholderProps === void 0 ? null : _ref$placeholderProps;
2330
1813
  if (!name) {
2331
1814
  return 'Bad component name';
2332
1815
  }
@@ -2342,37 +1825,25 @@ var ElementComponent = function ElementComponent(_ref) {
2342
1825
  return /*#__PURE__*/React.createElement(RealComponent, Object.assign({}, props, {
2343
1826
  className: className
2344
1827
  }));
2345
- };
2346
- ElementComponent.propTypes = propTypes$h;
2347
- ElementComponent.defaultProps = defaultProps$h;
2348
-
2349
- var styles$g = {"container":"micromag-core-partials-empty-container","middle":"micromag-core-partials-empty-middle","withoutBorder":"micromag-core-partials-empty-withoutBorder"};
1828
+ }
2350
1829
 
2351
- var propTypes$g = {
2352
- children: PropTypes.node,
2353
- withoutBorder: PropTypes.bool,
2354
- light: PropTypes.bool,
2355
- className: PropTypes.string
2356
- };
2357
- var defaultProps$g = {
2358
- children: null,
2359
- withoutBorder: false,
2360
- light: false,
2361
- className: null
2362
- };
2363
- var Empty = function Empty(_ref) {
2364
- var children = _ref.children,
2365
- withoutBorder = _ref.withoutBorder,
2366
- light = _ref.light,
2367
- className = _ref.className;
1830
+ var styles$g = {"container":"container","middle":"middle","withoutBorder":"withoutBorder"};
1831
+
1832
+ function Empty(_ref) {
1833
+ var _ref$children = _ref.children,
1834
+ children = _ref$children === void 0 ? null : _ref$children,
1835
+ _ref$withoutBorder = _ref.withoutBorder,
1836
+ withoutBorder = _ref$withoutBorder === void 0 ? false : _ref$withoutBorder,
1837
+ _ref$light = _ref.light,
1838
+ light = _ref$light === void 0 ? false : _ref$light,
1839
+ _ref$className = _ref.className,
1840
+ className = _ref$className === void 0 ? null : _ref$className;
2368
1841
  return /*#__PURE__*/React.createElement("div", {
2369
1842
  className: classNames([styles$g.container, _defineProperty(_defineProperty(_defineProperty({}, styles$g.withoutBorder, withoutBorder), styles$g.light, light), className, className)])
2370
1843
  }, /*#__PURE__*/React.createElement("div", {
2371
1844
  className: styles$g.middle
2372
1845
  }, /*#__PURE__*/React.createElement(Label, null, children)));
2373
- };
2374
- Empty.propTypes = propTypes$g;
2375
- Empty.defaultProps = defaultProps$g;
1846
+ }
2376
1847
 
2377
1848
  var getUrlsFromMedia = function getUrlsFromMedia(media, formats) {
2378
1849
  var _ref = media || {},
@@ -2402,26 +1873,17 @@ var getUrlsFromMedia = function getUrlsFromMedia(media, formats) {
2402
1873
  }, []);
2403
1874
  return urls;
2404
1875
  };
2405
- var propTypes$f = {
2406
- fonts: PropTypes$1.fonts,
2407
- formats: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
2408
- name: PropTypes.string,
2409
- format: PropTypes.string
2410
- })]))
2411
- };
2412
- var defaultProps$f = {
2413
- fonts: [],
2414
- formats: ['eot', 'woff2', 'woff', {
2415
- name: 'otf',
2416
- format: 'opentype'
2417
- }, {
2418
- name: 'ttf',
2419
- format: 'truetype'
2420
- }, 'svg']
2421
- };
2422
- var FontFaces = function FontFaces(_ref4) {
2423
- var fonts = _ref4.fonts,
2424
- formats = _ref4.formats;
1876
+ function FontFaces(_ref4) {
1877
+ var _ref4$fonts = _ref4.fonts,
1878
+ fonts = _ref4$fonts === void 0 ? [] : _ref4$fonts,
1879
+ _ref4$formats = _ref4.formats,
1880
+ formats = _ref4$formats === void 0 ? ['eot', 'woff2', 'woff', {
1881
+ name: 'otf',
1882
+ format: 'opentype'
1883
+ }, {
1884
+ name: 'ttf',
1885
+ format: 'truetype'
1886
+ }, 'svg'] : _ref4$formats;
2425
1887
  var fontFaces = (fonts || []).filter(function (it) {
2426
1888
  return isObject(it) && it.type === 'custom' && (it.media || null) !== null;
2427
1889
  }).reduce(function (fontFontFaces, _ref5) {
@@ -2487,41 +1949,27 @@ var FontFaces = function FontFaces(_ref4) {
2487
1949
  }).join('\n')
2488
1950
  }
2489
1951
  }) : null;
2490
- };
2491
- FontFaces.propTypes = propTypes$f;
2492
- FontFaces.defaultProps = defaultProps$f;
2493
-
2494
- var styles$f = {};
1952
+ }
2495
1953
 
2496
- var propTypes$e = {
2497
- thumbnail: PropTypes.node,
2498
- thumbnailAlign: PropTypes.oneOf(['top', 'center', 'bottom']),
2499
- children: PropTypes.node,
2500
- title: PropTypes$1.label,
2501
- className: PropTypes.string,
2502
- thumbnailClassName: PropTypes.string,
2503
- bodyClassName: PropTypes.string,
2504
- titleClassName: PropTypes.string
2505
- };
2506
- var defaultProps$e = {
2507
- thumbnail: null,
2508
- thumbnailAlign: 'top',
2509
- children: null,
2510
- title: null,
2511
- className: null,
2512
- thumbnailClassName: null,
2513
- bodyClassName: null,
2514
- titleClassName: null
2515
- };
2516
- var Media = function Media(_ref) {
2517
- var thumbnail = _ref.thumbnail,
2518
- thumbnailAlign = _ref.thumbnailAlign,
2519
- children = _ref.children,
2520
- title = _ref.title,
2521
- className = _ref.className,
2522
- thumbnailClassName = _ref.thumbnailClassName,
2523
- bodyClassName = _ref.bodyClassName,
2524
- titleClassName = _ref.titleClassName;
1954
+ var styles$f = {"container":"container"};
1955
+
1956
+ function Media(_ref) {
1957
+ var _ref$thumbnail = _ref.thumbnail,
1958
+ thumbnail = _ref$thumbnail === void 0 ? null : _ref$thumbnail,
1959
+ _ref$thumbnailAlign = _ref.thumbnailAlign,
1960
+ thumbnailAlign = _ref$thumbnailAlign === void 0 ? 'top' : _ref$thumbnailAlign,
1961
+ _ref$children = _ref.children,
1962
+ children = _ref$children === void 0 ? null : _ref$children,
1963
+ _ref$title = _ref.title,
1964
+ title = _ref$title === void 0 ? null : _ref$title,
1965
+ _ref$className = _ref.className,
1966
+ className = _ref$className === void 0 ? null : _ref$className,
1967
+ _ref$thumbnailClassNa = _ref.thumbnailClassName,
1968
+ thumbnailClassName = _ref$thumbnailClassNa === void 0 ? null : _ref$thumbnailClassNa,
1969
+ _ref$bodyClassName = _ref.bodyClassName,
1970
+ bodyClassName = _ref$bodyClassName === void 0 ? null : _ref$bodyClassName,
1971
+ _ref$titleClassName = _ref.titleClassName,
1972
+ titleClassName = _ref$titleClassName === void 0 ? null : _ref$titleClassName;
2525
1973
  return /*#__PURE__*/React.createElement("div", {
2526
1974
  className: classNames(['card', styles$f.container, _defineProperty({}, className, className !== null)])
2527
1975
  }, typeof thumbnail === 'string' ? /*#__PURE__*/React.createElement("img", {
@@ -2537,641 +1985,22 @@ var Media = function Media(_ref) {
2537
1985
  }, title !== null ? /*#__PURE__*/React.createElement("h5", {
2538
1986
  className: classNames(['mt-0', 'text-truncate', styles$f.title, _defineProperty({}, titleClassName, titleClassName !== null)])
2539
1987
  }, /*#__PURE__*/React.createElement(Label, null, title)) : null, children) : null);
2540
- };
2541
- Media.propTypes = propTypes$e;
2542
- Media.defaultProps = defaultProps$e;
2543
-
2544
- /**
2545
- * Core
2546
- */
2547
- PropTypes.shape({
2548
- listen: PropTypes.func.isRequired,
2549
- push: PropTypes.func.isRequired
2550
- });
2551
- PropTypes.shape({
2552
- pathname: PropTypes.string,
2553
- search: PropTypes.string
2554
- });
2555
- PropTypes.shape({
2556
- locale: PropTypes.string.isRequired,
2557
- formatMessage: PropTypes.func.isRequired
2558
- });
2559
- var defaultMessageContent = PropTypes.shape({
2560
- type: PropTypes.number,
2561
- value: PropTypes.string
2562
- });
2563
- var defaultMessage = PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(defaultMessageContent)]);
2564
- var message = PropTypes.shape({
2565
- id: PropTypes.string,
2566
- defaultMessage: defaultMessage.isRequired,
2567
- description: PropTypes.string
2568
- });
2569
- var text = PropTypes.oneOfType([message, PropTypes.string]);
2570
- var label = PropTypes.oneOfType([message, PropTypes.node]);
2571
- PropTypes.oneOf([401, 403, 404, 500]);
2572
- PropTypes.oneOfType([PropTypes.shape({
2573
- current: PropTypes.any // eslint-disable-line react/forbid-prop-types
2574
- }), PropTypes.func]);
2575
- var target = PropTypes.oneOf(['_blank', '_self', '_parent']);
2576
- var interaction = PropTypes.oneOf(['tap', 'swipe']);
2577
- PropTypes.arrayOf(interaction);
2578
- PropTypes.objectOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.array]));
2579
- PropTypes.shape({
2580
- currentTime: PropTypes.number,
2581
- duration: PropTypes.number
2582
- });
2583
-
2584
- /**
2585
- * Site
2586
- */
2587
- PropTypes.shape({
2588
- id: PropTypes.number,
2589
- firstname: PropTypes.string,
2590
- lastname: PropTypes.string,
2591
- email: PropTypes.string,
2592
- gender: PropTypes.string,
2593
- birthdate: PropTypes.string
2594
- });
2595
- var menuItem = PropTypes.shape({
2596
- id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
2597
- label: label,
2598
- url: PropTypes.string,
2599
- external: PropTypes.bool,
2600
- active: PropTypes.bool
2601
- });
2602
- PropTypes.arrayOf(menuItem);
2603
- var breadcrumb = PropTypes.shape({
2604
- label: label,
2605
- url: PropTypes.string
2606
- });
2607
- PropTypes.arrayOf(breadcrumb);
2608
- var device = PropTypes.shape({
2609
- id: PropTypes.string.isRequired
2610
- });
2611
- PropTypes.arrayOf(device);
2612
- var modal = PropTypes.shape({
2613
- id: PropTypes.string.isRequired
2614
- });
2615
- PropTypes.arrayOf(modal);
2616
- var panel = PropTypes.shape({
2617
- id: PropTypes.string.isRequired
2618
- });
2619
- PropTypes.arrayOf(panel);
2620
- var button = PropTypes.shape({
2621
- label: label,
2622
- onClick: PropTypes.func
2623
- });
2624
- PropTypes.arrayOf(button);
2625
- var bootstrapThemeStrings = ['primary', 'secondary', 'success', 'danger', 'warning', 'info', 'light', 'dark'];
2626
- PropTypes.oneOf(bootstrapThemeStrings);
2627
- PropTypes.oneOf([].concat(bootstrapThemeStrings, ['outline-primary', 'outline-secondary', 'outline-success', 'outline-danger', 'outline-warning', 'outline-info', 'outline-light', 'outline-dark', 'outline-link', null]));
2628
- PropTypes.oneOf(['lg', 'sm', null]);
2629
- PropTypes.oneOf(['lg', 'sm', null]);
2630
- PropTypes.oneOf(['start', 'end']);
2631
- var component = PropTypes.oneOfType([PropTypes.object, PropTypes.func]);
2632
- PropTypes.objectOf(component);
2633
-
2634
- /**
2635
- * Forms
2636
- */
2637
- var errors = PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string)]);
2638
- PropTypes.objectOf(errors);
2639
- var selectOption = PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
2640
- value: PropTypes.any,
2641
- // eslint-disable-line
2642
- label: label
2643
- })]);
2644
- PropTypes.arrayOf(selectOption);
2645
- var formField = PropTypes.shape({
2646
- name: PropTypes.string,
2647
- component: component
2648
- });
2649
- PropTypes.arrayOf(formField);
2650
-
2651
- /**
2652
- * Medias
2653
- */
2654
- var mediaMetadataShape = {
2655
- filename: PropTypes.string,
2656
- size: PropTypes.number,
2657
- mime: PropTypes.string
2658
- };
2659
- var mediaFile = PropTypes.shape({
2660
- id: PropTypes.string,
2661
- handle: PropTypes.string,
2662
- type: PropTypes.string,
2663
- mime: PropTypes.string,
2664
- url: PropTypes.string
2665
- });
2666
- var mediaShape = {
2667
- id: PropTypes.string,
2668
- type: PropTypes.string.isRequired,
2669
- url: PropTypes.string,
2670
- // .isRequired,
2671
- thumbnail_url: PropTypes.string,
2672
- name: PropTypes.string,
2673
- metadata: PropTypes.shape(_objectSpread({}, mediaMetadataShape)),
2674
- files: PropTypes.objectOf(mediaFile)
2675
- };
2676
- var media = PropTypes.shape(mediaShape);
2677
- PropTypes.arrayOf(media);
2678
- PropTypes.oneOf(['image', 'video', 'audio', 'closed-captions', 'font']);
2679
- var imageMedia = PropTypes.shape(_objectSpread(_objectSpread({}, mediaShape), {}, {
2680
- type: PropTypes.oneOf(['image', 'video']),
2681
- metadata: PropTypes.shape(_objectSpread(_objectSpread({}, mediaMetadataShape), {}, {
2682
- width: PropTypes.number,
2683
- height: PropTypes.number
2684
- }))
2685
- }));
2686
- PropTypes.arrayOf(imageMedia);
2687
- var fontMedia = PropTypes.shape(_objectSpread(_objectSpread({}, mediaShape), {}, {
2688
- type: PropTypes.oneOf(['font']),
2689
- metadata: PropTypes.shape(_objectSpread({}, mediaMetadataShape))
2690
- }));
2691
- PropTypes.arrayOf(fontMedia);
2692
- var videoMedia = PropTypes.shape(_objectSpread(_objectSpread({}, mediaShape), {}, {
2693
- type: PropTypes.oneOf(['video']),
2694
- metadata: PropTypes.shape(_objectSpread(_objectSpread({}, mediaMetadataShape), {}, {
2695
- width: PropTypes.number,
2696
- height: PropTypes.number,
2697
- duration: PropTypes.number
2698
- }))
2699
- }));
2700
- PropTypes.arrayOf(videoMedia);
2701
- var audioMedia = PropTypes.shape(_objectSpread(_objectSpread({}, mediaShape), {}, {
2702
- type: PropTypes.oneOf(['audio']),
2703
- metadata: PropTypes.shape(_objectSpread(_objectSpread({}, mediaMetadataShape), {}, {
2704
- duration: PropTypes.number
2705
- }))
2706
- }));
2707
- PropTypes.arrayOf(audioMedia);
2708
- var closedCaptionsMedia = PropTypes.shape(_objectSpread(_objectSpread({}, mediaShape), {}, {
2709
- type: PropTypes.oneOf(['closed-captions'])
2710
- }));
2711
-
2712
- /**
2713
- * Style
2714
- */
2715
-
2716
- PropTypes.shape({
2717
- type: PropTypes.oneOf(['system', 'google', 'custom']),
2718
- name: PropTypes.string,
2719
- media: fontMedia
2720
- });
2721
- var font = PropTypes.oneOfType([PropTypes.object, PropTypes.string]);
2722
- PropTypes.arrayOf(font);
2723
- var textAlign = PropTypes.oneOf(['left', 'right', 'center']);
2724
- var colorObject = PropTypes.shape({
2725
- color: PropTypes.string,
2726
- alpha: PropTypes.number
2727
- });
2728
- var color = PropTypes.oneOfType([colorObject, PropTypes.string]);
2729
- var textStyle = PropTypes.shape({
2730
- fontFamily: font,
2731
- fontSize: PropTypes.number,
2732
- fontStyle: PropTypes.shape({
2733
- bold: PropTypes.bool,
2734
- italic: PropTypes.bool,
2735
- underline: PropTypes.bool,
2736
- upperCase: PropTypes.bool
2737
- }),
2738
- align: textAlign,
2739
- color: color,
2740
- letterSpacing: PropTypes.number,
2741
- lineHeight: PropTypes.number
2742
- });
2743
- var borderTypes = PropTypes.oneOf(['dotted', 'dashed', 'solid', 'double', 'groove', 'ridge', 'inset', 'outset', 'hidden']);
2744
- var shadowType = PropTypes.shape({
2745
- shadowDistance: PropTypes.number,
2746
- shadowBlur: PropTypes.number,
2747
- shadowColor: color
2748
- });
2749
- PropTypes.shape({
2750
- width: PropTypes.number,
2751
- style: borderTypes,
2752
- radius: PropTypes.number,
2753
- color: color
2754
- });
2755
- var boxStyle = PropTypes.shape({
2756
- backgroundColor: color,
2757
- borderRadius: PropTypes.number,
2758
- borderWidth: PropTypes.number,
2759
- borderColor: color,
2760
- borderStyle: borderTypes,
2761
- shadow: shadowType
2762
- });
2763
- PropTypes.shape({
2764
- top: PropTypes.number,
2765
- bottom: PropTypes.number
2766
- });
2767
- PropTypes.arrayOf(PropTypes.shape({
2768
- rows: PropTypes.oneOfType([PropTypes.number, PropTypes.arrayOf(PropTypes.number)]),
2769
- columns: PropTypes.oneOfType([PropTypes.number, PropTypes.arrayOf(PropTypes.number)])
2770
- }));
2771
- var objectFitSize = PropTypes.oneOf(['cover', 'contain', null]);
2772
- PropTypes.shape({
2773
- fit: objectFitSize,
2774
- horizontalPosition: PropTypes.oneOf(['left', 'center', 'right']),
2775
- verticalPosition: PropTypes.oneOf(['top', 'center', 'bottom'])
2776
- });
2777
-
2778
- /**
2779
- * Elements
2780
- */
2781
-
2782
- var textElement = PropTypes.shape({
2783
- body: PropTypes.string,
2784
- textStyle: textStyle
2785
- });
2786
- var headingElement = textElement;
2787
- PropTypes.shape({
2788
- label: PropTypes.string,
2789
- textStyle: textStyle
2790
- });
2791
- var imageElement = PropTypes.shape({
2792
- media: imageMedia
2793
- });
2794
- PropTypes.arrayOf(imageElement);
2795
- PropTypes.shape({
2796
- media: videoMedia,
2797
- autoPlay: PropTypes.bool,
2798
- loop: PropTypes.bool,
2799
- closedCaptions: closedCaptionsMedia,
2800
- withSeekBar: PropTypes.bool,
2801
- withControls: PropTypes.bool
2802
- });
2803
- var visualElement = PropTypes.shape({
2804
- media: imageMedia
2805
- });
2806
- PropTypes.arrayOf(visualElement);
2807
- var audioElement = PropTypes.shape({
2808
- media: audioMedia,
2809
- autoPlay: PropTypes.bool,
2810
- loop: PropTypes.bool,
2811
- closedCaptions: closedCaptionsMedia,
2812
- withPlayPause: PropTypes.bool
2813
- });
2814
- PropTypes.shape({
2815
- media: closedCaptionsMedia
2816
- });
2817
- var backgroundElement = PropTypes.shape({
2818
- color: color,
2819
- image: imageMedia,
2820
- video: videoMedia
2821
- });
2822
- var imageElementWithCaption = PropTypes.shape({
2823
- image: imageMedia,
2824
- caption: textElement
2825
- });
2826
- PropTypes.arrayOf(imageElementWithCaption);
2827
- var stackDirection = PropTypes.oneOf(['horizontal', 'vertical']);
2828
- var stackAlign = PropTypes.oneOf(['start', 'center', 'end']);
2829
- var stackSpacing = PropTypes.oneOfType([PropTypes.number, PropTypes.oneOf(['between', 'evenly', 'around'])]);
2830
- PropTypes.shape({
2831
- direction: stackDirection,
2832
- align: stackAlign,
2833
- width: PropTypes.number,
2834
- height: PropTypes.number,
2835
- spacing: stackSpacing,
2836
- reverse: PropTypes.bool
2837
- });
2838
- PropTypes.shape({
2839
- layout: PropTypes.arrayOf(PropTypes.string),
2840
- spacing: PropTypes.number
2841
- });
2842
- var geoPosition = PropTypes.shape({
2843
- lat: PropTypes.number,
2844
- lng: PropTypes.number
2845
- });
2846
- var markerShape = {
2847
- id: PropTypes.number,
2848
- geoPosition: geoPosition,
2849
- title: headingElement,
2850
- subtitle: headingElement,
2851
- description: textElement
2852
- };
2853
- var marker = PropTypes.shape(_objectSpread({}, markerShape));
2854
- PropTypes.arrayOf(marker);
2855
- var markerWithImage = PropTypes.shape(_objectSpread(_objectSpread({}, markerShape), {}, {
2856
- image: imageMedia
2857
- }));
2858
- PropTypes.arrayOf(markerWithImage);
2859
- var answerShape = {
2860
- id: PropTypes.string,
2861
- label: textElement
2862
- };
2863
- var answer = PropTypes.shape(_objectSpread({}, answerShape));
2864
- var quizAnswer = PropTypes.shape(_objectSpread(_objectSpread({}, answerShape), {}, {
2865
- good: PropTypes.bool
2866
- }));
2867
- PropTypes.arrayOf(answer);
2868
- PropTypes.arrayOf(quizAnswer);
2869
- var callToActionTypes = PropTypes.oneOf(['swipe-up', 'button']);
2870
- var callToAction = PropTypes.shape({
2871
- active: PropTypes.bool,
2872
- type: callToActionTypes,
2873
- url: PropTypes.string,
2874
- label: textElement,
2875
- buttonStyle: boxStyle
2876
- });
2877
- PropTypes.shape({
2878
- active: PropTypes.bool,
2879
- label: textElement,
2880
- boxStyle: boxStyle
2881
- });
2882
- PropTypes.shape({
2883
- active: PropTypes.bool
2884
- });
2885
- var speaker = PropTypes.shape({
2886
- id: PropTypes.string,
2887
- name: PropTypes.string,
2888
- avatar: imageMedia,
2889
- side: PropTypes.oneOf(['left', 'right']),
2890
- color: color
2891
- });
2892
- var speakers = PropTypes.arrayOf(speaker);
2893
- var conversationMessage = PropTypes.shape({
2894
- speaker: PropTypes.string,
2895
- message: PropTypes.string,
2896
- image: imageMedia,
2897
- audio: audioMedia,
2898
- timingOverrides: PropTypes.shape({
2899
- enabled: PropTypes.bool,
2900
- appearDelay: PropTypes.number,
2901
- writingStateDuration: PropTypes.number
2902
- })
2903
- });
2904
- var conversationMessages = PropTypes.arrayOf(conversationMessage);
2905
- PropTypes.shape({
2906
- speakers: speakers,
2907
- textStyle: textStyle,
2908
- messages: conversationMessages
2909
- });
2910
- PropTypes.shape({
2911
- audio: audioElement
2912
- });
2913
-
2914
- /**
2915
- * Definitions
2916
- */
2917
-
2918
- var fieldShape = {
2919
- name: PropTypes.string,
2920
- type: PropTypes.string.isRequired,
2921
- label: text
2922
- };
2923
- var field = PropTypes.shape(_objectSpread(_objectSpread({}, fieldShape), {}, {
2924
- isSection: PropTypes.bool,
2925
- fields: PropTypes.arrayOf(PropTypes.shape(fieldShape))
2926
- }));
2927
- var fields = PropTypes.arrayOf(field);
2928
- var screenDefinition = PropTypes.shape({
2929
- id: PropTypes.string.isRequired,
2930
- type: PropTypes.oneOf(['screen']).isRequired,
2931
- title: text.isRequired,
2932
- layouts: PropTypes.arrayOf(PropTypes.string),
2933
- fields: fields
2934
- });
2935
- PropTypes.arrayOf(screenDefinition);
2936
- var fieldDefinition = PropTypes.shape({
2937
- id: PropTypes.string.isRequired,
2938
- type: PropTypes.oneOf(['field']).isRequired,
2939
- title: text.isRequired,
2940
- fields: fields
2941
- });
2942
- PropTypes.arrayOf(fieldDefinition);
2943
-
2944
- /**
2945
- * Components
2946
- */
2947
- var storyComponentShape = {
2948
- type: PropTypes.string.isRequired
2949
- };
2950
- var storyComponent = PropTypes.shape(_objectSpread({}, storyComponentShape));
2951
- PropTypes.arrayOf(storyComponent);
2952
- var screenComponent = PropTypes.shape(_objectSpread({}, storyComponentShape));
2953
- var screenComponents = PropTypes.arrayOf(screenComponent);
2954
-
2955
- /**
2956
- * Theme
2957
- */
2958
- var theme = PropTypes.shape({
2959
- id: PropTypes.string,
2960
- textStyles: PropTypes.objectOf(textStyle),
2961
- // renamed to textstyles
2962
- background: backgroundElement,
2963
- colors: PropTypes.objectOf(color),
2964
- components: screenComponents
2965
- });
2966
- PropTypes.shape(_objectSpread({
2967
- logo: imageMedia
2968
- }, theme));
2969
-
2970
- /**
2971
- * Branding
2972
- */
2973
-
2974
- // export const branding = PropTypes.shape({
2975
- // logo: imageMedia,
2976
- // primaryColor: color,
2977
- // secondaryColor: color,
2978
- // backgroundColor: color,
2979
- // textStyle,
2980
- // });
2981
-
2982
- /**
2983
- * Metadata
2984
- */
2985
- var metadata = PropTypes.shape({
2986
- description: PropTypes.string,
2987
- shareUrl: PropTypes.string,
2988
- shareImage: imageMedia,
2989
- favIcon: imageMedia
2990
- });
2991
- var tag = PropTypes.shape({
2992
- label: PropTypes.string,
2993
- value: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
2994
- });
2995
- PropTypes.arrayOf(tag);
2996
-
2997
- /**
2998
- * Story
2999
- */
3000
- PropTypes.shape({
3001
- id: PropTypes.string,
3002
- theme: theme,
3003
- components: screenComponents,
3004
- metadata: metadata
3005
- });
3006
-
3007
- /**
3008
- * Render
3009
- */
3010
- var deviceScreen = PropTypes.shape({
3011
- name: PropTypes.string.isRequired,
3012
- mediaQuery: PropTypes.string
3013
- });
3014
- PropTypes.arrayOf(deviceScreen);
3015
- PropTypes.shape({
3016
- screen: PropTypes.string,
3017
- screens: PropTypes.arrayOf(PropTypes.string),
3018
- width: PropTypes.number,
3019
- height: PropTypes.number,
3020
- landscape: PropTypes.bool
3021
- });
3022
- PropTypes.oneOf(['view', 'placeholder', 'edit', 'preview', 'static', 'capture']);
3023
-
3024
- /**
3025
- * Screens
3026
- */
3027
-
3028
- PropTypes.shape({
3029
- width: PropTypes.number,
3030
- height: PropTypes.number
3031
- });
3032
- PropTypes.shape({
3033
- width: PropTypes.number,
3034
- height: PropTypes.number,
3035
- url: PropTypes.string,
3036
- target: target,
3037
- iframe: PropTypes.string,
3038
- image: imageMedia
3039
- });
3040
- PropTypes.shape({
3041
- src: PropTypes.string,
3042
- track: PropTypes.string,
3043
- trackLng: PropTypes.number,
3044
- controls: PropTypes.bool
3045
- });
3046
- var slide = PropTypes.shape({
3047
- image: imageMedia,
3048
- text: PropTypes.string
3049
- });
3050
- PropTypes.arrayOf(slide);
3051
-
3052
- // export const imageStyle = PropTypes.shape({
3053
- // alt: PropTypes.string,
3054
- // fit: PropTypes.object,
3055
- // });
3056
-
3057
- PropTypes.shape({});
3058
-
3059
- /**
3060
- * Transitions
3061
- */
3062
-
3063
- var transitionName = PropTypes.oneOf(['fade', 'scale', 'slide']);
3064
- var transitionParams = {
3065
- duration: PropTypes.number,
3066
- easing: PropTypes.oneOf(['ease', 'ease-in', 'ease-out', 'ease-in-out', 'linear'])
3067
- };
3068
- var transition = PropTypes.oneOfType([transitionName.isRequired, PropTypes.shape(_objectSpread({
3069
- name: transitionName.isRequired
3070
- }, transitionParams))]);
3071
- PropTypes.shape({
3072
- "in": transition,
3073
- out: transition
3074
- });
3075
-
3076
- /**
3077
- * Search
3078
- */
3079
-
3080
- var searchFilter = PropTypes.shape({
3081
- type: PropTypes.string,
3082
- value: PropTypes.oneOf([PropTypes.string, PropTypes.number])
3083
- });
3084
- PropTypes.arrayOf(searchFilter);
3085
-
3086
- /**
3087
- * Payments
3088
- */
3089
-
3090
- var paymentItem = PropTypes.shape({
3091
- id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3092
- date: PropTypes.string,
3093
- type: PropTypes.string,
3094
- invoice_link: PropTypes.string,
3095
- amount: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
3096
- });
3097
- PropTypes.arrayOf(paymentItem);
3098
-
3099
- /**
3100
- * Page Metadada
3101
- */
3102
-
3103
- var pageMetadata = PropTypes.shape({
3104
- canonical: PropTypes.string,
3105
- description: PropTypes.string,
3106
- keywords: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
3107
- image: PropTypes.shape({
3108
- url: PropTypes.string
3109
- }),
3110
- favicon: PropTypes.shape({
3111
- url: PropTypes.string
3112
- }),
3113
- rssUrl: PropTypes.string,
3114
- atomUrl: PropTypes.string,
3115
- microformats: PropTypes.arrayOf(PropTypes.shape({}))
3116
- });
3117
- PropTypes.shape({
3118
- name: textElement,
3119
- avatar: PropTypes.shape({
3120
- url: PropTypes.string
3121
- })
3122
- });
3123
- PropTypes.shape({
3124
- id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3125
- name: PropTypes.string
3126
- });
3127
- var badge = PropTypes.shape({
3128
- label: textElement,
3129
- buttonStyle: boxStyle
3130
- });
3131
- PropTypes.shape({
3132
- active: PropTypes.bool,
3133
- placeholder: textElement,
3134
- textStyle: textStyle,
3135
- boxStyle: boxStyle
3136
- });
3137
- PropTypes.shape({
3138
- badge: badge
3139
- });
3140
- PropTypes.shape({
3141
- callToAction: callToAction
3142
- });
3143
- PropTypes.shape();
3144
- PropTypes.shape({
3145
- file: closedCaptionsMedia,
3146
- textStyle: textStyle,
3147
- boxStyle: boxStyle
3148
- });
3149
- PropTypes.oneOf(['label-bottom', 'label-top', 'no-label', 'label-over', 'label-left', 'label-right']);
1988
+ }
3150
1989
 
3151
1990
  /* eslint-disable react/no-array-index-key */
3152
- var propTypes$d = {
3153
- title: PropTypes.string,
3154
- url: PropTypes.string,
3155
- metadata: pageMetadata,
3156
- fullTitle: PropTypes.string,
3157
- suffix: PropTypes.string,
3158
- children: PropTypes.node
3159
- };
3160
- var defaultProps$d = {
3161
- title: null,
3162
- url: null,
3163
- metadata: null,
3164
- fullTitle: null,
3165
- suffix: 'Micromag',
3166
- children: null
3167
- };
3168
- var Meta = function Meta(_ref) {
3169
- var title = _ref.title,
3170
- url = _ref.url,
3171
- metadata = _ref.metadata,
3172
- fullTitle = _ref.fullTitle,
3173
- suffix = _ref.suffix,
3174
- children = _ref.children;
1991
+ function Meta(_ref) {
1992
+ var _ref$title = _ref.title,
1993
+ title = _ref$title === void 0 ? null : _ref$title,
1994
+ _ref$url = _ref.url,
1995
+ url = _ref$url === void 0 ? null : _ref$url,
1996
+ _ref$metadata = _ref.metadata,
1997
+ metadata = _ref$metadata === void 0 ? null : _ref$metadata,
1998
+ _ref$fullTitle = _ref.fullTitle,
1999
+ fullTitle = _ref$fullTitle === void 0 ? null : _ref$fullTitle,
2000
+ _ref$suffix = _ref.suffix,
2001
+ suffix = _ref$suffix === void 0 ? 'Micromag' : _ref$suffix,
2002
+ _ref$children = _ref.children,
2003
+ children = _ref$children === void 0 ? null : _ref$children;
3175
2004
  var _ref2 = metadata || {},
3176
2005
  _ref2$canonical = _ref2.canonical,
3177
2006
  canonical = _ref2$canonical === void 0 ? null : _ref2$canonical,
@@ -3272,38 +2101,25 @@ var Meta = function Meta(_ref) {
3272
2101
  key: "microformat-".concat(it["@type"], "-").concat(it.identifier)
3273
2102
  }, JSON.stringify(it));
3274
2103
  }), children);
3275
- };
3276
- Meta.propTypes = propTypes$d;
3277
- Meta.defaultProps = defaultProps$d;
3278
-
3279
- 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"};
2104
+ }
3280
2105
 
3281
- var propTypes$c = {
3282
- items: PropTypes.arrayOf(PropTypes.node),
3283
- auto: PropTypes.bool,
3284
- delay: PropTypes.number,
3285
- width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3286
- height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
3287
- className: PropTypes.string,
3288
- children: PropTypes.node
3289
- };
3290
- var defaultProps$c = {
3291
- items: [],
3292
- auto: true,
3293
- delay: 5000,
3294
- width: null,
3295
- height: null,
3296
- className: null,
3297
- children: null
3298
- };
3299
- var Slideshow = function Slideshow(_ref) {
3300
- var items = _ref.items,
3301
- auto = _ref.auto,
3302
- delay = _ref.delay,
3303
- width = _ref.width,
3304
- height = _ref.height,
3305
- className = _ref.className,
3306
- children = _ref.children;
2106
+ var styles$e = {"container":"container","items":"items","item":"item","prev":"prev","current":"current","next":"next"};
2107
+
2108
+ function Slideshow(_ref) {
2109
+ var _ref$items = _ref.items,
2110
+ items = _ref$items === void 0 ? [] : _ref$items,
2111
+ _ref$auto = _ref.auto,
2112
+ auto = _ref$auto === void 0 ? true : _ref$auto,
2113
+ _ref$delay = _ref.delay,
2114
+ delay = _ref$delay === void 0 ? 5000 : _ref$delay,
2115
+ _ref$width = _ref.width,
2116
+ width = _ref$width === void 0 ? null : _ref$width,
2117
+ _ref$height = _ref.height,
2118
+ height = _ref$height === void 0 ? null : _ref$height,
2119
+ _ref$className = _ref.className,
2120
+ className = _ref$className === void 0 ? null : _ref$className,
2121
+ _ref$children = _ref.children,
2122
+ children = _ref$children === void 0 ? null : _ref$children;
3307
2123
  var _useState = useState(0),
3308
2124
  _useState2 = _slicedToArray(_useState, 2),
3309
2125
  index = _useState2[0],
@@ -3340,14 +2156,12 @@ var Slideshow = function Slideshow(_ref) {
3340
2156
  className: classNames([styles$e.item, _defineProperty(_defineProperty(_defineProperty({}, styles$e.prev, i < index), styles$e.current, i === index), styles$e.next, i > index)])
3341
2157
  }, it);
3342
2158
  })), children);
3343
- };
3344
- Slideshow.propTypes = propTypes$c;
3345
- Slideshow.defaultProps = defaultProps$c;
2159
+ }
3346
2160
 
3347
- var styles$d = {"icon":"micromag-core-placeholders-icon"};
2161
+ var styles$d = {"icon":"icon"};
3348
2162
 
3349
2163
  /* eslint-disable react/prop-types */
3350
- var AdFrame = function AdFrame(_ref) {
2164
+ function AdFrame(_ref) {
3351
2165
  var width = _ref.width,
3352
2166
  height = _ref.height,
3353
2167
  className = _ref.className;
@@ -3359,10 +2173,10 @@ var AdFrame = function AdFrame(_ref) {
3359
2173
  icon: faAd,
3360
2174
  className: styles$d.icon
3361
2175
  }));
3362
- };
2176
+ }
3363
2177
 
3364
2178
  /* eslint-disable react/prop-types */
3365
- var AdImage = function AdImage(_ref) {
2179
+ function AdImage(_ref) {
3366
2180
  var width = _ref.width,
3367
2181
  height = _ref.height,
3368
2182
  className = _ref.className;
@@ -3374,10 +2188,10 @@ var AdImage = function AdImage(_ref) {
3374
2188
  icon: faImage,
3375
2189
  className: styles$d.icon
3376
2190
  }));
3377
- };
2191
+ }
3378
2192
 
3379
2193
  /* eslint-disable react/destructuring-assignment, react/prop-types */
3380
- var Audio = function Audio(_ref) {
2194
+ function Audio(_ref) {
3381
2195
  var _ref$width = _ref.width,
3382
2196
  width = _ref$width === void 0 ? '100%' : _ref$width,
3383
2197
  _ref$height = _ref.height,
@@ -3391,36 +2205,25 @@ var Audio = function Audio(_ref) {
3391
2205
  icon: faMusic,
3392
2206
  className: styles$d.icon
3393
2207
  }));
3394
- };
2208
+ }
3395
2209
 
3396
- var styles$c = {"container":"micromag-core-partials-placeholder-text-container","withInvertedColors":"micromag-core-partials-placeholder-text-withInvertedColors","line":"micromag-core-partials-placeholder-text-line"};
2210
+ var styles$c = {"container":"container","withInvertedColors":"withInvertedColors","line":"line"};
3397
2211
 
3398
- var propTypes$b = {
3399
- lines: PropTypes.number,
3400
- lineMargin: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
3401
- width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
3402
- height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
3403
- fontSize: PropTypes.number,
3404
- className: PropTypes.string,
3405
- withInvertedColors: PropTypes.bool
3406
- };
3407
- var defaultProps$b = {
3408
- lines: 1,
3409
- lineMargin: 1,
3410
- width: '100%',
3411
- height: null,
3412
- fontSize: 16,
3413
- className: null,
3414
- withInvertedColors: true
3415
- };
3416
- var PlaceholderText = function PlaceholderText(_ref) {
3417
- var lines = _ref.lines,
3418
- lineMargin = _ref.lineMargin,
3419
- width = _ref.width,
3420
- height = _ref.height,
3421
- fontSize = _ref.fontSize,
3422
- className = _ref.className,
3423
- withInvertedColors = _ref.withInvertedColors;
2212
+ function PlaceholderText(_ref) {
2213
+ var _ref$lines = _ref.lines,
2214
+ lines = _ref$lines === void 0 ? 1 : _ref$lines,
2215
+ _ref$lineMargin = _ref.lineMargin,
2216
+ lineMargin = _ref$lineMargin === void 0 ? 1 : _ref$lineMargin,
2217
+ _ref$width = _ref.width,
2218
+ width = _ref$width === void 0 ? '100%' : _ref$width,
2219
+ _ref$height = _ref.height,
2220
+ height = _ref$height === void 0 ? null : _ref$height,
2221
+ _ref$fontSize = _ref.fontSize,
2222
+ fontSize = _ref$fontSize === void 0 ? 16 : _ref$fontSize,
2223
+ _ref$className = _ref.className,
2224
+ className = _ref$className === void 0 ? null : _ref$className,
2225
+ _ref$withInvertedColo = _ref.withInvertedColors,
2226
+ withInvertedColors = _ref$withInvertedColo === void 0 ? true : _ref$withInvertedColo;
3424
2227
  var lineHeight = height !== null && isNumber(height) ? "".concat(Math.round(height * fontSize), "px") : height;
3425
2228
  var oddWidth = isNumber(width) ? width * 0.9 : '80%';
3426
2229
  return /*#__PURE__*/React.createElement("div", {
@@ -3437,12 +2240,10 @@ var PlaceholderText = function PlaceholderText(_ref) {
3437
2240
  }
3438
2241
  });
3439
2242
  }));
3440
- };
3441
- PlaceholderText.propTypes = propTypes$b;
3442
- PlaceholderText.defaultProps = defaultProps$b;
2243
+ }
3443
2244
 
3444
2245
  /* eslint-disable react/destructuring-assignment, react/prop-types */
3445
- var Button = function Button(_ref) {
2246
+ function Button(_ref) {
3446
2247
  var _ref$width = _ref.width,
3447
2248
  width = _ref$width === void 0 ? '75%' : _ref$width,
3448
2249
  _ref$height = _ref.height,
@@ -3457,10 +2258,10 @@ var Button = function Button(_ref) {
3457
2258
  line: 1,
3458
2259
  height: "0.1em"
3459
2260
  }));
3460
- };
2261
+ }
3461
2262
 
3462
2263
  var _excluded$2 = ["width", "height", "className"];
3463
- var Image = function Image(_ref) {
2264
+ function Image(_ref) {
3464
2265
  var width = _ref.width,
3465
2266
  height = _ref.height,
3466
2267
  className = _ref.className,
@@ -3473,20 +2274,20 @@ var Image = function Image(_ref) {
3473
2274
  icon: faImage,
3474
2275
  className: styles$d.icon
3475
2276
  }));
3476
- };
2277
+ }
3477
2278
 
3478
2279
  /* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
3479
- var Line = function Line(props) {
2280
+ function Line(props) {
3480
2281
  return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
3481
2282
  className: classNames([props.className, styles$d.shortText]),
3482
2283
  height: 0.2,
3483
2284
  lines: 1
3484
2285
  }));
3485
- };
2286
+ }
3486
2287
 
3487
- var styles$b = {"container":"micromag-core-placeholders-map-container","icon":"micromag-core-placeholders-map-icon"};
2288
+ var styles$b = {"container":"container","icon":"icon"};
3488
2289
 
3489
- var Map = function Map(props) {
2290
+ function Map(props) {
3490
2291
  return /*#__PURE__*/React.createElement(PlaceholderBlock, Object.assign({}, props, {
3491
2292
  width: "100%",
3492
2293
  height: "100%",
@@ -3504,10 +2305,10 @@ var Map = function Map(props) {
3504
2305
  icon: props.withImages ? faImage : faMapMarkerAlt,
3505
2306
  className: styles$b.icon
3506
2307
  }));
3507
- };
2308
+ }
3508
2309
 
3509
2310
  /* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
3510
- var MapPath = function MapPath(props) {
2311
+ function MapPath(props) {
3511
2312
  return /*#__PURE__*/React.createElement(PlaceholderBlock, Object.assign({}, props, {
3512
2313
  width: "100%",
3513
2314
  height: "70%",
@@ -3517,37 +2318,37 @@ var MapPath = function MapPath(props) {
3517
2318
  size: "lg",
3518
2319
  className: styles$d.icon
3519
2320
  }));
3520
- };
2321
+ }
3521
2322
 
3522
2323
  /* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
3523
- var Quote = function Quote(props) {
2324
+ function Quote(props) {
3524
2325
  return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
3525
2326
  className: classNames([props.className, styles$d.subtitle]),
3526
2327
  height: 0.5,
3527
2328
  lines: 6
3528
2329
  }));
3529
- };
2330
+ }
3530
2331
 
3531
2332
  /* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
3532
- var ShortText = function ShortText(props) {
2333
+ function ShortText(props) {
3533
2334
  return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
3534
2335
  className: classNames([props.className, styles$d.shortText]),
3535
2336
  height: 0.2,
3536
2337
  lines: 2
3537
2338
  }));
3538
- };
2339
+ }
3539
2340
 
3540
2341
  /* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
3541
- var Subtitle = function Subtitle(props) {
2342
+ function Subtitle(props) {
3542
2343
  return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
3543
2344
  className: classNames([props.className, styles$d.subtitle]),
3544
2345
  height: 0.3,
3545
2346
  lines: 1
3546
2347
  }));
3547
- };
2348
+ }
3548
2349
 
3549
2350
  /* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
3550
- var TextPlaceholder = function TextPlaceholder(props) {
2351
+ function TextPlaceholder(props) {
3551
2352
  var _props$className = props.className,
3552
2353
  className = _props$className === void 0 ? null : _props$className,
3553
2354
  _props$height = props.height,
@@ -3562,17 +2363,17 @@ var TextPlaceholder = function TextPlaceholder(props) {
3562
2363
  lineMargin: lineMargin,
3563
2364
  className: classNames([className, styles$d.text])
3564
2365
  }));
3565
- };
2366
+ }
3566
2367
 
3567
2368
  /* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
3568
- var Timeline = function Timeline(props) {
2369
+ function Timeline(props) {
3569
2370
  return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
3570
2371
  className: classNames([props.className, styles$d.timeline])
3571
2372
  }));
3572
- };
2373
+ }
3573
2374
 
3574
2375
  /* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
3575
- var Title$1 = function Title(props) {
2376
+ function Title$1(props) {
3576
2377
  var _props$height = props.height,
3577
2378
  height = _props$height === void 0 ? 0.5 : _props$height,
3578
2379
  _props$lines = props.lines,
@@ -3585,10 +2386,10 @@ var Title$1 = function Title(props) {
3585
2386
  lines: lines,
3586
2387
  lineMargin: lineMargin
3587
2388
  }));
3588
- };
2389
+ }
3589
2390
 
3590
2391
  /* eslint-disable react/prop-types */
3591
- var Video = function Video(_ref) {
2392
+ function Video(_ref) {
3592
2393
  var width = _ref.width,
3593
2394
  height = _ref.height,
3594
2395
  className = _ref.className;
@@ -3600,11 +2401,11 @@ var Video = function Video(_ref) {
3600
2401
  icon: faVideo,
3601
2402
  className: styles$d.icon
3602
2403
  }));
3603
- };
2404
+ }
3604
2405
 
3605
- 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"};
2406
+ var styles$a = {"container":"container","box":"box","icon":"icon","label":"label"};
3606
2407
 
3607
- var Video360 = function Video360(_ref) {
2408
+ function Video360(_ref) {
3608
2409
  var width = _ref.width,
3609
2410
  height = _ref.height,
3610
2411
  className = _ref.className;
@@ -3619,10 +2420,10 @@ var Video360 = function Video360(_ref) {
3619
2420
  }), /*#__PURE__*/React.createElement("div", {
3620
2421
  className: styles$a.label
3621
2422
  }, "360"));
3622
- };
2423
+ }
3623
2424
 
3624
2425
  /* eslint-disable react/prop-types */
3625
- var VideoLoop = function VideoLoop(_ref) {
2426
+ function VideoLoop(_ref) {
3626
2427
  var width = _ref.width,
3627
2428
  height = _ref.height,
3628
2429
  className = _ref.className;
@@ -3637,34 +2438,23 @@ var VideoLoop = function VideoLoop(_ref) {
3637
2438
  icon: faRedo,
3638
2439
  className: styles$d.icon
3639
2440
  }));
3640
- };
2441
+ }
3641
2442
 
3642
- var styles$9 = {"container":"micromag-core-screens-screen-sizer-container","frame":"micromag-core-screens-screen-sizer-frame","screen":"micromag-core-screens-screen-sizer-screen"};
2443
+ var styles$9 = {"container":"container","frame":"frame","screen":"screen"};
3643
2444
 
3644
- var propTypes$a = {
3645
- width: PropTypes.number,
3646
- height: PropTypes.number,
3647
- fit: PropTypes.oneOf([null, 'cover', 'contain']),
3648
- screenWidth: PropTypes.number,
3649
- screenHeight: PropTypes.number,
3650
- className: PropTypes.string,
3651
- children: PropTypes.node.isRequired
3652
- };
3653
- var defaultProps$a = {
3654
- width: null,
3655
- height: null,
3656
- fit: null,
3657
- screenWidth: 320,
3658
- screenHeight: 480,
3659
- className: null
3660
- };
3661
- var ScreenSizer = function ScreenSizer(_ref) {
3662
- var width = _ref.width,
3663
- height = _ref.height,
3664
- fit = _ref.fit,
3665
- screenWidth = _ref.screenWidth,
3666
- screenHeight = _ref.screenHeight,
3667
- className = _ref.className,
2445
+ function ScreenSizer(_ref) {
2446
+ var _ref$width = _ref.width,
2447
+ width = _ref$width === void 0 ? null : _ref$width,
2448
+ _ref$height = _ref.height,
2449
+ height = _ref$height === void 0 ? null : _ref$height,
2450
+ _ref$fit = _ref.fit,
2451
+ fit = _ref$fit === void 0 ? null : _ref$fit,
2452
+ _ref$screenWidth = _ref.screenWidth,
2453
+ screenWidth = _ref$screenWidth === void 0 ? 320 : _ref$screenWidth,
2454
+ _ref$screenHeight = _ref.screenHeight,
2455
+ screenHeight = _ref$screenHeight === void 0 ? 480 : _ref$screenHeight,
2456
+ _ref$className = _ref.className,
2457
+ className = _ref$className === void 0 ? null : _ref$className,
3668
2458
  children = _ref.children;
3669
2459
  var hasSize = width !== null || height !== null;
3670
2460
  //
@@ -3748,49 +2538,32 @@ var ScreenSizer = function ScreenSizer(_ref) {
3748
2538
  width: screenWidth,
3749
2539
  height: screenHeight
3750
2540
  })))) : null);
3751
- };
3752
- ScreenSizer.propTypes = propTypes$a;
3753
- ScreenSizer.defaultProps = defaultProps$a;
2541
+ }
3754
2542
 
3755
- var styles$8 = {"container":"micromag-core-screens-screen-container"};
2543
+ var styles$8 = {"container":"container"};
3756
2544
 
3757
- var propTypes$9 = {
3758
- screen: PropTypes$1.storyComponent.isRequired,
3759
- renderContext: PropTypes$1.renderContext,
3760
- screenState: PropTypes.string,
3761
- index: PropTypes.number,
3762
- active: PropTypes.bool,
3763
- preload: PropTypes.bool,
3764
- current: PropTypes.bool,
3765
- component: PropTypes.node,
3766
- components: PropTypes$1.components,
3767
- className: PropTypes.string,
3768
- mediaRef: PropTypes.func
3769
- };
3770
- var defaultProps$9 = {
3771
- active: true,
3772
- renderContext: null,
3773
- screenState: null,
3774
- index: null,
3775
- current: false,
3776
- preload: true,
3777
- component: null,
3778
- components: null,
3779
- className: null,
3780
- mediaRef: null
3781
- };
3782
- var Screen$1 = function Screen(_ref) {
2545
+ function Screen(_ref) {
3783
2546
  var screen = _ref.screen,
3784
- renderContext = _ref.renderContext,
3785
- screenState = _ref.screenState,
3786
- index = _ref.index,
3787
- active = _ref.active,
3788
- current = _ref.current,
3789
- preload = _ref.preload,
3790
- components = _ref.components,
3791
- component = _ref.component,
3792
- className = _ref.className,
3793
- mediaRef = _ref.mediaRef;
2547
+ _ref$renderContext = _ref.renderContext,
2548
+ renderContext = _ref$renderContext === void 0 ? null : _ref$renderContext,
2549
+ _ref$screenState = _ref.screenState,
2550
+ screenState = _ref$screenState === void 0 ? null : _ref$screenState,
2551
+ _ref$index = _ref.index,
2552
+ index = _ref$index === void 0 ? null : _ref$index,
2553
+ _ref$active = _ref.active,
2554
+ active = _ref$active === void 0 ? true : _ref$active,
2555
+ _ref$current = _ref.current,
2556
+ current = _ref$current === void 0 ? false : _ref$current,
2557
+ _ref$preload = _ref.preload,
2558
+ preload = _ref$preload === void 0 ? true : _ref$preload,
2559
+ _ref$components = _ref.components,
2560
+ components = _ref$components === void 0 ? null : _ref$components,
2561
+ _ref$component = _ref.component,
2562
+ component = _ref$component === void 0 ? null : _ref$component,
2563
+ _ref$className = _ref.className,
2564
+ className = _ref$className === void 0 ? null : _ref$className,
2565
+ _ref$mediaRef = _ref.mediaRef,
2566
+ mediaRef = _ref$mediaRef === void 0 ? null : _ref$mediaRef;
3794
2567
  var _ref2 = screen || {},
3795
2568
  _ref2$type = _ref2.type,
3796
2569
  type = _ref2$type === void 0 ? null : _ref2$type;
@@ -3812,39 +2585,25 @@ var Screen$1 = function Screen(_ref) {
3812
2585
  }))) : /*#__PURE__*/React.createElement("div", {
3813
2586
  className: className
3814
2587
  }, component));
3815
- };
3816
- Screen$1.propTypes = propTypes$9;
3817
- Screen$1.defaultProps = defaultProps$9;
3818
- var Screen = /*#__PURE__*/React.memo(Screen$1);
2588
+ }
3819
2589
 
3820
- var styles$7 = {"screen":"micromag-core-screens-screen-placeholder-screen"};
2590
+ var styles$7 = {"screen":"screen"};
3821
2591
 
3822
2592
  var _excluded$1 = ["screen", "layout", "screenWidth", "screenHeight", "screenState", "withSize", "className"];
3823
- var propTypes$8 = {
3824
- screen: PropTypes$1.component.isRequired,
3825
- layout: PropTypes.string,
3826
- screenWidth: PropTypes.number,
3827
- screenHeight: PropTypes.number,
3828
- screenState: PropTypes.string,
3829
- withSize: PropTypes.bool,
3830
- className: PropTypes.string
3831
- };
3832
- var defaultProps$8 = {
3833
- layout: undefined,
3834
- screenState: null,
3835
- screenWidth: 100,
3836
- screenHeight: 150,
3837
- withSize: false,
3838
- className: null
3839
- };
3840
- var ScreenPlaceholder = function ScreenPlaceholder(_ref) {
2593
+ function ScreenPlaceholder(_ref) {
3841
2594
  var screen = _ref.screen,
3842
- layout = _ref.layout,
3843
- screenWidth = _ref.screenWidth,
3844
- screenHeight = _ref.screenHeight,
3845
- screenState = _ref.screenState,
3846
- withSize = _ref.withSize,
3847
- className = _ref.className,
2595
+ _ref$layout = _ref.layout,
2596
+ layout = _ref$layout === void 0 ? undefined : _ref$layout,
2597
+ _ref$screenWidth = _ref.screenWidth,
2598
+ screenWidth = _ref$screenWidth === void 0 ? 100 : _ref$screenWidth,
2599
+ _ref$screenHeight = _ref.screenHeight,
2600
+ screenHeight = _ref$screenHeight === void 0 ? 150 : _ref$screenHeight,
2601
+ _ref$screenState = _ref.screenState,
2602
+ screenState = _ref$screenState === void 0 ? null : _ref$screenState,
2603
+ _ref$withSize = _ref.withSize,
2604
+ withSize = _ref$withSize === void 0 ? false : _ref$withSize,
2605
+ _ref$className = _ref.className,
2606
+ className = _ref$className === void 0 ? null : _ref$className,
3848
2607
  props = _objectWithoutProperties(_ref, _excluded$1);
3849
2608
  var screenElement = /*#__PURE__*/React.createElement(Screen, Object.assign({
3850
2609
  screen: screen,
@@ -3858,46 +2617,30 @@ var ScreenPlaceholder = function ScreenPlaceholder(_ref) {
3858
2617
  screenWidth: screenWidth,
3859
2618
  screenHeight: screenHeight
3860
2619
  }, screenElement) : screenElement;
3861
- };
3862
- ScreenPlaceholder.propTypes = propTypes$8;
3863
- ScreenPlaceholder.defaultProps = defaultProps$8;
3864
- var Placeholder = /*#__PURE__*/React.memo(ScreenPlaceholder);
2620
+ }
3865
2621
 
3866
- var styles$6 = {"screen":"micromag-core-screens-preview-screen"};
2622
+ var styles$6 = {"screen":"screen"};
3867
2623
 
3868
2624
  var _excluded = ["screen", "screenState", "width", "height", "screenWidth", "screenHeight", "className", "withSize", "fit", "hidden"];
3869
- var propTypes$7 = {
3870
- screen: PropTypes$1.component.isRequired,
3871
- screenState: PropTypes.string,
3872
- width: PropTypes.number,
3873
- height: PropTypes.number,
3874
- screenWidth: PropTypes.number,
3875
- screenHeight: PropTypes.number,
3876
- className: PropTypes.string,
3877
- withSize: PropTypes.bool,
3878
- hidden: PropTypes.bool
3879
- };
3880
- var defaultProps$7 = {
3881
- screenState: null,
3882
- width: undefined,
3883
- height: undefined,
3884
- screenWidth: undefined,
3885
- screenHeight: undefined,
3886
- className: null,
3887
- withSize: false,
3888
- hidden: false
3889
- };
3890
- var ScreenPreview = function ScreenPreview(_ref) {
2625
+ function ScreenPreview(_ref) {
3891
2626
  var screen = _ref.screen,
3892
- screenState = _ref.screenState,
3893
- width = _ref.width,
3894
- height = _ref.height,
3895
- screenWidth = _ref.screenWidth,
3896
- screenHeight = _ref.screenHeight,
3897
- className = _ref.className,
3898
- withSize = _ref.withSize,
2627
+ _ref$screenState = _ref.screenState,
2628
+ screenState = _ref$screenState === void 0 ? null : _ref$screenState,
2629
+ _ref$width = _ref.width,
2630
+ width = _ref$width === void 0 ? undefined : _ref$width,
2631
+ _ref$height = _ref.height,
2632
+ height = _ref$height === void 0 ? undefined : _ref$height,
2633
+ _ref$screenWidth = _ref.screenWidth,
2634
+ screenWidth = _ref$screenWidth === void 0 ? undefined : _ref$screenWidth,
2635
+ _ref$screenHeight = _ref.screenHeight,
2636
+ screenHeight = _ref$screenHeight === void 0 ? undefined : _ref$screenHeight,
2637
+ _ref$className = _ref.className,
2638
+ className = _ref$className === void 0 ? null : _ref$className,
2639
+ _ref$withSize = _ref.withSize,
2640
+ withSize = _ref$withSize === void 0 ? false : _ref$withSize,
3899
2641
  fit = _ref.fit,
3900
- hidden = _ref.hidden,
2642
+ _ref$hidden = _ref.hidden,
2643
+ hidden = _ref$hidden === void 0 ? false : _ref$hidden,
3901
2644
  props = _objectWithoutProperties(_ref, _excluded);
3902
2645
  var screenElement = /*#__PURE__*/React.createElement(Screen, Object.assign({
3903
2646
  screen: screen,
@@ -3917,14 +2660,11 @@ var ScreenPreview = function ScreenPreview(_ref) {
3917
2660
  fit: fit
3918
2661
  }, element) : element;
3919
2662
  return screenWithSize;
3920
- };
3921
- ScreenPreview.propTypes = propTypes$7;
3922
- ScreenPreview.defaultProps = defaultProps$7;
3923
- var Preview = /*#__PURE__*/React.memo(ScreenPreview);
2663
+ }
3924
2664
 
3925
- var styles$5 = {"container":"micromag-core-placeholders-conversation-container","icon":"micromag-core-placeholders-conversation-icon","message":"micromag-core-placeholders-conversation-message","placeholderMessage0":"micromag-core-placeholders-conversation-placeholderMessage0","placeholderMessage1":"micromag-core-placeholders-conversation-placeholderMessage1","placeholderMessage2":"micromag-core-placeholders-conversation-placeholderMessage2","placeholderMessage3":"micromag-core-placeholders-conversation-placeholderMessage3"};
2665
+ var styles$5 = {"container":"container","icon":"icon","message":"message","placeholderMessage0":"placeholderMessage0","placeholderMessage1":"placeholderMessage1","placeholderMessage2":"placeholderMessage2","placeholderMessage3":"placeholderMessage3"};
3926
2666
 
3927
- var Conversation = function Conversation() {
2667
+ function Conversation() {
3928
2668
  return /*#__PURE__*/React.createElement("div", {
3929
2669
  className: styles$5.container
3930
2670
  }, _toConsumableArray(Array(4)).map(function (e, idx) {
@@ -3936,10 +2676,10 @@ var Conversation = function Conversation() {
3936
2676
  icon: faCommentDots,
3937
2677
  className: styles$5.icon
3938
2678
  }));
3939
- };
2679
+ }
3940
2680
 
3941
2681
  /* eslint-disable react/prop-types */
3942
- var InputText = function InputText(_ref) {
2682
+ function InputText(_ref) {
3943
2683
  var _ref$width = _ref.width,
3944
2684
  width = _ref$width === void 0 ? '75%' : _ref$width,
3945
2685
  _ref$height = _ref.height,
@@ -3951,11 +2691,11 @@ var InputText = function InputText(_ref) {
3951
2691
  height: height,
3952
2692
  className: className
3953
2693
  });
3954
- };
2694
+ }
3955
2695
 
3956
- 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"};
2696
+ var styles$4 = {"container":"container","block":"block","answer":"answer","answerIcon":"answerIcon","good":"good"};
3957
2697
 
3958
- var Answer$1 = function Answer(_ref) {
2698
+ function Answer$1(_ref) {
3959
2699
  var _ref$width = _ref.width,
3960
2700
  width = _ref$width === void 0 ? '75%' : _ref$width,
3961
2701
  _ref$height = _ref.height,
@@ -3979,11 +2719,11 @@ var Answer$1 = function Answer(_ref) {
3979
2719
  line: 1,
3980
2720
  height: "0.2em"
3981
2721
  })));
3982
- };
2722
+ }
3983
2723
 
3984
- 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"};
2724
+ var styles$3 = {"container":"container","box":"box","icon":"icon","item":"item"};
3985
2725
 
3986
- var Title = function Title(props) {
2726
+ function Title(props) {
3987
2727
  return /*#__PURE__*/React.createElement(PlaceholderBlock, Object.assign({}, props, {
3988
2728
  width: "100%",
3989
2729
  height: "100%",
@@ -4005,11 +2745,11 @@ var Title = function Title(props) {
4005
2745
  icon: faCircle,
4006
2746
  className: styles$3.icon
4007
2747
  })));
4008
- };
2748
+ }
4009
2749
 
4010
- 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"};
2750
+ var styles$2 = {"container":"container","block":"block","percent":"percent","percentIcon":"percentIcon"};
4011
2751
 
4012
- var Answer = function Answer(_ref) {
2752
+ function Answer(_ref) {
4013
2753
  var _ref$width = _ref.width,
4014
2754
  width = _ref$width === void 0 ? '75%' : _ref$width,
4015
2755
  _ref$height = _ref.height,
@@ -4031,7 +2771,7 @@ var Answer = function Answer(_ref) {
4031
2771
  className: styles$2.percentIcon,
4032
2772
  icon: faPercent
4033
2773
  })));
4034
- };
2774
+ }
4035
2775
 
4036
2776
  var Placeholders = /*#__PURE__*/Object.freeze({
4037
2777
  __proto__: null,
@@ -4060,36 +2800,23 @@ var Placeholders = /*#__PURE__*/Object.freeze({
4060
2800
  });
4061
2801
 
4062
2802
  /* eslint-disable react/jsx-props-no-spreading */
4063
- var propTypes$6 = {
4064
- children: PropTypes.node,
4065
- placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
4066
- preview: PropTypes.node,
4067
- empty: PropTypes.node,
4068
- emptyLabel: PropTypes$1.label,
4069
- isEmpty: PropTypes.bool,
4070
- placeholderProps: PropTypes.object,
4071
- // eslint-disable-line
4072
- emptyClassName: PropTypes.string
4073
- };
4074
- var defaultProps$6 = {
4075
- children: null,
4076
- placeholder: null,
4077
- preview: null,
4078
- empty: null,
4079
- emptyLabel: null,
4080
- isEmpty: false,
4081
- placeholderProps: null,
4082
- emptyClassName: null
4083
- };
4084
- var ScreenElement = function ScreenElement(_ref) {
4085
- var children = _ref.children,
4086
- placeholder = _ref.placeholder,
4087
- empty = _ref.empty,
4088
- emptyLabel = _ref.emptyLabel,
4089
- preview = _ref.preview,
4090
- isEmpty = _ref.isEmpty,
4091
- placeholderProps = _ref.placeholderProps,
4092
- emptyClassName = _ref.emptyClassName;
2803
+ function ScreenElement(_ref) {
2804
+ var _ref$children = _ref.children,
2805
+ children = _ref$children === void 0 ? null : _ref$children,
2806
+ _ref$placeholder = _ref.placeholder,
2807
+ placeholder = _ref$placeholder === void 0 ? null : _ref$placeholder,
2808
+ _ref$empty = _ref.empty,
2809
+ empty = _ref$empty === void 0 ? null : _ref$empty,
2810
+ _ref$emptyLabel = _ref.emptyLabel,
2811
+ emptyLabel = _ref$emptyLabel === void 0 ? null : _ref$emptyLabel,
2812
+ _ref$preview = _ref.preview,
2813
+ preview = _ref$preview === void 0 ? null : _ref$preview,
2814
+ _ref$isEmpty = _ref.isEmpty,
2815
+ isEmpty = _ref$isEmpty === void 0 ? false : _ref$isEmpty,
2816
+ _ref$placeholderProps = _ref.placeholderProps,
2817
+ placeholderProps = _ref$placeholderProps === void 0 ? null : _ref$placeholderProps,
2818
+ _ref$emptyClassName = _ref.emptyClassName,
2819
+ emptyClassName = _ref$emptyClassName === void 0 ? null : _ref$emptyClassName;
4093
2820
  var _useScreenRenderConte = useScreenRenderContext(),
4094
2821
  isPlaceholder = _useScreenRenderConte.isPlaceholder,
4095
2822
  isEdit = _useScreenRenderConte.isEdit,
@@ -4107,25 +2834,16 @@ var ScreenElement = function ScreenElement(_ref) {
4107
2834
  return preview;
4108
2835
  }
4109
2836
  return children;
4110
- };
4111
- ScreenElement.propTypes = propTypes$6;
4112
- ScreenElement.defaultProps = defaultProps$6;
2837
+ }
4113
2838
 
4114
- var styles$1 = {"container":"micromag-core-screens-container","screen":"micromag-core-screens-screen","visible":"micromag-core-screens-visible"};
2839
+ var styles$1 = {"container":"container","screen":"screen","visible":"visible"};
4115
2840
 
4116
- var propTypes$5 = {
4117
- screens: PropTypes$1.storyComponents.isRequired,
4118
- screen: PropTypes.string,
4119
- className: PropTypes.string
4120
- };
4121
- var defaultProps$5 = {
4122
- screen: null,
4123
- className: null
4124
- };
4125
- var Screens = function Screens(_ref) {
2841
+ function Screens(_ref) {
4126
2842
  var screens = _ref.screens,
4127
- screenId = _ref.screen,
4128
- className = _ref.className;
2843
+ _ref$screen = _ref.screen,
2844
+ screenId = _ref$screen === void 0 ? null : _ref$screen,
2845
+ _ref$className = _ref.className,
2846
+ className = _ref$className === void 0 ? null : _ref$className;
4129
2847
  return /*#__PURE__*/React.createElement("div", {
4130
2848
  className: classNames([styles$1.container, _defineProperty({}, className, className)])
4131
2849
  }, screens.map(function (screen) {
@@ -4136,65 +2854,39 @@ var Screens = function Screens(_ref) {
4136
2854
  className: classNames([styles$1.screen, _defineProperty({}, styles$1.visible, screenId === id)])
4137
2855
  });
4138
2856
  }));
4139
- };
4140
- Screens.propTypes = propTypes$5;
4141
- Screens.defaultProps = defaultProps$5;
2857
+ }
4142
2858
 
4143
- var styles = {"container":"micromag-core-transitions-transition-container","fullscreen":"micromag-core-transitions-transition-fullscreen"};
2859
+ var styles = {"container":"container","fullscreen":"fullscreen"};
4144
2860
 
4145
- var propTypes$4 = {
4146
- fullscreen: PropTypes.bool,
4147
- from: PropTypes.objectOf(PropTypes.any),
4148
- // eslint-disable-line react/forbid-prop-types
4149
- to: PropTypes.objectOf(PropTypes.any),
4150
- // eslint-disable-line react/forbid-prop-types
4151
- playing: PropTypes.bool,
4152
- direction: PropTypes.oneOf(['in', 'out']),
4153
- delay: PropTypes.number,
4154
- reversible: PropTypes.bool,
4155
- duration: PropTypes.number,
4156
- easing: PropTypes.func,
4157
- config: PropTypes.shape({
4158
- mass: PropTypes.number,
4159
- friction: PropTypes.number,
4160
- tension: PropTypes.number
4161
- }),
4162
- children: PropTypes.node,
4163
- className: PropTypes.string,
4164
- onStart: PropTypes.func,
4165
- onComplete: PropTypes.func
4166
- };
4167
- var defaultProps$4 = {
4168
- fullscreen: false,
4169
- from: null,
4170
- to: null,
4171
- playing: false,
4172
- direction: null,
4173
- delay: 0,
4174
- reversible: true,
4175
- duration: undefined,
4176
- easing: undefined,
4177
- config: null,
4178
- children: null,
4179
- className: null,
4180
- onStart: null,
4181
- onComplete: null
4182
- };
4183
2861
  function Transition(_ref) {
4184
- var fullscreen = _ref.fullscreen,
4185
- from = _ref.from,
4186
- to = _ref.to,
4187
- playing = _ref.playing,
4188
- direction = _ref.direction,
4189
- delay = _ref.delay,
4190
- reversible = _ref.reversible,
4191
- duration = _ref.duration,
4192
- easing = _ref.easing,
4193
- config$1 = _ref.config,
4194
- children = _ref.children,
4195
- className = _ref.className,
4196
- onStart = _ref.onStart,
4197
- onComplete = _ref.onComplete;
2862
+ var _ref$fullscreen = _ref.fullscreen,
2863
+ fullscreen = _ref$fullscreen === void 0 ? false : _ref$fullscreen,
2864
+ _ref$from = _ref.from,
2865
+ from = _ref$from === void 0 ? null : _ref$from,
2866
+ _ref$to = _ref.to,
2867
+ to = _ref$to === void 0 ? null : _ref$to,
2868
+ _ref$playing = _ref.playing,
2869
+ playing = _ref$playing === void 0 ? false : _ref$playing,
2870
+ _ref$direction = _ref.direction,
2871
+ direction = _ref$direction === void 0 ? null : _ref$direction,
2872
+ _ref$delay = _ref.delay,
2873
+ delay = _ref$delay === void 0 ? 0 : _ref$delay,
2874
+ _ref$reversible = _ref.reversible,
2875
+ reversible = _ref$reversible === void 0 ? true : _ref$reversible,
2876
+ _ref$duration = _ref.duration,
2877
+ duration = _ref$duration === void 0 ? undefined : _ref$duration,
2878
+ _ref$easing = _ref.easing,
2879
+ easing = _ref$easing === void 0 ? undefined : _ref$easing,
2880
+ _ref$config = _ref.config,
2881
+ config$1 = _ref$config === void 0 ? null : _ref$config,
2882
+ _ref$children = _ref.children,
2883
+ children = _ref$children === void 0 ? null : _ref$children,
2884
+ _ref$className = _ref.className,
2885
+ className = _ref$className === void 0 ? null : _ref$className,
2886
+ _ref$onStart = _ref.onStart,
2887
+ onStart = _ref$onStart === void 0 ? null : _ref$onStart,
2888
+ _ref$onComplete = _ref.onComplete,
2889
+ onComplete = _ref$onComplete === void 0 ? null : _ref$onComplete;
4198
2890
  var _useSpring = useSpring(function () {
4199
2891
  return {};
4200
2892
  }),
@@ -4231,8 +2923,6 @@ function Transition(_ref) {
4231
2923
  className: classNames([styles.container, _defineProperty(_defineProperty({}, className, className !== null), styles.fullscreen, fullscreen)])
4232
2924
  }, children);
4233
2925
  }
4234
- Transition.propTypes = propTypes$4;
4235
- Transition.defaultProps = defaultProps$4;
4236
2926
 
4237
2927
  /* eslint-disable react/jsx-props-no-spreading */
4238
2928
  function Fade(props) {
@@ -4275,32 +2965,21 @@ var TransitionComponents = {
4275
2965
  Scale: Scale
4276
2966
  };
4277
2967
 
4278
- var propTypes$3 = {
4279
- fullscreen: PropTypes.bool,
4280
- playing: PropTypes.bool,
4281
- delay: PropTypes.number,
4282
- transitions: PropTypes$1.transitions,
4283
- onComplete: PropTypes.func,
4284
- disabled: PropTypes.bool,
4285
- children: PropTypes.node
4286
- };
4287
- var defaultProps$3 = {
4288
- fullscreen: false,
4289
- playing: false,
4290
- delay: 0,
4291
- transitions: null,
4292
- onComplete: null,
4293
- disabled: false,
4294
- children: null
4295
- };
4296
2968
  function Transitions(_ref) {
4297
- var fullscreen = _ref.fullscreen,
4298
- playing = _ref.playing,
4299
- delay = _ref.delay,
4300
- transitions = _ref.transitions,
4301
- onComplete = _ref.onComplete,
4302
- disabled = _ref.disabled,
4303
- children = _ref.children;
2969
+ var _ref$fullscreen = _ref.fullscreen,
2970
+ fullscreen = _ref$fullscreen === void 0 ? false : _ref$fullscreen,
2971
+ _ref$playing = _ref.playing,
2972
+ playing = _ref$playing === void 0 ? false : _ref$playing,
2973
+ _ref$delay = _ref.delay,
2974
+ delay = _ref$delay === void 0 ? 0 : _ref$delay,
2975
+ _ref$transitions = _ref.transitions,
2976
+ transitions = _ref$transitions === void 0 ? null : _ref$transitions,
2977
+ _ref$onComplete = _ref.onComplete,
2978
+ onComplete = _ref$onComplete === void 0 ? null : _ref$onComplete,
2979
+ _ref$disabled = _ref.disabled,
2980
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
2981
+ _ref$children = _ref.children,
2982
+ children = _ref$children === void 0 ? null : _ref$children;
4304
2983
  var _useScreenSize = useScreenSize(),
4305
2984
  _useScreenSize$landsc = _useScreenSize.landscape,
4306
2985
  landscape = _useScreenSize$landsc === void 0 ? true : _useScreenSize$landsc;
@@ -4356,35 +3035,22 @@ function Transitions(_ref) {
4356
3035
  direction: !sameTransitionInOut ? 'in' : null
4357
3036
  }, transitionInProps), renderTransitionOut) : renderTransitionOut;
4358
3037
  }
4359
- Transitions.propTypes = propTypes$3;
4360
- Transitions.defaultProps = defaultProps$3;
4361
3038
 
4362
- var propTypes$2 = {
4363
- transitions: PropTypes$1.transitions,
4364
- stagger: PropTypes.number,
4365
- playing: PropTypes.bool,
4366
- disabled: PropTypes.bool,
4367
- delay: PropTypes.number,
4368
- fullscreen: PropTypes.bool,
4369
- children: PropTypes.node
4370
- };
4371
- var defaultProps$2 = {
4372
- transitions: null,
4373
- stagger: 0,
4374
- playing: false,
4375
- disabled: false,
4376
- delay: 0,
4377
- fullscreen: false,
4378
- children: null
4379
- };
4380
- var TransitionsStagger = function TransitionsStagger(_ref) {
4381
- var transitions = _ref.transitions,
4382
- stagger = _ref.stagger,
4383
- playing = _ref.playing,
4384
- disabled = _ref.disabled,
4385
- delay = _ref.delay,
4386
- fullscreen = _ref.fullscreen,
4387
- children = _ref.children;
3039
+ function TransitionsStagger(_ref) {
3040
+ var _ref$transitions = _ref.transitions,
3041
+ transitions = _ref$transitions === void 0 ? null : _ref$transitions,
3042
+ _ref$stagger = _ref.stagger,
3043
+ stagger = _ref$stagger === void 0 ? 0 : _ref$stagger,
3044
+ _ref$playing = _ref.playing,
3045
+ playing = _ref$playing === void 0 ? false : _ref$playing,
3046
+ _ref$disabled = _ref.disabled,
3047
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
3048
+ _ref$delay = _ref.delay,
3049
+ delay = _ref$delay === void 0 ? 0 : _ref$delay,
3050
+ _ref$fullscreen = _ref.fullscreen,
3051
+ fullscreen = _ref$fullscreen === void 0 ? false : _ref$fullscreen,
3052
+ _ref$children = _ref.children,
3053
+ children = _ref$children === void 0 ? null : _ref$children;
4388
3054
  var validIndex = 0;
4389
3055
  var elements = React.Children.map(children, function (child) {
4390
3056
  if (!child) {
@@ -4408,24 +3074,15 @@ var TransitionsStagger = function TransitionsStagger(_ref) {
4408
3074
  return el;
4409
3075
  });
4410
3076
  return elements;
4411
- };
4412
- TransitionsStagger.propTypes = propTypes$2;
4413
- TransitionsStagger.defaultProps = defaultProps$2;
3077
+ }
4414
3078
 
4415
- var propTypes$1 = {
4416
- selector: PropTypes.string,
4417
- highlightSelector: PropTypes.string,
4418
- style: PropTypes.objectOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number]))
4419
- };
4420
- var defaultProps$1 = {
4421
- selector: null,
4422
- highlightSelector: 'mark',
4423
- style: null
4424
- };
4425
- var HighlightStyle = function HighlightStyle(_ref) {
4426
- var selector = _ref.selector,
4427
- highlightSelector = _ref.highlightSelector,
4428
- style = _ref.style;
3079
+ function HighlightStyle(_ref) {
3080
+ var _ref$selector = _ref.selector,
3081
+ selector = _ref$selector === void 0 ? null : _ref$selector,
3082
+ _ref$highlightSelecto = _ref.highlightSelector,
3083
+ highlightSelector = _ref$highlightSelecto === void 0 ? 'mark' : _ref$highlightSelecto,
3084
+ _ref$style = _ref.style,
3085
+ style = _ref$style === void 0 ? null : _ref$style;
4429
3086
  return style !== null ? /*#__PURE__*/React.createElement("style", {
4430
3087
  type: "text/css",
4431
3088
  dangerouslySetInnerHTML: {
@@ -4434,24 +3091,15 @@ var HighlightStyle = function HighlightStyle(_ref) {
4434
3091
  }).join(' '), "{").concat(convertStyleToString(style), "}")
4435
3092
  }
4436
3093
  }) : null;
4437
- };
4438
- HighlightStyle.propTypes = propTypes$1;
4439
- HighlightStyle.defaultProps = defaultProps$1;
3094
+ }
4440
3095
 
4441
- var propTypes = {
4442
- selector: PropTypes.string,
4443
- linkSelector: PropTypes.string,
4444
- style: PropTypes.objectOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number]))
4445
- };
4446
- var defaultProps = {
4447
- selector: null,
4448
- linkSelector: 'a',
4449
- style: null
4450
- };
4451
- var LinkStyle = function LinkStyle(_ref) {
4452
- var selector = _ref.selector,
4453
- linkSelector = _ref.linkSelector,
4454
- style = _ref.style;
3096
+ function LinkStyle(_ref) {
3097
+ var _ref$selector = _ref.selector,
3098
+ selector = _ref$selector === void 0 ? null : _ref$selector,
3099
+ _ref$linkSelector = _ref.linkSelector,
3100
+ linkSelector = _ref$linkSelector === void 0 ? 'a' : _ref$linkSelector,
3101
+ _ref$style = _ref.style,
3102
+ style = _ref$style === void 0 ? null : _ref$style;
4455
3103
  return style !== null ? /*#__PURE__*/React.createElement("style", {
4456
3104
  type: "text/css",
4457
3105
  dangerouslySetInnerHTML: {
@@ -4460,8 +3108,6 @@ var LinkStyle = function LinkStyle(_ref) {
4460
3108
  }).join(' '), "{").concat(convertStyleToString(style), "}")
4461
3109
  }
4462
3110
  }) : null;
4463
- };
4464
- LinkStyle.propTypes = propTypes;
4465
- LinkStyle.defaultProps = defaultProps;
3111
+ }
4466
3112
 
4467
- export { ArrowIcon, BackButton, Breadcrumb, Button$1 as Button, Buttons, Card, ClearButton, Close, CloseIcon, CollapsablePanel, Date$1 as Date, Detector, Dropdown as DropdownMenu, ElementComponent as Element, Empty, FieldForm, FontFaces, Form, FormPanel, FullscreenIcon, HighlightStyle, Label, Link, LinkIcon, LinkStyle, Media, _Menu as Menu, Meta, Modal, ModalDialog, ModalPortal, Modals, MuteIcon, Navbar, PaginationMenu as Pagination, Panel, PanelPortal, Panels, PauseIcon, AdFrame as PlaceholderAdFrame, AdImage as PlaceholderAdImage, Audio as PlaceholderAudio, Button as PlaceholderButton, Image as PlaceholderImage, Line as PlaceholderLine, Map as PlaceholderMap, MapPath as PlaceholderMapPath, Quote as PlaceholderQuote, ShortText as PlaceholderShortText, Subtitle as PlaceholderSubtitle, TextPlaceholder as PlaceholderText, Timeline as PlaceholderTimeline, Title$1 as PlaceholderTitle, Video as PlaceholderVideo, Video360 as PlaceholderVideo360, VideoLoop as PlaceholderVideoLoop, PlayIcon, Screen, ScreenElement, Placeholder as ScreenPlaceholder, Preview as ScreenPreview, ScreenSizer, Screens, Slideshow, Spinner, TabsMenu as Tabs, Transitions, TransitionsStagger, UnmuteIcon };
3113
+ export { ArrowIcon, BackButton, Breadcrumb, Button$1 as Button, Buttons, Card, ClearButton, Close, CloseIcon, CollapsablePanel, Date$1 as Date, Detector, Dropdown as DropdownMenu, ElementComponent as Element, Empty, FieldForm, FontFaces, Form, FormPanel, FullscreenIcon, HighlightStyle, Label, Link, LinkIcon, LinkStyle, Media, Menu, Meta, Modal, ModalDialog, ModalPortal, Modals, MuteIcon, Navbar, PaginationMenu as Pagination, Panel, PanelPortal, Panels, PauseIcon, AdFrame as PlaceholderAdFrame, AdImage as PlaceholderAdImage, Audio as PlaceholderAudio, Button as PlaceholderButton, Image as PlaceholderImage, Line as PlaceholderLine, Map as PlaceholderMap, MapPath as PlaceholderMapPath, Quote as PlaceholderQuote, ShortText as PlaceholderShortText, Subtitle as PlaceholderSubtitle, TextPlaceholder as PlaceholderText, Timeline as PlaceholderTimeline, Title$1 as PlaceholderTitle, Video as PlaceholderVideo, Video360 as PlaceholderVideo360, VideoLoop as PlaceholderVideoLoop, PlayIcon, Screen, ScreenElement, ScreenPlaceholder, ScreenPreview, ScreenSizer, Screens, Slideshow, Spinner, TabsMenu as Tabs, Transitions, TransitionsStagger, UnmuteIcon };