@micromag/core 0.3.112 → 0.3.119
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 +159 -105
- package/es/hooks.js +25 -2
- package/es/index.js +2 -0
- package/es/utils.js +142 -3
- package/lib/components.js +159 -104
- package/lib/hooks.js +24 -0
- package/lib/index.js +2 -0
- package/lib/utils.js +144 -2
- package/package.json +2 -2
package/es/components.js
CHANGED
|
@@ -45,13 +45,13 @@ import { animated } from '@react-spring/web';
|
|
|
45
45
|
var styles$v = {"container":"micromag-core-buttons-button-container","asLink":"micromag-core-buttons-button-asLink","withoutStyle":"micromag-core-buttons-button-withoutStyle","icon":"micromag-core-buttons-button-icon","withIcon":"micromag-core-buttons-button-withIcon","label":"micromag-core-buttons-button-label","right":"micromag-core-buttons-button-right","withIconColumns":"micromag-core-buttons-button-withIconColumns","linkDisabled":"micromag-core-buttons-button-linkDisabled"};
|
|
46
46
|
|
|
47
47
|
/* eslint-disable react/jsx-props-no-spreading */
|
|
48
|
-
var propTypes$
|
|
48
|
+
var propTypes$L = {
|
|
49
49
|
children: PropTypes.label.isRequired,
|
|
50
50
|
isHtml: PropTypes$1.bool,
|
|
51
51
|
values: PropTypes$1.object // eslint-disable-line react/forbid-prop-types
|
|
52
52
|
|
|
53
53
|
};
|
|
54
|
-
var defaultProps$
|
|
54
|
+
var defaultProps$L = {
|
|
55
55
|
isHtml: false,
|
|
56
56
|
values: {}
|
|
57
57
|
};
|
|
@@ -66,11 +66,11 @@ var Label = function Label(_ref) {
|
|
|
66
66
|
}, children)) : children;
|
|
67
67
|
};
|
|
68
68
|
|
|
69
|
-
Label.propTypes = propTypes$
|
|
70
|
-
Label.defaultProps = defaultProps$
|
|
69
|
+
Label.propTypes = propTypes$L;
|
|
70
|
+
Label.defaultProps = defaultProps$L;
|
|
71
71
|
|
|
72
72
|
var _excluded$a = ["type", "theme", "size", "href", "external", "direct", "target", "label", "children", "focusable", "active", "icon", "iconPosition", "disabled", "loading", "disableOnLoading", "small", "big", "withShadow", "withoutStyle", "withoutTheme", "asLink", "outline", "onClick", "className", "iconClassName", "labelClassName", "refButton"];
|
|
73
|
-
var propTypes$
|
|
73
|
+
var propTypes$K = {
|
|
74
74
|
type: PropTypes$1.string,
|
|
75
75
|
theme: PropTypes.buttonTheme,
|
|
76
76
|
size: PropTypes.buttonSize,
|
|
@@ -103,7 +103,7 @@ var propTypes$J = {
|
|
|
103
103
|
|
|
104
104
|
})])
|
|
105
105
|
};
|
|
106
|
-
var defaultProps$
|
|
106
|
+
var defaultProps$K = {
|
|
107
107
|
type: 'button',
|
|
108
108
|
theme: null,
|
|
109
109
|
size: null,
|
|
@@ -219,13 +219,13 @@ var Button$1 = function Button(_ref) {
|
|
|
219
219
|
}), content);
|
|
220
220
|
};
|
|
221
221
|
|
|
222
|
-
Button$1.propTypes = propTypes$
|
|
223
|
-
Button$1.defaultProps = defaultProps$
|
|
222
|
+
Button$1.propTypes = propTypes$K;
|
|
223
|
+
Button$1.defaultProps = defaultProps$K;
|
|
224
224
|
|
|
225
225
|
var styles$u = {};
|
|
226
226
|
|
|
227
227
|
var _excluded$9 = ["className", "onClick", "theme"];
|
|
228
|
-
var propTypes$
|
|
228
|
+
var propTypes$J = {
|
|
229
229
|
buttons: PropTypes.buttons,
|
|
230
230
|
size: PropTypes.buttonSize,
|
|
231
231
|
theme: PropTypes.buttonTheme,
|
|
@@ -234,7 +234,7 @@ var propTypes$I = {
|
|
|
234
234
|
className: PropTypes$1.string,
|
|
235
235
|
buttonClassName: PropTypes$1.string
|
|
236
236
|
};
|
|
237
|
-
var defaultProps$
|
|
237
|
+
var defaultProps$J = {
|
|
238
238
|
buttons: [],
|
|
239
239
|
size: null,
|
|
240
240
|
theme: undefined,
|
|
@@ -284,14 +284,14 @@ var Buttons = function Buttons(_ref) {
|
|
|
284
284
|
}));
|
|
285
285
|
};
|
|
286
286
|
|
|
287
|
-
Buttons.propTypes = propTypes$
|
|
288
|
-
Buttons.defaultProps = defaultProps$
|
|
287
|
+
Buttons.propTypes = propTypes$J;
|
|
288
|
+
Buttons.defaultProps = defaultProps$J;
|
|
289
289
|
|
|
290
290
|
var _excluded$8 = ["className"];
|
|
291
|
-
var propTypes$
|
|
291
|
+
var propTypes$I = {
|
|
292
292
|
className: PropTypes$1.string
|
|
293
293
|
};
|
|
294
|
-
var defaultProps$
|
|
294
|
+
var defaultProps$I = {
|
|
295
295
|
className: null
|
|
296
296
|
};
|
|
297
297
|
|
|
@@ -309,14 +309,14 @@ var BackButton = function BackButton(_ref) {
|
|
|
309
309
|
}, props));
|
|
310
310
|
};
|
|
311
311
|
|
|
312
|
-
BackButton.propTypes = propTypes$
|
|
313
|
-
BackButton.defaultProps = defaultProps$
|
|
312
|
+
BackButton.propTypes = propTypes$I;
|
|
313
|
+
BackButton.defaultProps = defaultProps$I;
|
|
314
314
|
|
|
315
315
|
var styles$t = {"actions":"micromag-core-forms-form-actions","left":"micromag-core-forms-form-left","right":"micromag-core-forms-form-right"};
|
|
316
316
|
|
|
317
317
|
var _excluded$7 = ["type"],
|
|
318
318
|
_excluded2 = ["component", "id", "settings"];
|
|
319
|
-
var propTypes$
|
|
319
|
+
var propTypes$H = {
|
|
320
320
|
name: PropTypes$1.string,
|
|
321
321
|
// .isRequired,
|
|
322
322
|
value: PropTypes.component,
|
|
@@ -330,7 +330,7 @@ var propTypes$G = {
|
|
|
330
330
|
fieldContext: PropTypes$1.any // eslint-disable-line react/forbid-prop-types
|
|
331
331
|
|
|
332
332
|
};
|
|
333
|
-
var defaultProps$
|
|
333
|
+
var defaultProps$H = {
|
|
334
334
|
name: null,
|
|
335
335
|
form: null,
|
|
336
336
|
formComponents: {},
|
|
@@ -417,10 +417,10 @@ var FieldForm = function FieldForm(_ref) {
|
|
|
417
417
|
}, formProps))) : null;
|
|
418
418
|
};
|
|
419
419
|
|
|
420
|
-
FieldForm.propTypes = propTypes$
|
|
421
|
-
FieldForm.defaultProps = defaultProps$
|
|
420
|
+
FieldForm.propTypes = propTypes$H;
|
|
421
|
+
FieldForm.defaultProps = defaultProps$H;
|
|
422
422
|
|
|
423
|
-
var propTypes$
|
|
423
|
+
var propTypes$G = {
|
|
424
424
|
action: PropTypes$1.string.isRequired,
|
|
425
425
|
method: PropTypes$1.string,
|
|
426
426
|
fields: PropTypes.formFields,
|
|
@@ -447,7 +447,7 @@ var propTypes$F = {
|
|
|
447
447
|
actionsClassName: PropTypes$1.string,
|
|
448
448
|
cancelClassName: PropTypes$1.string
|
|
449
449
|
};
|
|
450
|
-
var defaultProps$
|
|
450
|
+
var defaultProps$G = {
|
|
451
451
|
method: 'POST',
|
|
452
452
|
fields: [],
|
|
453
453
|
initialValue: null,
|
|
@@ -661,13 +661,13 @@ var Form = function Form(_ref) {
|
|
|
661
661
|
})) : null) : null);
|
|
662
662
|
};
|
|
663
663
|
|
|
664
|
-
Form.propTypes = propTypes$
|
|
665
|
-
Form.defaultProps = defaultProps$
|
|
664
|
+
Form.propTypes = propTypes$G;
|
|
665
|
+
Form.defaultProps = defaultProps$G;
|
|
666
666
|
|
|
667
667
|
var styles$s = {"withoutStyle":"micromag-core-partials-link-withoutStyle"};
|
|
668
668
|
|
|
669
669
|
var _excluded$6 = ["href", "external", "children", "target", "rel", "className", "withoutStyle"];
|
|
670
|
-
var propTypes$
|
|
670
|
+
var propTypes$F = {
|
|
671
671
|
href: PropTypes$1.string,
|
|
672
672
|
external: PropTypes$1.bool,
|
|
673
673
|
target: PropTypes$1.string,
|
|
@@ -676,7 +676,7 @@ var propTypes$E = {
|
|
|
676
676
|
withoutStyle: PropTypes$1.bool,
|
|
677
677
|
className: PropTypes$1.string
|
|
678
678
|
};
|
|
679
|
-
var defaultProps$
|
|
679
|
+
var defaultProps$F = {
|
|
680
680
|
href: '',
|
|
681
681
|
external: false,
|
|
682
682
|
target: '_blank',
|
|
@@ -707,11 +707,11 @@ var Link = function Link(_ref) {
|
|
|
707
707
|
}, props), /*#__PURE__*/React.createElement(Label, null, children));
|
|
708
708
|
};
|
|
709
709
|
|
|
710
|
-
Link.propTypes = propTypes$
|
|
711
|
-
Link.defaultProps = defaultProps$
|
|
710
|
+
Link.propTypes = propTypes$F;
|
|
711
|
+
Link.defaultProps = defaultProps$F;
|
|
712
712
|
|
|
713
713
|
var _excluded$5 = ["label", "className"];
|
|
714
|
-
var propTypes$
|
|
714
|
+
var propTypes$E = {
|
|
715
715
|
href: PropTypes$1.string,
|
|
716
716
|
header: PropTypes$1.node,
|
|
717
717
|
image: PropTypes$1.node,
|
|
@@ -740,7 +740,7 @@ var propTypes$D = {
|
|
|
740
740
|
onClickBody: PropTypes$1.func,
|
|
741
741
|
onClickFooter: PropTypes$1.func
|
|
742
742
|
};
|
|
743
|
-
var defaultProps$
|
|
743
|
+
var defaultProps$E = {
|
|
744
744
|
href: null,
|
|
745
745
|
header: null,
|
|
746
746
|
image: null,
|
|
@@ -861,15 +861,15 @@ var Card = function Card(_ref) {
|
|
|
861
861
|
}, cardInner);
|
|
862
862
|
};
|
|
863
863
|
|
|
864
|
-
Card.propTypes = propTypes$
|
|
865
|
-
Card.defaultProps = defaultProps$
|
|
864
|
+
Card.propTypes = propTypes$E;
|
|
865
|
+
Card.defaultProps = defaultProps$E;
|
|
866
866
|
|
|
867
|
-
var propTypes$
|
|
867
|
+
var propTypes$D = {
|
|
868
868
|
animated: PropTypes$1.bool,
|
|
869
869
|
color: PropTypes$1.string,
|
|
870
870
|
className: PropTypes$1.string
|
|
871
871
|
};
|
|
872
|
-
var defaultProps$
|
|
872
|
+
var defaultProps$D = {
|
|
873
873
|
animated: true,
|
|
874
874
|
color: 'currentColor',
|
|
875
875
|
className: null
|
|
@@ -934,19 +934,19 @@ var Spinner = function Spinner(_ref) {
|
|
|
934
934
|
}) : null))));
|
|
935
935
|
};
|
|
936
936
|
|
|
937
|
-
Spinner.propTypes = propTypes$
|
|
938
|
-
Spinner.defaultProps = defaultProps$
|
|
937
|
+
Spinner.propTypes = propTypes$D;
|
|
938
|
+
Spinner.defaultProps = defaultProps$D;
|
|
939
939
|
|
|
940
940
|
var styles$r = {};
|
|
941
941
|
|
|
942
942
|
var _excluded$4 = ["description", "loading", "children", "className"];
|
|
943
|
-
var propTypes$
|
|
943
|
+
var propTypes$C = {
|
|
944
944
|
description: PropTypes$1.node,
|
|
945
945
|
loading: PropTypes$1.bool,
|
|
946
946
|
children: PropTypes$1.node,
|
|
947
947
|
className: PropTypes$1.string
|
|
948
948
|
};
|
|
949
|
-
var defaultProps$
|
|
949
|
+
var defaultProps$C = {
|
|
950
950
|
description: null,
|
|
951
951
|
loading: false,
|
|
952
952
|
children: null,
|
|
@@ -965,12 +965,12 @@ var FormPanel = function FormPanel(_ref) {
|
|
|
965
965
|
}, props), description, loading ? /*#__PURE__*/React.createElement(Spinner, null) : children);
|
|
966
966
|
};
|
|
967
967
|
|
|
968
|
-
FormPanel.propTypes = propTypes$
|
|
969
|
-
FormPanel.defaultProps = defaultProps$
|
|
968
|
+
FormPanel.propTypes = propTypes$C;
|
|
969
|
+
FormPanel.defaultProps = defaultProps$C;
|
|
970
970
|
|
|
971
971
|
var styles$q = {"container":"micromag-core-menus-breadcrumb-container","arrow":"micromag-core-menus-breadcrumb-arrow"};
|
|
972
972
|
|
|
973
|
-
var propTypes$
|
|
973
|
+
var propTypes$B = {
|
|
974
974
|
items: PropTypes.menuItems,
|
|
975
975
|
theme: PropTypes.bootstrapThemes,
|
|
976
976
|
separator: PropTypes$1.oneOf([null, 'arrow']),
|
|
@@ -978,7 +978,7 @@ var propTypes$A = {
|
|
|
978
978
|
noWrap: PropTypes$1.bool,
|
|
979
979
|
className: PropTypes$1.string
|
|
980
980
|
};
|
|
981
|
-
var defaultProps$
|
|
981
|
+
var defaultProps$B = {
|
|
982
982
|
items: [],
|
|
983
983
|
theme: null,
|
|
984
984
|
separator: null,
|
|
@@ -1028,11 +1028,11 @@ var Breadcrumb = function Breadcrumb(_ref) {
|
|
|
1028
1028
|
})));
|
|
1029
1029
|
};
|
|
1030
1030
|
|
|
1031
|
-
Breadcrumb.propTypes = propTypes$
|
|
1032
|
-
Breadcrumb.defaultProps = defaultProps$
|
|
1031
|
+
Breadcrumb.propTypes = propTypes$B;
|
|
1032
|
+
Breadcrumb.defaultProps = defaultProps$B;
|
|
1033
1033
|
|
|
1034
1034
|
var _excluded$3 = ["type", "className", "label", "children", "onClick", "active"];
|
|
1035
|
-
var propTypes$
|
|
1035
|
+
var propTypes$A = {
|
|
1036
1036
|
items: PropTypes.menuItems,
|
|
1037
1037
|
children: PropTypes$1.node,
|
|
1038
1038
|
visible: PropTypes$1.bool,
|
|
@@ -1042,7 +1042,7 @@ var propTypes$z = {
|
|
|
1042
1042
|
onClickItem: PropTypes$1.func,
|
|
1043
1043
|
onClickOutside: PropTypes$1.func
|
|
1044
1044
|
};
|
|
1045
|
-
var defaultProps$
|
|
1045
|
+
var defaultProps$A = {
|
|
1046
1046
|
items: [],
|
|
1047
1047
|
children: null,
|
|
1048
1048
|
visible: false,
|
|
@@ -1140,11 +1140,11 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
1140
1140
|
}));
|
|
1141
1141
|
};
|
|
1142
1142
|
|
|
1143
|
-
Dropdown.propTypes = propTypes$
|
|
1144
|
-
Dropdown.defaultProps = defaultProps$
|
|
1143
|
+
Dropdown.propTypes = propTypes$A;
|
|
1144
|
+
Dropdown.defaultProps = defaultProps$A;
|
|
1145
1145
|
|
|
1146
1146
|
var _excluded$2 = ["id", "className", "linkClassName", "href", "label", "external", "items", "dropdown", "active", "onClick"];
|
|
1147
|
-
var propTypes$
|
|
1147
|
+
var propTypes$z = {
|
|
1148
1148
|
items: PropTypes.menuItems,
|
|
1149
1149
|
tagName: PropTypes$1.string,
|
|
1150
1150
|
itemTagName: PropTypes$1.string,
|
|
@@ -1163,7 +1163,7 @@ var propTypes$y = {
|
|
|
1163
1163
|
dropdownLinkClassName: PropTypes$1.string,
|
|
1164
1164
|
dropdownAlign: PropTypes.dropdownAlign
|
|
1165
1165
|
};
|
|
1166
|
-
var defaultProps$
|
|
1166
|
+
var defaultProps$z = {
|
|
1167
1167
|
items: [],
|
|
1168
1168
|
tagName: 'ul',
|
|
1169
1169
|
itemTagName: 'li',
|
|
@@ -1287,12 +1287,12 @@ var Menu = function Menu(_ref) {
|
|
|
1287
1287
|
}));
|
|
1288
1288
|
};
|
|
1289
1289
|
|
|
1290
|
-
Menu.propTypes = propTypes$
|
|
1291
|
-
Menu.defaultProps = defaultProps$
|
|
1290
|
+
Menu.propTypes = propTypes$z;
|
|
1291
|
+
Menu.defaultProps = defaultProps$z;
|
|
1292
1292
|
|
|
1293
1293
|
var styles$p = {"collapse":"micromag-core-menus-navbar-collapse"};
|
|
1294
1294
|
|
|
1295
|
-
var propTypes$
|
|
1295
|
+
var propTypes$y = {
|
|
1296
1296
|
brand: PropTypes$1.node,
|
|
1297
1297
|
brandLink: PropTypes$1.string,
|
|
1298
1298
|
breadcrumbs: PropTypes$1.node,
|
|
@@ -1308,7 +1308,7 @@ var propTypes$x = {
|
|
|
1308
1308
|
breadCrumbsClassName: PropTypes$1.string,
|
|
1309
1309
|
collapseClassName: PropTypes$1.string
|
|
1310
1310
|
};
|
|
1311
|
-
var defaultProps$
|
|
1311
|
+
var defaultProps$y = {
|
|
1312
1312
|
brand: null,
|
|
1313
1313
|
brandLink: null,
|
|
1314
1314
|
breadcrumbs: null,
|
|
@@ -1384,8 +1384,8 @@ var Navbar = function Navbar(_ref) {
|
|
|
1384
1384
|
}, children) : children));
|
|
1385
1385
|
};
|
|
1386
1386
|
|
|
1387
|
-
Navbar.propTypes = propTypes$
|
|
1388
|
-
Navbar.defaultProps = defaultProps$
|
|
1387
|
+
Navbar.propTypes = propTypes$y;
|
|
1388
|
+
Navbar.defaultProps = defaultProps$y;
|
|
1389
1389
|
|
|
1390
1390
|
var styles$o = {};
|
|
1391
1391
|
|
|
@@ -1405,7 +1405,7 @@ var messages = defineMessages({
|
|
|
1405
1405
|
}]
|
|
1406
1406
|
}
|
|
1407
1407
|
});
|
|
1408
|
-
var propTypes$
|
|
1408
|
+
var propTypes$x = {
|
|
1409
1409
|
page: PropTypes$1.number,
|
|
1410
1410
|
total: PropTypes$1.number,
|
|
1411
1411
|
url: PropTypes$1.string,
|
|
@@ -1416,7 +1416,7 @@ var propTypes$w = {
|
|
|
1416
1416
|
linkClassName: PropTypes$1.string,
|
|
1417
1417
|
onClickPage: PropTypes$1.func
|
|
1418
1418
|
};
|
|
1419
|
-
var defaultProps$
|
|
1419
|
+
var defaultProps$x = {
|
|
1420
1420
|
page: 1,
|
|
1421
1421
|
total: 1,
|
|
1422
1422
|
url: null,
|
|
@@ -1490,12 +1490,12 @@ var PaginationMenu = function PaginationMenu(_ref) {
|
|
|
1490
1490
|
}, /*#__PURE__*/React.createElement(Label, null, messages.next))) : null));
|
|
1491
1491
|
};
|
|
1492
1492
|
|
|
1493
|
-
PaginationMenu.propTypes = propTypes$
|
|
1494
|
-
PaginationMenu.defaultProps = defaultProps$
|
|
1493
|
+
PaginationMenu.propTypes = propTypes$x;
|
|
1494
|
+
PaginationMenu.defaultProps = defaultProps$x;
|
|
1495
1495
|
|
|
1496
1496
|
var styles$n = {"container":"micromag-core-menus-tabs-container"};
|
|
1497
1497
|
|
|
1498
|
-
var propTypes$
|
|
1498
|
+
var propTypes$w = {
|
|
1499
1499
|
items: PropTypes.menuItems,
|
|
1500
1500
|
size: PropTypes.buttonSize,
|
|
1501
1501
|
theme: PropTypes.buttonTheme,
|
|
@@ -1504,7 +1504,7 @@ var propTypes$v = {
|
|
|
1504
1504
|
className: PropTypes$1.string,
|
|
1505
1505
|
onClickItem: PropTypes$1.func
|
|
1506
1506
|
};
|
|
1507
|
-
var defaultProps$
|
|
1507
|
+
var defaultProps$w = {
|
|
1508
1508
|
items: [],
|
|
1509
1509
|
size: null,
|
|
1510
1510
|
theme: 'secondary',
|
|
@@ -1535,17 +1535,17 @@ var TabsMenu = function TabsMenu(_ref) {
|
|
|
1535
1535
|
}));
|
|
1536
1536
|
};
|
|
1537
1537
|
|
|
1538
|
-
TabsMenu.propTypes = propTypes$
|
|
1539
|
-
TabsMenu.defaultProps = defaultProps$
|
|
1538
|
+
TabsMenu.propTypes = propTypes$w;
|
|
1539
|
+
TabsMenu.defaultProps = defaultProps$w;
|
|
1540
1540
|
|
|
1541
1541
|
var styles$m = {"container":"micromag-core-modals-container","modals":"micromag-core-modals-modals","hasModals":"micromag-core-modals-hasModals"};
|
|
1542
1542
|
|
|
1543
|
-
var propTypes$
|
|
1543
|
+
var propTypes$v = {
|
|
1544
1544
|
modals: PropTypes.modals.isRequired,
|
|
1545
1545
|
setModalsContainer: PropTypes$1.func.isRequired,
|
|
1546
1546
|
className: PropTypes$1.string
|
|
1547
1547
|
};
|
|
1548
|
-
var defaultProps$
|
|
1548
|
+
var defaultProps$v = {
|
|
1549
1549
|
className: null
|
|
1550
1550
|
};
|
|
1551
1551
|
|
|
@@ -1565,12 +1565,12 @@ var ModalsContainer = function ModalsContainer(_ref) {
|
|
|
1565
1565
|
}));
|
|
1566
1566
|
};
|
|
1567
1567
|
|
|
1568
|
-
ModalsContainer.propTypes = propTypes$
|
|
1569
|
-
ModalsContainer.defaultProps = defaultProps$
|
|
1568
|
+
ModalsContainer.propTypes = propTypes$v;
|
|
1569
|
+
ModalsContainer.defaultProps = defaultProps$v;
|
|
1570
1570
|
var Modals = withModals(ModalsContainer);
|
|
1571
1571
|
|
|
1572
1572
|
/* eslint-disable react/no-array-index-key, react/jsx-props-no-spreading */
|
|
1573
|
-
var propTypes$
|
|
1573
|
+
var propTypes$u = {
|
|
1574
1574
|
id: PropTypes$1.string,
|
|
1575
1575
|
data: PropTypes$1.object,
|
|
1576
1576
|
// eslint-disable-line react/forbid-prop-types
|
|
@@ -1580,7 +1580,7 @@ var propTypes$t = {
|
|
|
1580
1580
|
unregister: PropTypes$1.func,
|
|
1581
1581
|
children: PropTypes$1.node
|
|
1582
1582
|
};
|
|
1583
|
-
var defaultProps$
|
|
1583
|
+
var defaultProps$u = {
|
|
1584
1584
|
id: null,
|
|
1585
1585
|
data: null,
|
|
1586
1586
|
container: null,
|
|
@@ -1613,17 +1613,17 @@ var ElementPortal = function ElementPortal(_ref) {
|
|
|
1613
1613
|
return container !== null ? /*#__PURE__*/ReactDOM.createPortal(children, container) : null;
|
|
1614
1614
|
};
|
|
1615
1615
|
|
|
1616
|
-
ElementPortal.propTypes = propTypes$
|
|
1617
|
-
ElementPortal.defaultProps = defaultProps$
|
|
1616
|
+
ElementPortal.propTypes = propTypes$u;
|
|
1617
|
+
ElementPortal.defaultProps = defaultProps$u;
|
|
1618
1618
|
|
|
1619
1619
|
/* eslint-disable react/no-array-index-key, react/jsx-props-no-spreading */
|
|
1620
|
-
var propTypes$
|
|
1620
|
+
var propTypes$t = {
|
|
1621
1621
|
id: PropTypes$1.string,
|
|
1622
1622
|
data: PropTypes$1.object,
|
|
1623
1623
|
// eslint-disable-line react/forbid-prop-types
|
|
1624
1624
|
children: PropTypes$1.node
|
|
1625
1625
|
};
|
|
1626
|
-
var defaultProps$
|
|
1626
|
+
var defaultProps$t = {
|
|
1627
1627
|
id: null,
|
|
1628
1628
|
data: null,
|
|
1629
1629
|
children: null
|
|
@@ -1650,18 +1650,18 @@ var ModalPortal = function ModalPortal(_ref) {
|
|
|
1650
1650
|
}, children);
|
|
1651
1651
|
};
|
|
1652
1652
|
|
|
1653
|
-
ModalPortal.propTypes = propTypes$
|
|
1654
|
-
ModalPortal.defaultProps = defaultProps$
|
|
1653
|
+
ModalPortal.propTypes = propTypes$t;
|
|
1654
|
+
ModalPortal.defaultProps = defaultProps$t;
|
|
1655
1655
|
|
|
1656
1656
|
var styles$l = {"container":"micromag-core-modals-modal-container","center":"micromag-core-modals-modal-center","inner":"micromag-core-modals-modal-inner","top":"micromag-core-modals-modal-top"};
|
|
1657
1657
|
|
|
1658
|
-
var propTypes$
|
|
1658
|
+
var propTypes$s = {
|
|
1659
1659
|
id: PropTypes$1.string,
|
|
1660
1660
|
title: PropTypes$1.string,
|
|
1661
1661
|
position: PropTypes$1.oneOf(['center', 'top']),
|
|
1662
1662
|
children: PropTypes$1.node
|
|
1663
1663
|
};
|
|
1664
|
-
var defaultProps$
|
|
1664
|
+
var defaultProps$s = {
|
|
1665
1665
|
id: null,
|
|
1666
1666
|
title: null,
|
|
1667
1667
|
position: 'center',
|
|
@@ -1691,12 +1691,12 @@ var Modal = function Modal(_ref) {
|
|
|
1691
1691
|
}, children)));
|
|
1692
1692
|
};
|
|
1693
1693
|
|
|
1694
|
-
Modal.propTypes = propTypes$
|
|
1695
|
-
Modal.defaultProps = defaultProps$
|
|
1694
|
+
Modal.propTypes = propTypes$s;
|
|
1695
|
+
Modal.defaultProps = defaultProps$s;
|
|
1696
1696
|
|
|
1697
1697
|
var styles$k = {"container":"micromag-core-modals-dialog-container"};
|
|
1698
1698
|
|
|
1699
|
-
var propTypes$
|
|
1699
|
+
var propTypes$r = {
|
|
1700
1700
|
title: PropTypes.label,
|
|
1701
1701
|
header: PropTypes$1.node,
|
|
1702
1702
|
children: PropTypes$1.node,
|
|
@@ -1706,7 +1706,7 @@ var propTypes$q = {
|
|
|
1706
1706
|
onClickClose: PropTypes$1.func,
|
|
1707
1707
|
className: PropTypes$1.string
|
|
1708
1708
|
};
|
|
1709
|
-
var defaultProps$
|
|
1709
|
+
var defaultProps$r = {
|
|
1710
1710
|
title: null,
|
|
1711
1711
|
header: null,
|
|
1712
1712
|
children: null,
|
|
@@ -1754,8 +1754,8 @@ var ModalDialog = function ModalDialog(_ref) {
|
|
|
1754
1754
|
}) : null) : null));
|
|
1755
1755
|
};
|
|
1756
1756
|
|
|
1757
|
-
ModalDialog.propTypes = propTypes$
|
|
1758
|
-
ModalDialog.defaultProps = defaultProps$
|
|
1757
|
+
ModalDialog.propTypes = propTypes$r;
|
|
1758
|
+
ModalDialog.defaultProps = defaultProps$r;
|
|
1759
1759
|
|
|
1760
1760
|
// import classNames from 'classnames';
|
|
1761
1761
|
var DashboardModal = /*#__PURE__*/React.lazy(function () {
|
|
@@ -1766,14 +1766,14 @@ var DashboardModal = /*#__PURE__*/React.lazy(function () {
|
|
|
1766
1766
|
};
|
|
1767
1767
|
});
|
|
1768
1768
|
});
|
|
1769
|
-
var propTypes$
|
|
1769
|
+
var propTypes$q = {
|
|
1770
1770
|
type: PropTypes$1.oneOfType([PropTypes.mediaTypes, PropTypes$1.array]),
|
|
1771
1771
|
opened: PropTypes$1.bool,
|
|
1772
1772
|
sources: PropTypes$1.arrayOf(PropTypes$1.string),
|
|
1773
1773
|
onUploaded: PropTypes$1.func,
|
|
1774
1774
|
onRequestClose: PropTypes$1.func
|
|
1775
1775
|
};
|
|
1776
|
-
var defaultProps$
|
|
1776
|
+
var defaultProps$q = {
|
|
1777
1777
|
type: null,
|
|
1778
1778
|
opened: false,
|
|
1779
1779
|
sources: ['webcam', 'facebook', 'instagram', 'dropbox', 'google-drive'],
|
|
@@ -1824,17 +1824,17 @@ var UploadModal = function UploadModal(_ref2) {
|
|
|
1824
1824
|
})) : null;
|
|
1825
1825
|
};
|
|
1826
1826
|
|
|
1827
|
-
UploadModal.propTypes = propTypes$
|
|
1828
|
-
UploadModal.defaultProps = defaultProps$
|
|
1827
|
+
UploadModal.propTypes = propTypes$q;
|
|
1828
|
+
UploadModal.defaultProps = defaultProps$q;
|
|
1829
1829
|
|
|
1830
1830
|
var styles$j = {"container":"micromag-core-panels-container"};
|
|
1831
1831
|
|
|
1832
|
-
var propTypes$
|
|
1832
|
+
var propTypes$p = {
|
|
1833
1833
|
panels: PropTypes.panels,
|
|
1834
1834
|
setPanelsContainer: PropTypes$1.func,
|
|
1835
1835
|
className: PropTypes$1.string
|
|
1836
1836
|
};
|
|
1837
|
-
var defaultProps$
|
|
1837
|
+
var defaultProps$p = {
|
|
1838
1838
|
panels: [],
|
|
1839
1839
|
setPanelsContainer: null,
|
|
1840
1840
|
className: null
|
|
@@ -1856,18 +1856,18 @@ var PanelsContainer = function PanelsContainer(_ref) {
|
|
|
1856
1856
|
}));
|
|
1857
1857
|
};
|
|
1858
1858
|
|
|
1859
|
-
PanelsContainer.propTypes = propTypes$
|
|
1860
|
-
PanelsContainer.defaultProps = defaultProps$
|
|
1859
|
+
PanelsContainer.propTypes = propTypes$p;
|
|
1860
|
+
PanelsContainer.defaultProps = defaultProps$p;
|
|
1861
1861
|
var Panels = withPanels(PanelsContainer);
|
|
1862
1862
|
|
|
1863
1863
|
/* eslint-disable react/no-array-index-key, react/jsx-props-no-spreading */
|
|
1864
|
-
var propTypes$
|
|
1864
|
+
var propTypes$o = {
|
|
1865
1865
|
id: PropTypes$1.string,
|
|
1866
1866
|
data: PropTypes$1.object,
|
|
1867
1867
|
// eslint-disable-line react/forbid-prop-types
|
|
1868
1868
|
children: PropTypes$1.node
|
|
1869
1869
|
};
|
|
1870
|
-
var defaultProps$
|
|
1870
|
+
var defaultProps$o = {
|
|
1871
1871
|
id: null,
|
|
1872
1872
|
data: null,
|
|
1873
1873
|
children: null
|
|
@@ -1900,18 +1900,18 @@ var PanelPortal = function PanelPortal(_ref) {
|
|
|
1900
1900
|
}, children);
|
|
1901
1901
|
};
|
|
1902
1902
|
|
|
1903
|
-
PanelPortal.propTypes = propTypes$
|
|
1904
|
-
PanelPortal.defaultProps = defaultProps$
|
|
1903
|
+
PanelPortal.propTypes = propTypes$o;
|
|
1904
|
+
PanelPortal.defaultProps = defaultProps$o;
|
|
1905
1905
|
|
|
1906
1906
|
var styles$i = {"container":"micromag-core-panels-panel-container"};
|
|
1907
1907
|
|
|
1908
1908
|
/* eslint-disable react/no-array-index-key, react/jsx-props-no-spreading */
|
|
1909
|
-
var propTypes$
|
|
1909
|
+
var propTypes$n = {
|
|
1910
1910
|
id: PropTypes$1.string,
|
|
1911
1911
|
title: PropTypes$1.string,
|
|
1912
1912
|
children: PropTypes$1.node
|
|
1913
1913
|
};
|
|
1914
|
-
var defaultProps$
|
|
1914
|
+
var defaultProps$n = {
|
|
1915
1915
|
id: null,
|
|
1916
1916
|
title: null,
|
|
1917
1917
|
children: null
|
|
@@ -1937,12 +1937,12 @@ var Panel = function Panel(_ref) {
|
|
|
1937
1937
|
}, children));
|
|
1938
1938
|
};
|
|
1939
1939
|
|
|
1940
|
-
Panel.propTypes = propTypes$
|
|
1941
|
-
Panel.defaultProps = defaultProps$
|
|
1940
|
+
Panel.propTypes = propTypes$n;
|
|
1941
|
+
Panel.defaultProps = defaultProps$n;
|
|
1942
1942
|
|
|
1943
1943
|
var styles$h = {"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"};
|
|
1944
1944
|
|
|
1945
|
-
var propTypes$
|
|
1945
|
+
var propTypes$m = {
|
|
1946
1946
|
title: PropTypes$1.node,
|
|
1947
1947
|
children: PropTypes$1.node,
|
|
1948
1948
|
className: PropTypes$1.string,
|
|
@@ -1951,7 +1951,7 @@ var propTypes$l = {
|
|
|
1951
1951
|
openedClassName: PropTypes$1.string,
|
|
1952
1952
|
buttonClassName: PropTypes$1.string
|
|
1953
1953
|
};
|
|
1954
|
-
var defaultProps$
|
|
1954
|
+
var defaultProps$m = {
|
|
1955
1955
|
title: null,
|
|
1956
1956
|
children: null,
|
|
1957
1957
|
className: null,
|
|
@@ -1999,8 +1999,62 @@ var CollapsablePanel = function CollapsablePanel(_ref) {
|
|
|
1999
1999
|
}, children));
|
|
2000
2000
|
};
|
|
2001
2001
|
|
|
2002
|
-
CollapsablePanel.propTypes = propTypes$
|
|
2003
|
-
CollapsablePanel.defaultProps = defaultProps$
|
|
2002
|
+
CollapsablePanel.propTypes = propTypes$m;
|
|
2003
|
+
CollapsablePanel.defaultProps = defaultProps$m;
|
|
2004
|
+
|
|
2005
|
+
var propTypes$l = {
|
|
2006
|
+
stroke: PropTypes$1.string,
|
|
2007
|
+
border: PropTypes$1.string,
|
|
2008
|
+
fill: PropTypes$1.string,
|
|
2009
|
+
className: PropTypes$1.string
|
|
2010
|
+
};
|
|
2011
|
+
var defaultProps$l = {
|
|
2012
|
+
stroke: 'currentColor',
|
|
2013
|
+
border: 'rgba(0,0,0,0.67)',
|
|
2014
|
+
fill: '#fff',
|
|
2015
|
+
className: null
|
|
2016
|
+
};
|
|
2017
|
+
|
|
2018
|
+
var Close = function Close(_ref) {
|
|
2019
|
+
var stroke = _ref.stroke,
|
|
2020
|
+
border = _ref.border,
|
|
2021
|
+
fill = _ref.fill,
|
|
2022
|
+
className = _ref.className;
|
|
2023
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
2024
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2025
|
+
width: "42.9",
|
|
2026
|
+
height: "42.9",
|
|
2027
|
+
viewBox: "0 0 42.9 42.9",
|
|
2028
|
+
className: className
|
|
2029
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
2030
|
+
transform: "translate(-352.531 -47.531)"
|
|
2031
|
+
}, border ? /*#__PURE__*/React.createElement("path", {
|
|
2032
|
+
fill: border,
|
|
2033
|
+
d: "M374,47.5c11.9,0,21.5,9.6,21.5,21.5s-9.6,21.5-21.5,21.5s-21.5-9.6-21.5-21.5c0,0,0,0,0,0 C352.5,57.1,362.1,47.5,374,47.5z"
|
|
2034
|
+
}) : null, /*#__PURE__*/React.createElement("path", {
|
|
2035
|
+
fill: fill,
|
|
2036
|
+
d: "M374,50c10.5,0,19,8.5,19,19s-8.5,19-19,19s-19-8.5-19-19S363.5,50,374,50z"
|
|
2037
|
+
}), /*#__PURE__*/React.createElement("g", {
|
|
2038
|
+
transform: "translate(366.893 61.893)"
|
|
2039
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
2040
|
+
transform: "translate(0 0)"
|
|
2041
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
2042
|
+
fill: fill,
|
|
2043
|
+
stroke: stroke,
|
|
2044
|
+
strokeWidth: "2",
|
|
2045
|
+
strokeLinecap: "round",
|
|
2046
|
+
d: "M14.2,0.3L0,13.9"
|
|
2047
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
2048
|
+
fill: fill,
|
|
2049
|
+
stroke: stroke,
|
|
2050
|
+
strokeWidth: "2",
|
|
2051
|
+
strokeLinecap: "round",
|
|
2052
|
+
d: "M0.3,0l13.7,14.2"
|
|
2053
|
+
})))));
|
|
2054
|
+
};
|
|
2055
|
+
|
|
2056
|
+
Close.propTypes = propTypes$l;
|
|
2057
|
+
Close.defaultProps = defaultProps$l;
|
|
2004
2058
|
|
|
2005
2059
|
/* eslint-disable react/jsx-props-no-spreading */
|
|
2006
2060
|
var propTypes$k = {
|
|
@@ -4289,4 +4343,4 @@ var LinkStyle = function LinkStyle(_ref) {
|
|
|
4289
4343
|
LinkStyle.propTypes = propTypes;
|
|
4290
4344
|
LinkStyle.defaultProps = defaultProps;
|
|
4291
4345
|
|
|
4292
|
-
export { BackButton, Breadcrumb, Button$1 as Button, Buttons, Card, CollapsablePanel, Date$1 as Date, Detector, Dropdown as DropdownMenu, ElementComponent as Element, Empty, FieldForm, FontFaces, Form, FormPanel, HighlightStyle, Label, Link, LinkStyle, Media, Menu, Meta, Modal, ModalDialog, ModalPortal, Modals, Navbar, PaginationMenu as Pagination, Panel, PanelPortal, Panels, 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 as PlaceholderTitle, Video as PlaceholderVideo, Video360 as PlaceholderVideo360, VideoLoop as PlaceholderVideoLoop, Screen$1 as Screen, ScreenElement, Placeholder as ScreenPlaceholder, Preview as ScreenPreview, ScreenSizer, Screens, Slideshow, Spinner, TabsMenu as Tabs, Transitions, TransitionsStagger, UploadModal };
|
|
4346
|
+
export { BackButton, Breadcrumb, Button$1 as Button, Buttons, Card, Close, CollapsablePanel, Date$1 as Date, Detector, Dropdown as DropdownMenu, ElementComponent as Element, Empty, FieldForm, FontFaces, Form, FormPanel, HighlightStyle, Label, Link, LinkStyle, Media, Menu, Meta, Modal, ModalDialog, ModalPortal, Modals, Navbar, PaginationMenu as Pagination, Panel, PanelPortal, Panels, 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 as PlaceholderTitle, Video as PlaceholderVideo, Video360 as PlaceholderVideo360, VideoLoop as PlaceholderVideoLoop, Screen$1 as Screen, ScreenElement, Placeholder as ScreenPlaceholder, Preview as ScreenPreview, ScreenSizer, Screens, Slideshow, Spinner, TabsMenu as Tabs, Transitions, TransitionsStagger, UploadModal };
|