@micromag/core 0.3.480 → 0.3.482
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/es/components.js +186 -115
- package/es/contexts.js +81 -125
- package/es/hooks.js +27 -11
- package/es/index.js +25 -104
- package/es/utils.js +66 -124
- package/lib/components.js +518 -179
- package/lib/contexts.js +353 -63
- package/lib/hooks.js +40 -24
- package/lib/index.js +34 -29
- package/lib/utils.js +109 -62
- package/package.json +8 -6
package/lib/components.js
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
5
|
-
var classNames = require('classnames');
|
|
3
|
+
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
6
4
|
var PropTypes = require('prop-types');
|
|
7
5
|
var React = require('react');
|
|
8
|
-
var reactRouterDom = require('react-router-dom');
|
|
9
6
|
var core = require('@micromag/core');
|
|
10
|
-
var reactIntl = require('react-intl');
|
|
11
7
|
var utils = require('@micromag/core/utils');
|
|
8
|
+
var contexts = require('@micromag/core/contexts');
|
|
9
|
+
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
10
|
+
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
11
|
+
var core$1 = require('@react-spring/core');
|
|
12
|
+
var web = require('@react-spring/web');
|
|
13
|
+
var classNames = require('classnames');
|
|
14
|
+
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
15
|
+
var regexparam = require('regexparam');
|
|
16
|
+
var index_js = require('use-sync-external-store/shim/index.js');
|
|
17
|
+
var reactIntl = require('react-intl');
|
|
12
18
|
var reactFontawesome = require('@fortawesome/react-fontawesome');
|
|
13
19
|
var faAngleLeft = require('@fortawesome/free-solid-svg-icons/faAngleLeft');
|
|
14
20
|
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
15
|
-
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
16
21
|
var hooks = require('@micromag/core/hooks');
|
|
17
|
-
var contexts = require('@micromag/core/contexts');
|
|
18
|
-
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
19
22
|
var get = require('lodash/get');
|
|
20
23
|
var queryString = require('query-string');
|
|
21
24
|
var ReactDOM = require('react-dom');
|
|
@@ -42,8 +45,273 @@ var faCheck = require('@fortawesome/free-solid-svg-icons/faCheck');
|
|
|
42
45
|
var faTimes = require('@fortawesome/free-solid-svg-icons/faTimes');
|
|
43
46
|
var faCircle = require('@fortawesome/free-solid-svg-icons/faCircle');
|
|
44
47
|
var faPercent = require('@fortawesome/free-solid-svg-icons/faPercent');
|
|
45
|
-
|
|
46
|
-
|
|
48
|
+
|
|
49
|
+
function _interopNamespaceDefault(e) {
|
|
50
|
+
var n = Object.create(null);
|
|
51
|
+
if (e) {
|
|
52
|
+
Object.keys(e).forEach(function (k) {
|
|
53
|
+
if (k !== 'default') {
|
|
54
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
55
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
get: function () { return e[k]; }
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
n.default = e;
|
|
63
|
+
return Object.freeze(n);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
67
|
+
|
|
68
|
+
// React.useInsertionEffect is not available in React <18
|
|
69
|
+
var useEffect = React__namespace.useEffect,
|
|
70
|
+
useLayoutEffect = React__namespace.useLayoutEffect,
|
|
71
|
+
useRef = React__namespace.useRef,
|
|
72
|
+
useBuiltinInsertionEffect = React__namespace.useInsertionEffect;
|
|
73
|
+
|
|
74
|
+
// Copied from:
|
|
75
|
+
// https://github.com/facebook/react/blob/main/packages/shared/ExecutionEnvironment.js
|
|
76
|
+
var canUseDOM = !!(typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined");
|
|
77
|
+
|
|
78
|
+
// Copied from:
|
|
79
|
+
// https://github.com/reduxjs/react-redux/blob/master/src/utils/useIsomorphicLayoutEffect.ts
|
|
80
|
+
// "React currently throws a warning when using useLayoutEffect on the server.
|
|
81
|
+
// To get around it, we can conditionally useEffect on the server (no-op) and
|
|
82
|
+
// useLayoutEffect in the browser."
|
|
83
|
+
var useIsomorphicLayoutEffect = canUseDOM ? useLayoutEffect : useEffect;
|
|
84
|
+
|
|
85
|
+
// useInsertionEffect is already a noop on the server.
|
|
86
|
+
// See: https://github.com/facebook/react/blob/main/packages/react-server/src/ReactFizzHooks.js
|
|
87
|
+
var useInsertionEffect = useBuiltinInsertionEffect || useIsomorphicLayoutEffect;
|
|
88
|
+
|
|
89
|
+
// Userland polyfill while we wait for the forthcoming
|
|
90
|
+
// https://github.com/reactjs/rfcs/blob/useevent/text/0000-useevent.md
|
|
91
|
+
// Note: "A high-fidelity polyfill for useEvent is not possible because
|
|
92
|
+
// there is no lifecycle or Hook in React that we can use to switch
|
|
93
|
+
// .current at the right timing."
|
|
94
|
+
// So we will have to make do with this "close enough" approach for now.
|
|
95
|
+
var useEvent = function useEvent(fn) {
|
|
96
|
+
var ref = useRef([fn, function () {
|
|
97
|
+
return ref[0].apply(ref, arguments);
|
|
98
|
+
}]).current;
|
|
99
|
+
// Per Dan Abramov: useInsertionEffect executes marginally closer to the
|
|
100
|
+
// correct timing for ref synchronization than useLayoutEffect on React 18.
|
|
101
|
+
// See: https://github.com/facebook/react/pull/25881#issuecomment-1356244360
|
|
102
|
+
useInsertionEffect(function () {
|
|
103
|
+
ref[0] = fn;
|
|
104
|
+
});
|
|
105
|
+
return ref[1];
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* History API docs @see https://developer.mozilla.org/en-US/docs/Web/API/History
|
|
110
|
+
*/
|
|
111
|
+
var eventPopstate = "popstate";
|
|
112
|
+
var eventPushState = "pushState";
|
|
113
|
+
var eventReplaceState = "replaceState";
|
|
114
|
+
var eventHashchange = "hashchange";
|
|
115
|
+
var events = [eventPopstate, eventPushState, eventReplaceState, eventHashchange];
|
|
116
|
+
var subscribeToLocationUpdates = function subscribeToLocationUpdates(callback) {
|
|
117
|
+
for (var _i = 0, _events = events; _i < _events.length; _i++) {
|
|
118
|
+
var event = _events[_i];
|
|
119
|
+
addEventListener(event, callback);
|
|
120
|
+
}
|
|
121
|
+
return function () {
|
|
122
|
+
for (var _i2 = 0, _events2 = events; _i2 < _events2.length; _i2++) {
|
|
123
|
+
var _event = _events2[_i2];
|
|
124
|
+
removeEventListener(_event, callback);
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
var useLocationProperty = function useLocationProperty(fn, ssrFn) {
|
|
129
|
+
return index_js.useSyncExternalStore(subscribeToLocationUpdates, fn, ssrFn);
|
|
130
|
+
};
|
|
131
|
+
var currentSearch = function currentSearch() {
|
|
132
|
+
return location.search;
|
|
133
|
+
};
|
|
134
|
+
var useSearch = function useSearch() {
|
|
135
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
136
|
+
_ref$ssrSearch = _ref.ssrSearch,
|
|
137
|
+
ssrSearch = _ref$ssrSearch === void 0 ? "" : _ref$ssrSearch;
|
|
138
|
+
return useLocationProperty(currentSearch, function () {
|
|
139
|
+
return ssrSearch;
|
|
140
|
+
});
|
|
141
|
+
};
|
|
142
|
+
var currentPathname = function currentPathname() {
|
|
143
|
+
return location.pathname;
|
|
144
|
+
};
|
|
145
|
+
var usePathname = function usePathname() {
|
|
146
|
+
var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
147
|
+
ssrPath = _ref2.ssrPath;
|
|
148
|
+
return useLocationProperty(currentPathname, ssrPath ? function () {
|
|
149
|
+
return ssrPath;
|
|
150
|
+
} : currentPathname);
|
|
151
|
+
};
|
|
152
|
+
var navigate = function navigate(to) {
|
|
153
|
+
var _ref3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
154
|
+
_ref3$replace = _ref3.replace,
|
|
155
|
+
replace = _ref3$replace === void 0 ? false : _ref3$replace,
|
|
156
|
+
_ref3$state = _ref3.state,
|
|
157
|
+
state = _ref3$state === void 0 ? null : _ref3$state;
|
|
158
|
+
return history[replace ? eventReplaceState : eventPushState](state, "", to);
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
// the 2nd argument of the `useBrowserLocation` return value is a function
|
|
162
|
+
// that allows to perform a navigation.
|
|
163
|
+
var useBrowserLocation = function useBrowserLocation() {
|
|
164
|
+
var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
165
|
+
return [usePathname(opts), navigate];
|
|
166
|
+
};
|
|
167
|
+
var patchKey = Symbol["for"]("wouter_v3");
|
|
168
|
+
|
|
169
|
+
// While History API does have `popstate` event, the only
|
|
170
|
+
// proper way to listen to changes via `push/replaceState`
|
|
171
|
+
// is to monkey-patch these methods.
|
|
172
|
+
//
|
|
173
|
+
// See https://stackoverflow.com/a/4585031
|
|
174
|
+
if (typeof history !== "undefined" && typeof window[patchKey] === "undefined") {
|
|
175
|
+
var _loop = function _loop() {
|
|
176
|
+
var type = _arr[_i3];
|
|
177
|
+
var original = history[type];
|
|
178
|
+
// TODO: we should be using unstable_batchedUpdates to avoid multiple re-renders,
|
|
179
|
+
// however that will require an additional peer dependency on react-dom.
|
|
180
|
+
// See: https://github.com/reactwg/react-18/discussions/86#discussioncomment-1567149
|
|
181
|
+
history[type] = function () {
|
|
182
|
+
var result = original.apply(this, arguments);
|
|
183
|
+
var event = new Event(type);
|
|
184
|
+
event.arguments = arguments;
|
|
185
|
+
dispatchEvent(event);
|
|
186
|
+
return result;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
for (var _i3 = 0, _arr = [eventPushState, eventReplaceState]; _i3 < _arr.length; _i3++) {
|
|
190
|
+
_loop();
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
// patch history object only once
|
|
194
|
+
// See: https://github.com/molefrog/wouter/issues/167
|
|
195
|
+
Object.defineProperty(window, patchKey, {
|
|
196
|
+
value: true
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
var _excluded3 = ["to", "href", "onClick", "asChild", "children", "replace", "state"];
|
|
201
|
+
|
|
202
|
+
/*
|
|
203
|
+
* Transforms `path` into its relative `base` version
|
|
204
|
+
* If base isn't part of the path provided returns absolute path e.g. `~/app`
|
|
205
|
+
*/
|
|
206
|
+
var relativePath = function relativePath() {
|
|
207
|
+
var base = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
208
|
+
var path = arguments.length > 1 ? arguments[1] : undefined;
|
|
209
|
+
return !path.toLowerCase().indexOf(base.toLowerCase()) ? path.slice(base.length) || "/" : "~" + path;
|
|
210
|
+
};
|
|
211
|
+
var absolutePath = function absolutePath(to) {
|
|
212
|
+
var base = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
|
|
213
|
+
return to[0] === "~" ? to.slice(1) : base + to;
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
/*
|
|
217
|
+
* decodes escape sequences such as %20
|
|
218
|
+
*/
|
|
219
|
+
var unescape = function unescape(str) {
|
|
220
|
+
try {
|
|
221
|
+
return decodeURI(str);
|
|
222
|
+
} catch (_e) {
|
|
223
|
+
// fail-safe mode: if string can't be decoded do nothing
|
|
224
|
+
return str;
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
/*
|
|
229
|
+
* Router and router context. Router is a lightweight object that represents the current
|
|
230
|
+
* routing options: how location is managed, base path etc.
|
|
231
|
+
*
|
|
232
|
+
* There is a default router present for most of the use cases, however it can be overridden
|
|
233
|
+
* via the <Router /> component.
|
|
234
|
+
*/
|
|
235
|
+
|
|
236
|
+
var defaultRouter = {
|
|
237
|
+
hook: useBrowserLocation,
|
|
238
|
+
searchHook: useSearch,
|
|
239
|
+
parser: regexparam.parse,
|
|
240
|
+
base: "",
|
|
241
|
+
// this option is used to override the current location during SSR
|
|
242
|
+
ssrPath: undefined,
|
|
243
|
+
ssrSearch: undefined
|
|
244
|
+
};
|
|
245
|
+
var RouterCtx = React.createContext(defaultRouter);
|
|
246
|
+
|
|
247
|
+
// gets the closest parent router from the context
|
|
248
|
+
var useRouter = function useRouter() {
|
|
249
|
+
return React.useContext(RouterCtx);
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Parameters context. Used by `useParams()` to get the
|
|
254
|
+
* matched params from the innermost `Route` component.
|
|
255
|
+
*/
|
|
256
|
+
|
|
257
|
+
React.createContext({});
|
|
258
|
+
|
|
259
|
+
/*
|
|
260
|
+
* Part 1, Hooks API: useRoute and useLocation
|
|
261
|
+
*/
|
|
262
|
+
|
|
263
|
+
// Internal version of useLocation to avoid redundant useRouter calls
|
|
264
|
+
|
|
265
|
+
var useLocationFromRouter = function useLocationFromRouter(router) {
|
|
266
|
+
var _router$hook = router.hook(router),
|
|
267
|
+
_router$hook2 = _slicedToArray(_router$hook, 2),
|
|
268
|
+
location = _router$hook2[0],
|
|
269
|
+
navigate = _router$hook2[1];
|
|
270
|
+
|
|
271
|
+
// the function reference should stay the same between re-renders, so that
|
|
272
|
+
// it can be passed down as an element prop without any performance concerns.
|
|
273
|
+
// (This is achieved via `useEvent`.)
|
|
274
|
+
return [unescape(relativePath(router.base, location)), useEvent(function (to, navOpts) {
|
|
275
|
+
return navigate(absolutePath(to, router.base), navOpts);
|
|
276
|
+
})];
|
|
277
|
+
};
|
|
278
|
+
var Link$2 = React.forwardRef(function (props, ref) {
|
|
279
|
+
var router = useRouter();
|
|
280
|
+
var _useLocationFromRoute3 = useLocationFromRouter(router),
|
|
281
|
+
_useLocationFromRoute4 = _slicedToArray(_useLocationFromRoute3, 2),
|
|
282
|
+
navigate = _useLocationFromRoute4[1];
|
|
283
|
+
var to = props.to,
|
|
284
|
+
_props$href = props.href,
|
|
285
|
+
_href = _props$href === void 0 ? to : _props$href,
|
|
286
|
+
_onClick = props.onClick,
|
|
287
|
+
asChild = props.asChild,
|
|
288
|
+
children = props.children;
|
|
289
|
+
props.replace;
|
|
290
|
+
props.state;
|
|
291
|
+
var restProps = _objectWithoutProperties(props, _excluded3);
|
|
292
|
+
var onClick = useEvent(function (event) {
|
|
293
|
+
// ignores the navigation when clicked using right mouse button or
|
|
294
|
+
// by holding a special modifier key: ctrl, command, win, alt, shift
|
|
295
|
+
if (event.ctrlKey || event.metaKey || event.altKey || event.shiftKey || event.button !== 0) return;
|
|
296
|
+
_onClick && _onClick(event); // TODO: is it safe to use _onClick?.(event)
|
|
297
|
+
if (!event.defaultPrevented) {
|
|
298
|
+
event.preventDefault();
|
|
299
|
+
navigate(_href, props);
|
|
300
|
+
}
|
|
301
|
+
});
|
|
302
|
+
|
|
303
|
+
// handle nested routers and absolute paths
|
|
304
|
+
var href = _href[0] === "~" ? _href.slice(1) : router.base + _href;
|
|
305
|
+
return asChild && React.isValidElement(children) ? React.cloneElement(children, {
|
|
306
|
+
href: href,
|
|
307
|
+
onClick: onClick
|
|
308
|
+
}) : React.createElement("a", _objectSpread(_objectSpread({}, restProps), {}, {
|
|
309
|
+
href: href,
|
|
310
|
+
onClick: onClick,
|
|
311
|
+
children: children,
|
|
312
|
+
ref: ref
|
|
313
|
+
}));
|
|
314
|
+
});
|
|
47
315
|
|
|
48
316
|
/* eslint-disable react/jsx-props-no-spreading */
|
|
49
317
|
var propTypes$T = {
|
|
@@ -66,6 +334,7 @@ var Label = function Label(_ref) {
|
|
|
66
334
|
};
|
|
67
335
|
Label.propTypes = propTypes$T;
|
|
68
336
|
Label.defaultProps = defaultProps$T;
|
|
337
|
+
var Label$1 = Label;
|
|
69
338
|
|
|
70
339
|
var styles$x = {"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"};
|
|
71
340
|
|
|
@@ -134,7 +403,7 @@ var defaultProps$S = {
|
|
|
134
403
|
onClick: null,
|
|
135
404
|
refButton: null
|
|
136
405
|
};
|
|
137
|
-
var Button$
|
|
406
|
+
var Button$2 = function Button(_ref) {
|
|
138
407
|
var _ref8;
|
|
139
408
|
var type = _ref.type,
|
|
140
409
|
theme = _ref.theme,
|
|
@@ -167,7 +436,7 @@ var Button$1 = function Button(_ref) {
|
|
|
167
436
|
refButton = _ref.refButton,
|
|
168
437
|
props = _objectWithoutProperties(_ref, _excluded$b);
|
|
169
438
|
var finalLabel = label || children;
|
|
170
|
-
var text = finalLabel !== null ? /*#__PURE__*/React.createElement(Label, null, finalLabel) : null;
|
|
439
|
+
var text = finalLabel !== null ? /*#__PURE__*/React.createElement(Label$1, null, finalLabel) : null;
|
|
171
440
|
var hasChildren = label !== null && children !== null;
|
|
172
441
|
var hasIcon = icon !== null;
|
|
173
442
|
var hasInlineIcon = hasIcon && (iconPosition === 'inline' || text === null);
|
|
@@ -198,8 +467,8 @@ var Button$1 = function Button(_ref) {
|
|
|
198
467
|
target: external ? target : null,
|
|
199
468
|
ref: refButton,
|
|
200
469
|
tabIndex: focusable ? '' : '-1'
|
|
201
|
-
}), content) : /*#__PURE__*/React.createElement(
|
|
202
|
-
|
|
470
|
+
}), content) : /*#__PURE__*/React.createElement(Link$2, {
|
|
471
|
+
href: href,
|
|
203
472
|
className: linkClassNames,
|
|
204
473
|
onClick: onClick,
|
|
205
474
|
ref: refButton,
|
|
@@ -215,8 +484,9 @@ var Button$1 = function Button(_ref) {
|
|
|
215
484
|
tabIndex: focusable ? '0' : '-1'
|
|
216
485
|
}), content);
|
|
217
486
|
};
|
|
218
|
-
Button$
|
|
219
|
-
Button$
|
|
487
|
+
Button$2.propTypes = propTypes$S;
|
|
488
|
+
Button$2.defaultProps = defaultProps$S;
|
|
489
|
+
var Button$3 = Button$2;
|
|
220
490
|
|
|
221
491
|
var styles$w = {};
|
|
222
492
|
|
|
@@ -271,11 +541,12 @@ var Buttons = function Buttons(_ref) {
|
|
|
271
541
|
},
|
|
272
542
|
theme: buttonTheme || theme
|
|
273
543
|
};
|
|
274
|
-
return renderButton !== null ? renderButton(button, index, fixedProps) : /*#__PURE__*/React.createElement(Button$
|
|
544
|
+
return renderButton !== null ? renderButton(button, index, fixedProps) : /*#__PURE__*/React.createElement(Button$3, Object.assign({}, fixedProps, buttonProps));
|
|
275
545
|
}));
|
|
276
546
|
};
|
|
277
547
|
Buttons.propTypes = propTypes$R;
|
|
278
548
|
Buttons.defaultProps = defaultProps$R;
|
|
549
|
+
var Buttons$1 = Buttons;
|
|
279
550
|
|
|
280
551
|
var _excluded$9 = ["className"];
|
|
281
552
|
var propTypes$Q = {
|
|
@@ -287,7 +558,7 @@ var defaultProps$Q = {
|
|
|
287
558
|
var BackButton = function BackButton(_ref) {
|
|
288
559
|
var className = _ref.className,
|
|
289
560
|
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
290
|
-
return /*#__PURE__*/React.createElement(Button$
|
|
561
|
+
return /*#__PURE__*/React.createElement(Button$3, Object.assign({
|
|
291
562
|
className: classNames(['px-2', _defineProperty({}, className, className)]),
|
|
292
563
|
size: "sm",
|
|
293
564
|
icon: /*#__PURE__*/React.createElement(reactFontawesome.FontAwesomeIcon, {
|
|
@@ -298,6 +569,7 @@ var BackButton = function BackButton(_ref) {
|
|
|
298
569
|
};
|
|
299
570
|
BackButton.propTypes = propTypes$Q;
|
|
300
571
|
BackButton.defaultProps = defaultProps$Q;
|
|
572
|
+
var BackButton$1 = BackButton;
|
|
301
573
|
|
|
302
574
|
var _excluded$8 = ["type"],
|
|
303
575
|
_excluded2 = ["component", "id", "settings"];
|
|
@@ -393,6 +665,7 @@ var FieldForm = function FieldForm(_ref) {
|
|
|
393
665
|
};
|
|
394
666
|
FieldForm.propTypes = propTypes$P;
|
|
395
667
|
FieldForm.defaultProps = defaultProps$P;
|
|
668
|
+
var FieldForm$1 = FieldForm;
|
|
396
669
|
|
|
397
670
|
var styles$v = {"actions":"micromag-core-forms-form-actions","left":"micromag-core-forms-form-left","right":"micromag-core-forms-form-right"};
|
|
398
671
|
|
|
@@ -571,14 +844,14 @@ var Form = function Form(_ref) {
|
|
|
571
844
|
onSubmit: onSubmit
|
|
572
845
|
}, !withoutBackButton && fields !== null && fields.length > 0 && fieldParams !== null ? /*#__PURE__*/React.createElement("div", {
|
|
573
846
|
className: "mb-2"
|
|
574
|
-
}, /*#__PURE__*/React.createElement(BackButton, {
|
|
847
|
+
}, /*#__PURE__*/React.createElement(BackButton$1, {
|
|
575
848
|
theme: "secondary",
|
|
576
849
|
outline: true,
|
|
577
850
|
onClick: closeFieldForm
|
|
578
851
|
})) : null, fields !== null && fields.length > 0 && fieldParams !== null ? /*#__PURE__*/React.createElement("div", {
|
|
579
852
|
className: classNames(['w-100', styles$v.panel]),
|
|
580
853
|
key: "field"
|
|
581
|
-
}, /*#__PURE__*/React.createElement(FieldForm, {
|
|
854
|
+
}, /*#__PURE__*/React.createElement(FieldForm$1, {
|
|
582
855
|
name: fieldName,
|
|
583
856
|
fields: fields,
|
|
584
857
|
value: value,
|
|
@@ -597,7 +870,7 @@ var Form = function Form(_ref) {
|
|
|
597
870
|
className: "text-danger my-1"
|
|
598
871
|
}, generalError) : null, children, !withoutActions && fieldParams === null ? /*#__PURE__*/React.createElement("div", {
|
|
599
872
|
className: classNames([styles$v.actions, _defineProperty(_defineProperty({}, styles$v[actionsAlign], actionsAlign), actionsClassName, actionsClassName !== null)])
|
|
600
|
-
}, onCancel !== null || onCancelHref !== null ? /*#__PURE__*/React.createElement(Button$
|
|
873
|
+
}, onCancel !== null || onCancelHref !== null ? /*#__PURE__*/React.createElement(Button$3, {
|
|
601
874
|
type: "button",
|
|
602
875
|
onClick: onCancel,
|
|
603
876
|
href: onCancelHref,
|
|
@@ -611,10 +884,10 @@ var Form = function Form(_ref) {
|
|
|
611
884
|
"type": 0,
|
|
612
885
|
"value": "Cancel"
|
|
613
886
|
}]
|
|
614
|
-
})) : null, buttons !== null ? /*#__PURE__*/React.createElement(Buttons, {
|
|
887
|
+
})) : null, buttons !== null ? /*#__PURE__*/React.createElement(Buttons$1, {
|
|
615
888
|
buttons: buttons,
|
|
616
889
|
className: styles$v.buttons
|
|
617
|
-
}) : /*#__PURE__*/React.createElement(Button$
|
|
890
|
+
}) : /*#__PURE__*/React.createElement(Button$3, {
|
|
618
891
|
type: "submit",
|
|
619
892
|
theme: submitButtonTheme || 'primary',
|
|
620
893
|
disabled: status === 'loading' || !canSave
|
|
@@ -630,6 +903,7 @@ var Form = function Form(_ref) {
|
|
|
630
903
|
};
|
|
631
904
|
Form.propTypes = propTypes$O;
|
|
632
905
|
Form.defaultProps = defaultProps$O;
|
|
906
|
+
var Form$1 = Form;
|
|
633
907
|
|
|
634
908
|
var styles$u = {"withoutStyle":"micromag-core-partials-link-withoutStyle"};
|
|
635
909
|
|
|
@@ -666,13 +940,14 @@ var Link = function Link(_ref) {
|
|
|
666
940
|
href: href,
|
|
667
941
|
target: target,
|
|
668
942
|
rel: rel
|
|
669
|
-
}, props), /*#__PURE__*/React.createElement(Label, null, children)) : /*#__PURE__*/React.createElement(
|
|
943
|
+
}, props), /*#__PURE__*/React.createElement(Label$1, null, children)) : /*#__PURE__*/React.createElement(Link$2, Object.assign({
|
|
670
944
|
className: classNames([className, _defineProperty({}, styles$u.withoutStyle, withoutStyle)]),
|
|
671
|
-
|
|
672
|
-
}, props), /*#__PURE__*/React.createElement(Label, null, children));
|
|
945
|
+
href: href
|
|
946
|
+
}, props), /*#__PURE__*/React.createElement(Label$1, null, children));
|
|
673
947
|
};
|
|
674
948
|
Link.propTypes = propTypes$N;
|
|
675
949
|
Link.defaultProps = defaultProps$N;
|
|
950
|
+
var Link$1 = Link;
|
|
676
951
|
|
|
677
952
|
var _excluded$6 = ["label", "className"];
|
|
678
953
|
var propTypes$M = {
|
|
@@ -760,21 +1035,21 @@ var Card = function Card(_ref) {
|
|
|
760
1035
|
_ref2$className = _ref2.className,
|
|
761
1036
|
linkClassName = _ref2$className === void 0 ? null : _ref2$className,
|
|
762
1037
|
linkProps = _objectWithoutProperties(_ref2, _excluded$6);
|
|
763
|
-
return /*#__PURE__*/React.createElement(Link, Object.assign({
|
|
1038
|
+
return /*#__PURE__*/React.createElement(Link$1, Object.assign({
|
|
764
1039
|
key: "link-".concat(label, "-").concat(index),
|
|
765
1040
|
className: classNames(['card-link', _defineProperty({}, linkClassName, linkClassName !== null)])
|
|
766
1041
|
}, linkProps), label);
|
|
767
1042
|
});
|
|
768
1043
|
var bodyInner = title !== null || subtitle !== null || children !== null || links !== null && linksInSameBody ? /*#__PURE__*/React.createElement(React.Fragment, null, title !== null ? /*#__PURE__*/React.createElement("h5", {
|
|
769
1044
|
className: classNames(['card-title', _defineProperty({}, titleClassName, titleClassName !== null)])
|
|
770
|
-
}, /*#__PURE__*/React.createElement(Label, null, title)) : null, subtitle !== null ? /*#__PURE__*/React.createElement("h6", {
|
|
1045
|
+
}, /*#__PURE__*/React.createElement(Label$1, null, title)) : null, subtitle !== null ? /*#__PURE__*/React.createElement("h6", {
|
|
771
1046
|
className: classNames(['card-subtitle', _defineProperty({}, subtitleClassName, subtitleClassName !== null)])
|
|
772
|
-
}, /*#__PURE__*/React.createElement(Label, null, subtitle)) : null, children, links !== null && linksInSameBody ? /*#__PURE__*/React.createElement("div", {
|
|
1047
|
+
}, /*#__PURE__*/React.createElement(Label$1, null, subtitle)) : null, children, links !== null && linksInSameBody ? /*#__PURE__*/React.createElement("div", {
|
|
773
1048
|
className: "d-flex"
|
|
774
1049
|
}, linksElements) : null) : null;
|
|
775
1050
|
var cardInner = /*#__PURE__*/React.createElement(React.Fragment, null, header !== null ? /*#__PURE__*/React.createElement("div", {
|
|
776
1051
|
className: classNames(['card-header', _defineProperty({}, headerClassName, headerClassName !== null)])
|
|
777
|
-
}, /*#__PURE__*/React.createElement(Label, null, header)) : null, typeof image === 'string' ? /*#__PURE__*/React.createElement("img", {
|
|
1052
|
+
}, /*#__PURE__*/React.createElement(Label$1, null, header)) : null, typeof image === 'string' ? /*#__PURE__*/React.createElement("img", {
|
|
778
1053
|
src: image,
|
|
779
1054
|
alt: imageAlt,
|
|
780
1055
|
className: classNames(['card-img-top', _defineProperty({}, imageClassName, imageClassName !== null)])
|
|
@@ -796,12 +1071,12 @@ var Card = function Card(_ref) {
|
|
|
796
1071
|
type: "button",
|
|
797
1072
|
className: classNames(['card-footer', _defineProperty({}, footerClassName, footerClassName !== null)]),
|
|
798
1073
|
onClick: onClickFooter
|
|
799
|
-
}, /*#__PURE__*/React.createElement(Label, null, footer)) : /*#__PURE__*/React.createElement("div", {
|
|
1074
|
+
}, /*#__PURE__*/React.createElement(Label$1, null, footer)) : /*#__PURE__*/React.createElement("div", {
|
|
800
1075
|
className: classNames(['card-footer', _defineProperty({}, footerClassName, footerClassName !== null)])
|
|
801
|
-
}, /*#__PURE__*/React.createElement(Label, null, footer)) : null);
|
|
1076
|
+
}, /*#__PURE__*/React.createElement(Label$1, null, footer)) : null);
|
|
802
1077
|
var cardClassName = classNames(['card', _defineProperty(_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, className !== null)]);
|
|
803
1078
|
if (href !== null) {
|
|
804
|
-
return /*#__PURE__*/React.createElement(Link, {
|
|
1079
|
+
return /*#__PURE__*/React.createElement(Link$1, {
|
|
805
1080
|
href: href,
|
|
806
1081
|
className: cardClassName
|
|
807
1082
|
}, cardInner);
|
|
@@ -819,6 +1094,7 @@ var Card = function Card(_ref) {
|
|
|
819
1094
|
};
|
|
820
1095
|
Card.propTypes = propTypes$M;
|
|
821
1096
|
Card.defaultProps = defaultProps$M;
|
|
1097
|
+
var Card$1 = Card;
|
|
822
1098
|
|
|
823
1099
|
var styles$t = {"container":"micromag-core-partials-spinner-container","path":"micromag-core-partials-spinner-path","animated":"micromag-core-partials-spinner-animated","rotate":"micromag-core-partials-spinner-rotate","dash":"micromag-core-partials-spinner-dash"};
|
|
824
1100
|
|
|
@@ -857,6 +1133,7 @@ var Spinner = function Spinner(_ref) {
|
|
|
857
1133
|
};
|
|
858
1134
|
Spinner.propTypes = propTypes$L;
|
|
859
1135
|
Spinner.defaultProps = defaultProps$L;
|
|
1136
|
+
var Spinner$1 = Spinner;
|
|
860
1137
|
|
|
861
1138
|
var styles$s = {};
|
|
862
1139
|
|
|
@@ -879,12 +1156,13 @@ var FormPanel = function FormPanel(_ref) {
|
|
|
879
1156
|
children = _ref.children,
|
|
880
1157
|
className = _ref.className,
|
|
881
1158
|
props = _objectWithoutProperties(_ref, _excluded$5);
|
|
882
|
-
return /*#__PURE__*/React.createElement(Card, Object.assign({
|
|
1159
|
+
return /*#__PURE__*/React.createElement(Card$1, Object.assign({
|
|
883
1160
|
className: classNames([styles$s.container, _defineProperty({}, className, className !== null)])
|
|
884
|
-
}, props), description, loading ? /*#__PURE__*/React.createElement(Spinner, null) : children);
|
|
1161
|
+
}, props), description, loading ? /*#__PURE__*/React.createElement(Spinner$1, null) : children);
|
|
885
1162
|
};
|
|
886
1163
|
FormPanel.propTypes = propTypes$K;
|
|
887
1164
|
FormPanel.defaultProps = defaultProps$K;
|
|
1165
|
+
var FormPanel$1 = FormPanel;
|
|
888
1166
|
|
|
889
1167
|
var propTypes$J = {
|
|
890
1168
|
className: PropTypes.string,
|
|
@@ -913,6 +1191,7 @@ var ArrowIcon = function ArrowIcon(_ref) {
|
|
|
913
1191
|
};
|
|
914
1192
|
ArrowIcon.propTypes = propTypes$J;
|
|
915
1193
|
ArrowIcon.defaultProps = defaultProps$J;
|
|
1194
|
+
var ArrowIcon$1 = ArrowIcon;
|
|
916
1195
|
|
|
917
1196
|
var propTypes$I = {
|
|
918
1197
|
className: PropTypes.string,
|
|
@@ -946,6 +1225,7 @@ var CloseIcon = function CloseIcon(_ref) {
|
|
|
946
1225
|
};
|
|
947
1226
|
CloseIcon.propTypes = propTypes$I;
|
|
948
1227
|
CloseIcon.defaultProps = defaultProps$I;
|
|
1228
|
+
var CloseIcon$1 = CloseIcon;
|
|
949
1229
|
|
|
950
1230
|
var propTypes$H = {
|
|
951
1231
|
className: PropTypes.string,
|
|
@@ -972,6 +1252,7 @@ var FullscreenIcon = function FullscreenIcon(_ref) {
|
|
|
972
1252
|
};
|
|
973
1253
|
FullscreenIcon.propTypes = propTypes$H;
|
|
974
1254
|
FullscreenIcon.defaultProps = defaultProps$H;
|
|
1255
|
+
var FullscreenIcon$1 = FullscreenIcon;
|
|
975
1256
|
|
|
976
1257
|
var propTypes$G = {
|
|
977
1258
|
className: PropTypes.string,
|
|
@@ -1007,6 +1288,7 @@ var LinkIcon = function LinkIcon(_ref) {
|
|
|
1007
1288
|
};
|
|
1008
1289
|
LinkIcon.propTypes = propTypes$G;
|
|
1009
1290
|
LinkIcon.defaultProps = defaultProps$G;
|
|
1291
|
+
var LinkIcon$1 = LinkIcon;
|
|
1010
1292
|
|
|
1011
1293
|
var propTypes$F = {
|
|
1012
1294
|
className: PropTypes.string,
|
|
@@ -1039,6 +1321,7 @@ var MuteIcon = function MuteIcon(_ref) {
|
|
|
1039
1321
|
};
|
|
1040
1322
|
MuteIcon.propTypes = propTypes$F;
|
|
1041
1323
|
MuteIcon.defaultProps = defaultProps$F;
|
|
1324
|
+
var MuteIcon$1 = MuteIcon;
|
|
1042
1325
|
|
|
1043
1326
|
var propTypes$E = {
|
|
1044
1327
|
className: PropTypes.string,
|
|
@@ -1073,6 +1356,7 @@ var PauseIcon = function PauseIcon(_ref) {
|
|
|
1073
1356
|
};
|
|
1074
1357
|
PauseIcon.propTypes = propTypes$E;
|
|
1075
1358
|
PauseIcon.defaultProps = defaultProps$E;
|
|
1359
|
+
var PauseIcon$1 = PauseIcon;
|
|
1076
1360
|
|
|
1077
1361
|
var propTypes$D = {
|
|
1078
1362
|
className: PropTypes.string,
|
|
@@ -1100,6 +1384,7 @@ var PlayIcon = function PlayIcon(_ref) {
|
|
|
1100
1384
|
};
|
|
1101
1385
|
PlayIcon.propTypes = propTypes$D;
|
|
1102
1386
|
PlayIcon.defaultProps = defaultProps$D;
|
|
1387
|
+
var PlayIcon$1 = PlayIcon;
|
|
1103
1388
|
|
|
1104
1389
|
var propTypes$C = {
|
|
1105
1390
|
className: PropTypes.string,
|
|
@@ -1131,6 +1416,7 @@ var UnmuteIcon = function UnmuteIcon(_ref) {
|
|
|
1131
1416
|
};
|
|
1132
1417
|
UnmuteIcon.propTypes = propTypes$C;
|
|
1133
1418
|
UnmuteIcon.defaultProps = defaultProps$C;
|
|
1419
|
+
var UnmuteIcon$1 = UnmuteIcon;
|
|
1134
1420
|
|
|
1135
1421
|
var styles$r = {"container":"micromag-core-menus-breadcrumb-container","arrow":"micromag-core-menus-breadcrumb-arrow"};
|
|
1136
1422
|
|
|
@@ -1178,18 +1464,19 @@ var Breadcrumb = function Breadcrumb(_ref) {
|
|
|
1178
1464
|
active: active
|
|
1179
1465
|
}, styles$r.arrow, separator === 'arrow'), "text-".concat(theme), active && theme !== null)]),
|
|
1180
1466
|
key: "item-".concat(index)
|
|
1181
|
-
}, active ? /*#__PURE__*/React.createElement(Label, null, label) : null, !active && url ? /*#__PURE__*/React.createElement(
|
|
1182
|
-
|
|
1467
|
+
}, active ? /*#__PURE__*/React.createElement(Label$1, null, label) : null, !active && url ? /*#__PURE__*/React.createElement(Link$2, {
|
|
1468
|
+
href: url,
|
|
1183
1469
|
onClick: onClick,
|
|
1184
1470
|
className: classNames(['font-weight-bold', 'text-decoration-none', _defineProperty({}, "text-".concat(theme), theme !== null)])
|
|
1185
|
-
}, /*#__PURE__*/React.createElement(Label, null, label)) : null, !active && onClick ? /*#__PURE__*/React.createElement(Button$
|
|
1471
|
+
}, /*#__PURE__*/React.createElement(Label$1, null, label)) : null, !active && onClick ? /*#__PURE__*/React.createElement(Button$3, {
|
|
1186
1472
|
onClick: onClick,
|
|
1187
1473
|
className: classNames(['font-weight-bold', 'text-decoration-none', _defineProperty({}, "text-".concat(theme), theme !== null)])
|
|
1188
|
-
}, /*#__PURE__*/React.createElement(Label, null, label)) : null);
|
|
1474
|
+
}, /*#__PURE__*/React.createElement(Label$1, null, label)) : null);
|
|
1189
1475
|
})));
|
|
1190
1476
|
};
|
|
1191
1477
|
Breadcrumb.propTypes = propTypes$B;
|
|
1192
1478
|
Breadcrumb.defaultProps = defaultProps$B;
|
|
1479
|
+
var Breadcrumb$1 = Breadcrumb;
|
|
1193
1480
|
|
|
1194
1481
|
var _excluded$4 = ["type", "className", "label", "children", "onClick", "active"];
|
|
1195
1482
|
var propTypes$A = {
|
|
@@ -1261,7 +1548,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
1261
1548
|
itemProps = _objectWithoutProperties(it, _excluded$4);
|
|
1262
1549
|
var ItemComponent = 'div';
|
|
1263
1550
|
if (type === 'link') {
|
|
1264
|
-
ItemComponent = Link;
|
|
1551
|
+
ItemComponent = Link$1;
|
|
1265
1552
|
} else if (type === 'button') {
|
|
1266
1553
|
ItemComponent = 'button';
|
|
1267
1554
|
} else if (type === 'header') {
|
|
@@ -1287,11 +1574,12 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
1287
1574
|
active: active
|
|
1288
1575
|
}, itemClassName, itemClassName !== null), customClassName, customClassName !== null)]),
|
|
1289
1576
|
onClick: finalOnClickItem
|
|
1290
|
-
}, itemProps), label !== null ? /*#__PURE__*/React.createElement(Label, null, label) : itemChildren)) : null;
|
|
1577
|
+
}, itemProps), label !== null ? /*#__PURE__*/React.createElement(Label$1, null, label) : itemChildren)) : null;
|
|
1291
1578
|
}));
|
|
1292
1579
|
};
|
|
1293
1580
|
Dropdown.propTypes = propTypes$A;
|
|
1294
1581
|
Dropdown.defaultProps = defaultProps$A;
|
|
1582
|
+
var Dropdown$1 = Dropdown;
|
|
1295
1583
|
|
|
1296
1584
|
var _excluded$3 = ["id", "className", "linkClassName", "href", "label", "external", "items", "dropdown", "active", "onClick"];
|
|
1297
1585
|
var propTypes$z = {
|
|
@@ -1390,7 +1678,7 @@ var Menu = function Menu(_ref) {
|
|
|
1390
1678
|
setDropdownsVisible([].concat(_toConsumableArray(dropdownsVisible.slice(0, index)), [false], _toConsumableArray(dropdownsVisible.slice(index + 1))));
|
|
1391
1679
|
} : null;
|
|
1392
1680
|
var ItemComponent = itemTagName;
|
|
1393
|
-
return linkAsItem ? /*#__PURE__*/React.createElement(Link, Object.assign({}, itemProps, {
|
|
1681
|
+
return linkAsItem ? /*#__PURE__*/React.createElement(Link$1, Object.assign({}, itemProps, {
|
|
1394
1682
|
key: "item-".concat(id || index),
|
|
1395
1683
|
onClick: onClickItem,
|
|
1396
1684
|
href: href,
|
|
@@ -1404,12 +1692,12 @@ var Menu = function Menu(_ref) {
|
|
|
1404
1692
|
dropdown: dropdown !== null,
|
|
1405
1693
|
active: active
|
|
1406
1694
|
}, itemClassName, itemClassName !== null), customClassName, customClassName !== null), hasSubMenuClassName, subItems !== null && hasSubMenuClassName !== null), hasDropdownClassName, subItems !== null && hasDropdownClassName !== null))
|
|
1407
|
-
}, href !== null ? /*#__PURE__*/React.createElement(Link, Object.assign({}, itemProps, {
|
|
1695
|
+
}, href !== null ? /*#__PURE__*/React.createElement(Link$1, Object.assign({}, itemProps, {
|
|
1408
1696
|
onClick: onClickItem,
|
|
1409
1697
|
href: href,
|
|
1410
1698
|
external: external,
|
|
1411
1699
|
className: classNames(_defineProperty(_defineProperty(_defineProperty({}, linkClassName, linkClassName !== null), 'dropdown-toggle', dropdown !== null), customLinkClassName, customLinkClassName !== null))
|
|
1412
|
-
}), label) : null, href === null && onClickItem !== null ? /*#__PURE__*/React.createElement(Button$
|
|
1700
|
+
}), label) : null, href === null && onClickItem !== null ? /*#__PURE__*/React.createElement(Button$3, Object.assign({}, itemProps, {
|
|
1413
1701
|
onClick: onClickItem,
|
|
1414
1702
|
className: classNames(_defineProperty(_defineProperty(_defineProperty({}, linkClassName, linkClassName !== null), 'dropdown-toggle', dropdown !== null), customLinkClassName, customLinkClassName !== null))
|
|
1415
1703
|
}), label) : null, subItems !== null ? /*#__PURE__*/React.createElement(Menu, {
|
|
@@ -1417,7 +1705,7 @@ var Menu = function Menu(_ref) {
|
|
|
1417
1705
|
className: subMenuClassName,
|
|
1418
1706
|
itemClassName: classNames(_defineProperty(_defineProperty({}, subMenuItemClassName, subMenuItemClassName !== null), itemClassName, subMenuItemClassName === null && itemClassName !== null)),
|
|
1419
1707
|
linkClassName: classNames(_defineProperty(_defineProperty({}, subMenuLinkClassName, subMenuLinkClassName !== null), linkClassName, subMenuLinkClassName === null && linkClassName !== null))
|
|
1420
|
-
}) : null, dropdown !== null ? /*#__PURE__*/React.createElement(Dropdown, {
|
|
1708
|
+
}) : null, dropdown !== null ? /*#__PURE__*/React.createElement(Dropdown$1, {
|
|
1421
1709
|
items: dropdown,
|
|
1422
1710
|
visible: dropdownsVisible[index] || false,
|
|
1423
1711
|
className: dropdownClassName,
|
|
@@ -1431,6 +1719,7 @@ var Menu = function Menu(_ref) {
|
|
|
1431
1719
|
};
|
|
1432
1720
|
Menu.propTypes = propTypes$z;
|
|
1433
1721
|
Menu.defaultProps = defaultProps$z;
|
|
1722
|
+
var Menu$1 = Menu;
|
|
1434
1723
|
|
|
1435
1724
|
var styles$q = {"collapse":"micromag-core-menus-navbar-collapse"};
|
|
1436
1725
|
|
|
@@ -1494,7 +1783,7 @@ var Navbar = function Navbar(_ref) {
|
|
|
1494
1783
|
className: classNames(['container-fluid', {
|
|
1495
1784
|
'px-0': compact
|
|
1496
1785
|
}])
|
|
1497
|
-
}, brand !== null && brandLink !== null ? /*#__PURE__*/React.createElement(Link, {
|
|
1786
|
+
}, brand !== null && brandLink !== null ? /*#__PURE__*/React.createElement(Link$1, {
|
|
1498
1787
|
className: classNames(['navbar-brand', _defineProperty({
|
|
1499
1788
|
'py-0': compact
|
|
1500
1789
|
}, brandClassName, brandClassName !== null)]),
|
|
@@ -1507,7 +1796,7 @@ var Navbar = function Navbar(_ref) {
|
|
|
1507
1796
|
className: classNames(['navbar-breadcrumbs', _defineProperty({
|
|
1508
1797
|
'py-0': compact
|
|
1509
1798
|
}, breadCrumbsClassName, breadCrumbsClassName !== null)])
|
|
1510
|
-
}, breadcrumbs) : null, !withoutCollapse && !withoutCollapseToggle ? /*#__PURE__*/React.createElement(Button$
|
|
1799
|
+
}, breadcrumbs) : null, !withoutCollapse && !withoutCollapseToggle ? /*#__PURE__*/React.createElement(Button$3, {
|
|
1511
1800
|
className: "navbar-toggler",
|
|
1512
1801
|
onClick: onClickMenu,
|
|
1513
1802
|
withoutTheme: true,
|
|
@@ -1522,6 +1811,7 @@ var Navbar = function Navbar(_ref) {
|
|
|
1522
1811
|
};
|
|
1523
1812
|
Navbar.propTypes = propTypes$y;
|
|
1524
1813
|
Navbar.defaultProps = defaultProps$y;
|
|
1814
|
+
var Navbar$1 = Navbar;
|
|
1525
1815
|
|
|
1526
1816
|
var styles$p = {};
|
|
1527
1817
|
|
|
@@ -1624,7 +1914,7 @@ var PaginationMenu = function PaginationMenu(_ref) {
|
|
|
1624
1914
|
className: classNames(['page-item', _defineProperty({
|
|
1625
1915
|
disabled: page <= 1
|
|
1626
1916
|
}, itemClassName, itemClassName !== null)])
|
|
1627
|
-
}, page > 1 ? /*#__PURE__*/React.createElement(Link, {
|
|
1917
|
+
}, page > 1 ? /*#__PURE__*/React.createElement(Link$1, {
|
|
1628
1918
|
className: classNames(['page-link', _defineProperty({}, linkClassName, linkClassName !== null)]),
|
|
1629
1919
|
href: getUrl(page - 1),
|
|
1630
1920
|
onClick: onClickPage !== null ? function () {
|
|
@@ -1632,13 +1922,13 @@ var PaginationMenu = function PaginationMenu(_ref) {
|
|
|
1632
1922
|
} : null
|
|
1633
1923
|
}, messages.previous) : /*#__PURE__*/React.createElement("span", {
|
|
1634
1924
|
className: classNames(['page-link', _defineProperty({}, linkClassName, linkClassName !== null)])
|
|
1635
|
-
}, /*#__PURE__*/React.createElement(Label, null, messages.previous))) : null, pages.map(function (pageNumber) {
|
|
1925
|
+
}, /*#__PURE__*/React.createElement(Label$1, null, messages.previous))) : null, pages.map(function (pageNumber) {
|
|
1636
1926
|
return /*#__PURE__*/React.createElement("li", {
|
|
1637
1927
|
key: "page-".concat(pageNumber),
|
|
1638
1928
|
className: classNames(['page-item', _defineProperty({
|
|
1639
1929
|
active: pageNumber === page
|
|
1640
1930
|
}, itemClassName, itemClassName !== null)])
|
|
1641
|
-
}, /*#__PURE__*/React.createElement(Link, {
|
|
1931
|
+
}, /*#__PURE__*/React.createElement(Link$1, {
|
|
1642
1932
|
className: classNames(['page-link', _defineProperty({}, linkClassName, linkClassName !== null)]),
|
|
1643
1933
|
href: getUrl(pageNumber),
|
|
1644
1934
|
onClick: onClickPage !== null ? function () {
|
|
@@ -1649,7 +1939,7 @@ var PaginationMenu = function PaginationMenu(_ref) {
|
|
|
1649
1939
|
className: classNames(['page-item', _defineProperty({
|
|
1650
1940
|
disabled: page >= total
|
|
1651
1941
|
}, itemClassName, itemClassName !== null)])
|
|
1652
|
-
}, page < total ? /*#__PURE__*/React.createElement(Link, {
|
|
1942
|
+
}, page < total ? /*#__PURE__*/React.createElement(Link$1, {
|
|
1653
1943
|
className: classNames(['page-link', _defineProperty({}, linkClassName, linkClassName !== null)]),
|
|
1654
1944
|
href: getUrl(page + 1),
|
|
1655
1945
|
onClick: onClickPage !== null ? function () {
|
|
@@ -1657,10 +1947,11 @@ var PaginationMenu = function PaginationMenu(_ref) {
|
|
|
1657
1947
|
} : null
|
|
1658
1948
|
}, messages.next) : /*#__PURE__*/React.createElement("span", {
|
|
1659
1949
|
className: classNames(['page-link', _defineProperty({}, linkClassName, linkClassName !== null)])
|
|
1660
|
-
}, /*#__PURE__*/React.createElement(Label, null, messages.next))) : null));
|
|
1950
|
+
}, /*#__PURE__*/React.createElement(Label$1, null, messages.next))) : null));
|
|
1661
1951
|
};
|
|
1662
1952
|
PaginationMenu.propTypes = propTypes$x;
|
|
1663
1953
|
PaginationMenu.defaultProps = defaultProps$x;
|
|
1954
|
+
var PaginationMenu$1 = PaginationMenu;
|
|
1664
1955
|
|
|
1665
1956
|
var styles$o = {"container":"micromag-core-menus-tabs-container"};
|
|
1666
1957
|
|
|
@@ -1692,7 +1983,7 @@ var TabsMenu = function TabsMenu(_ref) {
|
|
|
1692
1983
|
onClickItem = _ref.onClickItem;
|
|
1693
1984
|
return /*#__PURE__*/React.createElement("div", {
|
|
1694
1985
|
className: classNames([styles$o.container, _defineProperty({}, className, className)])
|
|
1695
|
-
}, /*#__PURE__*/React.createElement(Buttons, {
|
|
1986
|
+
}, /*#__PURE__*/React.createElement(Buttons$1, {
|
|
1696
1987
|
buttons: items,
|
|
1697
1988
|
size: size,
|
|
1698
1989
|
theme: theme,
|
|
@@ -1704,6 +1995,7 @@ var TabsMenu = function TabsMenu(_ref) {
|
|
|
1704
1995
|
};
|
|
1705
1996
|
TabsMenu.propTypes = propTypes$w;
|
|
1706
1997
|
TabsMenu.defaultProps = defaultProps$w;
|
|
1998
|
+
var TabsMenu$1 = TabsMenu;
|
|
1707
1999
|
|
|
1708
2000
|
var styles$n = {"container":"micromag-core-modals-container","modals":"micromag-core-modals-modals","hasModals":"micromag-core-modals-hasModals"};
|
|
1709
2001
|
|
|
@@ -1779,6 +2071,7 @@ var ElementPortal = function ElementPortal(_ref) {
|
|
|
1779
2071
|
};
|
|
1780
2072
|
ElementPortal.propTypes = propTypes$u;
|
|
1781
2073
|
ElementPortal.defaultProps = defaultProps$u;
|
|
2074
|
+
var ElementPortal$1 = ElementPortal;
|
|
1782
2075
|
|
|
1783
2076
|
/* eslint-disable react/no-array-index-key, react/jsx-props-no-spreading */
|
|
1784
2077
|
var propTypes$t = {
|
|
@@ -1802,7 +2095,7 @@ var ModalPortal = function ModalPortal(_ref) {
|
|
|
1802
2095
|
register = _useModals$register === void 0 ? null : _useModals$register,
|
|
1803
2096
|
_useModals$unregister = _useModals.unregister,
|
|
1804
2097
|
unregister = _useModals$unregister === void 0 ? null : _useModals$unregister;
|
|
1805
|
-
return /*#__PURE__*/React.createElement(ElementPortal, {
|
|
2098
|
+
return /*#__PURE__*/React.createElement(ElementPortal$1, {
|
|
1806
2099
|
id: id,
|
|
1807
2100
|
data: data,
|
|
1808
2101
|
container: container,
|
|
@@ -1812,6 +2105,7 @@ var ModalPortal = function ModalPortal(_ref) {
|
|
|
1812
2105
|
};
|
|
1813
2106
|
ModalPortal.propTypes = propTypes$t;
|
|
1814
2107
|
ModalPortal.defaultProps = defaultProps$t;
|
|
2108
|
+
var Portal$1 = ModalPortal;
|
|
1815
2109
|
|
|
1816
2110
|
var propTypes$s = {
|
|
1817
2111
|
id: PropTypes.string,
|
|
@@ -1838,7 +2132,7 @@ var Modal = function Modal(_ref) {
|
|
|
1838
2132
|
title: title
|
|
1839
2133
|
};
|
|
1840
2134
|
}, [title]);
|
|
1841
|
-
return /*#__PURE__*/React.createElement(
|
|
2135
|
+
return /*#__PURE__*/React.createElement(Portal$1, {
|
|
1842
2136
|
id: finalId,
|
|
1843
2137
|
data: data
|
|
1844
2138
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -1849,6 +2143,7 @@ var Modal = function Modal(_ref) {
|
|
|
1849
2143
|
};
|
|
1850
2144
|
Modal.propTypes = propTypes$s;
|
|
1851
2145
|
Modal.defaultProps = defaultProps$s;
|
|
2146
|
+
var Modal$1 = Modal;
|
|
1852
2147
|
|
|
1853
2148
|
var styles$l = {"container":"micromag-core-modals-dialog-container"};
|
|
1854
2149
|
|
|
@@ -1896,7 +2191,7 @@ var ModalDialog = function ModalDialog(_ref) {
|
|
|
1896
2191
|
}])
|
|
1897
2192
|
}, /*#__PURE__*/React.createElement("h5", {
|
|
1898
2193
|
className: "modal-title"
|
|
1899
|
-
}, /*#__PURE__*/React.createElement(Label, null, title)), /*#__PURE__*/React.createElement("button", {
|
|
2194
|
+
}, /*#__PURE__*/React.createElement(Label$1, null, title)), /*#__PURE__*/React.createElement("button", {
|
|
1900
2195
|
type: "button",
|
|
1901
2196
|
className: "btn-close",
|
|
1902
2197
|
"aria-label": "Close",
|
|
@@ -1905,13 +2200,14 @@ var ModalDialog = function ModalDialog(_ref) {
|
|
|
1905
2200
|
className: classNames(['modal-body', 'p-2', styles$l.body, _defineProperty({}, bodyClassName, bodyClassName !== null)])
|
|
1906
2201
|
}, children), footer !== null || buttons !== null ? /*#__PURE__*/React.createElement("div", {
|
|
1907
2202
|
className: classNames(['modal-footer', styles$l.footer])
|
|
1908
|
-
}, footer, buttons !== null ? /*#__PURE__*/React.createElement(Buttons, {
|
|
2203
|
+
}, footer, buttons !== null ? /*#__PURE__*/React.createElement(Buttons$1, {
|
|
1909
2204
|
buttons: buttons,
|
|
1910
2205
|
className: styles$l.buttons
|
|
1911
2206
|
}) : null) : null));
|
|
1912
2207
|
};
|
|
1913
2208
|
ModalDialog.propTypes = propTypes$r;
|
|
1914
2209
|
ModalDialog.defaultProps = defaultProps$r;
|
|
2210
|
+
var ModalDialog$1 = ModalDialog;
|
|
1915
2211
|
|
|
1916
2212
|
// import classNames from 'classnames';
|
|
1917
2213
|
// import { DashboardModal } from '@uppy/react';
|
|
@@ -1980,6 +2276,7 @@ var UploadModal = function UploadModal(_ref2) {
|
|
|
1980
2276
|
};
|
|
1981
2277
|
UploadModal.propTypes = propTypes$q;
|
|
1982
2278
|
UploadModal.defaultProps = defaultProps$q;
|
|
2279
|
+
var UploadModal$1 = UploadModal;
|
|
1983
2280
|
|
|
1984
2281
|
var styles$k = {"container":"micromag-core-panels-container"};
|
|
1985
2282
|
|
|
@@ -2039,7 +2336,7 @@ var PanelPortal = function PanelPortal(_ref) {
|
|
|
2039
2336
|
if (panels === null) {
|
|
2040
2337
|
return children;
|
|
2041
2338
|
}
|
|
2042
|
-
return /*#__PURE__*/React.createElement(ElementPortal, {
|
|
2339
|
+
return /*#__PURE__*/React.createElement(ElementPortal$1, {
|
|
2043
2340
|
id: id,
|
|
2044
2341
|
data: data,
|
|
2045
2342
|
container: container,
|
|
@@ -2049,6 +2346,7 @@ var PanelPortal = function PanelPortal(_ref) {
|
|
|
2049
2346
|
};
|
|
2050
2347
|
PanelPortal.propTypes = propTypes$o;
|
|
2051
2348
|
PanelPortal.defaultProps = defaultProps$o;
|
|
2349
|
+
var Portal = PanelPortal;
|
|
2052
2350
|
|
|
2053
2351
|
var styles$j = {"container":"micromag-core-panels-panel-container"};
|
|
2054
2352
|
|
|
@@ -2075,7 +2373,7 @@ var Panel = function Panel(_ref) {
|
|
|
2075
2373
|
title: title
|
|
2076
2374
|
};
|
|
2077
2375
|
}, [title]);
|
|
2078
|
-
return /*#__PURE__*/React.createElement(
|
|
2376
|
+
return /*#__PURE__*/React.createElement(Portal, {
|
|
2079
2377
|
id: finalId,
|
|
2080
2378
|
data: data
|
|
2081
2379
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -2084,6 +2382,7 @@ var Panel = function Panel(_ref) {
|
|
|
2084
2382
|
};
|
|
2085
2383
|
Panel.propTypes = propTypes$n;
|
|
2086
2384
|
Panel.defaultProps = defaultProps$n;
|
|
2385
|
+
var Panel$1 = Panel;
|
|
2087
2386
|
|
|
2088
2387
|
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"};
|
|
2089
2388
|
|
|
@@ -2124,7 +2423,7 @@ var CollapsablePanel = function CollapsablePanel(_ref) {
|
|
|
2124
2423
|
className: classNames([styles$i.container, _defineProperty(_defineProperty(_defineProperty({}, styles$i.isOpened, opened), openedClassName, opened && openedClassName !== null), className, className !== null)])
|
|
2125
2424
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2126
2425
|
className: classNames([styles$i.top, _defineProperty({}, topClassName, topClassName !== null)])
|
|
2127
|
-
}, /*#__PURE__*/React.createElement(Button$
|
|
2426
|
+
}, /*#__PURE__*/React.createElement(Button$3, {
|
|
2128
2427
|
withoutStyle: true,
|
|
2129
2428
|
className: classNames([styles$i.button, _defineProperty({}, buttonClassName, buttonClassName !== null)]),
|
|
2130
2429
|
icon: /*#__PURE__*/React.createElement(reactFontawesome.FontAwesomeIcon, {
|
|
@@ -2140,6 +2439,7 @@ var CollapsablePanel = function CollapsablePanel(_ref) {
|
|
|
2140
2439
|
};
|
|
2141
2440
|
CollapsablePanel.propTypes = propTypes$m;
|
|
2142
2441
|
CollapsablePanel.defaultProps = defaultProps$m;
|
|
2442
|
+
var CollapsablePanel$1 = CollapsablePanel;
|
|
2143
2443
|
|
|
2144
2444
|
var propTypes$l = {
|
|
2145
2445
|
stroke: PropTypes.string,
|
|
@@ -2192,6 +2492,7 @@ var Close = function Close(_ref) {
|
|
|
2192
2492
|
};
|
|
2193
2493
|
Close.propTypes = propTypes$l;
|
|
2194
2494
|
Close.defaultProps = defaultProps$l;
|
|
2495
|
+
var Close$1 = Close;
|
|
2195
2496
|
|
|
2196
2497
|
/* eslint-disable react/jsx-props-no-spreading */
|
|
2197
2498
|
var propTypes$k = {
|
|
@@ -2222,6 +2523,7 @@ var Date$1 = function Date(_ref) {
|
|
|
2222
2523
|
};
|
|
2223
2524
|
Date$1.propTypes = propTypes$k;
|
|
2224
2525
|
Date$1.defaultProps = defaultProps$k;
|
|
2526
|
+
var Date$2 = Date$1;
|
|
2225
2527
|
|
|
2226
2528
|
/* eslint-disable react/no-danger */
|
|
2227
2529
|
var propTypes$j = {
|
|
@@ -2300,6 +2602,7 @@ var Detector = function Detector(_ref) {
|
|
|
2300
2602
|
};
|
|
2301
2603
|
Detector.propTypes = propTypes$j;
|
|
2302
2604
|
Detector.defaultProps = defaultProps$j;
|
|
2605
|
+
var Detector$1 = Detector;
|
|
2303
2606
|
|
|
2304
2607
|
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"};
|
|
2305
2608
|
|
|
@@ -2341,6 +2644,7 @@ var PlaceholderBlock = function PlaceholderBlock(_ref) {
|
|
|
2341
2644
|
};
|
|
2342
2645
|
PlaceholderBlock.propTypes = propTypes$i;
|
|
2343
2646
|
PlaceholderBlock.defaultProps = defaultProps$i;
|
|
2647
|
+
var PlaceholderBlock$1 = PlaceholderBlock;
|
|
2344
2648
|
|
|
2345
2649
|
/* eslint-disable react/jsx-props-no-spreading */
|
|
2346
2650
|
|
|
@@ -2375,7 +2679,7 @@ var ElementComponent = function ElementComponent(_ref) {
|
|
|
2375
2679
|
if (isPlaceholder) {
|
|
2376
2680
|
// TODO: figure out what this did
|
|
2377
2681
|
// const PlaceholderComponent = Placeholders[pascalCase(name)];
|
|
2378
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock, placeholderProps);
|
|
2682
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock$1, placeholderProps);
|
|
2379
2683
|
}
|
|
2380
2684
|
var RealComponent = components[utils.pascalCase(name)];
|
|
2381
2685
|
if (!RealComponent) {
|
|
@@ -2387,6 +2691,7 @@ var ElementComponent = function ElementComponent(_ref) {
|
|
|
2387
2691
|
};
|
|
2388
2692
|
ElementComponent.propTypes = propTypes$h;
|
|
2389
2693
|
ElementComponent.defaultProps = defaultProps$h;
|
|
2694
|
+
var ElementComponent$1 = ElementComponent;
|
|
2390
2695
|
|
|
2391
2696
|
var styles$g = {"container":"micromag-core-partials-empty-container","middle":"micromag-core-partials-empty-middle","withoutBorder":"micromag-core-partials-empty-withoutBorder","invertColor":"micromag-core-partials-empty-invertColor"};
|
|
2392
2697
|
|
|
@@ -2411,10 +2716,11 @@ var Empty = function Empty(_ref) {
|
|
|
2411
2716
|
className: classNames([styles$g.container, _defineProperty(_defineProperty(_defineProperty({}, styles$g.withoutBorder, withoutBorder), styles$g.light, light), className, className)])
|
|
2412
2717
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2413
2718
|
className: styles$g.middle
|
|
2414
|
-
}, /*#__PURE__*/React.createElement(Label, null, children)));
|
|
2719
|
+
}, /*#__PURE__*/React.createElement(Label$1, null, children)));
|
|
2415
2720
|
};
|
|
2416
2721
|
Empty.propTypes = propTypes$g;
|
|
2417
2722
|
Empty.defaultProps = defaultProps$g;
|
|
2723
|
+
var Empty$1 = Empty;
|
|
2418
2724
|
|
|
2419
2725
|
var getUrlsFromMedia = function getUrlsFromMedia(media, formats) {
|
|
2420
2726
|
var _ref = media || {},
|
|
@@ -2497,6 +2803,7 @@ var FontFaces = function FontFaces(_ref4) {
|
|
|
2497
2803
|
};
|
|
2498
2804
|
FontFaces.propTypes = propTypes$f;
|
|
2499
2805
|
FontFaces.defaultProps = defaultProps$f;
|
|
2806
|
+
var FontFaces$1 = FontFaces;
|
|
2500
2807
|
|
|
2501
2808
|
var styles$f = {};
|
|
2502
2809
|
|
|
@@ -2543,10 +2850,11 @@ var Media = function Media(_ref) {
|
|
|
2543
2850
|
className: classNames(['card-body', styles$f.body, _defineProperty({}, bodyClassName, bodyClassName !== null)])
|
|
2544
2851
|
}, title !== null ? /*#__PURE__*/React.createElement("h5", {
|
|
2545
2852
|
className: classNames(['mt-0', 'text-truncate', styles$f.title, _defineProperty({}, titleClassName, titleClassName !== null)])
|
|
2546
|
-
}, /*#__PURE__*/React.createElement(Label, null, title)) : null, children) : null);
|
|
2853
|
+
}, /*#__PURE__*/React.createElement(Label$1, null, title)) : null, children) : null);
|
|
2547
2854
|
};
|
|
2548
2855
|
Media.propTypes = propTypes$e;
|
|
2549
2856
|
Media.defaultProps = defaultProps$e;
|
|
2857
|
+
var Media$1 = Media;
|
|
2550
2858
|
|
|
2551
2859
|
/**
|
|
2552
2860
|
* Core
|
|
@@ -3266,6 +3574,7 @@ var Meta = function Meta(_ref) {
|
|
|
3266
3574
|
};
|
|
3267
3575
|
Meta.propTypes = propTypes$d;
|
|
3268
3576
|
Meta.defaultProps = defaultProps$d;
|
|
3577
|
+
var Meta$1 = Meta;
|
|
3269
3578
|
|
|
3270
3579
|
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"};
|
|
3271
3580
|
|
|
@@ -3334,6 +3643,7 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
3334
3643
|
};
|
|
3335
3644
|
Slideshow.propTypes = propTypes$c;
|
|
3336
3645
|
Slideshow.defaultProps = defaultProps$c;
|
|
3646
|
+
var Slideshow$1 = Slideshow;
|
|
3337
3647
|
|
|
3338
3648
|
var styles$d = {"icon":"micromag-core-placeholders-icon"};
|
|
3339
3649
|
|
|
@@ -3342,7 +3652,7 @@ var AdFrame = function AdFrame(_ref) {
|
|
|
3342
3652
|
var width = _ref.width,
|
|
3343
3653
|
height = _ref.height,
|
|
3344
3654
|
className = _ref.className;
|
|
3345
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock, {
|
|
3655
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock$1, {
|
|
3346
3656
|
width: width,
|
|
3347
3657
|
height: height,
|
|
3348
3658
|
className: className
|
|
@@ -3351,13 +3661,14 @@ var AdFrame = function AdFrame(_ref) {
|
|
|
3351
3661
|
className: styles$d.icon
|
|
3352
3662
|
}));
|
|
3353
3663
|
};
|
|
3664
|
+
var AdFrame$1 = AdFrame;
|
|
3354
3665
|
|
|
3355
3666
|
/* eslint-disable react/prop-types */
|
|
3356
3667
|
var AdImage = function AdImage(_ref) {
|
|
3357
3668
|
var width = _ref.width,
|
|
3358
3669
|
height = _ref.height,
|
|
3359
3670
|
className = _ref.className;
|
|
3360
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock, {
|
|
3671
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock$1, {
|
|
3361
3672
|
width: width,
|
|
3362
3673
|
height: height,
|
|
3363
3674
|
className: className
|
|
@@ -3366,6 +3677,7 @@ var AdImage = function AdImage(_ref) {
|
|
|
3366
3677
|
className: styles$d.icon
|
|
3367
3678
|
}));
|
|
3368
3679
|
};
|
|
3680
|
+
var AdImage$1 = AdImage;
|
|
3369
3681
|
|
|
3370
3682
|
/* eslint-disable react/destructuring-assignment, react/prop-types */
|
|
3371
3683
|
var Audio = function Audio(_ref) {
|
|
@@ -3374,7 +3686,7 @@ var Audio = function Audio(_ref) {
|
|
|
3374
3686
|
_ref$height = _ref.height,
|
|
3375
3687
|
height = _ref$height === void 0 ? '2em' : _ref$height,
|
|
3376
3688
|
className = _ref.className;
|
|
3377
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock, {
|
|
3689
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock$1, {
|
|
3378
3690
|
width: width,
|
|
3379
3691
|
height: height,
|
|
3380
3692
|
className: className
|
|
@@ -3383,6 +3695,7 @@ var Audio = function Audio(_ref) {
|
|
|
3383
3695
|
className: styles$d.icon
|
|
3384
3696
|
}));
|
|
3385
3697
|
};
|
|
3698
|
+
var Audio$1 = Audio;
|
|
3386
3699
|
|
|
3387
3700
|
var styles$c = {"container":"micromag-core-partials-placeholder-text-container","withInvertedColors":"micromag-core-partials-placeholder-text-withInvertedColors","line":"micromag-core-partials-placeholder-text-line"};
|
|
3388
3701
|
|
|
@@ -3431,6 +3744,7 @@ var PlaceholderText = function PlaceholderText(_ref) {
|
|
|
3431
3744
|
};
|
|
3432
3745
|
PlaceholderText.propTypes = propTypes$b;
|
|
3433
3746
|
PlaceholderText.defaultProps = defaultProps$b;
|
|
3747
|
+
var PlaceholderText$1 = PlaceholderText;
|
|
3434
3748
|
|
|
3435
3749
|
/* eslint-disable react/destructuring-assignment, react/prop-types */
|
|
3436
3750
|
var Button = function Button(_ref) {
|
|
@@ -3439,16 +3753,17 @@ var Button = function Button(_ref) {
|
|
|
3439
3753
|
_ref$height = _ref.height,
|
|
3440
3754
|
height = _ref$height === void 0 ? '0.4em' : _ref$height,
|
|
3441
3755
|
className = _ref.className;
|
|
3442
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock, {
|
|
3756
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock$1, {
|
|
3443
3757
|
outline: true,
|
|
3444
3758
|
width: width,
|
|
3445
3759
|
height: height,
|
|
3446
3760
|
className: className
|
|
3447
|
-
}, /*#__PURE__*/React.createElement(PlaceholderText, {
|
|
3761
|
+
}, /*#__PURE__*/React.createElement(PlaceholderText$1, {
|
|
3448
3762
|
line: 1,
|
|
3449
3763
|
height: "0.1em"
|
|
3450
3764
|
}));
|
|
3451
3765
|
};
|
|
3766
|
+
var Button$1 = Button;
|
|
3452
3767
|
|
|
3453
3768
|
var _excluded$2 = ["width", "height", "className"];
|
|
3454
3769
|
var Image = function Image(_ref) {
|
|
@@ -3456,7 +3771,7 @@ var Image = function Image(_ref) {
|
|
|
3456
3771
|
height = _ref.height,
|
|
3457
3772
|
className = _ref.className,
|
|
3458
3773
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
3459
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock, Object.assign({}, props, {
|
|
3774
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock$1, Object.assign({}, props, {
|
|
3460
3775
|
width: width,
|
|
3461
3776
|
height: height,
|
|
3462
3777
|
className: className
|
|
@@ -3465,20 +3780,22 @@ var Image = function Image(_ref) {
|
|
|
3465
3780
|
className: styles$d.icon
|
|
3466
3781
|
}));
|
|
3467
3782
|
};
|
|
3783
|
+
var Image$1 = Image;
|
|
3468
3784
|
|
|
3469
3785
|
/* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
|
|
3470
3786
|
var Line = function Line(props) {
|
|
3471
|
-
return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
|
|
3787
|
+
return /*#__PURE__*/React.createElement(PlaceholderText$1, Object.assign({}, props, {
|
|
3472
3788
|
className: classNames([props.className, styles$d.shortText]),
|
|
3473
3789
|
height: 0.2,
|
|
3474
3790
|
lines: 1
|
|
3475
3791
|
}));
|
|
3476
3792
|
};
|
|
3793
|
+
var Line$1 = Line;
|
|
3477
3794
|
|
|
3478
3795
|
var styles$b = {"container":"micromag-core-placeholders-map-container","icon":"micromag-core-placeholders-map-icon"};
|
|
3479
3796
|
|
|
3480
3797
|
var Map = function Map(props) {
|
|
3481
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock, Object.assign({}, props, {
|
|
3798
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock$1, Object.assign({}, props, {
|
|
3482
3799
|
width: "100%",
|
|
3483
3800
|
height: "100%",
|
|
3484
3801
|
className: classNames([styles$b.container, _defineProperty({}, props.className, props.className !== null)])
|
|
@@ -3496,10 +3813,11 @@ var Map = function Map(props) {
|
|
|
3496
3813
|
className: styles$b.icon
|
|
3497
3814
|
}));
|
|
3498
3815
|
};
|
|
3816
|
+
var Map$1 = Map;
|
|
3499
3817
|
|
|
3500
3818
|
/* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
|
|
3501
3819
|
var MapPath = function MapPath(props) {
|
|
3502
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock, Object.assign({}, props, {
|
|
3820
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock$1, Object.assign({}, props, {
|
|
3503
3821
|
width: "100%",
|
|
3504
3822
|
height: "70%",
|
|
3505
3823
|
className: classNames([props.className, styles$d.mapPath])
|
|
@@ -3509,33 +3827,37 @@ var MapPath = function MapPath(props) {
|
|
|
3509
3827
|
className: styles$d.icon
|
|
3510
3828
|
}));
|
|
3511
3829
|
};
|
|
3830
|
+
var MapPath$1 = MapPath;
|
|
3512
3831
|
|
|
3513
3832
|
/* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
|
|
3514
3833
|
var Quote = function Quote(props) {
|
|
3515
|
-
return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
|
|
3834
|
+
return /*#__PURE__*/React.createElement(PlaceholderText$1, Object.assign({}, props, {
|
|
3516
3835
|
className: classNames([props.className, styles$d.subtitle]),
|
|
3517
3836
|
height: 0.5,
|
|
3518
3837
|
lines: 6
|
|
3519
3838
|
}));
|
|
3520
3839
|
};
|
|
3840
|
+
var Quote$1 = Quote;
|
|
3521
3841
|
|
|
3522
3842
|
/* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
|
|
3523
3843
|
var ShortText = function ShortText(props) {
|
|
3524
|
-
return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
|
|
3844
|
+
return /*#__PURE__*/React.createElement(PlaceholderText$1, Object.assign({}, props, {
|
|
3525
3845
|
className: classNames([props.className, styles$d.shortText]),
|
|
3526
3846
|
height: 0.2,
|
|
3527
3847
|
lines: 2
|
|
3528
3848
|
}));
|
|
3529
3849
|
};
|
|
3850
|
+
var ShortText$1 = ShortText;
|
|
3530
3851
|
|
|
3531
3852
|
/* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
|
|
3532
3853
|
var Subtitle = function Subtitle(props) {
|
|
3533
|
-
return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
|
|
3854
|
+
return /*#__PURE__*/React.createElement(PlaceholderText$1, Object.assign({}, props, {
|
|
3534
3855
|
className: classNames([props.className, styles$d.subtitle]),
|
|
3535
3856
|
height: 0.3,
|
|
3536
3857
|
lines: 1
|
|
3537
3858
|
}));
|
|
3538
3859
|
};
|
|
3860
|
+
var Subtitle$1 = Subtitle;
|
|
3539
3861
|
|
|
3540
3862
|
/* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
|
|
3541
3863
|
var TextPlaceholder = function TextPlaceholder(props) {
|
|
@@ -3547,43 +3869,46 @@ var TextPlaceholder = function TextPlaceholder(props) {
|
|
|
3547
3869
|
lines = _props$lines === void 0 ? 4 : _props$lines,
|
|
3548
3870
|
_props$lineMargin = props.lineMargin,
|
|
3549
3871
|
lineMargin = _props$lineMargin === void 0 ? 2 : _props$lineMargin;
|
|
3550
|
-
return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
|
|
3872
|
+
return /*#__PURE__*/React.createElement(PlaceholderText$1, Object.assign({}, props, {
|
|
3551
3873
|
height: height,
|
|
3552
3874
|
lines: lines,
|
|
3553
3875
|
lineMargin: lineMargin,
|
|
3554
3876
|
className: classNames([className, styles$d.text])
|
|
3555
3877
|
}));
|
|
3556
3878
|
};
|
|
3879
|
+
var TextPlaceholder$1 = TextPlaceholder;
|
|
3557
3880
|
|
|
3558
3881
|
/* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
|
|
3559
3882
|
var Timeline = function Timeline(props) {
|
|
3560
|
-
return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
|
|
3883
|
+
return /*#__PURE__*/React.createElement(PlaceholderText$1, Object.assign({}, props, {
|
|
3561
3884
|
className: classNames([props.className, styles$d.timeline])
|
|
3562
3885
|
}));
|
|
3563
3886
|
};
|
|
3887
|
+
var Timeline$1 = Timeline;
|
|
3564
3888
|
|
|
3565
3889
|
/* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
|
|
3566
|
-
var Title$
|
|
3890
|
+
var Title$2 = function Title(props) {
|
|
3567
3891
|
var _props$height = props.height,
|
|
3568
3892
|
height = _props$height === void 0 ? 0.5 : _props$height,
|
|
3569
3893
|
_props$lines = props.lines,
|
|
3570
3894
|
lines = _props$lines === void 0 ? 2 : _props$lines,
|
|
3571
3895
|
_props$lineMargin = props.lineMargin,
|
|
3572
3896
|
lineMargin = _props$lineMargin === void 0 ? 2 : _props$lineMargin;
|
|
3573
|
-
return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
|
|
3897
|
+
return /*#__PURE__*/React.createElement(PlaceholderText$1, Object.assign({}, props, {
|
|
3574
3898
|
className: classNames([props.className, styles$d.title]),
|
|
3575
3899
|
height: height,
|
|
3576
3900
|
lines: lines,
|
|
3577
3901
|
lineMargin: lineMargin
|
|
3578
3902
|
}));
|
|
3579
3903
|
};
|
|
3904
|
+
var Title$3 = Title$2;
|
|
3580
3905
|
|
|
3581
3906
|
/* eslint-disable react/prop-types */
|
|
3582
3907
|
var Video = function Video(_ref) {
|
|
3583
3908
|
var width = _ref.width,
|
|
3584
3909
|
height = _ref.height,
|
|
3585
3910
|
className = _ref.className;
|
|
3586
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock, {
|
|
3911
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock$1, {
|
|
3587
3912
|
width: width,
|
|
3588
3913
|
height: height,
|
|
3589
3914
|
className: className
|
|
@@ -3592,6 +3917,7 @@ var Video = function Video(_ref) {
|
|
|
3592
3917
|
className: styles$d.icon
|
|
3593
3918
|
}));
|
|
3594
3919
|
};
|
|
3920
|
+
var Video$1 = Video;
|
|
3595
3921
|
|
|
3596
3922
|
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"};
|
|
3597
3923
|
|
|
@@ -3599,7 +3925,7 @@ var Video360 = function Video360(_ref) {
|
|
|
3599
3925
|
var width = _ref.width,
|
|
3600
3926
|
height = _ref.height,
|
|
3601
3927
|
className = _ref.className;
|
|
3602
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock, {
|
|
3928
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock$1, {
|
|
3603
3929
|
width: width,
|
|
3604
3930
|
height: height,
|
|
3605
3931
|
className: classNames([styles$a.container, _defineProperty({}, className, className !== null)]),
|
|
@@ -3611,13 +3937,14 @@ var Video360 = function Video360(_ref) {
|
|
|
3611
3937
|
className: styles$a.label
|
|
3612
3938
|
}, "360"));
|
|
3613
3939
|
};
|
|
3940
|
+
var Video360$1 = Video360;
|
|
3614
3941
|
|
|
3615
3942
|
/* eslint-disable react/prop-types */
|
|
3616
3943
|
var VideoLoop = function VideoLoop(_ref) {
|
|
3617
3944
|
var width = _ref.width,
|
|
3618
3945
|
height = _ref.height,
|
|
3619
3946
|
className = _ref.className;
|
|
3620
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock, {
|
|
3947
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock$1, {
|
|
3621
3948
|
width: width,
|
|
3622
3949
|
height: height,
|
|
3623
3950
|
className: className
|
|
@@ -3629,6 +3956,7 @@ var VideoLoop = function VideoLoop(_ref) {
|
|
|
3629
3956
|
className: styles$d.icon
|
|
3630
3957
|
}));
|
|
3631
3958
|
};
|
|
3959
|
+
var VideoLoop$1 = VideoLoop;
|
|
3632
3960
|
|
|
3633
3961
|
var styles$9 = {"container":"micromag-core-screens-screen-sizer-container","frame":"micromag-core-screens-screen-sizer-frame","screen":"micromag-core-screens-screen-sizer-screen"};
|
|
3634
3962
|
|
|
@@ -3741,6 +4069,7 @@ var ScreenSizer = function ScreenSizer(_ref) {
|
|
|
3741
4069
|
};
|
|
3742
4070
|
ScreenSizer.propTypes = propTypes$a;
|
|
3743
4071
|
ScreenSizer.defaultProps = defaultProps$a;
|
|
4072
|
+
var ScreenSizer$1 = ScreenSizer;
|
|
3744
4073
|
|
|
3745
4074
|
var styles$8 = {"container":"micromag-core-screens-screen-container"};
|
|
3746
4075
|
|
|
@@ -3839,7 +4168,7 @@ var ScreenPlaceholder = function ScreenPlaceholder(_ref) {
|
|
|
3839
4168
|
layout: layout,
|
|
3840
4169
|
className: classNames([styles$7.screen, _defineProperty({}, className, !withSize)])
|
|
3841
4170
|
}, props));
|
|
3842
|
-
return withSize ? /*#__PURE__*/React.createElement(ScreenSizer, {
|
|
4171
|
+
return withSize ? /*#__PURE__*/React.createElement(ScreenSizer$1, {
|
|
3843
4172
|
className: className,
|
|
3844
4173
|
screenWidth: screenWidth,
|
|
3845
4174
|
screenHeight: screenHeight
|
|
@@ -3893,7 +4222,7 @@ var ScreenPreview = function ScreenPreview(_ref) {
|
|
|
3893
4222
|
className: classNames([styles$6.screen, _defineProperty({}, className, !withSize)])
|
|
3894
4223
|
}, props));
|
|
3895
4224
|
var element = !hidden ? screenElement : /*#__PURE__*/React.createElement("div", null);
|
|
3896
|
-
var screenWithSize = withSize ? /*#__PURE__*/React.createElement(ScreenSizer, {
|
|
4225
|
+
var screenWithSize = withSize ? /*#__PURE__*/React.createElement(ScreenSizer$1, {
|
|
3897
4226
|
className: className,
|
|
3898
4227
|
screenWidth: screenWidth,
|
|
3899
4228
|
screenHeight: screenHeight,
|
|
@@ -3921,6 +4250,7 @@ var Conversation = function Conversation() {
|
|
|
3921
4250
|
className: styles$5.icon
|
|
3922
4251
|
}));
|
|
3923
4252
|
};
|
|
4253
|
+
var Conversation$1 = Conversation;
|
|
3924
4254
|
|
|
3925
4255
|
/* eslint-disable react/prop-types */
|
|
3926
4256
|
var InputText = function InputText(_ref) {
|
|
@@ -3929,17 +4259,18 @@ var InputText = function InputText(_ref) {
|
|
|
3929
4259
|
_ref$height = _ref.height,
|
|
3930
4260
|
height = _ref$height === void 0 ? '0.5em' : _ref$height,
|
|
3931
4261
|
className = _ref.className;
|
|
3932
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock, {
|
|
4262
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock$1, {
|
|
3933
4263
|
outline: true,
|
|
3934
4264
|
width: width,
|
|
3935
4265
|
height: height,
|
|
3936
4266
|
className: className
|
|
3937
4267
|
});
|
|
3938
4268
|
};
|
|
4269
|
+
var InputText$1 = InputText;
|
|
3939
4270
|
|
|
3940
4271
|
var styles$4 = {"container":"micromag-core-placeholders-quiz-answer-container","block":"micromag-core-placeholders-quiz-answer-block","answer":"micromag-core-placeholders-quiz-answer-answer","answerIcon":"micromag-core-placeholders-quiz-answer-answerIcon","good":"micromag-core-placeholders-quiz-answer-good"};
|
|
3941
4272
|
|
|
3942
|
-
var Answer$
|
|
4273
|
+
var Answer$2 = function Answer(_ref) {
|
|
3943
4274
|
var _ref$width = _ref.width,
|
|
3944
4275
|
width = _ref$width === void 0 ? '75%' : _ref$width,
|
|
3945
4276
|
_ref$height = _ref.height,
|
|
@@ -3954,21 +4285,22 @@ var Answer$1 = function Answer(_ref) {
|
|
|
3954
4285
|
}, /*#__PURE__*/React.createElement(reactFontawesome.FontAwesomeIcon, {
|
|
3955
4286
|
className: styles$4.answerIcon,
|
|
3956
4287
|
icon: good ? faCheck.faCheck : faTimes.faTimes
|
|
3957
|
-
})), /*#__PURE__*/React.createElement(PlaceholderBlock, {
|
|
4288
|
+
})), /*#__PURE__*/React.createElement(PlaceholderBlock$1, {
|
|
3958
4289
|
outline: true,
|
|
3959
4290
|
width: width,
|
|
3960
4291
|
height: height,
|
|
3961
4292
|
className: styles$4.block
|
|
3962
|
-
}, /*#__PURE__*/React.createElement(PlaceholderText, {
|
|
4293
|
+
}, /*#__PURE__*/React.createElement(PlaceholderText$1, {
|
|
3963
4294
|
line: 1,
|
|
3964
4295
|
height: "0.2em"
|
|
3965
4296
|
})));
|
|
3966
4297
|
};
|
|
4298
|
+
var Answer$3 = Answer$2;
|
|
3967
4299
|
|
|
3968
4300
|
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","button":"micromag-core-placeholders-share-options-button"};
|
|
3969
4301
|
|
|
3970
4302
|
var Title = function Title(props) {
|
|
3971
|
-
return /*#__PURE__*/React.createElement(PlaceholderBlock, Object.assign({}, props, {
|
|
4303
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock$1, Object.assign({}, props, {
|
|
3972
4304
|
width: "100%",
|
|
3973
4305
|
height: "100%",
|
|
3974
4306
|
className: classNames([styles$3.container, _defineProperty({}, props.className, props.className !== null)]),
|
|
@@ -3990,6 +4322,7 @@ var Title = function Title(props) {
|
|
|
3990
4322
|
className: styles$3.icon
|
|
3991
4323
|
})));
|
|
3992
4324
|
};
|
|
4325
|
+
var Title$1 = Title;
|
|
3993
4326
|
|
|
3994
4327
|
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"};
|
|
3995
4328
|
|
|
@@ -4001,12 +4334,12 @@ var Answer = function Answer(_ref) {
|
|
|
4001
4334
|
className = _ref.className;
|
|
4002
4335
|
return /*#__PURE__*/React.createElement("div", {
|
|
4003
4336
|
className: classNames([styles$2.container, _defineProperty({}, className, className !== null)])
|
|
4004
|
-
}, /*#__PURE__*/React.createElement(PlaceholderBlock, {
|
|
4337
|
+
}, /*#__PURE__*/React.createElement(PlaceholderBlock$1, {
|
|
4005
4338
|
outline: true,
|
|
4006
4339
|
width: width,
|
|
4007
4340
|
height: height,
|
|
4008
4341
|
className: styles$2.block
|
|
4009
|
-
}, /*#__PURE__*/React.createElement(PlaceholderText, {
|
|
4342
|
+
}, /*#__PURE__*/React.createElement(PlaceholderText$1, {
|
|
4010
4343
|
line: 1,
|
|
4011
4344
|
height: "0.2em"
|
|
4012
4345
|
})), /*#__PURE__*/React.createElement("div", {
|
|
@@ -4016,31 +4349,32 @@ var Answer = function Answer(_ref) {
|
|
|
4016
4349
|
icon: faPercent.faPercent
|
|
4017
4350
|
})));
|
|
4018
4351
|
};
|
|
4352
|
+
var Answer$1 = Answer;
|
|
4019
4353
|
|
|
4020
4354
|
var Placeholders = /*#__PURE__*/Object.freeze({
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4355
|
+
__proto__: null,
|
|
4356
|
+
AdFrame: AdFrame$1,
|
|
4357
|
+
AdImage: AdImage$1,
|
|
4358
|
+
Audio: Audio$1,
|
|
4359
|
+
Button: Button$1,
|
|
4360
|
+
Conversation: Conversation$1,
|
|
4361
|
+
Image: Image$1,
|
|
4362
|
+
InputText: InputText$1,
|
|
4363
|
+
Line: Line$1,
|
|
4364
|
+
Map: Map$1,
|
|
4365
|
+
MapPath: MapPath$1,
|
|
4366
|
+
QuizAnswer: Answer$3,
|
|
4367
|
+
Quote: Quote$1,
|
|
4368
|
+
ShareOptions: Title$1,
|
|
4369
|
+
ShortText: ShortText$1,
|
|
4370
|
+
Subtitle: Subtitle$1,
|
|
4371
|
+
SurveyAnswer: Answer$1,
|
|
4372
|
+
Text: TextPlaceholder$1,
|
|
4373
|
+
Timeline: Timeline$1,
|
|
4374
|
+
Title: Title$3,
|
|
4375
|
+
Video: Video$1,
|
|
4376
|
+
Video360: Video360$1,
|
|
4377
|
+
VideoLoop: VideoLoop$1
|
|
4044
4378
|
});
|
|
4045
4379
|
|
|
4046
4380
|
/* eslint-disable react/jsx-props-no-spreading */
|
|
@@ -4083,7 +4417,7 @@ var ScreenElement = function ScreenElement(_ref) {
|
|
|
4083
4417
|
return PlaceholderComponent !== null ? /*#__PURE__*/React.createElement(PlaceholderComponent, placeholderProps) : placeholder;
|
|
4084
4418
|
}
|
|
4085
4419
|
if (isEdit && isEmpty) {
|
|
4086
|
-
return empty !== null ? empty : /*#__PURE__*/React.createElement(Empty, {
|
|
4420
|
+
return empty !== null ? empty : /*#__PURE__*/React.createElement(Empty$1, {
|
|
4087
4421
|
className: emptyClassName
|
|
4088
4422
|
}, emptyLabel);
|
|
4089
4423
|
}
|
|
@@ -4094,6 +4428,7 @@ var ScreenElement = function ScreenElement(_ref) {
|
|
|
4094
4428
|
};
|
|
4095
4429
|
ScreenElement.propTypes = propTypes$6;
|
|
4096
4430
|
ScreenElement.defaultProps = defaultProps$6;
|
|
4431
|
+
var ScreenElement$1 = ScreenElement;
|
|
4097
4432
|
|
|
4098
4433
|
var styles$1 = {"container":"micromag-core-screens-container","screen":"micromag-core-screens-screen","visible":"micromag-core-screens-visible"};
|
|
4099
4434
|
|
|
@@ -4123,6 +4458,7 @@ var Screens = function Screens(_ref) {
|
|
|
4123
4458
|
};
|
|
4124
4459
|
Screens.propTypes = propTypes$5;
|
|
4125
4460
|
Screens.defaultProps = defaultProps$5;
|
|
4461
|
+
var Screens$1 = Screens;
|
|
4126
4462
|
|
|
4127
4463
|
var styles = {"container":"micromag-core-transitions-transition-container","fullscreen":"micromag-core-transitions-transition-fullscreen"};
|
|
4128
4464
|
|
|
@@ -4395,6 +4731,7 @@ var TransitionsStagger = function TransitionsStagger(_ref) {
|
|
|
4395
4731
|
};
|
|
4396
4732
|
TransitionsStagger.propTypes = propTypes$2;
|
|
4397
4733
|
TransitionsStagger.defaultProps = defaultProps$2;
|
|
4734
|
+
var TransitionsStagger$1 = TransitionsStagger;
|
|
4398
4735
|
|
|
4399
4736
|
var propTypes$1 = {
|
|
4400
4737
|
selector: PropTypes.string,
|
|
@@ -4418,6 +4755,7 @@ var HighlightStyle = function HighlightStyle(_ref) {
|
|
|
4418
4755
|
};
|
|
4419
4756
|
HighlightStyle.propTypes = propTypes$1;
|
|
4420
4757
|
HighlightStyle.defaultProps = defaultProps$1;
|
|
4758
|
+
var HighlightStyle$1 = HighlightStyle;
|
|
4421
4759
|
|
|
4422
4760
|
var propTypes = {
|
|
4423
4761
|
selector: PropTypes.string,
|
|
@@ -4441,73 +4779,74 @@ var LinkStyle = function LinkStyle(_ref) {
|
|
|
4441
4779
|
};
|
|
4442
4780
|
LinkStyle.propTypes = propTypes;
|
|
4443
4781
|
LinkStyle.defaultProps = defaultProps;
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
exports.
|
|
4447
|
-
exports.
|
|
4448
|
-
exports.
|
|
4449
|
-
exports.
|
|
4450
|
-
exports.
|
|
4451
|
-
exports.
|
|
4452
|
-
exports.
|
|
4453
|
-
exports.
|
|
4454
|
-
exports.
|
|
4455
|
-
exports.
|
|
4456
|
-
exports.
|
|
4457
|
-
exports.
|
|
4458
|
-
exports.
|
|
4459
|
-
exports.
|
|
4460
|
-
exports.
|
|
4461
|
-
exports.
|
|
4462
|
-
exports.
|
|
4463
|
-
exports.
|
|
4464
|
-
exports.
|
|
4465
|
-
exports.
|
|
4466
|
-
exports.
|
|
4467
|
-
exports.
|
|
4468
|
-
exports.
|
|
4469
|
-
exports.
|
|
4470
|
-
exports.
|
|
4471
|
-
exports.
|
|
4472
|
-
exports.
|
|
4473
|
-
exports.
|
|
4474
|
-
exports.
|
|
4782
|
+
var LinkStyle$1 = LinkStyle;
|
|
4783
|
+
|
|
4784
|
+
exports.ArrowIcon = ArrowIcon$1;
|
|
4785
|
+
exports.BackButton = BackButton$1;
|
|
4786
|
+
exports.Breadcrumb = Breadcrumb$1;
|
|
4787
|
+
exports.Button = Button$3;
|
|
4788
|
+
exports.Buttons = Buttons$1;
|
|
4789
|
+
exports.Card = Card$1;
|
|
4790
|
+
exports.Close = Close$1;
|
|
4791
|
+
exports.CloseIcon = CloseIcon$1;
|
|
4792
|
+
exports.CollapsablePanel = CollapsablePanel$1;
|
|
4793
|
+
exports.Date = Date$2;
|
|
4794
|
+
exports.Detector = Detector$1;
|
|
4795
|
+
exports.DropdownMenu = Dropdown$1;
|
|
4796
|
+
exports.Element = ElementComponent$1;
|
|
4797
|
+
exports.Empty = Empty$1;
|
|
4798
|
+
exports.FieldForm = FieldForm$1;
|
|
4799
|
+
exports.FontFaces = FontFaces$1;
|
|
4800
|
+
exports.Form = Form$1;
|
|
4801
|
+
exports.FormPanel = FormPanel$1;
|
|
4802
|
+
exports.FullscreenIcon = FullscreenIcon$1;
|
|
4803
|
+
exports.HighlightStyle = HighlightStyle$1;
|
|
4804
|
+
exports.Label = Label$1;
|
|
4805
|
+
exports.Link = Link$1;
|
|
4806
|
+
exports.LinkIcon = LinkIcon$1;
|
|
4807
|
+
exports.LinkStyle = LinkStyle$1;
|
|
4808
|
+
exports.Media = Media$1;
|
|
4809
|
+
exports.Menu = Menu$1;
|
|
4810
|
+
exports.Meta = Meta$1;
|
|
4811
|
+
exports.Modal = Modal$1;
|
|
4812
|
+
exports.ModalDialog = ModalDialog$1;
|
|
4813
|
+
exports.ModalPortal = Portal$1;
|
|
4475
4814
|
exports.Modals = Modals;
|
|
4476
|
-
exports.MuteIcon = MuteIcon;
|
|
4477
|
-
exports.Navbar = Navbar;
|
|
4478
|
-
exports.Pagination = PaginationMenu;
|
|
4479
|
-
exports.Panel = Panel;
|
|
4480
|
-
exports.PanelPortal =
|
|
4815
|
+
exports.MuteIcon = MuteIcon$1;
|
|
4816
|
+
exports.Navbar = Navbar$1;
|
|
4817
|
+
exports.Pagination = PaginationMenu$1;
|
|
4818
|
+
exports.Panel = Panel$1;
|
|
4819
|
+
exports.PanelPortal = Portal;
|
|
4481
4820
|
exports.Panels = Panels;
|
|
4482
|
-
exports.PauseIcon = PauseIcon;
|
|
4483
|
-
exports.PlaceholderAdFrame = AdFrame;
|
|
4484
|
-
exports.PlaceholderAdImage = AdImage;
|
|
4485
|
-
exports.PlaceholderAudio = Audio;
|
|
4486
|
-
exports.PlaceholderButton = Button;
|
|
4487
|
-
exports.PlaceholderImage = Image;
|
|
4488
|
-
exports.PlaceholderLine = Line;
|
|
4489
|
-
exports.PlaceholderMap = Map;
|
|
4490
|
-
exports.PlaceholderMapPath = MapPath;
|
|
4491
|
-
exports.PlaceholderQuote = Quote;
|
|
4492
|
-
exports.PlaceholderShortText = ShortText;
|
|
4493
|
-
exports.PlaceholderSubtitle = Subtitle;
|
|
4494
|
-
exports.PlaceholderText = TextPlaceholder;
|
|
4495
|
-
exports.PlaceholderTimeline = Timeline;
|
|
4496
|
-
exports.PlaceholderTitle = Title$
|
|
4497
|
-
exports.PlaceholderVideo = Video;
|
|
4498
|
-
exports.PlaceholderVideo360 = Video360;
|
|
4499
|
-
exports.PlaceholderVideoLoop = VideoLoop;
|
|
4500
|
-
exports.PlayIcon = PlayIcon;
|
|
4821
|
+
exports.PauseIcon = PauseIcon$1;
|
|
4822
|
+
exports.PlaceholderAdFrame = AdFrame$1;
|
|
4823
|
+
exports.PlaceholderAdImage = AdImage$1;
|
|
4824
|
+
exports.PlaceholderAudio = Audio$1;
|
|
4825
|
+
exports.PlaceholderButton = Button$1;
|
|
4826
|
+
exports.PlaceholderImage = Image$1;
|
|
4827
|
+
exports.PlaceholderLine = Line$1;
|
|
4828
|
+
exports.PlaceholderMap = Map$1;
|
|
4829
|
+
exports.PlaceholderMapPath = MapPath$1;
|
|
4830
|
+
exports.PlaceholderQuote = Quote$1;
|
|
4831
|
+
exports.PlaceholderShortText = ShortText$1;
|
|
4832
|
+
exports.PlaceholderSubtitle = Subtitle$1;
|
|
4833
|
+
exports.PlaceholderText = TextPlaceholder$1;
|
|
4834
|
+
exports.PlaceholderTimeline = Timeline$1;
|
|
4835
|
+
exports.PlaceholderTitle = Title$3;
|
|
4836
|
+
exports.PlaceholderVideo = Video$1;
|
|
4837
|
+
exports.PlaceholderVideo360 = Video360$1;
|
|
4838
|
+
exports.PlaceholderVideoLoop = VideoLoop$1;
|
|
4839
|
+
exports.PlayIcon = PlayIcon$1;
|
|
4501
4840
|
exports.Screen = Screen$1;
|
|
4502
|
-
exports.ScreenElement = ScreenElement;
|
|
4841
|
+
exports.ScreenElement = ScreenElement$1;
|
|
4503
4842
|
exports.ScreenPlaceholder = Placeholder;
|
|
4504
4843
|
exports.ScreenPreview = Preview;
|
|
4505
|
-
exports.ScreenSizer = ScreenSizer;
|
|
4506
|
-
exports.Screens = Screens;
|
|
4507
|
-
exports.Slideshow = Slideshow;
|
|
4508
|
-
exports.Spinner = Spinner;
|
|
4509
|
-
exports.Tabs = TabsMenu;
|
|
4844
|
+
exports.ScreenSizer = ScreenSizer$1;
|
|
4845
|
+
exports.Screens = Screens$1;
|
|
4846
|
+
exports.Slideshow = Slideshow$1;
|
|
4847
|
+
exports.Spinner = Spinner$1;
|
|
4848
|
+
exports.Tabs = TabsMenu$1;
|
|
4510
4849
|
exports.Transitions = Transitions;
|
|
4511
|
-
exports.TransitionsStagger = TransitionsStagger;
|
|
4512
|
-
exports.UnmuteIcon = UnmuteIcon;
|
|
4513
|
-
exports.UploadModal = UploadModal;
|
|
4850
|
+
exports.TransitionsStagger = TransitionsStagger$1;
|
|
4851
|
+
exports.UnmuteIcon = UnmuteIcon$1;
|
|
4852
|
+
exports.UploadModal = UploadModal$1;
|