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