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