@micromag/core 0.3.606 → 0.3.608
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 +1 -0
- package/es/components.js +143 -115
- package/es/contexts.js +29 -29
- package/es/hooks.js +138 -138
- package/es/index.js +173 -135
- package/es/utils.js +112 -112
- package/package.json +2 -2
package/assets/css/styles.css
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
.micromag-core-buttons-button-container.micromag-core-buttons-button-asLink,.micromag-core-buttons-button-container.micromag-core-buttons-button-withoutStyle{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;color:inherit;cursor:pointer;display:inline-block;font-family:inherit;padding:0;position:relative}.micromag-core-buttons-button-container .micromag-core-buttons-button-icon{display:block;position:relative}.micromag-core-buttons-button-container .micromag-core-buttons-button-icon,.micromag-core-buttons-button-container .micromag-core-buttons-button-label{-webkit-transition:-webkit-transform .3s cubic-bezier(0,.6,.5,1);transition:-webkit-transform .3s cubic-bezier(0,.6,.5,1);transition:transform .3s cubic-bezier(0,.6,.5,1);transition:transform .3s cubic-bezier(0,.6,.5,1),-webkit-transform .3s cubic-bezier(0,.6,.5,1)}.micromag-core-buttons-button-container.micromag-core-buttons-button-asLink{color:#a13dff;font-weight:700}.micromag-core-buttons-button-container.micromag-core-buttons-button-withIcon{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}.micromag-core-buttons-button-container.micromag-core-buttons-button-withIcon .micromag-core-buttons-button-label{margin-left:.5em;-webkit-transform-origin:0 50%;-ms-transform-origin:0 50%;transform-origin:0 50%}.micromag-core-buttons-button-container.micromag-core-buttons-button-withIcon .micromag-core-buttons-button-right{margin-left:.5em}.micromag-core-buttons-button-container.micromag-core-buttons-button-withIcon.micromag-core-buttons-button-withAnimations.micromag-core-buttons-button-icon-right .micromag-core-buttons-button-label{-webkit-transform-origin:100% 50%;-ms-transform-origin:100% 50%;transform-origin:100% 50%}.micromag-core-buttons-button-container.micromag-core-buttons-button-withIconColumns{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}.micromag-core-buttons-button-container.micromag-core-buttons-button-linkDisabled{opacity:.4;pointer-events:none;-webkit-text-decoration:none;text-decoration:none}.micromag-core-buttons-button-container:focus-visible{-webkit-box-shadow:0 0 2px 0 #fff;box-shadow:0 0 2px 0 #fff;-webkit-box-shadow:0 0 2px 0 var(--micromag-focus-color,#fff);box-shadow:0 0 2px 0 var(--micromag-focus-color,#fff);outline:2px solid #000}
|
|
2
2
|
|
|
3
|
+
.micromag-core-buttons-clear-container{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;color:inherit;cursor:pointer;display:inline-block;display:-ms-flexbox!important;display:flex!important;font-family:inherit;padding:0;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;background-color:#494949!important;border-radius:4px;height:18px!important;justify-content:center;margin:0 8px 0 10px;padding:0 10px;width:18px!important}.micromag-core-buttons-clear-container .micromag-core-buttons-clear-icon{display:block}
|
|
3
4
|
.micromag-core-forms-form-actions{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;margin-top:2rem}.micromag-core-forms-form-actions.micromag-core-forms-form-left{-ms-flex-pack:start;justify-content:flex-start}.micromag-core-forms-form-actions.micromag-core-forms-form-right{-ms-flex-pack:end;justify-content:flex-end}
|
|
4
5
|
.micromag-core-partials-link-withoutStyle{color:inherit;-webkit-text-decoration:none;text-decoration:none}.micromag-core-partials-link-withoutStyle:hover{color:inherit;-webkit-text-decoration:none;text-decoration:none}
|
|
5
6
|
@-webkit-keyframes micromag-core-partials-spinner-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes micromag-core-partials-spinner-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes micromag-core-partials-spinner-dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}@keyframes micromag-core-partials-spinner-dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}.micromag-core-partials-spinner-container{display:block;height:40px;width:40px}.micromag-core-partials-spinner-container .micromag-core-partials-spinner-path{stroke-linecap:round;color:currentColor}.micromag-core-partials-spinner-container.micromag-core-partials-spinner-animated{-webkit-animation:micromag-core-partials-spinner-rotate 2s linear infinite;animation:micromag-core-partials-spinner-rotate 2s linear infinite}.micromag-core-partials-spinner-container.micromag-core-partials-spinner-animated .micromag-core-partials-spinner-path{-webkit-animation:micromag-core-partials-spinner-dash 1.5s ease-in-out infinite;animation:micromag-core-partials-spinner-dash 1.5s ease-in-out infinite}
|
package/es/components.js
CHANGED
|
@@ -9,6 +9,7 @@ import { FormattedMessage, defineMessages, FormattedDate, FormattedTime } from '
|
|
|
9
9
|
import { isMessage, getFieldFromPath, getComponentFromName, setFieldValue, validateFields, getDisplayName, pascalCase, convertStyleToString } from '@micromag/core/utils';
|
|
10
10
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
11
11
|
import { faAngleLeft } from '@fortawesome/free-solid-svg-icons/faAngleLeft';
|
|
12
|
+
import { faClose } from '@fortawesome/free-solid-svg-icons/faClose';
|
|
12
13
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
13
14
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
14
15
|
import { useForm, useDocumentEvent, useIntersectionObserver, useDimensionObserver } from '@micromag/core/hooks';
|
|
@@ -44,12 +45,12 @@ import { useSpring } from '@react-spring/core';
|
|
|
44
45
|
import { config, animated } from '@react-spring/web';
|
|
45
46
|
|
|
46
47
|
/* eslint-disable react/jsx-props-no-spreading */
|
|
47
|
-
var propTypes$
|
|
48
|
+
var propTypes$T = {
|
|
48
49
|
children: PropTypes.label.isRequired,
|
|
49
50
|
isHtml: PropTypes$1.bool,
|
|
50
51
|
values: PropTypes$1.object // eslint-disable-line react/forbid-prop-types
|
|
51
52
|
};
|
|
52
|
-
var defaultProps$
|
|
53
|
+
var defaultProps$T = {
|
|
53
54
|
isHtml: false,
|
|
54
55
|
values: {}
|
|
55
56
|
};
|
|
@@ -62,13 +63,13 @@ var Label = function Label(_ref) {
|
|
|
62
63
|
values: values
|
|
63
64
|
}, children)) : children;
|
|
64
65
|
};
|
|
65
|
-
Label.propTypes = propTypes$
|
|
66
|
-
Label.defaultProps = defaultProps$
|
|
66
|
+
Label.propTypes = propTypes$T;
|
|
67
|
+
Label.defaultProps = defaultProps$T;
|
|
67
68
|
|
|
68
|
-
var styles$
|
|
69
|
+
var styles$y = {"container":"micromag-core-buttons-button-container","asLink":"micromag-core-buttons-button-asLink","withoutStyle":"micromag-core-buttons-button-withoutStyle","icon":"micromag-core-buttons-button-icon","label":"micromag-core-buttons-button-label","withIcon":"micromag-core-buttons-button-withIcon","right":"micromag-core-buttons-button-right","withAnimations":"micromag-core-buttons-button-withAnimations","icon-right":"micromag-core-buttons-button-icon-right","withIconColumns":"micromag-core-buttons-button-withIconColumns","linkDisabled":"micromag-core-buttons-button-linkDisabled"};
|
|
69
70
|
|
|
70
|
-
var _excluded$
|
|
71
|
-
var propTypes$
|
|
71
|
+
var _excluded$c = ["type", "theme", "size", "href", "external", "direct", "target", "label", "children", "focusable", "active", "icon", "iconPosition", "disabled", "loading", "disableOnLoading", "small", "big", "withShadow", "withoutStyle", "withoutBootstrapStyles", "withoutTheme", "asLink", "outline", "onClick", "className", "iconClassName", "labelClassName", "refButton"];
|
|
72
|
+
var propTypes$S = {
|
|
72
73
|
type: PropTypes$1.string,
|
|
73
74
|
theme: PropTypes.buttonTheme,
|
|
74
75
|
size: PropTypes.buttonSize,
|
|
@@ -101,7 +102,7 @@ var propTypes$R = {
|
|
|
101
102
|
current: PropTypes$1.any // eslint-disable-line
|
|
102
103
|
})])
|
|
103
104
|
};
|
|
104
|
-
var defaultProps$
|
|
105
|
+
var defaultProps$S = {
|
|
105
106
|
type: 'button',
|
|
106
107
|
theme: null,
|
|
107
108
|
size: null,
|
|
@@ -163,7 +164,7 @@ var Button$1 = function Button(_ref) {
|
|
|
163
164
|
iconClassName = _ref.iconClassName,
|
|
164
165
|
labelClassName = _ref.labelClassName,
|
|
165
166
|
refButton = _ref.refButton,
|
|
166
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
167
|
+
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
167
168
|
var finalLabel = label || children;
|
|
168
169
|
var text = finalLabel !== null ? /*#__PURE__*/React.createElement(Label, null, finalLabel) : null;
|
|
169
170
|
var hasChildren = label !== null && children !== null;
|
|
@@ -171,24 +172,24 @@ var Button$1 = function Button(_ref) {
|
|
|
171
172
|
var hasInlineIcon = hasIcon && (iconPosition === 'inline' || text === null);
|
|
172
173
|
var hasIconColumns = hasIcon && !hasInlineIcon;
|
|
173
174
|
var content = /*#__PURE__*/React.createElement(React.Fragment, null, hasInlineIcon ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
|
|
174
|
-
className: classNames([styles$
|
|
175
|
+
className: classNames([styles$y.icon, _defineProperty({}, iconClassName, iconClassName !== null)])
|
|
175
176
|
}, icon), text !== null ? /*#__PURE__*/React.createElement("span", {
|
|
176
|
-
className: classNames([styles$
|
|
177
|
+
className: classNames([styles$y.label, _defineProperty({}, labelClassName, labelClassName !== null)])
|
|
177
178
|
}, text) : null) : null, hasIconColumns ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
|
|
178
|
-
className: classNames([styles$
|
|
179
|
+
className: classNames([styles$y.left, _defineProperty({}, iconClassName, iconClassName !== null && iconPosition === 'left')])
|
|
179
180
|
}, iconPosition === 'left' ? icon : null), /*#__PURE__*/React.createElement("span", {
|
|
180
|
-
className: classNames([styles$
|
|
181
|
+
className: classNames([styles$y.center, _defineProperty({}, labelClassName, labelClassName !== null)])
|
|
181
182
|
}, text), /*#__PURE__*/React.createElement("span", {
|
|
182
|
-
className: classNames([styles$
|
|
183
|
+
className: classNames([styles$y.right, _defineProperty({}, iconClassName, iconClassName !== null && iconPosition === 'right')])
|
|
183
184
|
}, iconPosition === 'right' ? icon : null), hasChildren ? children : null) : null, !hasIcon ? text : null, hasChildren ? children : null);
|
|
184
185
|
var withStyle = !withoutTheme && !withoutStyle && !asLink;
|
|
185
186
|
var buttonClassNames = classNames([!withoutBootstrapStyles ? _defineProperty(_defineProperty(_defineProperty({
|
|
186
187
|
btn: withStyle
|
|
187
|
-
}, "btn-".concat(outline ? 'outline-' : '').concat(theme), withStyle && theme !== null), "btn-".concat(size), withStyle && size !== null), "active", !withoutStyle && active) : null, styles$
|
|
188
|
+
}, "btn-".concat(outline ? 'outline-' : '').concat(theme), withStyle && theme !== null), "btn-".concat(size), withStyle && size !== null), "active", !withoutStyle && active) : null, styles$y.container, (_ref8 = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref8, styles$y.withoutStyle, withoutStyle), styles$y.withIcon, hasIcon), styles$y.withIconColumns, hasIconColumns), styles$y.withText, text !== null), styles$y.withShadow, withShadow), styles$y.isSmall, small), styles$y.isBig, big), styles$y.isLink, href !== null), styles$y.asLink, asLink), styles$y.isDisabled, disabled), _defineProperty(_defineProperty(_ref8, styles$y.isLoading, loading), className, className !== null))]);
|
|
188
189
|
if (href !== null) {
|
|
189
190
|
var linkClassNames = classNames([buttonClassNames, _defineProperty({
|
|
190
191
|
disabled: disabled
|
|
191
|
-
}, styles$
|
|
192
|
+
}, styles$y.linkDisabled, disabled)]);
|
|
192
193
|
return external || direct ? /*#__PURE__*/React.createElement("a", Object.assign({}, props, {
|
|
193
194
|
href: disabled ? null : href,
|
|
194
195
|
className: linkClassNames,
|
|
@@ -213,13 +214,13 @@ var Button$1 = function Button(_ref) {
|
|
|
213
214
|
tabIndex: focusable ? '0' : '-1'
|
|
214
215
|
}), content);
|
|
215
216
|
};
|
|
216
|
-
Button$1.propTypes = propTypes$
|
|
217
|
-
Button$1.defaultProps = defaultProps$
|
|
217
|
+
Button$1.propTypes = propTypes$S;
|
|
218
|
+
Button$1.defaultProps = defaultProps$S;
|
|
218
219
|
|
|
219
|
-
var styles$
|
|
220
|
+
var styles$x = {};
|
|
220
221
|
|
|
221
|
-
var _excluded$
|
|
222
|
-
var propTypes$
|
|
222
|
+
var _excluded$b = ["className", "onClick", "theme"];
|
|
223
|
+
var propTypes$R = {
|
|
223
224
|
buttons: PropTypes.buttons,
|
|
224
225
|
size: PropTypes.buttonSize,
|
|
225
226
|
theme: PropTypes.buttonTheme,
|
|
@@ -228,7 +229,7 @@ var propTypes$Q = {
|
|
|
228
229
|
className: PropTypes$1.string,
|
|
229
230
|
buttonClassName: PropTypes$1.string
|
|
230
231
|
};
|
|
231
|
-
var defaultProps$
|
|
232
|
+
var defaultProps$R = {
|
|
232
233
|
buttons: [],
|
|
233
234
|
size: null,
|
|
234
235
|
theme: undefined,
|
|
@@ -246,19 +247,19 @@ var Buttons = function Buttons(_ref) {
|
|
|
246
247
|
buttonClassName = _ref.buttonClassName,
|
|
247
248
|
className = _ref.className;
|
|
248
249
|
return /*#__PURE__*/React.createElement("div", {
|
|
249
|
-
className: classNames(['btn-group', _defineProperty({}, "btn-group-".concat(size), size !== null), styles$
|
|
250
|
+
className: classNames(['btn-group', _defineProperty({}, "btn-group-".concat(size), size !== null), styles$x.container, _defineProperty({}, className, className !== null)]),
|
|
250
251
|
role: "group"
|
|
251
252
|
}, buttons.map(function (button, index) {
|
|
252
253
|
var _button$className = button.className,
|
|
253
|
-
customClassName = _button$className ===
|
|
254
|
+
customClassName = _button$className === undefined ? null : _button$className,
|
|
254
255
|
_button$onClick = button.onClick,
|
|
255
|
-
_onClick = _button$onClick ===
|
|
256
|
+
_onClick = _button$onClick === undefined ? null : _button$onClick,
|
|
256
257
|
_button$theme = button.theme,
|
|
257
|
-
buttonTheme = _button$theme ===
|
|
258
|
-
buttonProps = _objectWithoutProperties(button, _excluded$
|
|
258
|
+
buttonTheme = _button$theme === undefined ? null : _button$theme,
|
|
259
|
+
buttonProps = _objectWithoutProperties(button, _excluded$b);
|
|
259
260
|
var fixedProps = {
|
|
260
261
|
key: "button-".concat(index),
|
|
261
|
-
className: classNames([styles$
|
|
262
|
+
className: classNames([styles$x.button, _defineProperty(_defineProperty({}, buttonClassName, buttonClassName !== null), customClassName, customClassName !== null)]),
|
|
262
263
|
onClick: function onClick(e) {
|
|
263
264
|
if (_onClick !== null) {
|
|
264
265
|
_onClick(e, button, index);
|
|
@@ -272,19 +273,19 @@ var Buttons = function Buttons(_ref) {
|
|
|
272
273
|
return renderButton !== null ? renderButton(button, index, fixedProps) : /*#__PURE__*/React.createElement(Button$1, Object.assign({}, fixedProps, buttonProps));
|
|
273
274
|
}));
|
|
274
275
|
};
|
|
275
|
-
Buttons.propTypes = propTypes$
|
|
276
|
-
Buttons.defaultProps = defaultProps$
|
|
276
|
+
Buttons.propTypes = propTypes$R;
|
|
277
|
+
Buttons.defaultProps = defaultProps$R;
|
|
277
278
|
|
|
278
|
-
var _excluded$
|
|
279
|
-
var propTypes$
|
|
279
|
+
var _excluded$a = ["className"];
|
|
280
|
+
var propTypes$Q = {
|
|
280
281
|
className: PropTypes$1.string
|
|
281
282
|
};
|
|
282
|
-
var defaultProps$
|
|
283
|
+
var defaultProps$Q = {
|
|
283
284
|
className: null
|
|
284
285
|
};
|
|
285
286
|
var BackButton = function BackButton(_ref) {
|
|
286
287
|
var className = _ref.className,
|
|
287
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
288
|
+
props = _objectWithoutProperties(_ref, _excluded$a);
|
|
288
289
|
return /*#__PURE__*/React.createElement(Button$1, Object.assign({
|
|
289
290
|
className: classNames(['px-2', _defineProperty({}, className, className)]),
|
|
290
291
|
size: "sm",
|
|
@@ -294,8 +295,35 @@ var BackButton = function BackButton(_ref) {
|
|
|
294
295
|
})
|
|
295
296
|
}, props));
|
|
296
297
|
};
|
|
297
|
-
BackButton.propTypes = propTypes$
|
|
298
|
-
BackButton.defaultProps = defaultProps$
|
|
298
|
+
BackButton.propTypes = propTypes$Q;
|
|
299
|
+
BackButton.defaultProps = defaultProps$Q;
|
|
300
|
+
|
|
301
|
+
var styles$w = {"container":"micromag-core-buttons-clear-container","icon":"micromag-core-buttons-clear-icon"};
|
|
302
|
+
|
|
303
|
+
var _excluded$9 = ["onClick", "className"];
|
|
304
|
+
var propTypes$P = {
|
|
305
|
+
onClick: PropTypes$1.func,
|
|
306
|
+
className: PropTypes$1.string
|
|
307
|
+
};
|
|
308
|
+
var defaultProps$P = {
|
|
309
|
+
onClick: null,
|
|
310
|
+
className: null
|
|
311
|
+
};
|
|
312
|
+
var ClearButton = function ClearButton(_ref) {
|
|
313
|
+
var onClick = _ref.onClick,
|
|
314
|
+
className = _ref.className,
|
|
315
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
316
|
+
return /*#__PURE__*/React.createElement("button", Object.assign({
|
|
317
|
+
className: classNames([styles$w.container, _defineProperty({}, className, className)]),
|
|
318
|
+
onClick: onClick
|
|
319
|
+
}, props), /*#__PURE__*/React.createElement(FontAwesomeIcon, {
|
|
320
|
+
className: styles$w.icon,
|
|
321
|
+
icon: faClose,
|
|
322
|
+
size: "md"
|
|
323
|
+
}));
|
|
324
|
+
};
|
|
325
|
+
ClearButton.propTypes = propTypes$P;
|
|
326
|
+
ClearButton.defaultProps = defaultProps$P;
|
|
299
327
|
|
|
300
328
|
var _excluded$8 = ["type"],
|
|
301
329
|
_excluded2 = ["component", "id", "settings"];
|
|
@@ -337,13 +365,13 @@ var FieldForm = function FieldForm(_ref) {
|
|
|
337
365
|
var field = getFieldFromPath(name.split('.'), fields, fieldsManager);
|
|
338
366
|
var _ref2 = field || {},
|
|
339
367
|
_ref2$type = _ref2.type,
|
|
340
|
-
type = _ref2$type ===
|
|
368
|
+
type = _ref2$type === undefined ? null : _ref2$type,
|
|
341
369
|
fieldProps = _objectWithoutProperties(_ref2, _excluded$8);
|
|
342
370
|
var fieldDefinition = fieldsManager.getDefinition(type) || null;
|
|
343
371
|
var fieldData = fieldDefinition || _objectSpread({}, field);
|
|
344
372
|
var _ref3 = fieldData || {},
|
|
345
373
|
_ref3$component = _ref3.component,
|
|
346
|
-
fieldComponent = _ref3$component ===
|
|
374
|
+
fieldComponent = _ref3$component === undefined ? null : _ref3$component;
|
|
347
375
|
_ref3.id;
|
|
348
376
|
_ref3.settings;
|
|
349
377
|
var definitionProps = _objectWithoutProperties(_ref3, _excluded2);
|
|
@@ -756,7 +784,7 @@ var Card = function Card(_ref) {
|
|
|
756
784
|
var linksElements = (links || []).map(function (_ref2, index) {
|
|
757
785
|
var label = _ref2.label,
|
|
758
786
|
_ref2$className = _ref2.className,
|
|
759
|
-
linkClassName = _ref2$className ===
|
|
787
|
+
linkClassName = _ref2$className === undefined ? null : _ref2$className,
|
|
760
788
|
linkProps = _objectWithoutProperties(_ref2, _excluded$6);
|
|
761
789
|
return /*#__PURE__*/React.createElement(Link, Object.assign({
|
|
762
790
|
key: "link-".concat(label, "-").concat(index),
|
|
@@ -1168,9 +1196,9 @@ var Breadcrumb = function Breadcrumb(_ref) {
|
|
|
1168
1196
|
var url = _ref2.url,
|
|
1169
1197
|
label = _ref2.label,
|
|
1170
1198
|
_ref2$active = _ref2.active,
|
|
1171
|
-
active = _ref2$active ===
|
|
1199
|
+
active = _ref2$active === undefined ? false : _ref2$active,
|
|
1172
1200
|
_ref2$onClick = _ref2.onClick,
|
|
1173
|
-
onClick = _ref2$onClick ===
|
|
1201
|
+
onClick = _ref2$onClick === undefined ? null : _ref2$onClick;
|
|
1174
1202
|
return /*#__PURE__*/React.createElement("li", {
|
|
1175
1203
|
className: classNames(['breadcrumb-item', _defineProperty(_defineProperty({
|
|
1176
1204
|
active: active
|
|
@@ -1245,17 +1273,17 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
1245
1273
|
ref: refContainer
|
|
1246
1274
|
}, children !== null ? children : items.map(function (it, index) {
|
|
1247
1275
|
var _it$type = it.type,
|
|
1248
|
-
type = _it$type ===
|
|
1276
|
+
type = _it$type === undefined ? 'link' : _it$type,
|
|
1249
1277
|
_it$className = it.className,
|
|
1250
|
-
customClassName = _it$className ===
|
|
1278
|
+
customClassName = _it$className === undefined ? null : _it$className,
|
|
1251
1279
|
_it$label = it.label,
|
|
1252
|
-
label = _it$label ===
|
|
1280
|
+
label = _it$label === undefined ? null : _it$label,
|
|
1253
1281
|
_it$children = it.children,
|
|
1254
|
-
itemChildren = _it$children ===
|
|
1282
|
+
itemChildren = _it$children === undefined ? null : _it$children,
|
|
1255
1283
|
_it$onClick = it.onClick,
|
|
1256
|
-
customOnClick = _it$onClick ===
|
|
1284
|
+
customOnClick = _it$onClick === undefined ? null : _it$onClick,
|
|
1257
1285
|
_it$active = it.active,
|
|
1258
|
-
active = _it$active ===
|
|
1286
|
+
active = _it$active === undefined ? false : _it$active,
|
|
1259
1287
|
itemProps = _objectWithoutProperties(it, _excluded$4);
|
|
1260
1288
|
var ItemComponent = 'div';
|
|
1261
1289
|
if (type === 'link') {
|
|
@@ -1360,22 +1388,22 @@ var _Menu = function Menu(_ref) {
|
|
|
1360
1388
|
}, children !== null ? children : items.map(function (it, index) {
|
|
1361
1389
|
var id = it.id,
|
|
1362
1390
|
_it$className = it.className,
|
|
1363
|
-
customClassName = _it$className ===
|
|
1391
|
+
customClassName = _it$className === undefined ? null : _it$className,
|
|
1364
1392
|
_it$linkClassName = it.linkClassName,
|
|
1365
|
-
customLinkClassName = _it$linkClassName ===
|
|
1393
|
+
customLinkClassName = _it$linkClassName === undefined ? null : _it$linkClassName,
|
|
1366
1394
|
_it$href = it.href,
|
|
1367
|
-
href = _it$href ===
|
|
1395
|
+
href = _it$href === undefined ? null : _it$href,
|
|
1368
1396
|
label = it.label,
|
|
1369
1397
|
_it$external = it.external,
|
|
1370
|
-
external = _it$external ===
|
|
1398
|
+
external = _it$external === undefined ? false : _it$external,
|
|
1371
1399
|
_it$items = it.items,
|
|
1372
|
-
subItems = _it$items ===
|
|
1400
|
+
subItems = _it$items === undefined ? null : _it$items,
|
|
1373
1401
|
_it$dropdown = it.dropdown,
|
|
1374
|
-
dropdown = _it$dropdown ===
|
|
1402
|
+
dropdown = _it$dropdown === undefined ? null : _it$dropdown,
|
|
1375
1403
|
_it$active = it.active,
|
|
1376
|
-
active = _it$active ===
|
|
1404
|
+
active = _it$active === undefined ? false : _it$active,
|
|
1377
1405
|
_it$onClick = it.onClick,
|
|
1378
|
-
customOnClick = _it$onClick ===
|
|
1406
|
+
customOnClick = _it$onClick === undefined ? null : _it$onClick,
|
|
1379
1407
|
itemProps = _objectWithoutProperties(it, _excluded$3);
|
|
1380
1408
|
var onClickItem = dropdown !== null ? function (e) {
|
|
1381
1409
|
e.preventDefault();
|
|
@@ -1795,9 +1823,9 @@ var ModalPortal = function ModalPortal(_ref) {
|
|
|
1795
1823
|
var _useModals = useModals(),
|
|
1796
1824
|
container = _useModals.container,
|
|
1797
1825
|
_useModals$register = _useModals.register,
|
|
1798
|
-
register = _useModals$register ===
|
|
1826
|
+
register = _useModals$register === undefined ? null : _useModals$register,
|
|
1799
1827
|
_useModals$unregister = _useModals.unregister,
|
|
1800
|
-
unregister = _useModals$unregister ===
|
|
1828
|
+
unregister = _useModals$unregister === undefined ? null : _useModals$unregister;
|
|
1801
1829
|
return /*#__PURE__*/React.createElement(ElementPortal, {
|
|
1802
1830
|
id: id,
|
|
1803
1831
|
data: data,
|
|
@@ -1957,12 +1985,12 @@ var PanelPortal = function PanelPortal(_ref) {
|
|
|
1957
1985
|
children = _ref.children;
|
|
1958
1986
|
var _usePanels = usePanels(),
|
|
1959
1987
|
_usePanels$panels = _usePanels.panels,
|
|
1960
|
-
panels = _usePanels$panels ===
|
|
1988
|
+
panels = _usePanels$panels === undefined ? null : _usePanels$panels,
|
|
1961
1989
|
container = _usePanels.container,
|
|
1962
1990
|
_usePanels$register = _usePanels.register,
|
|
1963
|
-
register = _usePanels$register ===
|
|
1991
|
+
register = _usePanels$register === undefined ? null : _usePanels$register,
|
|
1964
1992
|
_usePanels$unregister = _usePanels.unregister,
|
|
1965
|
-
unregister = _usePanels$unregister ===
|
|
1993
|
+
unregister = _usePanels$unregister === undefined ? null : _usePanels$unregister;
|
|
1966
1994
|
if (panels === null) {
|
|
1967
1995
|
return children;
|
|
1968
1996
|
}
|
|
@@ -2346,15 +2374,15 @@ Empty.defaultProps = defaultProps$g;
|
|
|
2346
2374
|
var getUrlsFromMedia = function getUrlsFromMedia(media, formats) {
|
|
2347
2375
|
var _ref = media || {},
|
|
2348
2376
|
_ref$files = _ref.files,
|
|
2349
|
-
files = _ref$files ===
|
|
2377
|
+
files = _ref$files === undefined ? {} : _ref$files;
|
|
2350
2378
|
var _ref2 = files || {},
|
|
2351
2379
|
_ref2$original = _ref2.original,
|
|
2352
|
-
originalFile = _ref2$original ===
|
|
2380
|
+
originalFile = _ref2$original === undefined ? null : _ref2$original;
|
|
2353
2381
|
var _ref3 = originalFile || {},
|
|
2354
2382
|
_ref3$name = _ref3.name,
|
|
2355
|
-
originalName = _ref3$name ===
|
|
2383
|
+
originalName = _ref3$name === undefined ? null : _ref3$name,
|
|
2356
2384
|
_ref3$mime = _ref3.mime,
|
|
2357
|
-
originalMime = _ref3$mime ===
|
|
2385
|
+
originalMime = _ref3$mime === undefined ? null : _ref3$mime;
|
|
2358
2386
|
var urls = formats.reduce(function (currentUrls, format) {
|
|
2359
2387
|
var finalFormat = isObject(format) ? format.format : format;
|
|
2360
2388
|
var formatExtension = isObject(format) ? format.name : format;
|
|
@@ -2395,11 +2423,11 @@ var FontFaces = function FontFaces(_ref4) {
|
|
|
2395
2423
|
return isObject(it) && it.type === 'custom' && (it.media || null) !== null;
|
|
2396
2424
|
}).reduce(function (fontFontFaces, _ref5) {
|
|
2397
2425
|
var _ref5$name = _ref5.name,
|
|
2398
|
-
name = _ref5$name ===
|
|
2426
|
+
name = _ref5$name === undefined ? null : _ref5$name,
|
|
2399
2427
|
_ref5$media = _ref5.media,
|
|
2400
|
-
media = _ref5$media ===
|
|
2428
|
+
media = _ref5$media === undefined ? null : _ref5$media,
|
|
2401
2429
|
_ref5$variants = _ref5.variants,
|
|
2402
|
-
variants = _ref5$variants ===
|
|
2430
|
+
variants = _ref5$variants === undefined ? [] : _ref5$variants;
|
|
2403
2431
|
if (name === null) {
|
|
2404
2432
|
return fontFontFaces;
|
|
2405
2433
|
}
|
|
@@ -2408,7 +2436,7 @@ var FontFaces = function FontFaces(_ref4) {
|
|
|
2408
2436
|
var weight = _ref6.weight,
|
|
2409
2437
|
style = _ref6.style,
|
|
2410
2438
|
_ref6$media = _ref6.media,
|
|
2411
|
-
variantMedia = _ref6$media ===
|
|
2439
|
+
variantMedia = _ref6$media === undefined ? null : _ref6$media;
|
|
2412
2440
|
if (variantMedia == null) {
|
|
2413
2441
|
return null;
|
|
2414
2442
|
}
|
|
@@ -3098,37 +3126,37 @@ var Meta = function Meta(_ref) {
|
|
|
3098
3126
|
children = _ref.children;
|
|
3099
3127
|
var _ref2 = metadata || {},
|
|
3100
3128
|
_ref2$canonical = _ref2.canonical,
|
|
3101
|
-
canonical = _ref2$canonical ===
|
|
3129
|
+
canonical = _ref2$canonical === undefined ? null : _ref2$canonical,
|
|
3102
3130
|
_ref2$description = _ref2.description,
|
|
3103
|
-
description = _ref2$description ===
|
|
3131
|
+
description = _ref2$description === undefined ? null : _ref2$description,
|
|
3104
3132
|
_ref2$keywords = _ref2.keywords,
|
|
3105
|
-
keywords = _ref2$keywords ===
|
|
3133
|
+
keywords = _ref2$keywords === undefined ? null : _ref2$keywords,
|
|
3106
3134
|
_ref2$image = _ref2.image,
|
|
3107
|
-
image = _ref2$image ===
|
|
3135
|
+
image = _ref2$image === undefined ? null : _ref2$image,
|
|
3108
3136
|
_ref2$favicon = _ref2.favicon,
|
|
3109
|
-
favicon = _ref2$favicon ===
|
|
3137
|
+
favicon = _ref2$favicon === undefined ? null : _ref2$favicon,
|
|
3110
3138
|
_ref2$rssUrl = _ref2.rssUrl,
|
|
3111
|
-
rssUrl = _ref2$rssUrl ===
|
|
3139
|
+
rssUrl = _ref2$rssUrl === undefined ? null : _ref2$rssUrl,
|
|
3112
3140
|
_ref2$atomUrl = _ref2.atomUrl,
|
|
3113
|
-
atomUrl = _ref2$atomUrl ===
|
|
3141
|
+
atomUrl = _ref2$atomUrl === undefined ? null : _ref2$atomUrl,
|
|
3114
3142
|
_ref2$microformats = _ref2.microformats,
|
|
3115
|
-
microformats = _ref2$microformats ===
|
|
3143
|
+
microformats = _ref2$microformats === undefined ? [] : _ref2$microformats,
|
|
3116
3144
|
_ref2$language = _ref2.language,
|
|
3117
|
-
language = _ref2$language ===
|
|
3145
|
+
language = _ref2$language === undefined ? null : _ref2$language;
|
|
3118
3146
|
var realTitle = title !== null ? "".concat(title, " | ").concat(suffix) : fullTitle;
|
|
3119
3147
|
var _ref3 = image || {},
|
|
3120
3148
|
_ref3$url = _ref3.url,
|
|
3121
|
-
imageUrl = _ref3$url ===
|
|
3149
|
+
imageUrl = _ref3$url === undefined ? null : _ref3$url,
|
|
3122
3150
|
_ref3$metadata = _ref3.metadata,
|
|
3123
|
-
imageMetadata = _ref3$metadata ===
|
|
3151
|
+
imageMetadata = _ref3$metadata === undefined ? {} : _ref3$metadata;
|
|
3124
3152
|
var _ref4 = imageMetadata || {},
|
|
3125
3153
|
_ref4$width = _ref4.width,
|
|
3126
|
-
imageWidth = _ref4$width ===
|
|
3154
|
+
imageWidth = _ref4$width === undefined ? null : _ref4$width,
|
|
3127
3155
|
_ref4$height = _ref4.height,
|
|
3128
|
-
imageHeight = _ref4$height ===
|
|
3156
|
+
imageHeight = _ref4$height === undefined ? null : _ref4$height;
|
|
3129
3157
|
var _ref5 = favicon || {},
|
|
3130
3158
|
_ref5$url = _ref5.url,
|
|
3131
|
-
faviconUrl = _ref5$url ===
|
|
3159
|
+
faviconUrl = _ref5$url === undefined ? null : _ref5$url;
|
|
3132
3160
|
return /*#__PURE__*/React.createElement(Helmet, null, /*#__PURE__*/React.createElement("title", null, realTitle !== null && realTitle.length > 0 ? realTitle : 'Micromag'), description !== null ? /*#__PURE__*/React.createElement("meta", {
|
|
3133
3161
|
name: "description",
|
|
3134
3162
|
content: description
|
|
@@ -3303,9 +3331,9 @@ var AdImage = function AdImage(_ref) {
|
|
|
3303
3331
|
/* eslint-disable react/destructuring-assignment, react/prop-types */
|
|
3304
3332
|
var Audio = function Audio(_ref) {
|
|
3305
3333
|
var _ref$width = _ref.width,
|
|
3306
|
-
width = _ref$width ===
|
|
3334
|
+
width = _ref$width === undefined ? '100%' : _ref$width,
|
|
3307
3335
|
_ref$height = _ref.height,
|
|
3308
|
-
height = _ref$height ===
|
|
3336
|
+
height = _ref$height === undefined ? '2em' : _ref$height,
|
|
3309
3337
|
className = _ref.className;
|
|
3310
3338
|
return /*#__PURE__*/React.createElement(PlaceholderBlock, {
|
|
3311
3339
|
width: width,
|
|
@@ -3368,9 +3396,9 @@ PlaceholderText.defaultProps = defaultProps$b;
|
|
|
3368
3396
|
/* eslint-disable react/destructuring-assignment, react/prop-types */
|
|
3369
3397
|
var Button = function Button(_ref) {
|
|
3370
3398
|
var _ref$width = _ref.width,
|
|
3371
|
-
width = _ref$width ===
|
|
3399
|
+
width = _ref$width === undefined ? '75%' : _ref$width,
|
|
3372
3400
|
_ref$height = _ref.height,
|
|
3373
|
-
height = _ref$height ===
|
|
3401
|
+
height = _ref$height === undefined ? '0.4em' : _ref$height,
|
|
3374
3402
|
className = _ref.className;
|
|
3375
3403
|
return /*#__PURE__*/React.createElement(PlaceholderBlock, {
|
|
3376
3404
|
outline: true,
|
|
@@ -3473,13 +3501,13 @@ var Subtitle = function Subtitle(props) {
|
|
|
3473
3501
|
/* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
|
|
3474
3502
|
var TextPlaceholder = function TextPlaceholder(props) {
|
|
3475
3503
|
var _props$className = props.className,
|
|
3476
|
-
className = _props$className ===
|
|
3504
|
+
className = _props$className === undefined ? null : _props$className,
|
|
3477
3505
|
_props$height = props.height,
|
|
3478
|
-
height = _props$height ===
|
|
3506
|
+
height = _props$height === undefined ? 0.2 : _props$height,
|
|
3479
3507
|
_props$lines = props.lines,
|
|
3480
|
-
lines = _props$lines ===
|
|
3508
|
+
lines = _props$lines === undefined ? 4 : _props$lines,
|
|
3481
3509
|
_props$lineMargin = props.lineMargin,
|
|
3482
|
-
lineMargin = _props$lineMargin ===
|
|
3510
|
+
lineMargin = _props$lineMargin === undefined ? 2 : _props$lineMargin;
|
|
3483
3511
|
return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
|
|
3484
3512
|
height: height,
|
|
3485
3513
|
lines: lines,
|
|
@@ -3498,11 +3526,11 @@ var Timeline = function Timeline(props) {
|
|
|
3498
3526
|
/* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
|
|
3499
3527
|
var Title$1 = function Title(props) {
|
|
3500
3528
|
var _props$height = props.height,
|
|
3501
|
-
height = _props$height ===
|
|
3529
|
+
height = _props$height === undefined ? 0.5 : _props$height,
|
|
3502
3530
|
_props$lines = props.lines,
|
|
3503
|
-
lines = _props$lines ===
|
|
3531
|
+
lines = _props$lines === undefined ? 2 : _props$lines,
|
|
3504
3532
|
_props$lineMargin = props.lineMargin,
|
|
3505
|
-
lineMargin = _props$lineMargin ===
|
|
3533
|
+
lineMargin = _props$lineMargin === undefined ? 2 : _props$lineMargin;
|
|
3506
3534
|
return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
|
|
3507
3535
|
className: classNames([props.className, styles$d.title]),
|
|
3508
3536
|
height: height,
|
|
@@ -3595,9 +3623,9 @@ var ScreenSizer = function ScreenSizer(_ref) {
|
|
|
3595
3623
|
var _useDimensionObserver = useDimensionObserver(),
|
|
3596
3624
|
refContainer = _useDimensionObserver.ref,
|
|
3597
3625
|
_useDimensionObserver2 = _useDimensionObserver.width,
|
|
3598
|
-
calculatedWidth = _useDimensionObserver2 ===
|
|
3626
|
+
calculatedWidth = _useDimensionObserver2 === undefined ? 0 : _useDimensionObserver2,
|
|
3599
3627
|
_useDimensionObserver3 = _useDimensionObserver.height,
|
|
3600
|
-
calculatedHeight = _useDimensionObserver3 ===
|
|
3628
|
+
calculatedHeight = _useDimensionObserver3 === undefined ? 0 : _useDimensionObserver3;
|
|
3601
3629
|
var _useMemo = useMemo(function () {
|
|
3602
3630
|
var containerWidth = width || calculatedWidth || null;
|
|
3603
3631
|
var containerHeight = height || calculatedHeight || null;
|
|
@@ -3632,13 +3660,13 @@ var ScreenSizer = function ScreenSizer(_ref) {
|
|
|
3632
3660
|
};
|
|
3633
3661
|
}, [screenWidth, screenHeight, width, height, fit, calculatedWidth, calculatedHeight, hasSize]),
|
|
3634
3662
|
_useMemo$width = _useMemo.width,
|
|
3635
|
-
frameWidth = _useMemo$width ===
|
|
3663
|
+
frameWidth = _useMemo$width === undefined ? null : _useMemo$width,
|
|
3636
3664
|
_useMemo$height = _useMemo.height,
|
|
3637
|
-
frameHeight = _useMemo$height ===
|
|
3665
|
+
frameHeight = _useMemo$height === undefined ? null : _useMemo$height,
|
|
3638
3666
|
_useMemo$scale = _useMemo.scale,
|
|
3639
|
-
frameScale = _useMemo$scale ===
|
|
3667
|
+
frameScale = _useMemo$scale === undefined ? null : _useMemo$scale,
|
|
3640
3668
|
_useMemo$transform = _useMemo.transform,
|
|
3641
|
-
screenTransform = _useMemo$transform ===
|
|
3669
|
+
screenTransform = _useMemo$transform === undefined ? null : _useMemo$transform;
|
|
3642
3670
|
var screenSize = useMemo(function () {
|
|
3643
3671
|
return {
|
|
3644
3672
|
screen: 'mobile',
|
|
@@ -3716,7 +3744,7 @@ var Screen = function Screen(_ref) {
|
|
|
3716
3744
|
mediaRef = _ref.mediaRef;
|
|
3717
3745
|
var _ref2 = screen || {},
|
|
3718
3746
|
_ref2$type = _ref2.type,
|
|
3719
|
-
type = _ref2$type ===
|
|
3747
|
+
type = _ref2$type === undefined ? null : _ref2$type;
|
|
3720
3748
|
var CustomScreenComponent = components !== null ? getComponentFromName(type, components) || null : null;
|
|
3721
3749
|
var ContextScreenComponent = useScreenComponent(type);
|
|
3722
3750
|
var ScreenComponent = CustomScreenComponent || ContextScreenComponent;
|
|
@@ -3864,9 +3892,9 @@ var Conversation = function Conversation() {
|
|
|
3864
3892
|
/* eslint-disable react/prop-types */
|
|
3865
3893
|
var InputText = function InputText(_ref) {
|
|
3866
3894
|
var _ref$width = _ref.width,
|
|
3867
|
-
width = _ref$width ===
|
|
3895
|
+
width = _ref$width === undefined ? '75%' : _ref$width,
|
|
3868
3896
|
_ref$height = _ref.height,
|
|
3869
|
-
height = _ref$height ===
|
|
3897
|
+
height = _ref$height === undefined ? '0.5em' : _ref$height,
|
|
3870
3898
|
className = _ref.className;
|
|
3871
3899
|
return /*#__PURE__*/React.createElement(PlaceholderBlock, {
|
|
3872
3900
|
outline: true,
|
|
@@ -3880,12 +3908,12 @@ var styles$4 = {"container":"micromag-core-placeholders-quiz-answer-container","
|
|
|
3880
3908
|
|
|
3881
3909
|
var Answer$1 = function Answer(_ref) {
|
|
3882
3910
|
var _ref$width = _ref.width,
|
|
3883
|
-
width = _ref$width ===
|
|
3911
|
+
width = _ref$width === undefined ? '75%' : _ref$width,
|
|
3884
3912
|
_ref$height = _ref.height,
|
|
3885
|
-
height = _ref$height ===
|
|
3913
|
+
height = _ref$height === undefined ? '0.3em' : _ref$height,
|
|
3886
3914
|
className = _ref.className,
|
|
3887
3915
|
_ref$good = _ref.good,
|
|
3888
|
-
good = _ref$good ===
|
|
3916
|
+
good = _ref$good === undefined ? true : _ref$good;
|
|
3889
3917
|
return /*#__PURE__*/React.createElement("div", {
|
|
3890
3918
|
className: classNames([styles$4.container, _defineProperty(_defineProperty({}, className, className !== null), styles$4.good, good)])
|
|
3891
3919
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -3934,9 +3962,9 @@ var styles$2 = {"container":"micromag-core-placeholders-survey-answer-container"
|
|
|
3934
3962
|
|
|
3935
3963
|
var Answer = function Answer(_ref) {
|
|
3936
3964
|
var _ref$width = _ref.width,
|
|
3937
|
-
width = _ref$width ===
|
|
3965
|
+
width = _ref$width === undefined ? '75%' : _ref$width,
|
|
3938
3966
|
_ref$height = _ref.height,
|
|
3939
|
-
height = _ref$height ===
|
|
3967
|
+
height = _ref$height === undefined ? '0.3em' : _ref$height,
|
|
3940
3968
|
className = _ref.className;
|
|
3941
3969
|
return /*#__PURE__*/React.createElement("div", {
|
|
3942
3970
|
className: classNames([styles$2.container, _defineProperty({}, className, className !== null)])
|
|
@@ -4226,7 +4254,7 @@ function Transitions(_ref) {
|
|
|
4226
4254
|
children = _ref.children;
|
|
4227
4255
|
var _useScreenSize = useScreenSize(),
|
|
4228
4256
|
_useScreenSize$landsc = _useScreenSize.landscape,
|
|
4229
|
-
landscape = _useScreenSize$landsc ===
|
|
4257
|
+
landscape = _useScreenSize$landsc === undefined ? true : _useScreenSize$landsc;
|
|
4230
4258
|
var finalPlaying = playing || landscape;
|
|
4231
4259
|
var finalTransitions = {
|
|
4232
4260
|
"in": null,
|
|
@@ -4244,17 +4272,17 @@ function Transitions(_ref) {
|
|
|
4244
4272
|
} : currentTransition;
|
|
4245
4273
|
});
|
|
4246
4274
|
var _finalTransitions$in = finalTransitions["in"],
|
|
4247
|
-
transitionIn = _finalTransitions$in ===
|
|
4275
|
+
transitionIn = _finalTransitions$in === undefined ? null : _finalTransitions$in,
|
|
4248
4276
|
_finalTransitions$out = finalTransitions.out,
|
|
4249
|
-
transitionOut = _finalTransitions$out ===
|
|
4277
|
+
transitionOut = _finalTransitions$out === undefined ? null : _finalTransitions$out;
|
|
4250
4278
|
var finalTransitionIn = transitionIn !== null ? transitionIn : transitionOut;
|
|
4251
4279
|
var finalTransitionOut = transitionOut !== null ? transitionOut : transitionIn;
|
|
4252
4280
|
var _ref2 = finalTransitionIn || {},
|
|
4253
4281
|
_ref2$name = _ref2.name,
|
|
4254
|
-
transitionInName = _ref2$name ===
|
|
4282
|
+
transitionInName = _ref2$name === undefined ? null : _ref2$name;
|
|
4255
4283
|
var _ref3 = finalTransitionOut || {},
|
|
4256
4284
|
_ref3$name = _ref3.name,
|
|
4257
|
-
transitionOutName = _ref3$name ===
|
|
4285
|
+
transitionOutName = _ref3$name === undefined ? null : _ref3$name;
|
|
4258
4286
|
var sameTransitionInOut = transitionInName === transitionOutName;
|
|
4259
4287
|
var TransitionIn = finalTransitionIn !== null ? getComponentFromName(transitionInName, TransitionComponents, null) : null;
|
|
4260
4288
|
var TransitionOut = finalTransitionOut !== null && !sameTransitionInOut ? getComponentFromName(transitionOutName, TransitionComponents, null) : null;
|
|
@@ -4314,10 +4342,10 @@ var TransitionsStagger = function TransitionsStagger(_ref) {
|
|
|
4314
4342
|
return null;
|
|
4315
4343
|
}
|
|
4316
4344
|
var _child$type = child.type,
|
|
4317
|
-
type = _child$type ===
|
|
4345
|
+
type = _child$type === undefined ? null : _child$type;
|
|
4318
4346
|
var _ref2 = type || {},
|
|
4319
4347
|
_ref2$withoutTransiti = _ref2.withoutTransitionsWrapper,
|
|
4320
|
-
withoutTransitionsWrapper = _ref2$withoutTransiti ===
|
|
4348
|
+
withoutTransitionsWrapper = _ref2$withoutTransiti === undefined ? false : _ref2$withoutTransiti;
|
|
4321
4349
|
if (disabled || withoutTransitionsWrapper) {
|
|
4322
4350
|
return child;
|
|
4323
4351
|
}
|
|
@@ -4381,4 +4409,4 @@ var LinkStyle = function LinkStyle(_ref) {
|
|
|
4381
4409
|
LinkStyle.propTypes = propTypes;
|
|
4382
4410
|
LinkStyle.defaultProps = defaultProps;
|
|
4383
4411
|
|
|
4384
|
-
export { ArrowIcon, BackButton, Breadcrumb, Button$1 as Button, Buttons, Card, Close, CloseIcon, CollapsablePanel, Date$1 as Date, Detector, Dropdown as DropdownMenu, ElementComponent as Element, Empty, FieldForm, FontFaces, Form, FormPanel, FullscreenIcon, HighlightStyle, Label, Link, LinkIcon, LinkStyle, Media, _Menu as Menu, Meta, Modal, ModalDialog, ModalPortal, Modals, MuteIcon, Navbar, PaginationMenu as Pagination, Panel, PanelPortal, Panels, PauseIcon, AdFrame as PlaceholderAdFrame, AdImage as PlaceholderAdImage, Audio as PlaceholderAudio, Button as PlaceholderButton, Image as PlaceholderImage, Line as PlaceholderLine, Map as PlaceholderMap, MapPath as PlaceholderMapPath, Quote as PlaceholderQuote, ShortText as PlaceholderShortText, Subtitle as PlaceholderSubtitle, TextPlaceholder as PlaceholderText, Timeline as PlaceholderTimeline, Title$1 as PlaceholderTitle, Video as PlaceholderVideo, Video360 as PlaceholderVideo360, VideoLoop as PlaceholderVideoLoop, PlayIcon, Screen$1 as Screen, ScreenElement, Placeholder as ScreenPlaceholder, Preview as ScreenPreview, ScreenSizer, Screens, Slideshow, Spinner, TabsMenu as Tabs, Transitions, TransitionsStagger, UnmuteIcon };
|
|
4412
|
+
export { ArrowIcon, BackButton, Breadcrumb, Button$1 as Button, Buttons, Card, ClearButton, Close, CloseIcon, CollapsablePanel, Date$1 as Date, Detector, Dropdown as DropdownMenu, ElementComponent as Element, Empty, FieldForm, FontFaces, Form, FormPanel, FullscreenIcon, HighlightStyle, Label, Link, LinkIcon, LinkStyle, Media, _Menu as Menu, Meta, Modal, ModalDialog, ModalPortal, Modals, MuteIcon, Navbar, PaginationMenu as Pagination, Panel, PanelPortal, Panels, PauseIcon, AdFrame as PlaceholderAdFrame, AdImage as PlaceholderAdImage, Audio as PlaceholderAudio, Button as PlaceholderButton, Image as PlaceholderImage, Line as PlaceholderLine, Map as PlaceholderMap, MapPath as PlaceholderMapPath, Quote as PlaceholderQuote, ShortText as PlaceholderShortText, Subtitle as PlaceholderSubtitle, TextPlaceholder as PlaceholderText, Timeline as PlaceholderTimeline, Title$1 as PlaceholderTitle, Video as PlaceholderVideo, Video360 as PlaceholderVideo360, VideoLoop as PlaceholderVideoLoop, PlayIcon, Screen$1 as Screen, ScreenElement, Placeholder as ScreenPlaceholder, Preview as ScreenPreview, ScreenSizer, Screens, Slideshow, Spinner, TabsMenu as Tabs, Transitions, TransitionsStagger, UnmuteIcon };
|