@micromag/core 0.4.49 → 0.4.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/components.js CHANGED
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var React = require('react');
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
4
5
  var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
5
6
  var faAngleLeft = require('@fortawesome/free-solid-svg-icons/faAngleLeft');
6
7
  var reactFontawesome = require('@fortawesome/react-fontawesome');
@@ -9,11 +10,11 @@ var _defineProperty = require('@babel/runtime/helpers/defineProperty');
9
10
  var wouter = require('wouter');
10
11
  var reactIntl = require('react-intl');
11
12
  var utils = require('@micromag/core/utils');
12
- var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
13
13
  var faClose = require('@fortawesome/free-solid-svg-icons/faClose');
14
14
  var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
15
15
  var faAngleDown = require('@fortawesome/free-solid-svg-icons/faAngleDown');
16
16
  var faAngleUp = require('@fortawesome/free-solid-svg-icons/faAngleUp');
17
+ var React = require('react');
17
18
  var dayjs = require('dayjs');
18
19
  var throttle = require('lodash/throttle');
19
20
  var hooks = require('@micromag/core/hooks');
@@ -43,7 +44,6 @@ var size = require('@folklore/size');
43
44
  var core = require('@react-spring/core');
44
45
  var web = require('@react-spring/web');
45
46
 
46
- /* eslint-disable react/jsx-props-no-spreading */
47
47
  var emptyObject$2 = {};
48
48
  function Label(_ref) {
49
49
  var children = _ref.children,
@@ -52,7 +52,7 @@ function Label(_ref) {
52
52
  _ref$values = _ref.values,
53
53
  values = _ref$values === void 0 ? emptyObject$2 : _ref$values;
54
54
  var Message = isHtml ? reactIntl.FormattedMessage : reactIntl.FormattedMessage;
55
- return utils.isMessage(children) ? /*#__PURE__*/React.createElement(Message, Object.assign({
55
+ return utils.isMessage(children) ? /*#__PURE__*/jsxRuntime.jsx(Message, _objectSpread({
56
56
  values: values
57
57
  }, children)) : children;
58
58
  }
@@ -122,22 +122,35 @@ function Button$1(_ref) {
122
122
  refButton = _ref$refButton === void 0 ? null : _ref$refButton,
123
123
  props = _objectWithoutProperties(_ref, _excluded$c);
124
124
  var finalLabel = label || children;
125
- var text = finalLabel !== null ? /*#__PURE__*/React.createElement(Label, null, finalLabel) : null;
125
+ var text = finalLabel !== null ? /*#__PURE__*/jsxRuntime.jsx(Label, {
126
+ children: finalLabel
127
+ }) : null;
126
128
  var hasChildren = label !== null && children !== null;
127
129
  var hasIcon = icon !== null;
128
130
  var hasInlineIcon = hasIcon && (iconPosition === 'inline' || text === null);
129
131
  var hasIconColumns = hasIcon && !hasInlineIcon;
130
- var content = /*#__PURE__*/React.createElement(React.Fragment, null, hasInlineIcon ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
131
- className: classNames([styles$y.icon, iconClassName])
132
- }, icon), text !== null ? /*#__PURE__*/React.createElement("span", {
133
- className: classNames([styles$y.label, labelClassName])
134
- }, text) : null) : null, hasIconColumns ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
135
- className: classNames([styles$y.left, iconPosition === 'left' ? iconClassName : null])
136
- }, iconPosition === 'left' ? icon : null), /*#__PURE__*/React.createElement("span", {
137
- className: classNames([styles$y.center, labelClassName])
138
- }, text), /*#__PURE__*/React.createElement("span", {
139
- className: classNames([styles$y.right, iconPosition === 'right' ? iconClassName : null])
140
- }, iconPosition === 'right' ? icon : null), hasChildren ? children : null) : null, !hasIcon ? text : null, hasChildren ? children : null);
132
+ var content = /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
133
+ children: [hasInlineIcon ? /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
134
+ children: [/*#__PURE__*/jsxRuntime.jsx("span", {
135
+ className: classNames([styles$y.icon, iconClassName]),
136
+ children: icon
137
+ }), text !== null ? /*#__PURE__*/jsxRuntime.jsx("span", {
138
+ className: classNames([styles$y.label, labelClassName]),
139
+ children: text
140
+ }) : null]
141
+ }) : null, hasIconColumns ? /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
142
+ children: [/*#__PURE__*/jsxRuntime.jsx("span", {
143
+ className: classNames([styles$y.left, iconPosition === 'left' ? iconClassName : null]),
144
+ children: iconPosition === 'left' ? icon : null
145
+ }), /*#__PURE__*/jsxRuntime.jsx("span", {
146
+ className: classNames([styles$y.center, labelClassName]),
147
+ children: text
148
+ }), /*#__PURE__*/jsxRuntime.jsx("span", {
149
+ className: classNames([styles$y.right, iconPosition === 'right' ? iconClassName : null]),
150
+ children: iconPosition === 'right' ? icon : null
151
+ }), hasChildren ? children : null]
152
+ }) : null, !hasIcon ? text : null, hasChildren ? children : null]
153
+ });
141
154
  var withStyle = !withoutTheme && !withoutStyle && !asLink;
142
155
  var buttonClassNames = classNames([!withoutBootstrapStyles ? _defineProperty(_defineProperty(_defineProperty({
143
156
  btn: withStyle
@@ -146,29 +159,32 @@ function Button$1(_ref) {
146
159
  var linkClassNames = classNames([buttonClassNames, _defineProperty({
147
160
  disabled: disabled
148
161
  }, styles$y.linkDisabled, disabled)]);
149
- return external || direct ? /*#__PURE__*/React.createElement("a", Object.assign({}, props, {
162
+ return external || direct ? /*#__PURE__*/jsxRuntime.jsx("a", _objectSpread(_objectSpread({}, props), {}, {
150
163
  href: disabled ? null : href,
151
164
  className: linkClassNames,
152
165
  onClick: onClick,
153
166
  target: external ? target : null,
154
167
  ref: refButton,
155
- tabIndex: focusable ? '' : '-1'
156
- }), content) : /*#__PURE__*/React.createElement(wouter.Link, {
168
+ tabIndex: focusable ? '' : '-1',
169
+ children: content
170
+ })) : /*#__PURE__*/jsxRuntime.jsx(wouter.Link, {
157
171
  href: href,
158
172
  className: linkClassNames,
159
173
  onClick: onClick,
160
174
  ref: refButton,
161
- tabIndex: focusable ? '' : '-1'
162
- }, content);
175
+ tabIndex: focusable ? '' : '-1',
176
+ children: content
177
+ });
163
178
  }
164
- return /*#__PURE__*/React.createElement("button", Object.assign({}, props, {
179
+ return /*#__PURE__*/jsxRuntime.jsx("button", _objectSpread(_objectSpread({}, props), {}, {
165
180
  type: type,
166
181
  className: buttonClassNames,
167
182
  onClick: onClick,
168
183
  disabled: disabled || disableOnLoading && loading,
169
184
  ref: refButton,
170
- tabIndex: focusable ? '0' : '-1'
171
- }), content);
185
+ tabIndex: focusable ? '0' : '-1',
186
+ children: content
187
+ }));
172
188
  }
173
189
 
174
190
  var styles$x = {"container":"micromag-core-buttons-container"};
@@ -190,38 +206,37 @@ function Buttons(_ref) {
190
206
  buttonClassName = _ref$buttonClassName === void 0 ? null : _ref$buttonClassName,
191
207
  _ref$className = _ref.className,
192
208
  className = _ref$className === void 0 ? null : _ref$className;
193
- return /*#__PURE__*/React.createElement("div", {
209
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
194
210
  className: classNames(['btn-group', _defineProperty({}, "btn-group-".concat(size), size !== null), styles$x.container, className]),
195
- role: "group"
196
- }, buttons.map(function (button, index) {
197
- var id = button.id;
198
- button.name;
199
- var _button$className = button.className,
200
- customClassName = _button$className === void 0 ? null : _button$className,
201
- _button$onClick = button.onClick,
202
- _onClick = _button$onClick === void 0 ? null : _button$onClick,
203
- _button$theme = button.theme,
204
- buttonTheme = _button$theme === void 0 ? null : _button$theme,
205
- buttonProps = _objectWithoutProperties(button, _excluded$b);
206
- var fixedProps = {
207
- className: classNames([styles$x.button, customClassName, buttonClassName, {}]),
208
- onClick: function onClick(e) {
209
- if (_onClick !== null) {
210
- _onClick(e, button, index);
211
- }
212
- if (onClickButton !== null) {
213
- onClickButton(e, button, index);
214
- }
215
- },
216
- theme: buttonTheme || theme
217
- };
218
- var buttonKey = id || "button-".concat(index);
219
- return renderButton !== null ? renderButton(button, index, _objectSpread({
220
- key: buttonKey
221
- }, fixedProps)) : /*#__PURE__*/React.createElement(Button$1, Object.assign({
222
- key: buttonKey
223
- }, fixedProps, buttonProps));
224
- }));
211
+ role: "group",
212
+ children: buttons.map(function (button, index) {
213
+ var id = button.id;
214
+ button.name;
215
+ var _button$className = button.className,
216
+ customClassName = _button$className === void 0 ? null : _button$className,
217
+ _button$onClick = button.onClick,
218
+ _onClick = _button$onClick === void 0 ? null : _button$onClick,
219
+ _button$theme = button.theme,
220
+ buttonTheme = _button$theme === void 0 ? null : _button$theme,
221
+ buttonProps = _objectWithoutProperties(button, _excluded$b);
222
+ var fixedProps = {
223
+ className: classNames([styles$x.button, customClassName, buttonClassName, {}]),
224
+ onClick: function onClick(e) {
225
+ if (_onClick !== null) {
226
+ _onClick(e, button, index);
227
+ }
228
+ if (onClickButton !== null) {
229
+ onClickButton(e, button, index);
230
+ }
231
+ },
232
+ theme: buttonTheme || theme
233
+ };
234
+ var buttonKey = id || "button-".concat(index);
235
+ return renderButton !== null ? renderButton(button, index, _objectSpread({
236
+ key: buttonKey
237
+ }, fixedProps)) : /*#__PURE__*/jsxRuntime.jsx(Button$1, _objectSpread(_objectSpread({}, fixedProps), buttonProps), buttonKey);
238
+ })
239
+ });
225
240
  }
226
241
 
227
242
  var _excluded$a = ["className"];
@@ -229,10 +244,10 @@ function BackButton(_ref) {
229
244
  var _ref$className = _ref.className,
230
245
  className = _ref$className === void 0 ? null : _ref$className,
231
246
  props = _objectWithoutProperties(_ref, _excluded$a);
232
- return /*#__PURE__*/React.createElement(Button$1, Object.assign({
247
+ return /*#__PURE__*/jsxRuntime.jsx(Button$1, _objectSpread({
233
248
  className: classNames(['px-2', className]),
234
249
  size: "sm",
235
- icon: /*#__PURE__*/React.createElement(reactFontawesome.FontAwesomeIcon, {
250
+ icon: /*#__PURE__*/jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon, {
236
251
  icon: faAngleLeft.faAngleLeft,
237
252
  size: "lg"
238
253
  })
@@ -248,13 +263,15 @@ function ClearButton(_ref) {
248
263
  _ref$className = _ref.className,
249
264
  className = _ref$className === void 0 ? null : _ref$className,
250
265
  props = _objectWithoutProperties(_ref, _excluded$9);
251
- return /*#__PURE__*/React.createElement("button", Object.assign({
266
+ return /*#__PURE__*/jsxRuntime.jsx("button", _objectSpread(_objectSpread({
252
267
  className: classNames([styles$w.container, className]),
253
268
  onClick: onClick
254
- }, props), /*#__PURE__*/React.createElement(reactFontawesome.FontAwesomeIcon, {
255
- className: styles$w.icon,
256
- icon: faClose.faClose,
257
- size: "md"
269
+ }, props), {}, {
270
+ children: /*#__PURE__*/jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon, {
271
+ className: styles$w.icon,
272
+ icon: faClose.faClose,
273
+ size: "md"
274
+ })
258
275
  }));
259
276
  }
260
277
 
@@ -320,25 +337,27 @@ function FieldForm(_ref) {
320
337
  closeForm: closeForm
321
338
  };
322
339
  if (form !== null) {
323
- return FormComponent !== null ? /*#__PURE__*/React.createElement(contexts.FieldContextProvider, {
324
- context: fieldContext
325
- }, /*#__PURE__*/React.createElement(FormComponent, Object.assign({
326
- field: field
327
- }, formProps, {
328
- className: className
329
- }))) : null;
340
+ return FormComponent !== null ? /*#__PURE__*/jsxRuntime.jsx(contexts.FieldContextProvider, {
341
+ context: fieldContext,
342
+ children: /*#__PURE__*/jsxRuntime.jsx(FormComponent, _objectSpread(_objectSpread({
343
+ field: field
344
+ }, formProps), {}, {
345
+ className: className
346
+ }))
347
+ }) : null;
330
348
  }
331
349
  var _ref4 = parentField || {},
332
350
  itemsProps = _ref4.itemsProps;
333
351
 
334
352
  // Use field component with isForm props
335
- return FieldComponent !== null ? /*#__PURE__*/React.createElement(contexts.FieldContextProvider, {
336
- context: fieldContext
337
- }, /*#__PURE__*/React.createElement(FieldComponent, Object.assign({
338
- className: className
339
- }, definitionProps, fieldProps, itemsProps, {
340
- isForm: true
341
- }, formProps))) : null;
353
+ return FieldComponent !== null ? /*#__PURE__*/jsxRuntime.jsx(contexts.FieldContextProvider, {
354
+ context: fieldContext,
355
+ children: /*#__PURE__*/jsxRuntime.jsx(FieldComponent, _objectSpread(_objectSpread(_objectSpread(_objectSpread({
356
+ className: className
357
+ }, definitionProps), fieldProps), itemsProps), {}, {
358
+ isForm: true
359
+ }, formProps))
360
+ }) : null;
342
361
  }
343
362
 
344
363
  var styles$v = {"container":"micromag-core-forms-form-container","panel":"micromag-core-forms-form-panel","actions":"micromag-core-forms-form-actions","left":"micromag-core-forms-form-left","right":"micromag-core-forms-form-right"};
@@ -355,7 +374,7 @@ function Form(_ref) {
355
374
  _ref$postForm = _ref.postForm,
356
375
  postForm = _ref$postForm === void 0 ? null : _ref$postForm,
357
376
  _ref$submitButtonLabe = _ref.submitButtonLabel,
358
- submitButtonLabel = _ref$submitButtonLabe === void 0 ? /*#__PURE__*/React.createElement(reactIntl.FormattedMessage, {
377
+ submitButtonLabel = _ref$submitButtonLabe === void 0 ? /*#__PURE__*/jsxRuntime.jsx(reactIntl.FormattedMessage, {
359
378
  id: "ZLDmja",
360
379
  defaultMessage: [{
361
380
  "type": 0,
@@ -482,72 +501,79 @@ function Form(_ref) {
482
501
  // styles,
483
502
  // );
484
503
 
485
- return /*#__PURE__*/React.createElement("form", {
504
+ return /*#__PURE__*/jsxRuntime.jsxs("form", {
486
505
  action: action,
487
506
  className: classNames([styles$v.container, className, {
488
507
  // 'was-validated': status !== null,
489
508
  }]),
490
509
  method: method,
491
- onSubmit: onSubmit
492
- }, !withoutBackButton && fields !== null && fields.length > 0 && fieldParams !== null ? /*#__PURE__*/React.createElement("div", {
493
- className: "mb-2"
494
- }, /*#__PURE__*/React.createElement(BackButton, {
495
- theme: "secondary",
496
- outline: true,
497
- onClick: closeFieldForm
498
- })) : null, fields !== null && fields.length > 0 && fieldParams !== null ? /*#__PURE__*/React.createElement("div", {
499
- className: classNames(['w-100', styles$v.panel]),
500
- key: "field"
501
- }, /*#__PURE__*/React.createElement(FieldForm, {
502
- name: fieldName,
503
- fields: fields,
504
- value: value,
505
- onChange: setValue,
506
- gotoFieldForm: gotoFieldForm,
507
- closeFieldForm: closeFieldForm,
508
- fieldContext: fieldContext
509
- })) : null, FieldsComponent && fields !== null && fields.length > 0 && fieldParams === null ? /*#__PURE__*/React.createElement(FieldsComponent, {
510
- fields: fields,
511
- value: value,
512
- errors: errors,
513
- onChange: setValue,
514
- gotoFieldForm: gotoFieldForm,
515
- closeFieldForm: closeFieldForm,
516
- className: classNames([styles$v.fields, fieldsClassName])
517
- }) : null, generalError ? /*#__PURE__*/React.createElement("p", {
518
- className: "text-danger my-1"
519
- }, generalError) : null, children, !withoutActions && fieldParams === null ? /*#__PURE__*/React.createElement("div", {
520
- className: classNames([styles$v.actions, actionsClassName, _defineProperty({}, styles$v[actionsAlign], actionsAlign)])
521
- }, onCancel !== null || onCancelHref !== null ? /*#__PURE__*/React.createElement(Button$1, {
522
- type: "button",
523
- onClick: onCancel,
524
- href: onCancelHref,
525
- theme: cancelButtonTheme || 'secondary',
526
- outline: true,
527
- disabled: status === 'loading',
528
- className: classNames(['me-2', cancelClassName])
529
- }, /*#__PURE__*/React.createElement(reactIntl.FormattedMessage, {
530
- id: "PyxZY2",
531
- defaultMessage: [{
532
- "type": 0,
533
- "value": "Cancel"
534
- }]
535
- })) : null, buttons !== null ? /*#__PURE__*/React.createElement(Buttons, {
536
- buttons: buttons,
537
- className: styles$v.buttons
538
- }) : /*#__PURE__*/React.createElement(Button$1, {
539
- type: "submit",
540
- theme: submitButtonTheme || 'primary',
541
- disabled: status === 'loading' || !canSave
542
- }, status === 'loading' ? submitButtonLoadingLabel || submitButtonLabel : submitButtonLabel), complete ? /*#__PURE__*/React.createElement("p", {
543
- className: "text-success mx-2 my-1"
544
- }, /*#__PURE__*/React.createElement(reactIntl.FormattedMessage, {
545
- id: "BpZoQZ",
546
- defaultMessage: [{
547
- "type": 0,
548
- "value": "Success"
549
- }]
550
- })) : null) : null);
510
+ onSubmit: onSubmit,
511
+ children: [!withoutBackButton && fields !== null && fields.length > 0 && fieldParams !== null ? /*#__PURE__*/jsxRuntime.jsx("div", {
512
+ className: "mb-2",
513
+ children: /*#__PURE__*/jsxRuntime.jsx(BackButton, {
514
+ theme: "secondary",
515
+ outline: true,
516
+ onClick: closeFieldForm
517
+ })
518
+ }) : null, fields !== null && fields.length > 0 && fieldParams !== null ? /*#__PURE__*/jsxRuntime.jsx("div", {
519
+ className: classNames(['w-100', styles$v.panel]),
520
+ children: /*#__PURE__*/jsxRuntime.jsx(FieldForm, {
521
+ name: fieldName,
522
+ fields: fields,
523
+ value: value,
524
+ onChange: setValue,
525
+ gotoFieldForm: gotoFieldForm,
526
+ closeFieldForm: closeFieldForm,
527
+ fieldContext: fieldContext
528
+ })
529
+ }, "field") : null, FieldsComponent && fields !== null && fields.length > 0 && fieldParams === null ? /*#__PURE__*/jsxRuntime.jsx(FieldsComponent, {
530
+ fields: fields,
531
+ value: value,
532
+ errors: errors,
533
+ onChange: setValue,
534
+ gotoFieldForm: gotoFieldForm,
535
+ closeFieldForm: closeFieldForm,
536
+ className: classNames([styles$v.fields, fieldsClassName])
537
+ }) : null, generalError ? /*#__PURE__*/jsxRuntime.jsx("p", {
538
+ className: "text-danger my-1",
539
+ children: generalError
540
+ }) : null, children, !withoutActions && fieldParams === null ? /*#__PURE__*/jsxRuntime.jsxs("div", {
541
+ className: classNames([styles$v.actions, actionsClassName, _defineProperty({}, styles$v[actionsAlign], actionsAlign)]),
542
+ children: [onCancel !== null || onCancelHref !== null ? /*#__PURE__*/jsxRuntime.jsx(Button$1, {
543
+ type: "button",
544
+ onClick: onCancel,
545
+ href: onCancelHref,
546
+ theme: cancelButtonTheme || 'secondary',
547
+ outline: true,
548
+ disabled: status === 'loading',
549
+ className: classNames(['me-2', cancelClassName]),
550
+ children: /*#__PURE__*/jsxRuntime.jsx(reactIntl.FormattedMessage, {
551
+ id: "PyxZY2",
552
+ defaultMessage: [{
553
+ "type": 0,
554
+ "value": "Cancel"
555
+ }]
556
+ })
557
+ }) : null, buttons !== null ? /*#__PURE__*/jsxRuntime.jsx(Buttons, {
558
+ buttons: buttons,
559
+ className: styles$v.buttons
560
+ }) : /*#__PURE__*/jsxRuntime.jsx(Button$1, {
561
+ type: "submit",
562
+ theme: submitButtonTheme || 'primary',
563
+ disabled: status === 'loading' || !canSave,
564
+ children: status === 'loading' ? submitButtonLoadingLabel || submitButtonLabel : submitButtonLabel
565
+ }), complete ? /*#__PURE__*/jsxRuntime.jsx("p", {
566
+ className: "text-success mx-2 my-1",
567
+ children: /*#__PURE__*/jsxRuntime.jsx(reactIntl.FormattedMessage, {
568
+ id: "BpZoQZ",
569
+ defaultMessage: [{
570
+ "type": 0,
571
+ "value": "Success"
572
+ }]
573
+ })
574
+ }) : null]
575
+ }) : null]
576
+ });
551
577
  }
552
578
 
553
579
  var styles$u = {"withoutStyle":"micromag-core-partials-link-withoutStyle"};
@@ -569,15 +595,23 @@ function Link(_ref) {
569
595
  _ref$withoutStyle = _ref.withoutStyle,
570
596
  withoutStyle = _ref$withoutStyle === void 0 ? false : _ref$withoutStyle,
571
597
  props = _objectWithoutProperties(_ref, _excluded$7);
572
- return external ? /*#__PURE__*/React.createElement("a", Object.assign({
598
+ return external ? /*#__PURE__*/jsxRuntime.jsx("a", _objectSpread(_objectSpread({
573
599
  className: classNames([className, _defineProperty({}, styles$u.withoutStyle, withoutStyle)]),
574
600
  href: href,
575
601
  target: target,
576
602
  rel: rel
577
- }, props), /*#__PURE__*/React.createElement(Label, null, children)) : /*#__PURE__*/React.createElement(wouter.Link, Object.assign({
603
+ }, props), {}, {
604
+ children: /*#__PURE__*/jsxRuntime.jsx(Label, {
605
+ children: children
606
+ })
607
+ })) : /*#__PURE__*/jsxRuntime.jsx(wouter.Link, _objectSpread(_objectSpread({
578
608
  className: classNames([className, _defineProperty({}, styles$u.withoutStyle, withoutStyle)]),
579
609
  href: href
580
- }, props), /*#__PURE__*/React.createElement(Label, null, children));
610
+ }, props), {}, {
611
+ children: /*#__PURE__*/jsxRuntime.jsx(Label, {
612
+ children: children
613
+ })
614
+ }));
581
615
  }
582
616
 
583
617
  var _excluded$6 = ["label", "className"];
@@ -635,62 +669,89 @@ function Card(_ref) {
635
669
  _ref2$className = _ref2.className,
636
670
  linkClassName = _ref2$className === void 0 ? null : _ref2$className,
637
671
  linkProps = _objectWithoutProperties(_ref2, _excluded$6);
638
- return /*#__PURE__*/React.createElement(Link, Object.assign({
639
- key: "link-".concat(label, "-").concat(index),
672
+ return /*#__PURE__*/jsxRuntime.jsx(Link, _objectSpread(_objectSpread({
640
673
  className: classNames(['card-link', linkClassName])
641
- }, linkProps), label);
674
+ }, linkProps), {}, {
675
+ children: label
676
+ }), "link-".concat(label, "-").concat(index));
677
+ });
678
+ var bodyInner = title !== null || subtitle !== null || children !== null || links !== null && linksInSameBody ? /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
679
+ children: [title !== null ? /*#__PURE__*/jsxRuntime.jsx("h5", {
680
+ className: classNames(['card-title', titleClassName]),
681
+ children: /*#__PURE__*/jsxRuntime.jsx(Label, {
682
+ children: title
683
+ })
684
+ }) : null, subtitle !== null ? /*#__PURE__*/jsxRuntime.jsx("h6", {
685
+ className: classNames(['card-subtitle', subtitleClassName]),
686
+ children: /*#__PURE__*/jsxRuntime.jsx(Label, {
687
+ children: subtitle
688
+ })
689
+ }) : null, children, links !== null && linksInSameBody ? /*#__PURE__*/jsxRuntime.jsx("div", {
690
+ className: "d-flex",
691
+ children: linksElements
692
+ }) : null]
693
+ }) : null;
694
+ var cardInner = /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
695
+ children: [header !== null ? /*#__PURE__*/jsxRuntime.jsx("div", {
696
+ className: classNames(['card-header', headerClassName]),
697
+ children: /*#__PURE__*/jsxRuntime.jsx(Label, {
698
+ children: header
699
+ })
700
+ }) : null, typeof image === 'string' ? /*#__PURE__*/jsxRuntime.jsx("img", {
701
+ src: image,
702
+ alt: imageAlt,
703
+ className: classNames(['card-img-top', imageClassName])
704
+ }) : image, beforeBody, bodyInner !== null ? onClickBody !== null ? /*#__PURE__*/jsxRuntime.jsx("button", {
705
+ type: "button",
706
+ className: classNames([bodyClassName, {
707
+ 'card-body': !imageOverlay,
708
+ 'card-img-overlay': imageOverlay
709
+ }]),
710
+ onClick: onClickBody,
711
+ children: bodyInner
712
+ }) : /*#__PURE__*/jsxRuntime.jsx("div", {
713
+ className: classNames([bodyClassName, {
714
+ 'card-body': !imageOverlay,
715
+ 'card-img-overlay': imageOverlay
716
+ }]),
717
+ children: bodyInner
718
+ }) : null, afterBody, links !== null && linksElements !== null && !linksInSameBody ? /*#__PURE__*/jsxRuntime.jsx("div", {
719
+ className: "card-body",
720
+ children: linksElements
721
+ }) : null, footer !== null ? onClickFooter !== null ? /*#__PURE__*/jsxRuntime.jsx("button", {
722
+ type: "button",
723
+ className: classNames(['card-footer', footerClassName]),
724
+ onClick: onClickFooter,
725
+ children: /*#__PURE__*/jsxRuntime.jsx(Label, {
726
+ children: footer
727
+ })
728
+ }) : /*#__PURE__*/jsxRuntime.jsx("div", {
729
+ className: classNames(['card-footer', footerClassName]),
730
+ children: /*#__PURE__*/jsxRuntime.jsx(Label, {
731
+ children: footer
732
+ })
733
+ }) : null]
642
734
  });
643
- var bodyInner = title !== null || subtitle !== null || children !== null || links !== null && linksInSameBody ? /*#__PURE__*/React.createElement(React.Fragment, null, title !== null ? /*#__PURE__*/React.createElement("h5", {
644
- className: classNames(['card-title', titleClassName])
645
- }, /*#__PURE__*/React.createElement(Label, null, title)) : null, subtitle !== null ? /*#__PURE__*/React.createElement("h6", {
646
- className: classNames(['card-subtitle', subtitleClassName])
647
- }, /*#__PURE__*/React.createElement(Label, null, subtitle)) : null, children, links !== null && linksInSameBody ? /*#__PURE__*/React.createElement("div", {
648
- className: "d-flex"
649
- }, linksElements) : null) : null;
650
- var cardInner = /*#__PURE__*/React.createElement(React.Fragment, null, header !== null ? /*#__PURE__*/React.createElement("div", {
651
- className: classNames(['card-header', headerClassName])
652
- }, /*#__PURE__*/React.createElement(Label, null, header)) : null, typeof image === 'string' ? /*#__PURE__*/React.createElement("img", {
653
- src: image,
654
- alt: imageAlt,
655
- className: classNames(['card-img-top', imageClassName])
656
- }) : image, beforeBody, bodyInner !== null ? onClickBody !== null ? /*#__PURE__*/React.createElement("button", {
657
- type: "button",
658
- className: classNames([bodyClassName, {
659
- 'card-body': !imageOverlay,
660
- 'card-img-overlay': imageOverlay
661
- }]),
662
- onClick: onClickBody
663
- }, bodyInner) : /*#__PURE__*/React.createElement("div", {
664
- className: classNames([bodyClassName, {
665
- 'card-body': !imageOverlay,
666
- 'card-img-overlay': imageOverlay
667
- }])
668
- }, bodyInner) : null, afterBody, links !== null && linksElements !== null && !linksInSameBody ? /*#__PURE__*/React.createElement("div", {
669
- className: "card-body"
670
- }, linksElements) : null, footer !== null ? onClickFooter !== null ? /*#__PURE__*/React.createElement("button", {
671
- type: "button",
672
- className: classNames(['card-footer', footerClassName]),
673
- onClick: onClickFooter
674
- }, /*#__PURE__*/React.createElement(Label, null, footer)) : /*#__PURE__*/React.createElement("div", {
675
- className: classNames(['card-footer', footerClassName])
676
- }, /*#__PURE__*/React.createElement(Label, null, footer)) : null);
677
735
  var cardClassName = classNames(['card', _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "bg-".concat(theme), !imageOverlay && theme !== 'dark'), 'bg-dark', imageOverlay || theme === 'dark'), 'text-dark', theme === 'light'), 'text-light', imageOverlay || theme === 'dark' || theme === 'primary'), className]);
678
736
  if (href !== null) {
679
- return /*#__PURE__*/React.createElement(Link, {
737
+ return /*#__PURE__*/jsxRuntime.jsx(Link, {
680
738
  href: href,
681
- className: cardClassName
682
- }, cardInner);
739
+ className: cardClassName,
740
+ children: cardInner
741
+ });
683
742
  }
684
743
  if (onClick !== null) {
685
- return /*#__PURE__*/React.createElement("button", {
744
+ return /*#__PURE__*/jsxRuntime.jsx("button", {
686
745
  type: "button",
687
746
  className: classNames(['p-0', 'text-start', cardClassName]),
688
- onClick: onClick
689
- }, cardInner);
747
+ onClick: onClick,
748
+ children: cardInner
749
+ });
690
750
  }
691
- return /*#__PURE__*/React.createElement("div", {
692
- className: cardClassName
693
- }, cardInner);
751
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
752
+ className: cardClassName,
753
+ children: cardInner
754
+ });
694
755
  }
695
756
 
696
757
  var styles$t = {"container":"micromag-core-partials-spinner-container","path":"micromag-core-partials-spinner-path","animated":"micromag-core-partials-spinner-animated"};
@@ -704,21 +765,22 @@ function Spinner(_ref) {
704
765
  strokeWidth = _ref$strokeWidth === void 0 ? 3 : _ref$strokeWidth,
705
766
  _ref$className = _ref.className,
706
767
  className = _ref$className === void 0 ? null : _ref$className;
707
- return /*#__PURE__*/React.createElement("svg", {
768
+ return /*#__PURE__*/jsxRuntime.jsx("svg", {
708
769
  className: classNames([styles$t.container, className, _defineProperty({}, styles$t.animated, animated)]),
709
770
  width: "40",
710
771
  height: "40",
711
772
  viewBox: "0 0 40 40",
712
- xmlns: "http://www.w3.org/2000/svg"
713
- }, /*#__PURE__*/React.createElement("circle", {
714
- className: styles$t.path,
715
- cx: "20",
716
- cy: "20",
717
- r: "12",
718
- fill: "none",
719
- stroke: color,
720
- strokeWidth: strokeWidth
721
- }));
773
+ xmlns: "http://www.w3.org/2000/svg",
774
+ children: /*#__PURE__*/jsxRuntime.jsx("circle", {
775
+ className: styles$t.path,
776
+ cx: "20",
777
+ cy: "20",
778
+ r: "12",
779
+ fill: "none",
780
+ stroke: color,
781
+ strokeWidth: strokeWidth
782
+ })
783
+ });
722
784
  }
723
785
 
724
786
  var styles$s = {"container":"micromag-core-forms-form-panel-container"};
@@ -734,9 +796,11 @@ function FormPanel(_ref) {
734
796
  _ref$className = _ref.className,
735
797
  className = _ref$className === void 0 ? null : _ref$className,
736
798
  props = _objectWithoutProperties(_ref, _excluded$5);
737
- return /*#__PURE__*/React.createElement(Card, Object.assign({
799
+ return /*#__PURE__*/jsxRuntime.jsxs(Card, _objectSpread(_objectSpread({
738
800
  className: classNames([styles$s.container, className])
739
- }, props), description, loading ? /*#__PURE__*/React.createElement(Spinner, null) : children);
801
+ }, props), {}, {
802
+ children: [description, loading ? /*#__PURE__*/jsxRuntime.jsx(Spinner, {}) : children]
803
+ }));
740
804
  }
741
805
 
742
806
  function ArrowIcon(_ref) {
@@ -744,19 +808,20 @@ function ArrowIcon(_ref) {
744
808
  color = _ref$color === void 0 ? '#fff' : _ref$color,
745
809
  _ref$className = _ref.className,
746
810
  className = _ref$className === void 0 ? null : _ref$className;
747
- return /*#__PURE__*/React.createElement("svg", {
811
+ return /*#__PURE__*/jsxRuntime.jsx("svg", {
748
812
  width: "20",
749
813
  height: "14",
750
814
  viewBox: "0 0 20 14",
751
815
  fill: "none",
752
816
  xmlns: "http://www.w3.org/2000/svg",
753
- className: className
754
- }, /*#__PURE__*/React.createElement("path", {
755
- fillRule: "evenodd",
756
- clipRule: "evenodd",
757
- 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",
758
- fill: color
759
- }));
817
+ className: className,
818
+ children: /*#__PURE__*/jsxRuntime.jsx("path", {
819
+ fillRule: "evenodd",
820
+ clipRule: "evenodd",
821
+ 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",
822
+ fill: color
823
+ })
824
+ });
760
825
  }
761
826
 
762
827
  function CloseIcon(_ref) {
@@ -764,24 +829,25 @@ function CloseIcon(_ref) {
764
829
  color = _ref$color === void 0 ? '#fff' : _ref$color,
765
830
  _ref$className = _ref.className,
766
831
  className = _ref$className === void 0 ? null : _ref$className;
767
- return /*#__PURE__*/React.createElement("svg", {
832
+ return /*#__PURE__*/jsxRuntime.jsxs("svg", {
768
833
  width: "22",
769
834
  height: "22",
770
835
  viewBox: "0 0 22 22",
771
836
  fill: "none",
772
837
  xmlns: "http://www.w3.org/2000/svg",
773
- className: className
774
- }, /*#__PURE__*/React.createElement("path", {
775
- d: "M1 1L21 21",
776
- stroke: color,
777
- strokeWidth: "1.5",
778
- strokeLinecap: "round"
779
- }), /*#__PURE__*/React.createElement("path", {
780
- d: "M1 21L21 0.999998",
781
- stroke: color,
782
- strokeWidth: "1.5",
783
- strokeLinecap: "round"
784
- }));
838
+ className: className,
839
+ children: [/*#__PURE__*/jsxRuntime.jsx("path", {
840
+ d: "M1 1L21 21",
841
+ stroke: color,
842
+ strokeWidth: "1.5",
843
+ strokeLinecap: "round"
844
+ }), /*#__PURE__*/jsxRuntime.jsx("path", {
845
+ d: "M1 21L21 0.999998",
846
+ stroke: color,
847
+ strokeWidth: "1.5",
848
+ strokeLinecap: "round"
849
+ })]
850
+ });
785
851
  }
786
852
 
787
853
  function FullscreenIcon(_ref) {
@@ -789,17 +855,18 @@ function FullscreenIcon(_ref) {
789
855
  color = _ref$color === void 0 ? '#fff' : _ref$color,
790
856
  _ref$className = _ref.className,
791
857
  className = _ref$className === void 0 ? null : _ref$className;
792
- return /*#__PURE__*/React.createElement("svg", {
858
+ return /*#__PURE__*/jsxRuntime.jsx("svg", {
793
859
  width: "16",
794
860
  height: "14",
795
861
  viewBox: "0 0 16 14",
796
862
  fill: "none",
797
863
  xmlns: "http://www.w3.org/2000/svg",
798
- className: className
799
- }, /*#__PURE__*/React.createElement("path", {
800
- 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",
801
- fill: color
802
- }));
864
+ className: className,
865
+ children: /*#__PURE__*/jsxRuntime.jsx("path", {
866
+ 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",
867
+ fill: color
868
+ })
869
+ });
803
870
  }
804
871
 
805
872
  function LinkIcon(_ref) {
@@ -807,26 +874,27 @@ function LinkIcon(_ref) {
807
874
  color = _ref$color === void 0 ? '#fff' : _ref$color,
808
875
  _ref$className = _ref.className,
809
876
  className = _ref$className === void 0 ? null : _ref$className;
810
- return /*#__PURE__*/React.createElement("svg", {
877
+ return /*#__PURE__*/jsxRuntime.jsxs("svg", {
811
878
  width: "16",
812
879
  height: "16",
813
880
  viewBox: "0 0 16 16",
814
881
  fill: "none",
815
882
  xmlns: "http://www.w3.org/2000/svg",
816
- className: className
817
- }, /*#__PURE__*/React.createElement("path", {
818
- d: "M6.60207 8.70208C7.75493 10.2515 9.95019 10.5697 11.4965 9.40761C11.6277 9.31077 11.7589 9.2001 11.8762 9.08251L13.9749 6.97975C15.3417 5.61018 15.3417 3.39674 13.9749 2.02717C12.608 0.657609 10.3989 0.657609 9.03205 2.02717L7.83086 3.22381",
819
- stroke: color,
820
- strokeWidth: "1.25",
821
- strokeLinecap: "round",
822
- strokeLinejoin: "round"
823
- }), /*#__PURE__*/React.createElement("path", {
824
- d: "M9.39793 7.29793C8.24507 5.74852 6.04981 5.43034 4.50345 6.59239C4.37229 6.68923 4.24113 6.7999 4.12377 6.91749L2.02515 9.02026C0.658284 10.3898 0.658284 12.6033 2.02515 13.9728C3.39201 15.3424 5.60109 15.3424 6.96795 13.9728L8.16223 12.7762",
825
- stroke: color,
826
- strokeWidth: "1.25",
827
- strokeLinecap: "round",
828
- strokeLinejoin: "round"
829
- }));
883
+ className: className,
884
+ children: [/*#__PURE__*/jsxRuntime.jsx("path", {
885
+ d: "M6.60207 8.70208C7.75493 10.2515 9.95019 10.5697 11.4965 9.40761C11.6277 9.31077 11.7589 9.2001 11.8762 9.08251L13.9749 6.97975C15.3417 5.61018 15.3417 3.39674 13.9749 2.02717C12.608 0.657609 10.3989 0.657609 9.03205 2.02717L7.83086 3.22381",
886
+ stroke: color,
887
+ strokeWidth: "1.25",
888
+ strokeLinecap: "round",
889
+ strokeLinejoin: "round"
890
+ }), /*#__PURE__*/jsxRuntime.jsx("path", {
891
+ d: "M9.39793 7.29793C8.24507 5.74852 6.04981 5.43034 4.50345 6.59239C4.37229 6.68923 4.24113 6.7999 4.12377 6.91749L2.02515 9.02026C0.658284 10.3898 0.658284 12.6033 2.02515 13.9728C3.39201 15.3424 5.60109 15.3424 6.96795 13.9728L8.16223 12.7762",
892
+ stroke: color,
893
+ strokeWidth: "1.25",
894
+ strokeLinecap: "round",
895
+ strokeLinejoin: "round"
896
+ })]
897
+ });
830
898
  }
831
899
 
832
900
  function MuteIcon(_ref) {
@@ -834,23 +902,24 @@ function MuteIcon(_ref) {
834
902
  color = _ref$color === void 0 ? '#fff' : _ref$color,
835
903
  _ref$className = _ref.className,
836
904
  className = _ref$className === void 0 ? null : _ref$className;
837
- return /*#__PURE__*/React.createElement("svg", {
905
+ return /*#__PURE__*/jsxRuntime.jsxs("svg", {
838
906
  width: "26",
839
907
  height: "26",
840
908
  viewBox: "0 0 26 26",
841
909
  fill: "none",
842
910
  xmlns: "http://www.w3.org/2000/svg",
843
- className: className
844
- }, /*#__PURE__*/React.createElement("path", {
845
- d: "M7.09929 8.77987H1C0.447715 8.77987 0 9.22758 0 9.77987V15.7799C0 16.3322 0.447715 16.7799 1 16.7799H7.1076C7.35984 16.7799 7.60276 16.8752 7.78768 17.0467L14.3199 23.1062C14.9599 23.6999 16 23.246 16 22.3731V3.00199C16 2.12221 14.9458 1.67117 14.3095 2.2787L7.78983 8.50316C7.6038 8.68077 7.35649 8.77987 7.09929 8.77987Z",
846
- fill: color
847
- }), /*#__PURE__*/React.createElement("path", {
848
- d: "M18 18.6875C21.3137 18.6875 24 16.0012 24 12.6875C24 9.37379 21.3137 6.6875 18 6.6875",
849
- stroke: color
850
- }), /*#__PURE__*/React.createElement("path", {
851
- d: "M18 15.6875C19.6569 15.6875 21 14.3444 21 12.6875C21 11.0306 19.6569 9.6875 18 9.6875",
852
- stroke: color
853
- }));
911
+ className: className,
912
+ children: [/*#__PURE__*/jsxRuntime.jsx("path", {
913
+ d: "M7.09929 8.77987H1C0.447715 8.77987 0 9.22758 0 9.77987V15.7799C0 16.3322 0.447715 16.7799 1 16.7799H7.1076C7.35984 16.7799 7.60276 16.8752 7.78768 17.0467L14.3199 23.1062C14.9599 23.6999 16 23.246 16 22.3731V3.00199C16 2.12221 14.9458 1.67117 14.3095 2.2787L7.78983 8.50316C7.6038 8.68077 7.35649 8.77987 7.09929 8.77987Z",
914
+ fill: color
915
+ }), /*#__PURE__*/jsxRuntime.jsx("path", {
916
+ d: "M18 18.6875C21.3137 18.6875 24 16.0012 24 12.6875C24 9.37379 21.3137 6.6875 18 6.6875",
917
+ stroke: color
918
+ }), /*#__PURE__*/jsxRuntime.jsx("path", {
919
+ d: "M18 15.6875C19.6569 15.6875 21 14.3444 21 12.6875C21 11.0306 19.6569 9.6875 18 9.6875",
920
+ stroke: color
921
+ })]
922
+ });
854
923
  }
855
924
 
856
925
  function PauseIcon(_ref) {
@@ -858,25 +927,26 @@ function PauseIcon(_ref) {
858
927
  color = _ref$color === void 0 ? '#fff' : _ref$color,
859
928
  _ref$className = _ref.className,
860
929
  className = _ref$className === void 0 ? null : _ref$className;
861
- return /*#__PURE__*/React.createElement("svg", {
930
+ return /*#__PURE__*/jsxRuntime.jsxs("svg", {
862
931
  className: className,
863
932
  width: "14",
864
933
  height: "18",
865
934
  viewBox: "0 0 14 18",
866
935
  fill: "none",
867
- xmlns: "http://www.w3.org/2000/svg"
868
- }, /*#__PURE__*/React.createElement("rect", {
869
- width: "6",
870
- height: "18",
871
- rx: "2",
872
- fill: color
873
- }), /*#__PURE__*/React.createElement("rect", {
874
- x: "8",
875
- width: "6",
876
- height: "18",
877
- rx: "2",
878
- fill: color
879
- }));
936
+ xmlns: "http://www.w3.org/2000/svg",
937
+ children: [/*#__PURE__*/jsxRuntime.jsx("rect", {
938
+ width: "6",
939
+ height: "18",
940
+ rx: "2",
941
+ fill: color
942
+ }), /*#__PURE__*/jsxRuntime.jsx("rect", {
943
+ x: "8",
944
+ width: "6",
945
+ height: "18",
946
+ rx: "2",
947
+ fill: color
948
+ })]
949
+ });
880
950
  }
881
951
 
882
952
  function PlayIcon(_ref) {
@@ -884,18 +954,19 @@ function PlayIcon(_ref) {
884
954
  color = _ref$color === void 0 ? '#fff' : _ref$color,
885
955
  _ref$className = _ref.className,
886
956
  className = _ref$className === void 0 ? null : _ref$className;
887
- return /*#__PURE__*/React.createElement("svg", {
957
+ return /*#__PURE__*/jsxRuntime.jsx("svg", {
888
958
  width: "40",
889
959
  height: "45.1",
890
960
  viewBox: "0 0 40 45.1",
891
961
  fill: "none",
892
962
  xmlns: "http://www.w3.org/2000/svg",
893
- className: className
894
- }, /*#__PURE__*/React.createElement("path", {
895
- d: "M38.2,25.7L5.5,44.6C3,46,0,44.2,0,41.4L0,3.6c0-2.8,3-4.5,5.5-3.1l32.7,18.9C40.6,20.8,40.6,24.3,38.2,25.7z",
896
- fill: color,
897
- stroke: color
898
- }));
963
+ className: className,
964
+ children: /*#__PURE__*/jsxRuntime.jsx("path", {
965
+ d: "M38.2,25.7L5.5,44.6C3,46,0,44.2,0,41.4L0,3.6c0-2.8,3-4.5,5.5-3.1l32.7,18.9C40.6,20.8,40.6,24.3,38.2,25.7z",
966
+ fill: color,
967
+ stroke: color
968
+ })
969
+ });
899
970
  }
900
971
 
901
972
  function UnmuteIcon(_ref) {
@@ -903,22 +974,23 @@ function UnmuteIcon(_ref) {
903
974
  color = _ref$color === void 0 ? '#fff' : _ref$color,
904
975
  _ref$className = _ref.className,
905
976
  className = _ref$className === void 0 ? null : _ref$className;
906
- return /*#__PURE__*/React.createElement("svg", {
977
+ return /*#__PURE__*/jsxRuntime.jsxs("svg", {
907
978
  width: "26",
908
979
  height: "26",
909
980
  viewBox: "0 0 26 26",
910
981
  fill: "none",
911
982
  xmlns: "http://www.w3.org/2000/svg",
912
- className: className
913
- }, /*#__PURE__*/React.createElement("path", {
914
- d: "M7.09929 8.77987H1C0.447715 8.77987 0 9.22758 0 9.77987V15.7799C0 16.3322 0.447715 16.7799 1 16.7799H7.1076C7.35984 16.7799 7.60276 16.8752 7.78768 17.0467L14.3199 23.1062C14.9599 23.6999 16 23.246 16 22.3731V3.00199C16 2.12221 14.9458 1.67117 14.3095 2.2787L7.78983 8.50316C7.6038 8.68077 7.35649 8.77987 7.09929 8.77987Z",
915
- fill: color
916
- }), /*#__PURE__*/React.createElement("path", {
917
- fillRule: "evenodd",
918
- clipRule: "evenodd",
919
- 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",
920
- fill: color
921
- }));
983
+ className: className,
984
+ children: [/*#__PURE__*/jsxRuntime.jsx("path", {
985
+ d: "M7.09929 8.77987H1C0.447715 8.77987 0 9.22758 0 9.77987V15.7799C0 16.3322 0.447715 16.7799 1 16.7799H7.1076C7.35984 16.7799 7.60276 16.8752 7.78768 17.0467L14.3199 23.1062C14.9599 23.6999 16 23.246 16 22.3731V3.00199C16 2.12221 14.9458 1.67117 14.3095 2.2787L7.78983 8.50316C7.6038 8.68077 7.35649 8.77987 7.09929 8.77987Z",
986
+ fill: color
987
+ }), /*#__PURE__*/jsxRuntime.jsx("path", {
988
+ fillRule: "evenodd",
989
+ clipRule: "evenodd",
990
+ 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",
991
+ fill: color
992
+ })]
993
+ });
922
994
  }
923
995
 
924
996
  var styles$r = {"container":"micromag-core-menus-breadcrumb-container","arrow":"micromag-core-menus-breadcrumb-arrow"};
@@ -937,36 +1009,46 @@ function Breadcrumb(_ref) {
937
1009
  noWrap = _ref$noWrap === void 0 ? false : _ref$noWrap,
938
1010
  _ref$className = _ref.className,
939
1011
  className = _ref$className === void 0 ? null : _ref$className;
940
- return /*#__PURE__*/React.createElement("nav", {
941
- className: className
942
- }, /*#__PURE__*/React.createElement("ol", {
943
- className: classNames([styles$r.container, 'breadcrumb', 'mb-0', {
944
- 'p-0': withoutBar,
945
- 'bg-transparent': withoutBar,
946
- 'rounded-0': withoutBar,
947
- 'flex-nowrap': noWrap
948
- }])
949
- }, items.map(function (_ref2, index) {
950
- var url = _ref2.url,
951
- label = _ref2.label,
952
- _ref2$active = _ref2.active,
953
- active = _ref2$active === void 0 ? false : _ref2$active,
954
- _ref2$onClick = _ref2.onClick,
955
- onClick = _ref2$onClick === void 0 ? null : _ref2$onClick;
956
- return /*#__PURE__*/React.createElement("li", {
957
- className: classNames(['breadcrumb-item', _defineProperty(_defineProperty({
958
- active: active
959
- }, styles$r.arrow, separator === 'arrow'), "text-".concat(theme), active && theme !== null)]),
960
- key: "item-".concat(index)
961
- }, active ? /*#__PURE__*/React.createElement(Label, null, label) : null, !active && url ? /*#__PURE__*/React.createElement(wouter.Link, {
962
- href: url,
963
- onClick: onClick,
964
- className: classNames(['font-weight-bold', 'text-decoration-none', _defineProperty({}, "text-".concat(theme), theme !== null)])
965
- }, /*#__PURE__*/React.createElement(Label, null, label)) : null, !active && onClick ? /*#__PURE__*/React.createElement(Button$1, {
966
- onClick: onClick,
967
- className: classNames(['font-weight-bold', 'text-decoration-none', _defineProperty({}, "text-".concat(theme), theme !== null)])
968
- }, /*#__PURE__*/React.createElement(Label, null, label)) : null);
969
- })));
1012
+ return /*#__PURE__*/jsxRuntime.jsx("nav", {
1013
+ className: className,
1014
+ children: /*#__PURE__*/jsxRuntime.jsx("ol", {
1015
+ className: classNames([styles$r.container, 'breadcrumb', 'mb-0', {
1016
+ 'p-0': withoutBar,
1017
+ 'bg-transparent': withoutBar,
1018
+ 'rounded-0': withoutBar,
1019
+ 'flex-nowrap': noWrap
1020
+ }]),
1021
+ children: items.map(function (_ref2, index) {
1022
+ var url = _ref2.url,
1023
+ label = _ref2.label,
1024
+ _ref2$active = _ref2.active,
1025
+ active = _ref2$active === void 0 ? false : _ref2$active,
1026
+ _ref2$onClick = _ref2.onClick,
1027
+ onClick = _ref2$onClick === void 0 ? null : _ref2$onClick;
1028
+ return /*#__PURE__*/jsxRuntime.jsxs("li", {
1029
+ className: classNames(['breadcrumb-item', _defineProperty(_defineProperty({
1030
+ active: active
1031
+ }, styles$r.arrow, separator === 'arrow'), "text-".concat(theme), active && theme !== null)]),
1032
+ children: [active ? /*#__PURE__*/jsxRuntime.jsx(Label, {
1033
+ children: label
1034
+ }) : null, !active && url ? /*#__PURE__*/jsxRuntime.jsx(wouter.Link, {
1035
+ href: url,
1036
+ onClick: onClick,
1037
+ className: classNames(['font-weight-bold', 'text-decoration-none', _defineProperty({}, "text-".concat(theme), theme !== null)]),
1038
+ children: /*#__PURE__*/jsxRuntime.jsx(Label, {
1039
+ children: label
1040
+ })
1041
+ }) : null, !active && onClick ? /*#__PURE__*/jsxRuntime.jsx(Button$1, {
1042
+ onClick: onClick,
1043
+ className: classNames(['font-weight-bold', 'text-decoration-none', _defineProperty({}, "text-".concat(theme), theme !== null)]),
1044
+ children: /*#__PURE__*/jsxRuntime.jsx(Label, {
1045
+ children: label
1046
+ })
1047
+ }) : null]
1048
+ }, "item-".concat(index));
1049
+ })
1050
+ })
1051
+ });
970
1052
  }
971
1053
 
972
1054
  var _excluded$4 = ["type", "className", "label", "children", "onClick", "active"];
@@ -1009,53 +1091,58 @@ function Dropdown(_ref) {
1009
1091
  clearTimeout(id);
1010
1092
  };
1011
1093
  }, [visible, setEnabled]);
1012
- return /*#__PURE__*/React.createElement("div", {
1094
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
1013
1095
  className: classNames(['dropdown-menu', _defineProperty(_defineProperty({}, "dropdown-menu-".concat(align), align !== null), "show", visible), className]),
1014
- ref: refContainer
1015
- }, children !== null ? children : items.map(function (it, index) {
1016
- var _it$type = it.type,
1017
- type = _it$type === void 0 ? 'link' : _it$type,
1018
- _it$className = it.className,
1019
- customClassName = _it$className === void 0 ? null : _it$className,
1020
- _it$label = it.label,
1021
- label = _it$label === void 0 ? null : _it$label,
1022
- _it$children = it.children,
1023
- itemChildren = _it$children === void 0 ? null : _it$children,
1024
- _it$onClick = it.onClick,
1025
- customOnClick = _it$onClick === void 0 ? null : _it$onClick,
1026
- _it$active = it.active,
1027
- active = _it$active === void 0 ? false : _it$active,
1028
- itemProps = _objectWithoutProperties(it, _excluded$4);
1029
- var ItemComponent = 'div';
1030
- if (type === 'link') {
1031
- ItemComponent = Link;
1032
- } else if (type === 'button') {
1033
- ItemComponent = 'button';
1034
- } else if (type === 'header') {
1035
- ItemComponent = 'h6';
1036
- } else if (type === 'divider') {
1037
- ItemComponent = 'hr';
1038
- }
1039
- var finalOnClickItem = customOnClick !== null || type === 'link' && onClickItem !== null ? function (e) {
1040
- if (customOnClick !== null) {
1041
- customOnClick(e);
1096
+ ref: refContainer,
1097
+ children: children !== null ? children : items.map(function (it, index) {
1098
+ var _it$type = it.type,
1099
+ type = _it$type === void 0 ? 'link' : _it$type,
1100
+ _it$className = it.className,
1101
+ customClassName = _it$className === void 0 ? null : _it$className,
1102
+ _it$label = it.label,
1103
+ label = _it$label === void 0 ? null : _it$label,
1104
+ _it$children = it.children,
1105
+ itemChildren = _it$children === void 0 ? null : _it$children,
1106
+ _it$onClick = it.onClick,
1107
+ customOnClick = _it$onClick === void 0 ? null : _it$onClick,
1108
+ _it$active = it.active,
1109
+ active = _it$active === void 0 ? false : _it$active,
1110
+ itemProps = _objectWithoutProperties(it, _excluded$4);
1111
+ var ItemComponent = 'div';
1112
+ if (type === 'link') {
1113
+ ItemComponent = Link;
1114
+ } else if (type === 'button') {
1115
+ ItemComponent = 'button';
1116
+ } else if (type === 'header') {
1117
+ ItemComponent = 'h6';
1118
+ } else if (type === 'divider') {
1119
+ ItemComponent = 'hr';
1042
1120
  }
1043
- if (type === 'link' && onClickItem !== null) {
1044
- onClickItem(e);
1045
- }
1046
- } : null;
1047
- return ItemComponent !== null ? /*#__PURE__*/React.createElement("div", {
1048
- key: "item-".concat(index + 1, "-").concat(label, "-").concat(type)
1049
- }, /*#__PURE__*/React.createElement(ItemComponent, Object.assign({
1050
- className: classNames([customClassName, itemClassName, {
1051
- 'dropdown-item': type === 'link' || type === 'button',
1052
- 'dropdown-divider': type === 'divider',
1053
- 'dropdown-header': type === 'header',
1054
- active: active
1055
- }]),
1056
- onClick: finalOnClickItem
1057
- }, itemProps), label !== null ? /*#__PURE__*/React.createElement(Label, null, label) : itemChildren)) : null;
1058
- }));
1121
+ var finalOnClickItem = customOnClick !== null || type === 'link' && onClickItem !== null ? function (e) {
1122
+ if (customOnClick !== null) {
1123
+ customOnClick(e);
1124
+ }
1125
+ if (type === 'link' && onClickItem !== null) {
1126
+ onClickItem(e);
1127
+ }
1128
+ } : null;
1129
+ return ItemComponent !== null ? /*#__PURE__*/jsxRuntime.jsx("div", {
1130
+ children: /*#__PURE__*/jsxRuntime.jsx(ItemComponent, _objectSpread(_objectSpread({
1131
+ className: classNames([customClassName, itemClassName, {
1132
+ 'dropdown-item': type === 'link' || type === 'button',
1133
+ 'dropdown-divider': type === 'divider',
1134
+ 'dropdown-header': type === 'header',
1135
+ active: active
1136
+ }]),
1137
+ onClick: finalOnClickItem
1138
+ }, itemProps), {}, {
1139
+ children: label !== null ? /*#__PURE__*/jsxRuntime.jsx(Label, {
1140
+ children: label
1141
+ }) : itemChildren
1142
+ }))
1143
+ }, "item-".concat(index + 1, "-").concat(label, "-").concat(type)) : null;
1144
+ })
1145
+ });
1059
1146
  }
1060
1147
 
1061
1148
  var _excluded$3 = ["id", "className", "linkClassName", "href", "label", "external", "items", "dropdown", "active", "onClick"];
@@ -1102,81 +1189,84 @@ function Menu(_ref) {
1102
1189
  dropdownsVisible = _useState2[0],
1103
1190
  setDropdownsVisible = _useState2[1];
1104
1191
  var ListComponent = linkAsItem ? 'div' : tagName;
1105
- return /*#__PURE__*/React.createElement(ListComponent, {
1106
- className: className
1107
- }, children !== null ? children : items.map(function (it, index) {
1108
- var id = it.id,
1109
- _it$className = it.className,
1110
- customClassName = _it$className === void 0 ? null : _it$className,
1111
- _it$linkClassName = it.linkClassName,
1112
- customLinkClassName = _it$linkClassName === void 0 ? null : _it$linkClassName,
1113
- _it$href = it.href,
1114
- href = _it$href === void 0 ? null : _it$href,
1115
- label = it.label,
1116
- _it$external = it.external,
1117
- external = _it$external === void 0 ? false : _it$external,
1118
- _it$items = it.items,
1119
- subItems = _it$items === void 0 ? null : _it$items,
1120
- _it$dropdown = it.dropdown,
1121
- dropdown = _it$dropdown === void 0 ? null : _it$dropdown,
1122
- _it$active = it.active,
1123
- active = _it$active === void 0 ? false : _it$active,
1124
- _it$onClick = it.onClick,
1125
- customOnClick = _it$onClick === void 0 ? null : _it$onClick,
1126
- itemProps = _objectWithoutProperties(it, _excluded$3);
1127
- var onClickItem = dropdown !== null ? function (e) {
1128
- e.preventDefault();
1129
- setDropdownsVisible([].concat(_toConsumableArray(dropdownsVisible.slice(0, index)), [!(dropdownsVisible[index] || false)], _toConsumableArray(dropdownsVisible.slice(index + 1))));
1130
- if (customOnClick !== null) {
1131
- customOnClick(e);
1132
- }
1133
- } : customOnClick;
1134
- var closeDropdown = dropdown !== null ? function () {
1135
- setDropdownsVisible([].concat(_toConsumableArray(dropdownsVisible.slice(0, index)), [false], _toConsumableArray(dropdownsVisible.slice(index + 1))));
1136
- } : null;
1137
- var ItemComponent = itemTagName;
1138
- return linkAsItem ? /*#__PURE__*/React.createElement(Link, Object.assign({}, itemProps, {
1139
- key: "item-".concat(id || index),
1140
- onClick: onClickItem,
1141
- href: href,
1142
- external: external,
1143
- className: classNames([itemClassName, customClassName, linkClassName, customLinkClassName, {
1144
- active: active
1145
- }])
1146
- }), label) : /*#__PURE__*/React.createElement(ItemComponent, {
1147
- key: "item-".concat(id || index),
1148
- className: classNames([itemClassName, customClassName, _defineProperty(_defineProperty({
1149
- dropdown: dropdown !== null,
1150
- active: active
1151
- }, hasSubMenuClassName, subItems !== null && hasSubMenuClassName !== null), hasDropdownClassName, subItems !== null && hasDropdownClassName !== null)])
1152
- }, href !== null ? /*#__PURE__*/React.createElement(Link, Object.assign({}, itemProps, {
1153
- onClick: onClickItem,
1154
- href: href,
1155
- external: external,
1156
- className: classNames([linkClassName, customLinkClassName, {
1157
- 'dropdown-toggle': dropdown !== null
1158
- }])
1159
- }), label) : null, href === null && onClickItem !== null ? /*#__PURE__*/React.createElement(Button$1, Object.assign({}, itemProps, {
1160
- onClick: onClickItem,
1161
- className: classNames([linkClassName, customLinkClassName, {
1162
- 'dropdown-toggle': dropdown !== null
1163
- }])
1164
- }), label) : null, subItems !== null ? /*#__PURE__*/React.createElement(Menu, {
1165
- items: subItems,
1166
- className: subMenuClassName,
1167
- itemClassName: classNames([subMenuItemClassName, _defineProperty({}, itemClassName, subMenuItemClassName === null && itemClassName !== null)]),
1168
- linkClassName: classNames([subMenuLinkClassName, _defineProperty({}, linkClassName, subMenuLinkClassName === null && linkClassName !== null)])
1169
- }) : null, dropdown !== null ? /*#__PURE__*/React.createElement(Dropdown, {
1170
- items: dropdown,
1171
- visible: dropdownsVisible[index] || false,
1172
- className: dropdownClassName,
1173
- itemClassName: classNames([dropdownItemClassName, _defineProperty({}, itemClassName, dropdownItemClassName === null && itemClassName !== null)]),
1174
- linkClassName: classNames([dropdownLinkClassName, _defineProperty({}, linkClassName, dropdownLinkClassName === null && linkClassName !== null)]),
1175
- align: dropdownAlign,
1176
- onClickItem: closeDropdown,
1177
- onClickOutside: closeDropdown
1178
- }) : null);
1179
- }));
1192
+ return /*#__PURE__*/jsxRuntime.jsx(ListComponent, {
1193
+ className: className,
1194
+ children: children !== null ? children : items.map(function (it, index) {
1195
+ var id = it.id,
1196
+ _it$className = it.className,
1197
+ customClassName = _it$className === void 0 ? null : _it$className,
1198
+ _it$linkClassName = it.linkClassName,
1199
+ customLinkClassName = _it$linkClassName === void 0 ? null : _it$linkClassName,
1200
+ _it$href = it.href,
1201
+ href = _it$href === void 0 ? null : _it$href,
1202
+ label = it.label,
1203
+ _it$external = it.external,
1204
+ external = _it$external === void 0 ? false : _it$external,
1205
+ _it$items = it.items,
1206
+ subItems = _it$items === void 0 ? null : _it$items,
1207
+ _it$dropdown = it.dropdown,
1208
+ dropdown = _it$dropdown === void 0 ? null : _it$dropdown,
1209
+ _it$active = it.active,
1210
+ active = _it$active === void 0 ? false : _it$active,
1211
+ _it$onClick = it.onClick,
1212
+ customOnClick = _it$onClick === void 0 ? null : _it$onClick,
1213
+ itemProps = _objectWithoutProperties(it, _excluded$3);
1214
+ var onClickItem = dropdown !== null ? function (e) {
1215
+ e.preventDefault();
1216
+ setDropdownsVisible([].concat(_toConsumableArray(dropdownsVisible.slice(0, index)), [!(dropdownsVisible[index] || false)], _toConsumableArray(dropdownsVisible.slice(index + 1))));
1217
+ if (customOnClick !== null) {
1218
+ customOnClick(e);
1219
+ }
1220
+ } : customOnClick;
1221
+ var closeDropdown = dropdown !== null ? function () {
1222
+ setDropdownsVisible([].concat(_toConsumableArray(dropdownsVisible.slice(0, index)), [false], _toConsumableArray(dropdownsVisible.slice(index + 1))));
1223
+ } : null;
1224
+ var ItemComponent = itemTagName;
1225
+ return linkAsItem ? /*#__PURE__*/React.createElement(Link, _objectSpread(_objectSpread({}, itemProps), {}, {
1226
+ key: "item-".concat(id || index),
1227
+ onClick: onClickItem,
1228
+ href: href,
1229
+ external: external,
1230
+ className: classNames([itemClassName, customClassName, linkClassName, customLinkClassName, {
1231
+ active: active
1232
+ }])
1233
+ }), label) : /*#__PURE__*/jsxRuntime.jsxs(ItemComponent, {
1234
+ className: classNames([itemClassName, customClassName, _defineProperty(_defineProperty({
1235
+ dropdown: dropdown !== null,
1236
+ active: active
1237
+ }, hasSubMenuClassName, subItems !== null && hasSubMenuClassName !== null), hasDropdownClassName, subItems !== null && hasDropdownClassName !== null)]),
1238
+ children: [href !== null ? /*#__PURE__*/jsxRuntime.jsx(Link, _objectSpread(_objectSpread({}, itemProps), {}, {
1239
+ onClick: onClickItem,
1240
+ href: href,
1241
+ external: external,
1242
+ className: classNames([linkClassName, customLinkClassName, {
1243
+ 'dropdown-toggle': dropdown !== null
1244
+ }]),
1245
+ children: label
1246
+ })) : null, href === null && onClickItem !== null ? /*#__PURE__*/jsxRuntime.jsx(Button$1, _objectSpread(_objectSpread({}, itemProps), {}, {
1247
+ onClick: onClickItem,
1248
+ className: classNames([linkClassName, customLinkClassName, {
1249
+ 'dropdown-toggle': dropdown !== null
1250
+ }]),
1251
+ children: label
1252
+ })) : null, subItems !== null ? /*#__PURE__*/jsxRuntime.jsx(Menu, {
1253
+ items: subItems,
1254
+ className: subMenuClassName,
1255
+ itemClassName: classNames([subMenuItemClassName, _defineProperty({}, itemClassName, subMenuItemClassName === null && itemClassName !== null)]),
1256
+ linkClassName: classNames([subMenuLinkClassName, _defineProperty({}, linkClassName, subMenuLinkClassName === null && linkClassName !== null)])
1257
+ }) : null, dropdown !== null ? /*#__PURE__*/jsxRuntime.jsx(Dropdown, {
1258
+ items: dropdown,
1259
+ visible: dropdownsVisible[index] || false,
1260
+ className: dropdownClassName,
1261
+ itemClassName: classNames([dropdownItemClassName, _defineProperty({}, itemClassName, dropdownItemClassName === null && itemClassName !== null)]),
1262
+ linkClassName: classNames([dropdownLinkClassName, _defineProperty({}, linkClassName, dropdownLinkClassName === null && linkClassName !== null)]),
1263
+ align: dropdownAlign,
1264
+ onClickItem: closeDropdown,
1265
+ onClickOutside: closeDropdown
1266
+ }) : null]
1267
+ }, "item-".concat(id || index));
1268
+ })
1269
+ });
1180
1270
  }
1181
1271
 
1182
1272
  var styles$q = {"collapse":"micromag-core-menus-navbar-collapse"};
@@ -1217,39 +1307,46 @@ function Navbar(_ref) {
1217
1307
  var onClickMenu = React.useCallback(function () {
1218
1308
  return setMenuVisible(!menuVisible);
1219
1309
  }, [setMenuVisible, menuVisible]);
1220
- return /*#__PURE__*/React.createElement("nav", {
1221
- className: classNames(['navbar', _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "bg-".concat(theme), theme !== null), "navbar-".concat(theme === 'light' ? 'light' : 'dark'), theme !== null), "text-".concat(theme === 'light' ? 'dark' : 'light'), theme !== null), "navbar-expand-".concat(size), !withoutCollapse), 'navbar-expand', withoutCollapse), 'py-2', compact), 'px-2', compact), 'flex-nowrap', noWrap), className])
1222
- }, /*#__PURE__*/React.createElement("div", {
1223
- className: classNames(['container-fluid', {
1224
- 'px-0': compact
1225
- }])
1226
- }, brand !== null && brandLink !== null ? /*#__PURE__*/React.createElement(Link, {
1227
- className: classNames(['navbar-brand', brandClassName, {
1228
- 'py-0': compact
1229
- }]),
1230
- href: brandLink
1231
- }, brand) : null, brand !== null && brandLink === null ? /*#__PURE__*/React.createElement("span", {
1232
- className: classNames(['navbar-brand', brandClassName, {
1233
- 'py-0': compact
1234
- }])
1235
- }, brand) : null, breadcrumbs !== null ? /*#__PURE__*/React.createElement("span", {
1236
- className: classNames(['navbar-breadcrumbs', breadCrumbsClassName, {
1237
- 'py-0': compact
1238
- }])
1239
- }, breadcrumbs) : null, !withoutCollapse && !withoutCollapseToggle ? /*#__PURE__*/React.createElement(Button$1, {
1240
- className: "navbar-toggler",
1241
- onClick: onClickMenu,
1242
- withoutTheme: true,
1243
- "aria-controls": "navbarSupportedContent",
1244
- "aria-expanded": "false",
1245
- "aria-label": "Toggle navigation"
1246
- }, /*#__PURE__*/React.createElement("span", {
1247
- className: "navbar-toggler-icon"
1248
- })) : null, !withoutCollapse ? /*#__PURE__*/React.createElement("div", {
1249
- className: classNames(['navbar-collapse', 'collapse', styles$q.collapse, collapseClassName, {
1250
- show: menuVisible
1251
- }])
1252
- }, children) : children));
1310
+ return /*#__PURE__*/jsxRuntime.jsx("nav", {
1311
+ className: classNames(['navbar', _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "bg-".concat(theme), theme !== null), "navbar-".concat(theme === 'light' ? 'light' : 'dark'), theme !== null), "text-".concat(theme === 'light' ? 'dark' : 'light'), theme !== null), "navbar-expand-".concat(size), !withoutCollapse), 'navbar-expand', withoutCollapse), 'py-2', compact), 'px-2', compact), 'flex-nowrap', noWrap), className]),
1312
+ children: /*#__PURE__*/jsxRuntime.jsxs("div", {
1313
+ className: classNames(['container-fluid', {
1314
+ 'px-0': compact
1315
+ }]),
1316
+ children: [brand !== null && brandLink !== null ? /*#__PURE__*/jsxRuntime.jsx(Link, {
1317
+ className: classNames(['navbar-brand', brandClassName, {
1318
+ 'py-0': compact
1319
+ }]),
1320
+ href: brandLink,
1321
+ children: brand
1322
+ }) : null, brand !== null && brandLink === null ? /*#__PURE__*/jsxRuntime.jsx("span", {
1323
+ className: classNames(['navbar-brand', brandClassName, {
1324
+ 'py-0': compact
1325
+ }]),
1326
+ children: brand
1327
+ }) : null, breadcrumbs !== null ? /*#__PURE__*/jsxRuntime.jsx("span", {
1328
+ className: classNames(['navbar-breadcrumbs', breadCrumbsClassName, {
1329
+ 'py-0': compact
1330
+ }]),
1331
+ children: breadcrumbs
1332
+ }) : null, !withoutCollapse && !withoutCollapseToggle ? /*#__PURE__*/jsxRuntime.jsx(Button$1, {
1333
+ className: "navbar-toggler",
1334
+ onClick: onClickMenu,
1335
+ withoutTheme: true,
1336
+ "aria-controls": "navbarSupportedContent",
1337
+ "aria-expanded": "false",
1338
+ "aria-label": "Toggle navigation",
1339
+ children: /*#__PURE__*/jsxRuntime.jsx("span", {
1340
+ className: "navbar-toggler-icon"
1341
+ })
1342
+ }) : null, !withoutCollapse ? /*#__PURE__*/jsxRuntime.jsx("div", {
1343
+ className: classNames(['navbar-collapse', 'collapse', styles$q.collapse, collapseClassName, {
1344
+ show: menuVisible
1345
+ }]),
1346
+ children: children
1347
+ }) : children]
1348
+ })
1349
+ });
1253
1350
  }
1254
1351
 
1255
1352
  var styles$p = {"container":"micromag-core-menus-pagination-container"};
@@ -1328,48 +1425,61 @@ function PaginationMenu(_ref) {
1328
1425
  return pageNumber >= startPage && pageNumber <= endPage ? [].concat(_toConsumableArray(selectedPages), [pageNumber]) : selectedPages;
1329
1426
  }, []) : pageNumbers;
1330
1427
  var pages = strippedPages.length > 0 ? strippedPages : [1];
1331
- return /*#__PURE__*/React.createElement("nav", {
1332
- className: classNames([styles$p.container, className])
1333
- }, /*#__PURE__*/React.createElement("ul", {
1334
- className: classNames(['pagination', paginationClassName])
1335
- }, withPreviousNext ? /*#__PURE__*/React.createElement("li", {
1336
- className: classNames(['page-item', itemClassName, {
1337
- disabled: page <= 1
1338
- }])
1339
- }, page > 1 ? /*#__PURE__*/React.createElement(Link, {
1340
- className: classNames(['page-link', linkClassName]),
1341
- href: getUrl(page - 1),
1342
- onClick: onClickPage !== null ? function () {
1343
- return onClickPage(page - 1);
1344
- } : null
1345
- }, messages.previous) : /*#__PURE__*/React.createElement("span", {
1346
- className: classNames(['page-link', linkClassName])
1347
- }, /*#__PURE__*/React.createElement(Label, null, messages.previous))) : null, pages.map(function (pageNumber) {
1348
- return /*#__PURE__*/React.createElement("li", {
1349
- key: "page-".concat(pageNumber),
1350
- className: classNames(['page-item', itemClassName, {
1351
- active: pageNumber === page
1352
- }])
1353
- }, /*#__PURE__*/React.createElement(Link, {
1354
- className: classNames(['page-link', linkClassName]),
1355
- href: getUrl(pageNumber),
1356
- onClick: onClickPage !== null ? function () {
1357
- return onClickPage(pageNumber);
1358
- } : null
1359
- }, pageNumber));
1360
- }), withPreviousNext ? /*#__PURE__*/React.createElement("li", {
1361
- className: classNames(['page-item', itemClassName, {
1362
- disabled: page >= total
1363
- }])
1364
- }, page < total ? /*#__PURE__*/React.createElement(Link, {
1365
- className: classNames(['page-link', linkClassName]),
1366
- href: getUrl(page + 1),
1367
- onClick: onClickPage !== null ? function () {
1368
- return onClickPage(page + 1);
1369
- } : null
1370
- }, messages.next) : /*#__PURE__*/React.createElement("span", {
1371
- className: classNames(['page-link', linkClassName])
1372
- }, /*#__PURE__*/React.createElement(Label, null, messages.next))) : null));
1428
+ return /*#__PURE__*/jsxRuntime.jsx("nav", {
1429
+ className: classNames([styles$p.container, className]),
1430
+ children: /*#__PURE__*/jsxRuntime.jsxs("ul", {
1431
+ className: classNames(['pagination', paginationClassName]),
1432
+ children: [withPreviousNext ? /*#__PURE__*/jsxRuntime.jsx("li", {
1433
+ className: classNames(['page-item', itemClassName, {
1434
+ disabled: page <= 1
1435
+ }]),
1436
+ children: page > 1 ? /*#__PURE__*/jsxRuntime.jsx(Link, {
1437
+ className: classNames(['page-link', linkClassName]),
1438
+ href: getUrl(page - 1),
1439
+ onClick: onClickPage !== null ? function () {
1440
+ return onClickPage(page - 1);
1441
+ } : null,
1442
+ children: messages.previous
1443
+ }) : /*#__PURE__*/jsxRuntime.jsx("span", {
1444
+ className: classNames(['page-link', linkClassName]),
1445
+ children: /*#__PURE__*/jsxRuntime.jsx(Label, {
1446
+ children: messages.previous
1447
+ })
1448
+ })
1449
+ }) : null, pages.map(function (pageNumber) {
1450
+ return /*#__PURE__*/jsxRuntime.jsx("li", {
1451
+ className: classNames(['page-item', itemClassName, {
1452
+ active: pageNumber === page
1453
+ }]),
1454
+ children: /*#__PURE__*/jsxRuntime.jsx(Link, {
1455
+ className: classNames(['page-link', linkClassName]),
1456
+ href: getUrl(pageNumber),
1457
+ onClick: onClickPage !== null ? function () {
1458
+ return onClickPage(pageNumber);
1459
+ } : null,
1460
+ children: pageNumber
1461
+ })
1462
+ }, "page-".concat(pageNumber));
1463
+ }), withPreviousNext ? /*#__PURE__*/jsxRuntime.jsx("li", {
1464
+ className: classNames(['page-item', itemClassName, {
1465
+ disabled: page >= total
1466
+ }]),
1467
+ children: page < total ? /*#__PURE__*/jsxRuntime.jsx(Link, {
1468
+ className: classNames(['page-link', linkClassName]),
1469
+ href: getUrl(page + 1),
1470
+ onClick: onClickPage !== null ? function () {
1471
+ return onClickPage(page + 1);
1472
+ } : null,
1473
+ children: messages.next
1474
+ }) : /*#__PURE__*/jsxRuntime.jsx("span", {
1475
+ className: classNames(['page-link', linkClassName]),
1476
+ children: /*#__PURE__*/jsxRuntime.jsx(Label, {
1477
+ children: messages.next
1478
+ })
1479
+ })
1480
+ }) : null]
1481
+ })
1482
+ });
1373
1483
  }
1374
1484
 
1375
1485
  var styles$o = {"container":"micromag-core-menus-tabs-container"};
@@ -1391,17 +1501,18 @@ function TabsMenu(_ref) {
1391
1501
  className = _ref$className === void 0 ? null : _ref$className,
1392
1502
  _ref$onClickItem = _ref.onClickItem,
1393
1503
  onClickItem = _ref$onClickItem === void 0 ? null : _ref$onClickItem;
1394
- return /*#__PURE__*/React.createElement("div", {
1395
- className: classNames([styles$o.container, className])
1396
- }, /*#__PURE__*/React.createElement(Buttons, {
1397
- buttons: items,
1398
- size: size,
1399
- theme: theme,
1400
- renderButton: renderItemButton,
1401
- onClickButton: onClickItem,
1402
- className: styles$o.buttons,
1403
- buttonClassName: classNames([styles$o.button, buttonClassName])
1404
- }));
1504
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
1505
+ className: classNames([styles$o.container, className]),
1506
+ children: /*#__PURE__*/jsxRuntime.jsx(Buttons, {
1507
+ buttons: items,
1508
+ size: size,
1509
+ theme: theme,
1510
+ renderButton: renderItemButton,
1511
+ onClickButton: onClickItem,
1512
+ className: styles$o.buttons,
1513
+ buttonClassName: classNames([styles$o.button, buttonClassName])
1514
+ })
1515
+ });
1405
1516
  }
1406
1517
 
1407
1518
  var styles$n = {"container":"micromag-core-modals-container","modals":"micromag-core-modals-modals","hasModals":"micromag-core-modals-hasModals"};
@@ -1415,12 +1526,13 @@ function ModalsContainer(_ref) {
1415
1526
  React.useEffect(function () {
1416
1527
  setModalsContainer(containerRef.current);
1417
1528
  }, []);
1418
- return /*#__PURE__*/React.createElement("div", {
1419
- className: classNames([styles$n.container, className])
1420
- }, /*#__PURE__*/React.createElement("div", {
1421
- className: classNames([styles$n.modals, _defineProperty({}, styles$n.hasModals, modals.length > 0)]),
1422
- ref: containerRef
1423
- }));
1529
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
1530
+ className: classNames([styles$n.container, className]),
1531
+ children: /*#__PURE__*/jsxRuntime.jsx("div", {
1532
+ className: classNames([styles$n.modals, _defineProperty({}, styles$n.hasModals, modals.length > 0)]),
1533
+ ref: containerRef
1534
+ })
1535
+ });
1424
1536
  }
1425
1537
  var Modals = contexts.withModals(ModalsContainer);
1426
1538
 
@@ -1468,13 +1580,14 @@ function ModalPortal(_ref) {
1468
1580
  register = _useModals$register === void 0 ? null : _useModals$register,
1469
1581
  _useModals$unregister = _useModals.unregister,
1470
1582
  unregister = _useModals$unregister === void 0 ? null : _useModals$unregister;
1471
- return /*#__PURE__*/React.createElement(ElementPortal, {
1583
+ return /*#__PURE__*/jsxRuntime.jsx(ElementPortal, {
1472
1584
  id: id,
1473
1585
  data: data,
1474
1586
  container: container,
1475
1587
  register: register,
1476
- unregister: unregister
1477
- }, children);
1588
+ unregister: unregister,
1589
+ children: children
1590
+ });
1478
1591
  }
1479
1592
 
1480
1593
  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"};
@@ -1496,14 +1609,17 @@ function Modal(_ref) {
1496
1609
  title: title
1497
1610
  };
1498
1611
  }, [title]);
1499
- return /*#__PURE__*/React.createElement(ModalPortal, {
1612
+ return /*#__PURE__*/jsxRuntime.jsx(ModalPortal, {
1500
1613
  id: finalId,
1501
- data: data
1502
- }, /*#__PURE__*/React.createElement("div", {
1503
- className: classNames([styles$m.container, _defineProperty({}, styles$m[position], position !== null)])
1504
- }, /*#__PURE__*/React.createElement("div", {
1505
- className: classNames([styles$m.inner, 'bg-dark', 'rounded'])
1506
- }, children)));
1614
+ data: data,
1615
+ children: /*#__PURE__*/jsxRuntime.jsx("div", {
1616
+ className: classNames([styles$m.container, _defineProperty({}, styles$m[position], position !== null)]),
1617
+ children: /*#__PURE__*/jsxRuntime.jsx("div", {
1618
+ className: classNames([styles$m.inner, 'bg-dark', 'rounded']),
1619
+ children: children
1620
+ })
1621
+ })
1622
+ });
1507
1623
  }
1508
1624
 
1509
1625
  var styles$l = {"container":"micromag-core-modals-dialog-container"};
@@ -1527,28 +1643,36 @@ function ModalDialog(_ref) {
1527
1643
  className = _ref$className === void 0 ? null : _ref$className,
1528
1644
  _ref$bodyClassName = _ref.bodyClassName,
1529
1645
  bodyClassName = _ref$bodyClassName === void 0 ? null : _ref$bodyClassName;
1530
- return /*#__PURE__*/React.createElement("div", {
1646
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
1531
1647
  className: classNames([styles$l.container, 'modal-dialog', className, _defineProperty({}, "modal-".concat(size), size !== null)]),
1532
- role: "dialog"
1533
- }, /*#__PURE__*/React.createElement("div", {
1534
- className: "modal-content"
1535
- }, header || /*#__PURE__*/React.createElement("div", {
1536
- className: classNames(['modal-header', 'p-2', 'd-flex', 'justify-content-between', styles$l.header])
1537
- }, /*#__PURE__*/React.createElement("h5", {
1538
- className: "modal-title"
1539
- }, /*#__PURE__*/React.createElement(Label, null, title)), /*#__PURE__*/React.createElement("button", {
1540
- type: "button",
1541
- className: "btn btn-close p-2",
1542
- "aria-label": "Close",
1543
- onClick: onClose
1544
- })), /*#__PURE__*/React.createElement("div", {
1545
- className: classNames(['modal-body', 'p-2', bodyClassName])
1546
- }, children), footer !== null || buttons !== null ? /*#__PURE__*/React.createElement("div", {
1547
- className: classNames(['modal-footer', 'p-2', styles$l.footer])
1548
- }, footer, buttons !== null ? /*#__PURE__*/React.createElement(Buttons, {
1549
- buttons: buttons,
1550
- className: styles$l.buttons
1551
- }) : null) : null));
1648
+ role: "dialog",
1649
+ children: /*#__PURE__*/jsxRuntime.jsxs("div", {
1650
+ className: "modal-content",
1651
+ children: [header || /*#__PURE__*/jsxRuntime.jsxs("div", {
1652
+ className: classNames(['modal-header', 'p-2', 'd-flex', 'justify-content-between', styles$l.header]),
1653
+ children: [/*#__PURE__*/jsxRuntime.jsx("h5", {
1654
+ className: "modal-title",
1655
+ children: /*#__PURE__*/jsxRuntime.jsx(Label, {
1656
+ children: title
1657
+ })
1658
+ }), /*#__PURE__*/jsxRuntime.jsx("button", {
1659
+ type: "button",
1660
+ className: "btn btn-close p-2",
1661
+ "aria-label": "Close",
1662
+ onClick: onClose
1663
+ })]
1664
+ }), /*#__PURE__*/jsxRuntime.jsx("div", {
1665
+ className: classNames(['modal-body', 'p-2', bodyClassName]),
1666
+ children: children
1667
+ }), footer !== null || buttons !== null ? /*#__PURE__*/jsxRuntime.jsxs("div", {
1668
+ className: classNames(['modal-footer', 'p-2', styles$l.footer]),
1669
+ children: [footer, buttons !== null ? /*#__PURE__*/jsxRuntime.jsx(Buttons, {
1670
+ buttons: buttons,
1671
+ className: styles$l.buttons
1672
+ }) : null]
1673
+ }) : null]
1674
+ })
1675
+ });
1552
1676
  }
1553
1677
 
1554
1678
  var styles$k = {"container":"micromag-core-panels-container"};
@@ -1565,12 +1689,13 @@ function PanelsContainer(_ref) {
1565
1689
  React.useEffect(function () {
1566
1690
  setPanelsContainer(containerRef.current);
1567
1691
  }, []);
1568
- return /*#__PURE__*/React.createElement("div", {
1569
- className: classNames([styles$k.container, className])
1570
- }, /*#__PURE__*/React.createElement("div", {
1571
- className: classNames([styles$k.panels, _defineProperty({}, styles$k.hasPanels, panels.length > 0)]),
1572
- ref: containerRef
1573
- }));
1692
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
1693
+ className: classNames([styles$k.container, className]),
1694
+ children: /*#__PURE__*/jsxRuntime.jsx("div", {
1695
+ className: classNames([styles$k.panels, _defineProperty({}, styles$k.hasPanels, panels.length > 0)]),
1696
+ ref: containerRef
1697
+ })
1698
+ });
1574
1699
  }
1575
1700
  var Panels = contexts.withPanels(PanelsContainer);
1576
1701
 
@@ -1593,13 +1718,14 @@ function PanelPortal(_ref) {
1593
1718
  if (panels === null) {
1594
1719
  return children;
1595
1720
  }
1596
- return /*#__PURE__*/React.createElement(ElementPortal, {
1721
+ return /*#__PURE__*/jsxRuntime.jsx(ElementPortal, {
1597
1722
  id: id,
1598
1723
  data: data,
1599
1724
  container: container,
1600
1725
  register: register,
1601
- unregister: unregister
1602
- }, children);
1726
+ unregister: unregister,
1727
+ children: children
1728
+ });
1603
1729
  }
1604
1730
 
1605
1731
  var styles$j = {"container":"micromag-core-panels-panel-container"};
@@ -1620,12 +1746,14 @@ function Panel(_ref) {
1620
1746
  title: title
1621
1747
  };
1622
1748
  }, [title]);
1623
- return /*#__PURE__*/React.createElement(PanelPortal, {
1749
+ return /*#__PURE__*/jsxRuntime.jsx(PanelPortal, {
1624
1750
  id: finalId,
1625
- data: data
1626
- }, /*#__PURE__*/React.createElement("div", {
1627
- className: styles$j.container
1628
- }, children));
1751
+ data: data,
1752
+ children: /*#__PURE__*/jsxRuntime.jsx("div", {
1753
+ className: styles$j.container,
1754
+ children: children
1755
+ })
1756
+ });
1629
1757
  }
1630
1758
 
1631
1759
  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"};
@@ -1652,23 +1780,27 @@ function CollapsablePanel(_ref) {
1652
1780
  var onClick = React.useCallback(function () {
1653
1781
  return setOpened(!opened);
1654
1782
  }, [opened, setOpened]);
1655
- return /*#__PURE__*/React.createElement("div", {
1656
- className: classNames([styles$i.container, className, _defineProperty(_defineProperty({}, styles$i.isOpened, opened), openedClassName, opened && openedClassName !== null)])
1657
- }, /*#__PURE__*/React.createElement("div", {
1658
- className: classNames([styles$i.top, topClassName])
1659
- }, /*#__PURE__*/React.createElement(Button$1, {
1660
- withoutStyle: true,
1661
- className: classNames([styles$i.button, buttonClassName]),
1662
- icon: /*#__PURE__*/React.createElement(reactFontawesome.FontAwesomeIcon, {
1663
- icon: opened ? faAngleUp.faAngleUp : faAngleDown.faAngleDown,
1664
- className: styles$i.icon
1665
- }),
1666
- iconPosition: "right",
1667
- labelClassName: styles$i.label,
1668
- onClick: onClick
1669
- }, title)), /*#__PURE__*/React.createElement("div", {
1670
- className: classNames([styles$i.content, contentClassName])
1671
- }, children));
1783
+ return /*#__PURE__*/jsxRuntime.jsxs("div", {
1784
+ className: classNames([styles$i.container, className, _defineProperty(_defineProperty({}, styles$i.isOpened, opened), openedClassName, opened && openedClassName !== null)]),
1785
+ children: [/*#__PURE__*/jsxRuntime.jsx("div", {
1786
+ className: classNames([styles$i.top, topClassName]),
1787
+ children: /*#__PURE__*/jsxRuntime.jsx(Button$1, {
1788
+ withoutStyle: true,
1789
+ className: classNames([styles$i.button, buttonClassName]),
1790
+ icon: /*#__PURE__*/jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon, {
1791
+ icon: opened ? faAngleUp.faAngleUp : faAngleDown.faAngleDown,
1792
+ className: styles$i.icon
1793
+ }),
1794
+ iconPosition: "right",
1795
+ labelClassName: styles$i.label,
1796
+ onClick: onClick,
1797
+ children: title
1798
+ })
1799
+ }), /*#__PURE__*/jsxRuntime.jsx("div", {
1800
+ className: classNames([styles$i.content, contentClassName]),
1801
+ children: children
1802
+ })]
1803
+ });
1672
1804
  }
1673
1805
 
1674
1806
  function Close(_ref) {
@@ -1680,37 +1812,41 @@ function Close(_ref) {
1680
1812
  fill = _ref$fill === void 0 ? '#fff' : _ref$fill,
1681
1813
  _ref$className = _ref.className,
1682
1814
  className = _ref$className === void 0 ? null : _ref$className;
1683
- return /*#__PURE__*/React.createElement("svg", {
1815
+ return /*#__PURE__*/jsxRuntime.jsx("svg", {
1684
1816
  xmlns: "http://www.w3.org/2000/svg",
1685
1817
  width: "42.9",
1686
1818
  height: "42.9",
1687
1819
  viewBox: "0 0 42.9 42.9",
1688
- className: className
1689
- }, /*#__PURE__*/React.createElement("g", {
1690
- transform: "translate(-352.531 -47.531)"
1691
- }, border ? /*#__PURE__*/React.createElement("path", {
1692
- fill: border,
1693
- d: "M374,47.5c11.9,0,21.5,9.6,21.5,21.5s-9.6,21.5-21.5,21.5s-21.5-9.6-21.5-21.5c0,0,0,0,0,0 C352.5,57.1,362.1,47.5,374,47.5z"
1694
- }) : null, /*#__PURE__*/React.createElement("path", {
1695
- fill: fill,
1696
- d: "M374,50c10.5,0,19,8.5,19,19s-8.5,19-19,19s-19-8.5-19-19S363.5,50,374,50z"
1697
- }), /*#__PURE__*/React.createElement("g", {
1698
- transform: "translate(366.893 61.893)"
1699
- }, /*#__PURE__*/React.createElement("g", {
1700
- transform: "translate(0 0)"
1701
- }, /*#__PURE__*/React.createElement("path", {
1702
- fill: fill,
1703
- stroke: stroke,
1704
- strokeWidth: "2",
1705
- strokeLinecap: "round",
1706
- d: "M14.2,0.3L0,13.9"
1707
- }), /*#__PURE__*/React.createElement("path", {
1708
- fill: fill,
1709
- stroke: stroke,
1710
- strokeWidth: "2",
1711
- strokeLinecap: "round",
1712
- d: "M0.3,0l13.7,14.2"
1713
- })))));
1820
+ className: className,
1821
+ children: /*#__PURE__*/jsxRuntime.jsxs("g", {
1822
+ transform: "translate(-352.531 -47.531)",
1823
+ children: [border ? /*#__PURE__*/jsxRuntime.jsx("path", {
1824
+ fill: border,
1825
+ d: "M374,47.5c11.9,0,21.5,9.6,21.5,21.5s-9.6,21.5-21.5,21.5s-21.5-9.6-21.5-21.5c0,0,0,0,0,0 C352.5,57.1,362.1,47.5,374,47.5z"
1826
+ }) : null, /*#__PURE__*/jsxRuntime.jsx("path", {
1827
+ fill: fill,
1828
+ d: "M374,50c10.5,0,19,8.5,19,19s-8.5,19-19,19s-19-8.5-19-19S363.5,50,374,50z"
1829
+ }), /*#__PURE__*/jsxRuntime.jsx("g", {
1830
+ transform: "translate(366.893 61.893)",
1831
+ children: /*#__PURE__*/jsxRuntime.jsxs("g", {
1832
+ transform: "translate(0 0)",
1833
+ children: [/*#__PURE__*/jsxRuntime.jsx("path", {
1834
+ fill: fill,
1835
+ stroke: stroke,
1836
+ strokeWidth: "2",
1837
+ strokeLinecap: "round",
1838
+ d: "M14.2,0.3L0,13.9"
1839
+ }), /*#__PURE__*/jsxRuntime.jsx("path", {
1840
+ fill: fill,
1841
+ stroke: stroke,
1842
+ strokeWidth: "2",
1843
+ strokeLinecap: "round",
1844
+ d: "M0.3,0l13.7,14.2"
1845
+ })]
1846
+ })
1847
+ })]
1848
+ })
1849
+ });
1714
1850
  }
1715
1851
 
1716
1852
  /* eslint-disable react/jsx-props-no-spreading */
@@ -1724,14 +1860,16 @@ function Date$1(_ref) {
1724
1860
  var dateObject = React.useMemo(function () {
1725
1861
  return dayjs(date).toDate();
1726
1862
  }, [date]);
1727
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(reactIntl.FormattedDate, {
1728
- value: dateObject,
1729
- year: "numeric",
1730
- month: "long",
1731
- day: "2-digit"
1732
- }), withTime ? timeSeparator : null, withTime ? /*#__PURE__*/React.createElement(reactIntl.FormattedTime, {
1733
- value: dateObject
1734
- }) : null);
1863
+ return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
1864
+ children: [/*#__PURE__*/jsxRuntime.jsx(reactIntl.FormattedDate, {
1865
+ value: dateObject,
1866
+ year: "numeric",
1867
+ month: "long",
1868
+ day: "2-digit"
1869
+ }), withTime ? timeSeparator : null, withTime ? /*#__PURE__*/jsxRuntime.jsx(reactIntl.FormattedTime, {
1870
+ value: dateObject
1871
+ }) : null]
1872
+ });
1735
1873
  }
1736
1874
 
1737
1875
  /* eslint-disable react/no-danger */
@@ -1792,10 +1930,11 @@ function Detector(_ref) {
1792
1930
  }
1793
1931
  };
1794
1932
  }, [throttleDelay, isIntersecting, disabled, triggerChange]);
1795
- return /*#__PURE__*/React.createElement("div", {
1933
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
1796
1934
  className: className,
1797
- ref: ref
1798
- }, children);
1935
+ ref: ref,
1936
+ children: children
1937
+ });
1799
1938
  }
1800
1939
 
1801
1940
  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"};
@@ -1815,18 +1954,19 @@ function PlaceholderBlock(_ref) {
1815
1954
  withInvertedColors = _ref$withInvertedColo === void 0 ? true : _ref$withInvertedColo,
1816
1955
  _ref$children = _ref.children,
1817
1956
  children = _ref$children === void 0 ? null : _ref$children;
1818
- return /*#__PURE__*/React.createElement("div", {
1819
- className: classNames([styles$h.container, className, _defineProperty(_defineProperty({}, styles$h.outline, outline), styles$h.withInvertedColors, withInvertedColors)])
1820
- }, /*#__PURE__*/React.createElement("div", {
1821
- className: classNames([styles$h.box, boxClassName]),
1822
- style: {
1823
- width: width,
1824
- height: height
1825
- }
1826
- }, children));
1957
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
1958
+ className: classNames([styles$h.container, className, _defineProperty(_defineProperty({}, styles$h.outline, outline), styles$h.withInvertedColors, withInvertedColors)]),
1959
+ children: /*#__PURE__*/jsxRuntime.jsx("div", {
1960
+ className: classNames([styles$h.box, boxClassName]),
1961
+ style: {
1962
+ width: width,
1963
+ height: height
1964
+ },
1965
+ children: children
1966
+ })
1967
+ });
1827
1968
  }
1828
1969
 
1829
- /* eslint-disable react/jsx-props-no-spreading */
1830
1970
  var emptyObject = {};
1831
1971
  function ElementComponent(_ref) {
1832
1972
  var name = _ref.name,
@@ -1845,13 +1985,13 @@ function ElementComponent(_ref) {
1845
1985
  if (isPlaceholder) {
1846
1986
  // TODO: figure out what this did
1847
1987
  // const PlaceholderComponent = Placeholders[pascalCase(name)];
1848
- return /*#__PURE__*/React.createElement(PlaceholderBlock, placeholderProps);
1988
+ return /*#__PURE__*/jsxRuntime.jsx(PlaceholderBlock, _objectSpread({}, placeholderProps));
1849
1989
  }
1850
1990
  var RealComponent = components[utils.pascalCase(name)];
1851
1991
  if (!RealComponent) {
1852
1992
  return 'Bad component';
1853
1993
  }
1854
- return /*#__PURE__*/React.createElement(RealComponent, Object.assign({}, props, {
1994
+ return /*#__PURE__*/jsxRuntime.jsx(RealComponent, _objectSpread(_objectSpread({}, props), {}, {
1855
1995
  className: className
1856
1996
  }));
1857
1997
  }
@@ -1867,11 +2007,15 @@ function Empty(_ref) {
1867
2007
  light = _ref$light === void 0 ? false : _ref$light,
1868
2008
  _ref$className = _ref.className,
1869
2009
  className = _ref$className === void 0 ? null : _ref$className;
1870
- return /*#__PURE__*/React.createElement("div", {
1871
- className: classNames([styles$g.container, className, _defineProperty(_defineProperty({}, styles$g.withoutBorder, withoutBorder), styles$g.light, light)])
1872
- }, /*#__PURE__*/React.createElement("div", {
1873
- className: styles$g.middle
1874
- }, /*#__PURE__*/React.createElement(Label, null, children)));
2010
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
2011
+ className: classNames([styles$g.container, className, _defineProperty(_defineProperty({}, styles$g.withoutBorder, withoutBorder), styles$g.light, light)]),
2012
+ children: /*#__PURE__*/jsxRuntime.jsx("div", {
2013
+ className: styles$g.middle,
2014
+ children: /*#__PURE__*/jsxRuntime.jsx(Label, {
2015
+ children: children
2016
+ })
2017
+ })
2018
+ });
1875
2019
  }
1876
2020
 
1877
2021
  var emptyArray$1 = [];
@@ -1970,7 +2114,7 @@ function FontFaces(_ref4) {
1970
2114
  // }),
1971
2115
  // ];
1972
2116
  }, {});
1973
- return Object.keys(fontFaces).length > 0 ? /*#__PURE__*/React.createElement("style", {
2117
+ return Object.keys(fontFaces).length > 0 ? /*#__PURE__*/jsxRuntime.jsx("style", {
1974
2118
  type: "text/css",
1975
2119
  dangerouslySetInnerHTML: {
1976
2120
  __html: Object.keys(fontFaces).map(function (it) {
@@ -2002,21 +2146,26 @@ function Media(_ref) {
2002
2146
  bodyClassName = _ref$bodyClassName === void 0 ? null : _ref$bodyClassName,
2003
2147
  _ref$titleClassName = _ref.titleClassName,
2004
2148
  titleClassName = _ref$titleClassName === void 0 ? null : _ref$titleClassName;
2005
- return /*#__PURE__*/React.createElement("div", {
2006
- className: classNames(['card', styles$f.container, className])
2007
- }, typeof thumbnail === 'string' ? /*#__PURE__*/React.createElement("img", {
2008
- src: thumbnail,
2009
- alt: title,
2010
- className: classNames(['me-3', styles$f.thumbnail, thumbnailClassName, {
2011
- 'align-self-start': thumbnailAlign === 'top',
2012
- 'align-self-center': thumbnailAlign === 'center',
2013
- 'align-self-end': thumbnailAlign === 'bottom'
2014
- }])
2015
- }) : thumbnail, title !== null || children !== null ? /*#__PURE__*/React.createElement("div", {
2016
- className: classNames(['card-body', styles$f.body, bodyClassName])
2017
- }, title !== null ? /*#__PURE__*/React.createElement("h5", {
2018
- className: classNames(['mt-0', 'text-truncate', styles$f.title, titleClassName])
2019
- }, /*#__PURE__*/React.createElement(Label, null, title)) : null, children) : null);
2149
+ return /*#__PURE__*/jsxRuntime.jsxs("div", {
2150
+ className: classNames(['card', styles$f.container, className]),
2151
+ children: [typeof thumbnail === 'string' ? /*#__PURE__*/jsxRuntime.jsx("img", {
2152
+ src: thumbnail,
2153
+ alt: title,
2154
+ className: classNames(['me-3', styles$f.thumbnail, thumbnailClassName, {
2155
+ 'align-self-start': thumbnailAlign === 'top',
2156
+ 'align-self-center': thumbnailAlign === 'center',
2157
+ 'align-self-end': thumbnailAlign === 'bottom'
2158
+ }])
2159
+ }) : thumbnail, title !== null || children !== null ? /*#__PURE__*/jsxRuntime.jsxs("div", {
2160
+ className: classNames(['card-body', styles$f.body, bodyClassName]),
2161
+ children: [title !== null ? /*#__PURE__*/jsxRuntime.jsx("h5", {
2162
+ className: classNames(['mt-0', 'text-truncate', styles$f.title, titleClassName]),
2163
+ children: /*#__PURE__*/jsxRuntime.jsx(Label, {
2164
+ children: title
2165
+ })
2166
+ }) : null, children]
2167
+ }) : null]
2168
+ });
2020
2169
  }
2021
2170
 
2022
2171
  /* eslint-disable react/no-array-index-key */
@@ -2066,74 +2215,78 @@ function Meta(_ref) {
2066
2215
  var _ref5 = favicon || {},
2067
2216
  _ref5$url = _ref5.url,
2068
2217
  faviconUrl = _ref5$url === void 0 ? null : _ref5$url;
2069
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("title", null, realTitle !== null && realTitle.length > 0 ? realTitle : 'Micromag'), description !== null ? /*#__PURE__*/React.createElement("meta", {
2070
- name: "description",
2071
- content: description
2072
- }) : null, language !== null ? /*#__PURE__*/React.createElement("meta", {
2073
- name: "language",
2074
- content: language
2075
- }) : null, keywords !== null && isString(keywords) ? /*#__PURE__*/React.createElement("meta", {
2076
- name: "keywords",
2077
- content: keywords
2078
- }) : null, keywords !== null && isArray(keywords) ? /*#__PURE__*/React.createElement("meta", {
2079
- name: "keywords",
2080
- content: keywords.join(',')
2081
- }) : null, canonical !== null ? /*#__PURE__*/React.createElement("link", {
2082
- rel: "canonical",
2083
- href: canonical
2084
- }) : null, faviconUrl !== null ? /*#__PURE__*/React.createElement("link", {
2085
- rel: "icon",
2086
- type: "image/png",
2087
- href: faviconUrl
2088
- }) : null, rssUrl !== null ? /*#__PURE__*/React.createElement("link", {
2089
- rel: "alternate",
2090
- type: "application/rss+xml",
2091
- href: rssUrl
2092
- }) : null, atomUrl !== null ? /*#__PURE__*/React.createElement("link", {
2093
- rel: "alternate",
2094
- type: "application/atom+xml",
2095
- href: atomUrl
2096
- }) : null, imageUrl !== null ? /*#__PURE__*/React.createElement("meta", {
2097
- property: "og:image",
2098
- content: imageUrl
2099
- }) : null, imageUrl !== null ? /*#__PURE__*/React.createElement("meta", {
2100
- property: "og:image:url",
2101
- content: imageUrl
2102
- }) : null, imageWidth !== null ? /*#__PURE__*/React.createElement("meta", {
2103
- property: "og:image:width",
2104
- content: imageWidth
2105
- }) : null, imageHeight !== null ? /*#__PURE__*/React.createElement("meta", {
2106
- property: "og:image:height",
2107
- content: imageHeight
2108
- }) : null, realTitle !== null ? /*#__PURE__*/React.createElement("meta", {
2109
- property: "og:title",
2110
- content: realTitle
2111
- }) : null, description !== null ? /*#__PURE__*/React.createElement("meta", {
2112
- property: "og:description",
2113
- content: description
2114
- }) : null, url !== null ? /*#__PURE__*/React.createElement("meta", {
2115
- property: "og:url",
2116
- content: url
2117
- }) : null, /*#__PURE__*/React.createElement("meta", {
2118
- name: "twitter:card",
2119
- content: imageUrl !== null ? 'summary_large_image' : 'summary'
2120
- }), realTitle !== null ? /*#__PURE__*/React.createElement("meta", {
2121
- name: "twitter:title",
2122
- content: realTitle
2123
- }) : null, description !== null ? /*#__PURE__*/React.createElement("meta", {
2124
- name: "twitter:description",
2125
- content: description
2126
- }) : null, imageUrl !== null ? /*#__PURE__*/React.createElement("meta", {
2127
- name: "twitter:image",
2128
- content: imageUrl
2129
- }) : null, (microformats || []).map(function (it) {
2130
- return /*#__PURE__*/React.createElement("script", {
2131
- type: "application/ld+json",
2132
- id: "".concat(it["@type"], "-").concat(it.identifier),
2133
- key: "microformat-".concat(it["@type"], "-").concat(it.identifier),
2134
- async: true
2135
- }, JSON.stringify(it));
2136
- }), children);
2218
+ return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
2219
+ children: [/*#__PURE__*/jsxRuntime.jsx("title", {
2220
+ children: realTitle !== null && realTitle.length > 0 ? realTitle : 'Micromag'
2221
+ }), description !== null ? /*#__PURE__*/jsxRuntime.jsx("meta", {
2222
+ name: "description",
2223
+ content: description
2224
+ }) : null, language !== null ? /*#__PURE__*/jsxRuntime.jsx("meta", {
2225
+ name: "language",
2226
+ content: language
2227
+ }) : null, keywords !== null && isString(keywords) ? /*#__PURE__*/jsxRuntime.jsx("meta", {
2228
+ name: "keywords",
2229
+ content: keywords
2230
+ }) : null, keywords !== null && isArray(keywords) ? /*#__PURE__*/jsxRuntime.jsx("meta", {
2231
+ name: "keywords",
2232
+ content: keywords.join(',')
2233
+ }) : null, canonical !== null ? /*#__PURE__*/jsxRuntime.jsx("link", {
2234
+ rel: "canonical",
2235
+ href: canonical
2236
+ }) : null, faviconUrl !== null ? /*#__PURE__*/jsxRuntime.jsx("link", {
2237
+ rel: "icon",
2238
+ type: "image/png",
2239
+ href: faviconUrl
2240
+ }) : null, rssUrl !== null ? /*#__PURE__*/jsxRuntime.jsx("link", {
2241
+ rel: "alternate",
2242
+ type: "application/rss+xml",
2243
+ href: rssUrl
2244
+ }) : null, atomUrl !== null ? /*#__PURE__*/jsxRuntime.jsx("link", {
2245
+ rel: "alternate",
2246
+ type: "application/atom+xml",
2247
+ href: atomUrl
2248
+ }) : null, imageUrl !== null ? /*#__PURE__*/jsxRuntime.jsx("meta", {
2249
+ property: "og:image",
2250
+ content: imageUrl
2251
+ }) : null, imageUrl !== null ? /*#__PURE__*/jsxRuntime.jsx("meta", {
2252
+ property: "og:image:url",
2253
+ content: imageUrl
2254
+ }) : null, imageWidth !== null ? /*#__PURE__*/jsxRuntime.jsx("meta", {
2255
+ property: "og:image:width",
2256
+ content: imageWidth
2257
+ }) : null, imageHeight !== null ? /*#__PURE__*/jsxRuntime.jsx("meta", {
2258
+ property: "og:image:height",
2259
+ content: imageHeight
2260
+ }) : null, realTitle !== null ? /*#__PURE__*/jsxRuntime.jsx("meta", {
2261
+ property: "og:title",
2262
+ content: realTitle
2263
+ }) : null, description !== null ? /*#__PURE__*/jsxRuntime.jsx("meta", {
2264
+ property: "og:description",
2265
+ content: description
2266
+ }) : null, url !== null ? /*#__PURE__*/jsxRuntime.jsx("meta", {
2267
+ property: "og:url",
2268
+ content: url
2269
+ }) : null, /*#__PURE__*/jsxRuntime.jsx("meta", {
2270
+ name: "twitter:card",
2271
+ content: imageUrl !== null ? 'summary_large_image' : 'summary'
2272
+ }), realTitle !== null ? /*#__PURE__*/jsxRuntime.jsx("meta", {
2273
+ name: "twitter:title",
2274
+ content: realTitle
2275
+ }) : null, description !== null ? /*#__PURE__*/jsxRuntime.jsx("meta", {
2276
+ name: "twitter:description",
2277
+ content: description
2278
+ }) : null, imageUrl !== null ? /*#__PURE__*/jsxRuntime.jsx("meta", {
2279
+ name: "twitter:image",
2280
+ content: imageUrl
2281
+ }) : null, (microformats || []).map(function (it) {
2282
+ return /*#__PURE__*/jsxRuntime.jsx("script", {
2283
+ type: "application/ld+json",
2284
+ id: "".concat(it["@type"], "-").concat(it.identifier),
2285
+ async: true,
2286
+ children: JSON.stringify(it)
2287
+ }, "microformat-".concat(it["@type"], "-").concat(it.identifier));
2288
+ }), children]
2289
+ });
2137
2290
  }
2138
2291
 
2139
2292
  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"};
@@ -2179,17 +2332,19 @@ function Slideshow(_ref) {
2179
2332
  width: width,
2180
2333
  height: height
2181
2334
  };
2182
- return /*#__PURE__*/React.createElement("div", {
2335
+ return /*#__PURE__*/jsxRuntime.jsxs("div", {
2183
2336
  className: classNames([styles$e.container, className]),
2184
- style: style
2185
- }, /*#__PURE__*/React.createElement("div", {
2186
- className: styles$e.items
2187
- }, items.map(function (it, i) {
2188
- return /*#__PURE__*/React.createElement("div", {
2189
- key: "slide-".concat(i + 1),
2190
- className: classNames([styles$e.item, _defineProperty(_defineProperty(_defineProperty({}, styles$e.prev, i < index), styles$e.current, i === index), styles$e.next, i > index)])
2191
- }, it);
2192
- })), children);
2337
+ style: style,
2338
+ children: [/*#__PURE__*/jsxRuntime.jsx("div", {
2339
+ className: styles$e.items,
2340
+ children: items.map(function (it, i) {
2341
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
2342
+ className: classNames([styles$e.item, _defineProperty(_defineProperty(_defineProperty({}, styles$e.prev, i < index), styles$e.current, i === index), styles$e.next, i > index)]),
2343
+ children: it
2344
+ }, "slide-".concat(i + 1));
2345
+ })
2346
+ }), children]
2347
+ });
2193
2348
  }
2194
2349
 
2195
2350
  var styles$d = {"icon":"micromag-core-placeholders-icon"};
@@ -2199,14 +2354,15 @@ function AdFrame(_ref) {
2199
2354
  var width = _ref.width,
2200
2355
  height = _ref.height,
2201
2356
  className = _ref.className;
2202
- return /*#__PURE__*/React.createElement(PlaceholderBlock, {
2357
+ return /*#__PURE__*/jsxRuntime.jsx(PlaceholderBlock, {
2203
2358
  width: width,
2204
2359
  height: height,
2205
- className: className
2206
- }, /*#__PURE__*/React.createElement(reactFontawesome.FontAwesomeIcon, {
2207
- icon: faAd.faAd,
2208
- className: styles$d.icon
2209
- }));
2360
+ className: className,
2361
+ children: /*#__PURE__*/jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon, {
2362
+ icon: faAd.faAd,
2363
+ className: styles$d.icon
2364
+ })
2365
+ });
2210
2366
  }
2211
2367
 
2212
2368
  /* eslint-disable react/prop-types */
@@ -2214,14 +2370,15 @@ function AdImage(_ref) {
2214
2370
  var width = _ref.width,
2215
2371
  height = _ref.height,
2216
2372
  className = _ref.className;
2217
- return /*#__PURE__*/React.createElement(PlaceholderBlock, {
2373
+ return /*#__PURE__*/jsxRuntime.jsx(PlaceholderBlock, {
2218
2374
  width: width,
2219
2375
  height: height,
2220
- className: className
2221
- }, /*#__PURE__*/React.createElement(reactFontawesome.FontAwesomeIcon, {
2222
- icon: faImage.faImage,
2223
- className: styles$d.icon
2224
- }));
2376
+ className: className,
2377
+ children: /*#__PURE__*/jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon, {
2378
+ icon: faImage.faImage,
2379
+ className: styles$d.icon
2380
+ })
2381
+ });
2225
2382
  }
2226
2383
 
2227
2384
  /* eslint-disable react/destructuring-assignment, react/prop-types */
@@ -2231,14 +2388,15 @@ function Audio(_ref) {
2231
2388
  _ref$height = _ref.height,
2232
2389
  height = _ref$height === void 0 ? '2em' : _ref$height,
2233
2390
  className = _ref.className;
2234
- return /*#__PURE__*/React.createElement(PlaceholderBlock, {
2391
+ return /*#__PURE__*/jsxRuntime.jsx(PlaceholderBlock, {
2235
2392
  width: width,
2236
2393
  height: height,
2237
- className: className
2238
- }, /*#__PURE__*/React.createElement(reactFontawesome.FontAwesomeIcon, {
2239
- icon: faMusic.faMusic,
2240
- className: styles$d.icon
2241
- }));
2394
+ className: className,
2395
+ children: /*#__PURE__*/jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon, {
2396
+ icon: faMusic.faMusic,
2397
+ className: styles$d.icon
2398
+ })
2399
+ });
2242
2400
  }
2243
2401
 
2244
2402
  var styles$c = {"container":"micromag-core-partials-placeholder-text-container","withInvertedColors":"micromag-core-partials-placeholder-text-withInvertedColors","line":"micromag-core-partials-placeholder-text-line"};
@@ -2260,20 +2418,20 @@ function PlaceholderText(_ref) {
2260
2418
  withInvertedColors = _ref$withInvertedColo === void 0 ? true : _ref$withInvertedColo;
2261
2419
  var lineHeight = height !== null && isNumber(height) ? "".concat(Math.round(height * fontSize), "px") : height;
2262
2420
  var oddWidth = isNumber(width) ? width * 0.9 : '80%';
2263
- return /*#__PURE__*/React.createElement("div", {
2264
- className: classNames([styles$c.container, className, _defineProperty({}, styles$c.withInvertedColors, withInvertedColors)])
2265
- }, _toConsumableArray(Array(lines)).map(function (e, index) {
2266
- return /*#__PURE__*/React.createElement("div", {
2267
- key: "line-".concat(index),
2268
- className: styles$c.line,
2269
- style: {
2270
- width: index % 2 === 0 ? width : oddWidth,
2271
- height: lineHeight,
2272
- marginTop: lineMargin,
2273
- marginBottom: lineMargin
2274
- }
2275
- });
2276
- }));
2421
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
2422
+ className: classNames([styles$c.container, className, _defineProperty({}, styles$c.withInvertedColors, withInvertedColors)]),
2423
+ children: _toConsumableArray(Array(lines)).map(function (e, index) {
2424
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
2425
+ className: styles$c.line,
2426
+ style: {
2427
+ width: index % 2 === 0 ? width : oddWidth,
2428
+ height: lineHeight,
2429
+ marginTop: lineMargin,
2430
+ marginBottom: lineMargin
2431
+ }
2432
+ }, "line-".concat(index));
2433
+ })
2434
+ });
2277
2435
  }
2278
2436
 
2279
2437
  /* eslint-disable react/destructuring-assignment, react/prop-types */
@@ -2283,15 +2441,16 @@ function Button(_ref) {
2283
2441
  _ref$height = _ref.height,
2284
2442
  height = _ref$height === void 0 ? '0.4em' : _ref$height,
2285
2443
  className = _ref.className;
2286
- return /*#__PURE__*/React.createElement(PlaceholderBlock, {
2444
+ return /*#__PURE__*/jsxRuntime.jsx(PlaceholderBlock, {
2287
2445
  outline: true,
2288
2446
  width: width,
2289
2447
  height: height,
2290
- className: className
2291
- }, /*#__PURE__*/React.createElement(PlaceholderText, {
2292
- line: 1,
2293
- height: "0.1em"
2294
- }));
2448
+ className: className,
2449
+ children: /*#__PURE__*/jsxRuntime.jsx(PlaceholderText, {
2450
+ line: 1,
2451
+ height: "0.1em"
2452
+ })
2453
+ });
2295
2454
  }
2296
2455
 
2297
2456
  var _excluded$2 = ["width", "height", "className"];
@@ -2300,19 +2459,19 @@ function Image(_ref) {
2300
2459
  height = _ref.height,
2301
2460
  className = _ref.className,
2302
2461
  props = _objectWithoutProperties(_ref, _excluded$2);
2303
- return /*#__PURE__*/React.createElement(PlaceholderBlock, Object.assign({}, props, {
2462
+ return /*#__PURE__*/jsxRuntime.jsx(PlaceholderBlock, _objectSpread(_objectSpread({}, props), {}, {
2304
2463
  width: width,
2305
2464
  height: height,
2306
- className: className
2307
- }), /*#__PURE__*/React.createElement(reactFontawesome.FontAwesomeIcon, {
2308
- icon: faImage.faImage,
2309
- className: styles$d.icon
2465
+ className: className,
2466
+ children: /*#__PURE__*/jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon, {
2467
+ icon: faImage.faImage,
2468
+ className: styles$d.icon
2469
+ })
2310
2470
  }));
2311
2471
  }
2312
2472
 
2313
- /* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
2314
2473
  function Line(props) {
2315
- return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
2474
+ return /*#__PURE__*/jsxRuntime.jsx(PlaceholderText, _objectSpread(_objectSpread({}, props), {}, {
2316
2475
  className: classNames([props.className, styles$d.shortText]),
2317
2476
  height: 0.2,
2318
2477
  lines: 1
@@ -2322,66 +2481,63 @@ function Line(props) {
2322
2481
  var styles$b = {"container":"micromag-core-placeholders-map-container","icon":"micromag-core-placeholders-map-icon"};
2323
2482
 
2324
2483
  function Map(props) {
2325
- return /*#__PURE__*/React.createElement(PlaceholderBlock, Object.assign({}, props, {
2484
+ return /*#__PURE__*/jsxRuntime.jsxs(PlaceholderBlock, _objectSpread(_objectSpread({}, props), {}, {
2326
2485
  width: "100%",
2327
2486
  height: "100%",
2328
- className: classNames([styles$b.container, _defineProperty({}, props.className, props.className !== null)])
2329
- }), /*#__PURE__*/React.createElement(reactFontawesome.FontAwesomeIcon, {
2330
- icon: props.withImages ? faImage.faImage : faMapMarkerAlt.faMapMarkerAlt,
2331
- className: styles$b.icon
2332
- }), /*#__PURE__*/React.createElement(reactFontawesome.FontAwesomeIcon, {
2333
- icon: props.withImages ? faImage.faImage : faMapMarkerAlt.faMapMarkerAlt,
2334
- className: styles$b.icon
2335
- }), /*#__PURE__*/React.createElement(reactFontawesome.FontAwesomeIcon, {
2336
- icon: props.withImages ? faImage.faImage : faMapMarkerAlt.faMapMarkerAlt,
2337
- className: styles$b.icon
2338
- }), /*#__PURE__*/React.createElement(reactFontawesome.FontAwesomeIcon, {
2339
- icon: props.withImages ? faImage.faImage : faMapMarkerAlt.faMapMarkerAlt,
2340
- className: styles$b.icon
2487
+ className: classNames([styles$b.container, _defineProperty({}, props.className, props.className !== null)]),
2488
+ children: [/*#__PURE__*/jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon, {
2489
+ icon: props.withImages ? faImage.faImage : faMapMarkerAlt.faMapMarkerAlt,
2490
+ className: styles$b.icon
2491
+ }), /*#__PURE__*/jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon, {
2492
+ icon: props.withImages ? faImage.faImage : faMapMarkerAlt.faMapMarkerAlt,
2493
+ className: styles$b.icon
2494
+ }), /*#__PURE__*/jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon, {
2495
+ icon: props.withImages ? faImage.faImage : faMapMarkerAlt.faMapMarkerAlt,
2496
+ className: styles$b.icon
2497
+ }), /*#__PURE__*/jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon, {
2498
+ icon: props.withImages ? faImage.faImage : faMapMarkerAlt.faMapMarkerAlt,
2499
+ className: styles$b.icon
2500
+ })]
2341
2501
  }));
2342
2502
  }
2343
2503
 
2344
- /* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
2345
2504
  function MapPath(props) {
2346
- return /*#__PURE__*/React.createElement(PlaceholderBlock, Object.assign({}, props, {
2505
+ return /*#__PURE__*/jsxRuntime.jsx(PlaceholderBlock, _objectSpread(_objectSpread({}, props), {}, {
2347
2506
  width: "100%",
2348
2507
  height: "70%",
2349
- className: classNames([props.className, styles$d.mapPath])
2350
- }), /*#__PURE__*/React.createElement(reactFontawesome.FontAwesomeIcon, {
2351
- icon: faMapMarkedAlt.faMapMarkedAlt,
2352
- size: "lg",
2353
- className: styles$d.icon
2508
+ className: classNames([props.className, styles$d.mapPath]),
2509
+ children: /*#__PURE__*/jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon, {
2510
+ icon: faMapMarkedAlt.faMapMarkedAlt,
2511
+ size: "lg",
2512
+ className: styles$d.icon
2513
+ })
2354
2514
  }));
2355
2515
  }
2356
2516
 
2357
- /* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
2358
2517
  function Quote(props) {
2359
- return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
2518
+ return /*#__PURE__*/jsxRuntime.jsx(PlaceholderText, _objectSpread(_objectSpread({}, props), {}, {
2360
2519
  className: classNames([props.className, styles$d.subtitle]),
2361
2520
  height: 0.5,
2362
2521
  lines: 6
2363
2522
  }));
2364
2523
  }
2365
2524
 
2366
- /* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
2367
2525
  function ShortText(props) {
2368
- return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
2526
+ return /*#__PURE__*/jsxRuntime.jsx(PlaceholderText, _objectSpread(_objectSpread({}, props), {}, {
2369
2527
  className: classNames([props.className, styles$d.shortText]),
2370
2528
  height: 0.2,
2371
2529
  lines: 2
2372
2530
  }));
2373
2531
  }
2374
2532
 
2375
- /* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
2376
2533
  function Subtitle(props) {
2377
- return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
2534
+ return /*#__PURE__*/jsxRuntime.jsx(PlaceholderText, _objectSpread(_objectSpread({}, props), {}, {
2378
2535
  className: classNames([props.className, styles$d.subtitle]),
2379
2536
  height: 0.3,
2380
2537
  lines: 1
2381
2538
  }));
2382
2539
  }
2383
2540
 
2384
- /* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
2385
2541
  function TextPlaceholder(props) {
2386
2542
  var _props$className = props.className,
2387
2543
  className = _props$className === void 0 ? null : _props$className,
@@ -2391,7 +2547,7 @@ function TextPlaceholder(props) {
2391
2547
  lines = _props$lines === void 0 ? 4 : _props$lines,
2392
2548
  _props$lineMargin = props.lineMargin,
2393
2549
  lineMargin = _props$lineMargin === void 0 ? 2 : _props$lineMargin;
2394
- return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
2550
+ return /*#__PURE__*/jsxRuntime.jsx(PlaceholderText, _objectSpread(_objectSpread({}, props), {}, {
2395
2551
  height: height,
2396
2552
  lines: lines,
2397
2553
  lineMargin: lineMargin,
@@ -2399,14 +2555,12 @@ function TextPlaceholder(props) {
2399
2555
  }));
2400
2556
  }
2401
2557
 
2402
- /* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
2403
2558
  function Timeline(props) {
2404
- return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
2559
+ return /*#__PURE__*/jsxRuntime.jsx(PlaceholderText, _objectSpread(_objectSpread({}, props), {}, {
2405
2560
  className: classNames([props.className, styles$d.timeline])
2406
2561
  }));
2407
2562
  }
2408
2563
 
2409
- /* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
2410
2564
  function Title$1(props) {
2411
2565
  var _props$height = props.height,
2412
2566
  height = _props$height === void 0 ? 0.5 : _props$height,
@@ -2414,7 +2568,7 @@ function Title$1(props) {
2414
2568
  lines = _props$lines === void 0 ? 2 : _props$lines,
2415
2569
  _props$lineMargin = props.lineMargin,
2416
2570
  lineMargin = _props$lineMargin === void 0 ? 2 : _props$lineMargin;
2417
- return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
2571
+ return /*#__PURE__*/jsxRuntime.jsx(PlaceholderText, _objectSpread(_objectSpread({}, props), {}, {
2418
2572
  className: classNames([props.className, styles$d.title]),
2419
2573
  height: height,
2420
2574
  lines: lines,
@@ -2427,14 +2581,15 @@ function Video(_ref) {
2427
2581
  var width = _ref.width,
2428
2582
  height = _ref.height,
2429
2583
  className = _ref.className;
2430
- return /*#__PURE__*/React.createElement(PlaceholderBlock, {
2584
+ return /*#__PURE__*/jsxRuntime.jsx(PlaceholderBlock, {
2431
2585
  width: width,
2432
2586
  height: height,
2433
- className: className
2434
- }, /*#__PURE__*/React.createElement(reactFontawesome.FontAwesomeIcon, {
2435
- icon: faVideo.faVideo,
2436
- className: styles$d.icon
2437
- }));
2587
+ className: className,
2588
+ children: /*#__PURE__*/jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon, {
2589
+ icon: faVideo.faVideo,
2590
+ className: styles$d.icon
2591
+ })
2592
+ });
2438
2593
  }
2439
2594
 
2440
2595
  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"};
@@ -2444,17 +2599,19 @@ function Video360(_ref) {
2444
2599
  var width = _ref.width,
2445
2600
  height = _ref.height,
2446
2601
  className = _ref.className;
2447
- return /*#__PURE__*/React.createElement(PlaceholderBlock, {
2602
+ return /*#__PURE__*/jsxRuntime.jsxs(PlaceholderBlock, {
2448
2603
  width: width,
2449
2604
  height: height,
2450
2605
  className: classNames([styles$a.container, className]),
2451
- boxClassName: styles$a.box
2452
- }, /*#__PURE__*/React.createElement(reactFontawesome.FontAwesomeIcon, {
2453
- icon: faVideo.faVideo,
2454
- className: styles$a.icon
2455
- }), /*#__PURE__*/React.createElement("div", {
2456
- className: styles$a.label
2457
- }, "360"));
2606
+ boxClassName: styles$a.box,
2607
+ children: [/*#__PURE__*/jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon, {
2608
+ icon: faVideo.faVideo,
2609
+ className: styles$a.icon
2610
+ }), /*#__PURE__*/jsxRuntime.jsx("div", {
2611
+ className: styles$a.label,
2612
+ children: "360"
2613
+ })]
2614
+ });
2458
2615
  }
2459
2616
 
2460
2617
  /* eslint-disable react/prop-types */
@@ -2462,17 +2619,18 @@ function VideoLoop(_ref) {
2462
2619
  var width = _ref.width,
2463
2620
  height = _ref.height,
2464
2621
  className = _ref.className;
2465
- return /*#__PURE__*/React.createElement(PlaceholderBlock, {
2622
+ return /*#__PURE__*/jsxRuntime.jsxs(PlaceholderBlock, {
2466
2623
  width: width,
2467
2624
  height: height,
2468
- className: className
2469
- }, /*#__PURE__*/React.createElement(reactFontawesome.FontAwesomeIcon, {
2470
- icon: faPlay.faPlay,
2471
- className: styles$d.icon
2472
- }), /*#__PURE__*/React.createElement(reactFontawesome.FontAwesomeIcon, {
2473
- icon: faRedo.faRedo,
2474
- className: styles$d.icon
2475
- }));
2625
+ className: className,
2626
+ children: [/*#__PURE__*/jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon, {
2627
+ icon: faPlay.faPlay,
2628
+ className: styles$d.icon
2629
+ }), /*#__PURE__*/jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon, {
2630
+ icon: faRedo.faRedo,
2631
+ className: styles$d.icon
2632
+ })]
2633
+ });
2476
2634
  }
2477
2635
 
2478
2636
  var styles$9 = {"container":"micromag-core-screens-screen-sizer-container","frame":"micromag-core-screens-screen-sizer-frame","screen":"micromag-core-screens-screen-sizer-screen"};
@@ -2552,33 +2710,36 @@ function ScreenSizer(_ref) {
2552
2710
  };
2553
2711
  }, [screenWidth, screenHeight, frameScale]);
2554
2712
  var hasFrameSize = frameWidth !== null && frameHeight !== null;
2555
- return /*#__PURE__*/React.createElement("div", {
2713
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
2556
2714
  className: classNames([styles$9.container, className]),
2557
- ref: !hasSize ? refContainer : null
2558
- }, hasFrameSize ? /*#__PURE__*/React.createElement("div", {
2559
- className: styles$9.frame,
2560
- style: {
2561
- width: frameWidth,
2562
- height: frameHeight
2563
- }
2564
- }, /*#__PURE__*/React.createElement("div", {
2565
- className: styles$9.screen,
2566
- style: {
2567
- width: screenWidth,
2568
- height: screenHeight,
2569
- transform: screenTransform
2570
- }
2571
- }, /*#__PURE__*/React.createElement(contexts.ScreenSizeProvider, {
2572
- size: screenSize
2573
- }, /*#__PURE__*/React.cloneElement(children, {
2574
- width: screenWidth,
2575
- height: screenHeight
2576
- })))) : null);
2715
+ ref: !hasSize ? refContainer : null,
2716
+ children: hasFrameSize ? /*#__PURE__*/jsxRuntime.jsx("div", {
2717
+ className: styles$9.frame,
2718
+ style: {
2719
+ width: frameWidth,
2720
+ height: frameHeight
2721
+ },
2722
+ children: /*#__PURE__*/jsxRuntime.jsx("div", {
2723
+ className: styles$9.screen,
2724
+ style: {
2725
+ width: screenWidth,
2726
+ height: screenHeight,
2727
+ transform: screenTransform
2728
+ },
2729
+ children: /*#__PURE__*/jsxRuntime.jsx(contexts.ScreenSizeProvider, {
2730
+ size: screenSize,
2731
+ children: /*#__PURE__*/React.cloneElement(children, {
2732
+ width: screenWidth,
2733
+ height: screenHeight
2734
+ })
2735
+ })
2736
+ })
2737
+ }) : null
2738
+ });
2577
2739
  }
2578
2740
 
2579
2741
  var styles$8 = {"container":"micromag-core-screens-screen-container"};
2580
2742
 
2581
- /* eslint-disable react/jsx-props-no-spreading */
2582
2743
  function Screen(_ref) {
2583
2744
  var screen = _ref.screen,
2584
2745
  _ref$renderContext = _ref.renderContext,
@@ -2607,21 +2768,24 @@ function Screen(_ref) {
2607
2768
  var CustomScreenComponent = components !== null ? utils.getComponentFromName(type, components) || null : null;
2608
2769
  var ContextScreenComponent = contexts.useScreenComponent(type);
2609
2770
  var ScreenComponent = CustomScreenComponent || ContextScreenComponent;
2610
- return /*#__PURE__*/React.createElement(contexts.ScreenProvider, {
2771
+ return /*#__PURE__*/jsxRuntime.jsx(contexts.ScreenProvider, {
2611
2772
  data: screen,
2612
2773
  renderContext: renderContext,
2613
- screenState: screenState
2614
- }, ScreenComponent !== null ? /*#__PURE__*/React.createElement("div", {
2615
- className: classNames([styles$8.container, className])
2616
- }, /*#__PURE__*/React.createElement(ScreenComponent, Object.assign({}, screen, {
2617
- index: index,
2618
- active: active,
2619
- current: current,
2620
- preload: preload,
2621
- mediaRef: mediaRef
2622
- }))) : /*#__PURE__*/React.createElement("div", {
2623
- className: className
2624
- }, component));
2774
+ screenState: screenState,
2775
+ children: ScreenComponent !== null ? /*#__PURE__*/jsxRuntime.jsx("div", {
2776
+ className: classNames([styles$8.container, className]),
2777
+ children: /*#__PURE__*/jsxRuntime.jsx(ScreenComponent, _objectSpread(_objectSpread({}, screen), {}, {
2778
+ index: index,
2779
+ active: active,
2780
+ current: current,
2781
+ preload: preload,
2782
+ mediaRef: mediaRef
2783
+ }))
2784
+ }) : /*#__PURE__*/jsxRuntime.jsx("div", {
2785
+ className: className,
2786
+ children: component
2787
+ })
2788
+ });
2625
2789
  }
2626
2790
 
2627
2791
  var styles$7 = {"screen":"micromag-core-screens-screen-placeholder-screen"};
@@ -2642,18 +2806,19 @@ function ScreenPlaceholder(_ref) {
2642
2806
  _ref$className = _ref.className,
2643
2807
  className = _ref$className === void 0 ? null : _ref$className,
2644
2808
  props = _objectWithoutProperties(_ref, _excluded$1);
2645
- var screenElement = /*#__PURE__*/React.createElement(Screen, Object.assign({
2809
+ var screenElement = /*#__PURE__*/jsxRuntime.jsx(Screen, _objectSpread({
2646
2810
  screen: screen,
2647
2811
  renderContext: "placeholder",
2648
2812
  screenState: screenState,
2649
2813
  layout: layout,
2650
2814
  className: classNames([styles$7.screen, _defineProperty({}, className, !withSize)])
2651
2815
  }, props));
2652
- return withSize ? /*#__PURE__*/React.createElement(ScreenSizer, {
2816
+ return withSize ? /*#__PURE__*/jsxRuntime.jsx(ScreenSizer, {
2653
2817
  className: className,
2654
2818
  screenWidth: screenWidth,
2655
- screenHeight: screenHeight
2656
- }, screenElement) : screenElement;
2819
+ screenHeight: screenHeight,
2820
+ children: screenElement
2821
+ }) : screenElement;
2657
2822
  }
2658
2823
 
2659
2824
  var styles$6 = {"screen":"micromag-core-screens-preview-screen"};
@@ -2679,7 +2844,7 @@ function ScreenPreview(_ref) {
2679
2844
  _ref$hidden = _ref.hidden,
2680
2845
  hidden = _ref$hidden === void 0 ? false : _ref$hidden,
2681
2846
  props = _objectWithoutProperties(_ref, _excluded);
2682
- var screenElement = /*#__PURE__*/React.createElement(Screen, Object.assign({
2847
+ var screenElement = /*#__PURE__*/jsxRuntime.jsx(Screen, _objectSpread({
2683
2848
  screen: screen,
2684
2849
  renderContext: "preview",
2685
2850
  screenState: screenState,
@@ -2687,32 +2852,33 @@ function ScreenPreview(_ref) {
2687
2852
  height: !withSize ? height : undefined,
2688
2853
  className: classNames([styles$6.screen, _defineProperty({}, className, !withSize)])
2689
2854
  }, props));
2690
- var element = !hidden ? screenElement : /*#__PURE__*/React.createElement("div", null);
2691
- var screenWithSize = withSize ? /*#__PURE__*/React.createElement(ScreenSizer, {
2855
+ var element = !hidden ? screenElement : /*#__PURE__*/jsxRuntime.jsx("div", {});
2856
+ var screenWithSize = withSize ? /*#__PURE__*/jsxRuntime.jsx(ScreenSizer, {
2692
2857
  className: className,
2693
2858
  screenWidth: screenWidth,
2694
2859
  screenHeight: screenHeight,
2695
2860
  width: width,
2696
2861
  height: height,
2697
- fit: fit
2698
- }, element) : element;
2862
+ fit: fit,
2863
+ children: element
2864
+ }) : element;
2699
2865
  return screenWithSize;
2700
2866
  }
2701
2867
 
2702
2868
  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"};
2703
2869
 
2704
2870
  function Conversation() {
2705
- return /*#__PURE__*/React.createElement("div", {
2706
- className: styles$5.container
2707
- }, _toConsumableArray(Array(4)).map(function (e, idx) {
2708
- return /*#__PURE__*/React.createElement("div", {
2709
- key: "message-".concat(idx + 1),
2710
- className: classNames([styles$5.message, styles$5["placeholderMessage".concat(idx)]])
2711
- });
2712
- }), /*#__PURE__*/React.createElement(reactFontawesome.FontAwesomeIcon, {
2713
- icon: faCommentDots.faCommentDots,
2714
- className: styles$5.icon
2715
- }));
2871
+ return /*#__PURE__*/jsxRuntime.jsxs("div", {
2872
+ className: styles$5.container,
2873
+ children: [_toConsumableArray(Array(4)).map(function (e, idx) {
2874
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
2875
+ className: classNames([styles$5.message, styles$5["placeholderMessage".concat(idx)]])
2876
+ }, "message-".concat(idx + 1));
2877
+ }), /*#__PURE__*/jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon, {
2878
+ icon: faCommentDots.faCommentDots,
2879
+ className: styles$5.icon
2880
+ })]
2881
+ });
2716
2882
  }
2717
2883
 
2718
2884
  /* eslint-disable react/prop-types */
@@ -2722,7 +2888,7 @@ function InputText(_ref) {
2722
2888
  _ref$height = _ref.height,
2723
2889
  height = _ref$height === void 0 ? '0.5em' : _ref$height,
2724
2890
  className = _ref.className;
2725
- return /*#__PURE__*/React.createElement(PlaceholderBlock, {
2891
+ return /*#__PURE__*/jsxRuntime.jsx(PlaceholderBlock, {
2726
2892
  outline: true,
2727
2893
  width: width,
2728
2894
  height: height,
@@ -2740,48 +2906,55 @@ function Answer$1(_ref) {
2740
2906
  className = _ref.className,
2741
2907
  _ref$good = _ref.good,
2742
2908
  good = _ref$good === void 0 ? true : _ref$good;
2743
- return /*#__PURE__*/React.createElement("div", {
2744
- className: classNames([styles$4.container, className, _defineProperty({}, styles$4.good, good)])
2745
- }, /*#__PURE__*/React.createElement("div", {
2746
- className: styles$4.answer
2747
- }, /*#__PURE__*/React.createElement(reactFontawesome.FontAwesomeIcon, {
2748
- className: styles$4.answerIcon,
2749
- icon: good ? faCheck.faCheck : faTimes.faTimes
2750
- })), /*#__PURE__*/React.createElement(PlaceholderBlock, {
2751
- outline: true,
2752
- width: width,
2753
- height: height,
2754
- className: styles$4.block
2755
- }, /*#__PURE__*/React.createElement(PlaceholderText, {
2756
- line: 1,
2757
- height: "0.2em"
2758
- })));
2909
+ return /*#__PURE__*/jsxRuntime.jsxs("div", {
2910
+ className: classNames([styles$4.container, className, _defineProperty({}, styles$4.good, good)]),
2911
+ children: [/*#__PURE__*/jsxRuntime.jsx("div", {
2912
+ className: styles$4.answer,
2913
+ children: /*#__PURE__*/jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon, {
2914
+ className: styles$4.answerIcon,
2915
+ icon: good ? faCheck.faCheck : faTimes.faTimes
2916
+ })
2917
+ }), /*#__PURE__*/jsxRuntime.jsx(PlaceholderBlock, {
2918
+ outline: true,
2919
+ width: width,
2920
+ height: height,
2921
+ className: styles$4.block,
2922
+ children: /*#__PURE__*/jsxRuntime.jsx(PlaceholderText, {
2923
+ line: 1,
2924
+ height: "0.2em"
2925
+ })
2926
+ })]
2927
+ });
2759
2928
  }
2760
2929
 
2761
2930
  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"};
2762
2931
 
2763
2932
  function Title(props) {
2764
- return /*#__PURE__*/React.createElement(PlaceholderBlock, Object.assign({}, props, {
2933
+ return /*#__PURE__*/jsxRuntime.jsxs(PlaceholderBlock, _objectSpread(_objectSpread({}, props), {}, {
2765
2934
  width: "100%",
2766
2935
  height: "100%",
2767
2936
  className: classNames([styles$3.container, _defineProperty({}, props.className, props.className !== null)]),
2768
- boxClassName: styles$3.box
2769
- }), /*#__PURE__*/React.createElement("div", {
2770
- className: styles$3.item
2771
- }, /*#__PURE__*/React.createElement(reactFontawesome.FontAwesomeIcon, {
2772
- icon: faCircle.faCircle,
2773
- className: styles$3.icon
2774
- })), /*#__PURE__*/React.createElement("div", {
2775
- className: styles$3.item
2776
- }, /*#__PURE__*/React.createElement(reactFontawesome.FontAwesomeIcon, {
2777
- icon: faCircle.faCircle,
2778
- className: styles$3.icon
2779
- })), /*#__PURE__*/React.createElement("div", {
2780
- className: styles$3.item
2781
- }, /*#__PURE__*/React.createElement(reactFontawesome.FontAwesomeIcon, {
2782
- icon: faCircle.faCircle,
2783
- className: styles$3.icon
2784
- })));
2937
+ boxClassName: styles$3.box,
2938
+ children: [/*#__PURE__*/jsxRuntime.jsx("div", {
2939
+ className: styles$3.item,
2940
+ children: /*#__PURE__*/jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon, {
2941
+ icon: faCircle.faCircle,
2942
+ className: styles$3.icon
2943
+ })
2944
+ }), /*#__PURE__*/jsxRuntime.jsx("div", {
2945
+ className: styles$3.item,
2946
+ children: /*#__PURE__*/jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon, {
2947
+ icon: faCircle.faCircle,
2948
+ className: styles$3.icon
2949
+ })
2950
+ }), /*#__PURE__*/jsxRuntime.jsx("div", {
2951
+ className: styles$3.item,
2952
+ children: /*#__PURE__*/jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon, {
2953
+ icon: faCircle.faCircle,
2954
+ className: styles$3.icon
2955
+ })
2956
+ })]
2957
+ }));
2785
2958
  }
2786
2959
 
2787
2960
  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"};
@@ -2793,22 +2966,25 @@ function Answer(_ref) {
2793
2966
  _ref$height = _ref.height,
2794
2967
  height = _ref$height === void 0 ? '0.3em' : _ref$height,
2795
2968
  className = _ref.className;
2796
- return /*#__PURE__*/React.createElement("div", {
2797
- className: classNames([styles$2.container, className])
2798
- }, /*#__PURE__*/React.createElement(PlaceholderBlock, {
2799
- outline: true,
2800
- width: width,
2801
- height: height,
2802
- className: styles$2.block
2803
- }, /*#__PURE__*/React.createElement(PlaceholderText, {
2804
- line: 1,
2805
- height: "0.2em"
2806
- })), /*#__PURE__*/React.createElement("div", {
2807
- className: styles$2.percent
2808
- }, /*#__PURE__*/React.createElement(reactFontawesome.FontAwesomeIcon, {
2809
- className: styles$2.percentIcon,
2810
- icon: faPercent.faPercent
2811
- })));
2969
+ return /*#__PURE__*/jsxRuntime.jsxs("div", {
2970
+ className: classNames([styles$2.container, className]),
2971
+ children: [/*#__PURE__*/jsxRuntime.jsx(PlaceholderBlock, {
2972
+ outline: true,
2973
+ width: width,
2974
+ height: height,
2975
+ className: styles$2.block,
2976
+ children: /*#__PURE__*/jsxRuntime.jsx(PlaceholderText, {
2977
+ line: 1,
2978
+ height: "0.2em"
2979
+ })
2980
+ }), /*#__PURE__*/jsxRuntime.jsx("div", {
2981
+ className: styles$2.percent,
2982
+ children: /*#__PURE__*/jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon, {
2983
+ className: styles$2.percentIcon,
2984
+ icon: faPercent.faPercent
2985
+ })
2986
+ })]
2987
+ });
2812
2988
  }
2813
2989
 
2814
2990
  var Placeholders = /*#__PURE__*/Object.freeze({
@@ -2837,7 +3013,6 @@ var Placeholders = /*#__PURE__*/Object.freeze({
2837
3013
  VideoLoop: VideoLoop
2838
3014
  });
2839
3015
 
2840
- /* eslint-disable react/jsx-props-no-spreading */
2841
3016
  function ScreenElement(_ref) {
2842
3017
  var _ref$children = _ref.children,
2843
3018
  children = _ref$children === void 0 ? null : _ref$children,
@@ -2861,12 +3036,13 @@ function ScreenElement(_ref) {
2861
3036
  isPreview = _useScreenRenderConte.isPreview;
2862
3037
  if (isPlaceholder) {
2863
3038
  var PlaceholderComponent = isString(placeholder) ? utils.getComponentFromName(placeholder, Placeholders) : null;
2864
- return PlaceholderComponent !== null ? /*#__PURE__*/React.createElement(PlaceholderComponent, placeholderProps) : placeholder;
3039
+ return PlaceholderComponent !== null ? /*#__PURE__*/jsxRuntime.jsx(PlaceholderComponent, _objectSpread({}, placeholderProps)) : placeholder;
2865
3040
  }
2866
3041
  if (isEdit && isEmpty) {
2867
- return empty !== null ? empty : /*#__PURE__*/React.createElement(Empty, {
2868
- className: emptyClassName
2869
- }, emptyLabel);
3042
+ return empty !== null ? empty : /*#__PURE__*/jsxRuntime.jsx(Empty, {
3043
+ className: emptyClassName,
3044
+ children: emptyLabel
3045
+ });
2870
3046
  }
2871
3047
  if (isPreview && preview !== null) {
2872
3048
  return preview;
@@ -2882,16 +3058,16 @@ function Screens(_ref) {
2882
3058
  screenId = _ref$screen === void 0 ? null : _ref$screen,
2883
3059
  _ref$className = _ref.className,
2884
3060
  className = _ref$className === void 0 ? null : _ref$className;
2885
- return /*#__PURE__*/React.createElement("div", {
2886
- className: classNames([styles$1.container, className])
2887
- }, screens.map(function (screen) {
2888
- var id = screen.id;
2889
- return /*#__PURE__*/React.createElement(Screen, {
2890
- key: "screen-".concat(id),
2891
- screen: screen,
2892
- className: classNames([styles$1.screen, _defineProperty({}, styles$1.visible, screenId === id)])
2893
- });
2894
- }));
3061
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
3062
+ className: classNames([styles$1.container, className]),
3063
+ children: screens.map(function (screen) {
3064
+ var id = screen.id;
3065
+ return /*#__PURE__*/jsxRuntime.jsx(Screen, {
3066
+ screen: screen,
3067
+ className: classNames([styles$1.screen, _defineProperty({}, styles$1.visible, screenId === id)])
3068
+ }, "screen-".concat(id));
3069
+ })
3070
+ });
2895
3071
  }
2896
3072
 
2897
3073
  var styles = {"container":"micromag-core-transitions-transition-container","fullscreen":"micromag-core-transitions-transition-fullscreen"};
@@ -2961,13 +3137,13 @@ function Transition(_ref) {
2961
3137
  }
2962
3138
  // console.log('fx', { reset, finalPlaying, immediate, reversible });
2963
3139
  }, [playing, direction, delay, duration, reversible, easing, config, from, to, setSpringProps, onStart, onComplete]);
2964
- return /*#__PURE__*/React.createElement(web.animated.div, {
3140
+ return /*#__PURE__*/jsxRuntime.jsx(web.animated.div, {
2965
3141
  style: _objectSpread({}, springProps),
2966
- className: classNames([styles.container, className, _defineProperty({}, styles.fullscreen, fullscreen)])
2967
- }, children);
3142
+ className: classNames([styles.container, className, _defineProperty({}, styles.fullscreen, fullscreen)]),
3143
+ children: children
3144
+ });
2968
3145
  }
2969
3146
 
2970
- /* eslint-disable react/jsx-props-no-spreading */
2971
3147
  function Fade(props) {
2972
3148
  var from = React.useMemo(function () {
2973
3149
  return {
@@ -2979,13 +3155,12 @@ function Fade(props) {
2979
3155
  opacity: 1
2980
3156
  };
2981
3157
  }, []);
2982
- return /*#__PURE__*/React.createElement(Transition, Object.assign({}, props, {
3158
+ return /*#__PURE__*/jsxRuntime.jsx(Transition, _objectSpread(_objectSpread({}, props), {}, {
2983
3159
  from: from,
2984
3160
  to: to
2985
3161
  }));
2986
3162
  }
2987
3163
 
2988
- /* eslint-disable react/jsx-props-no-spreading */
2989
3164
  function Scale(props) {
2990
3165
  var from = React.useMemo(function () {
2991
3166
  return {
@@ -2997,7 +3172,7 @@ function Scale(props) {
2997
3172
  transform: 'scale(1)'
2998
3173
  };
2999
3174
  }, []);
3000
- return /*#__PURE__*/React.createElement(Transition, Object.assign({}, props, {
3175
+ return /*#__PURE__*/jsxRuntime.jsx(Transition, _objectSpread(_objectSpread({}, props), {}, {
3001
3176
  from: from,
3002
3177
  to: to
3003
3178
  }));
@@ -3067,16 +3242,20 @@ function Transitions(_ref) {
3067
3242
  delay: delay,
3068
3243
  onComplete: onComplete
3069
3244
  }) : null;
3070
- var renderTransitionOut = TransitionOut !== null && !disabled ? /*#__PURE__*/React.createElement(TransitionOut, Object.assign({
3245
+ var renderTransitionOut = TransitionOut !== null && !disabled ? /*#__PURE__*/jsxRuntime.jsx(TransitionOut, _objectSpread(_objectSpread({
3071
3246
  fullscreen: fullscreen,
3072
3247
  playing: finalPlaying,
3073
3248
  direction: "out"
3074
- }, transitionOutProps), children) : children;
3075
- return TransitionIn !== null && !disabled ? /*#__PURE__*/React.createElement(TransitionIn, Object.assign({
3249
+ }, transitionOutProps), {}, {
3250
+ children: children
3251
+ })) : children;
3252
+ return TransitionIn !== null && !disabled ? /*#__PURE__*/jsxRuntime.jsx(TransitionIn, _objectSpread(_objectSpread({
3076
3253
  fullscreen: fullscreen,
3077
3254
  playing: finalPlaying,
3078
3255
  direction: !sameTransitionInOut ? 'in' : null
3079
- }, transitionInProps), renderTransitionOut) : renderTransitionOut;
3256
+ }, transitionInProps), {}, {
3257
+ children: renderTransitionOut
3258
+ })) : renderTransitionOut;
3080
3259
  }
3081
3260
 
3082
3261
  function TransitionsStagger(_ref) {
@@ -3107,12 +3286,13 @@ function TransitionsStagger(_ref) {
3107
3286
  if (disabled || withoutTransitionsWrapper) {
3108
3287
  return child;
3109
3288
  }
3110
- var el = /*#__PURE__*/React.createElement(Transitions, {
3289
+ var el = /*#__PURE__*/jsxRuntime.jsx(Transitions, {
3111
3290
  transitions: transitions,
3112
3291
  delay: delay + validIndex * stagger,
3113
3292
  playing: playing,
3114
- fullscreen: fullscreen
3115
- }, child);
3293
+ fullscreen: fullscreen,
3294
+ children: child
3295
+ });
3116
3296
  validIndex += 1;
3117
3297
  return el;
3118
3298
  });
@@ -3126,7 +3306,7 @@ function HighlightStyle(_ref) {
3126
3306
  highlightSelector = _ref$highlightSelecto === void 0 ? 'mark' : _ref$highlightSelecto,
3127
3307
  _ref$style = _ref.style,
3128
3308
  style = _ref$style === void 0 ? null : _ref$style;
3129
- return style !== null ? /*#__PURE__*/React.createElement("style", {
3309
+ return style !== null ? /*#__PURE__*/jsxRuntime.jsx("style", {
3130
3310
  type: "text/css",
3131
3311
  dangerouslySetInnerHTML: {
3132
3312
  __html: "".concat([selector, highlightSelector].filter(function (it) {
@@ -3143,7 +3323,7 @@ function LinkStyle(_ref) {
3143
3323
  linkSelector = _ref$linkSelector === void 0 ? 'a' : _ref$linkSelector,
3144
3324
  _ref$style = _ref.style,
3145
3325
  style = _ref$style === void 0 ? null : _ref$style;
3146
- return style !== null ? /*#__PURE__*/React.createElement("style", {
3326
+ return style !== null ? /*#__PURE__*/jsxRuntime.jsx("style", {
3147
3327
  type: "text/css",
3148
3328
  dangerouslySetInnerHTML: {
3149
3329
  __html: "".concat([selector, linkSelector].filter(function (it) {