@micromag/core 0.3.112 → 0.3.115
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/lib/components.js +159 -104
- 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 };
|
package/lib/components.js
CHANGED
|
@@ -86,13 +86,13 @@ var isNumber__default = /*#__PURE__*/_interopDefaultLegacy(isNumber);
|
|
|
86
86
|
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"};
|
|
87
87
|
|
|
88
88
|
/* eslint-disable react/jsx-props-no-spreading */
|
|
89
|
-
var propTypes$
|
|
89
|
+
var propTypes$L = {
|
|
90
90
|
children: core.PropTypes.label.isRequired,
|
|
91
91
|
isHtml: PropTypes__default["default"].bool,
|
|
92
92
|
values: PropTypes__default["default"].object // eslint-disable-line react/forbid-prop-types
|
|
93
93
|
|
|
94
94
|
};
|
|
95
|
-
var defaultProps$
|
|
95
|
+
var defaultProps$L = {
|
|
96
96
|
isHtml: false,
|
|
97
97
|
values: {}
|
|
98
98
|
};
|
|
@@ -107,11 +107,11 @@ var Label = function Label(_ref) {
|
|
|
107
107
|
}, children)) : children;
|
|
108
108
|
};
|
|
109
109
|
|
|
110
|
-
Label.propTypes = propTypes$
|
|
111
|
-
Label.defaultProps = defaultProps$
|
|
110
|
+
Label.propTypes = propTypes$L;
|
|
111
|
+
Label.defaultProps = defaultProps$L;
|
|
112
112
|
|
|
113
113
|
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"];
|
|
114
|
-
var propTypes$
|
|
114
|
+
var propTypes$K = {
|
|
115
115
|
type: PropTypes__default["default"].string,
|
|
116
116
|
theme: core.PropTypes.buttonTheme,
|
|
117
117
|
size: core.PropTypes.buttonSize,
|
|
@@ -144,7 +144,7 @@ var propTypes$J = {
|
|
|
144
144
|
|
|
145
145
|
})])
|
|
146
146
|
};
|
|
147
|
-
var defaultProps$
|
|
147
|
+
var defaultProps$K = {
|
|
148
148
|
type: 'button',
|
|
149
149
|
theme: null,
|
|
150
150
|
size: null,
|
|
@@ -260,13 +260,13 @@ var Button$1 = function Button(_ref) {
|
|
|
260
260
|
}), content);
|
|
261
261
|
};
|
|
262
262
|
|
|
263
|
-
Button$1.propTypes = propTypes$
|
|
264
|
-
Button$1.defaultProps = defaultProps$
|
|
263
|
+
Button$1.propTypes = propTypes$K;
|
|
264
|
+
Button$1.defaultProps = defaultProps$K;
|
|
265
265
|
|
|
266
266
|
var styles$u = {};
|
|
267
267
|
|
|
268
268
|
var _excluded$9 = ["className", "onClick", "theme"];
|
|
269
|
-
var propTypes$
|
|
269
|
+
var propTypes$J = {
|
|
270
270
|
buttons: core.PropTypes.buttons,
|
|
271
271
|
size: core.PropTypes.buttonSize,
|
|
272
272
|
theme: core.PropTypes.buttonTheme,
|
|
@@ -275,7 +275,7 @@ var propTypes$I = {
|
|
|
275
275
|
className: PropTypes__default["default"].string,
|
|
276
276
|
buttonClassName: PropTypes__default["default"].string
|
|
277
277
|
};
|
|
278
|
-
var defaultProps$
|
|
278
|
+
var defaultProps$J = {
|
|
279
279
|
buttons: [],
|
|
280
280
|
size: null,
|
|
281
281
|
theme: undefined,
|
|
@@ -325,14 +325,14 @@ var Buttons = function Buttons(_ref) {
|
|
|
325
325
|
}));
|
|
326
326
|
};
|
|
327
327
|
|
|
328
|
-
Buttons.propTypes = propTypes$
|
|
329
|
-
Buttons.defaultProps = defaultProps$
|
|
328
|
+
Buttons.propTypes = propTypes$J;
|
|
329
|
+
Buttons.defaultProps = defaultProps$J;
|
|
330
330
|
|
|
331
331
|
var _excluded$8 = ["className"];
|
|
332
|
-
var propTypes$
|
|
332
|
+
var propTypes$I = {
|
|
333
333
|
className: PropTypes__default["default"].string
|
|
334
334
|
};
|
|
335
|
-
var defaultProps$
|
|
335
|
+
var defaultProps$I = {
|
|
336
336
|
className: null
|
|
337
337
|
};
|
|
338
338
|
|
|
@@ -350,14 +350,14 @@ var BackButton = function BackButton(_ref) {
|
|
|
350
350
|
}, props));
|
|
351
351
|
};
|
|
352
352
|
|
|
353
|
-
BackButton.propTypes = propTypes$
|
|
354
|
-
BackButton.defaultProps = defaultProps$
|
|
353
|
+
BackButton.propTypes = propTypes$I;
|
|
354
|
+
BackButton.defaultProps = defaultProps$I;
|
|
355
355
|
|
|
356
356
|
var styles$t = {"actions":"micromag-core-forms-form-actions","left":"micromag-core-forms-form-left","right":"micromag-core-forms-form-right"};
|
|
357
357
|
|
|
358
358
|
var _excluded$7 = ["type"],
|
|
359
359
|
_excluded2 = ["component", "id", "settings"];
|
|
360
|
-
var propTypes$
|
|
360
|
+
var propTypes$H = {
|
|
361
361
|
name: PropTypes__default["default"].string,
|
|
362
362
|
// .isRequired,
|
|
363
363
|
value: core.PropTypes.component,
|
|
@@ -371,7 +371,7 @@ var propTypes$G = {
|
|
|
371
371
|
fieldContext: PropTypes__default["default"].any // eslint-disable-line react/forbid-prop-types
|
|
372
372
|
|
|
373
373
|
};
|
|
374
|
-
var defaultProps$
|
|
374
|
+
var defaultProps$H = {
|
|
375
375
|
name: null,
|
|
376
376
|
form: null,
|
|
377
377
|
formComponents: {},
|
|
@@ -458,10 +458,10 @@ var FieldForm = function FieldForm(_ref) {
|
|
|
458
458
|
}, formProps))) : null;
|
|
459
459
|
};
|
|
460
460
|
|
|
461
|
-
FieldForm.propTypes = propTypes$
|
|
462
|
-
FieldForm.defaultProps = defaultProps$
|
|
461
|
+
FieldForm.propTypes = propTypes$H;
|
|
462
|
+
FieldForm.defaultProps = defaultProps$H;
|
|
463
463
|
|
|
464
|
-
var propTypes$
|
|
464
|
+
var propTypes$G = {
|
|
465
465
|
action: PropTypes__default["default"].string.isRequired,
|
|
466
466
|
method: PropTypes__default["default"].string,
|
|
467
467
|
fields: core.PropTypes.formFields,
|
|
@@ -488,7 +488,7 @@ var propTypes$F = {
|
|
|
488
488
|
actionsClassName: PropTypes__default["default"].string,
|
|
489
489
|
cancelClassName: PropTypes__default["default"].string
|
|
490
490
|
};
|
|
491
|
-
var defaultProps$
|
|
491
|
+
var defaultProps$G = {
|
|
492
492
|
method: 'POST',
|
|
493
493
|
fields: [],
|
|
494
494
|
initialValue: null,
|
|
@@ -702,13 +702,13 @@ var Form = function Form(_ref) {
|
|
|
702
702
|
})) : null) : null);
|
|
703
703
|
};
|
|
704
704
|
|
|
705
|
-
Form.propTypes = propTypes$
|
|
706
|
-
Form.defaultProps = defaultProps$
|
|
705
|
+
Form.propTypes = propTypes$G;
|
|
706
|
+
Form.defaultProps = defaultProps$G;
|
|
707
707
|
|
|
708
708
|
var styles$s = {"withoutStyle":"micromag-core-partials-link-withoutStyle"};
|
|
709
709
|
|
|
710
710
|
var _excluded$6 = ["href", "external", "children", "target", "rel", "className", "withoutStyle"];
|
|
711
|
-
var propTypes$
|
|
711
|
+
var propTypes$F = {
|
|
712
712
|
href: PropTypes__default["default"].string,
|
|
713
713
|
external: PropTypes__default["default"].bool,
|
|
714
714
|
target: PropTypes__default["default"].string,
|
|
@@ -717,7 +717,7 @@ var propTypes$E = {
|
|
|
717
717
|
withoutStyle: PropTypes__default["default"].bool,
|
|
718
718
|
className: PropTypes__default["default"].string
|
|
719
719
|
};
|
|
720
|
-
var defaultProps$
|
|
720
|
+
var defaultProps$F = {
|
|
721
721
|
href: '',
|
|
722
722
|
external: false,
|
|
723
723
|
target: '_blank',
|
|
@@ -748,11 +748,11 @@ var Link = function Link(_ref) {
|
|
|
748
748
|
}, props), /*#__PURE__*/React__default["default"].createElement(Label, null, children));
|
|
749
749
|
};
|
|
750
750
|
|
|
751
|
-
Link.propTypes = propTypes$
|
|
752
|
-
Link.defaultProps = defaultProps$
|
|
751
|
+
Link.propTypes = propTypes$F;
|
|
752
|
+
Link.defaultProps = defaultProps$F;
|
|
753
753
|
|
|
754
754
|
var _excluded$5 = ["label", "className"];
|
|
755
|
-
var propTypes$
|
|
755
|
+
var propTypes$E = {
|
|
756
756
|
href: PropTypes__default["default"].string,
|
|
757
757
|
header: PropTypes__default["default"].node,
|
|
758
758
|
image: PropTypes__default["default"].node,
|
|
@@ -781,7 +781,7 @@ var propTypes$D = {
|
|
|
781
781
|
onClickBody: PropTypes__default["default"].func,
|
|
782
782
|
onClickFooter: PropTypes__default["default"].func
|
|
783
783
|
};
|
|
784
|
-
var defaultProps$
|
|
784
|
+
var defaultProps$E = {
|
|
785
785
|
href: null,
|
|
786
786
|
header: null,
|
|
787
787
|
image: null,
|
|
@@ -902,15 +902,15 @@ var Card = function Card(_ref) {
|
|
|
902
902
|
}, cardInner);
|
|
903
903
|
};
|
|
904
904
|
|
|
905
|
-
Card.propTypes = propTypes$
|
|
906
|
-
Card.defaultProps = defaultProps$
|
|
905
|
+
Card.propTypes = propTypes$E;
|
|
906
|
+
Card.defaultProps = defaultProps$E;
|
|
907
907
|
|
|
908
|
-
var propTypes$
|
|
908
|
+
var propTypes$D = {
|
|
909
909
|
animated: PropTypes__default["default"].bool,
|
|
910
910
|
color: PropTypes__default["default"].string,
|
|
911
911
|
className: PropTypes__default["default"].string
|
|
912
912
|
};
|
|
913
|
-
var defaultProps$
|
|
913
|
+
var defaultProps$D = {
|
|
914
914
|
animated: true,
|
|
915
915
|
color: 'currentColor',
|
|
916
916
|
className: null
|
|
@@ -975,19 +975,19 @@ var Spinner = function Spinner(_ref) {
|
|
|
975
975
|
}) : null))));
|
|
976
976
|
};
|
|
977
977
|
|
|
978
|
-
Spinner.propTypes = propTypes$
|
|
979
|
-
Spinner.defaultProps = defaultProps$
|
|
978
|
+
Spinner.propTypes = propTypes$D;
|
|
979
|
+
Spinner.defaultProps = defaultProps$D;
|
|
980
980
|
|
|
981
981
|
var styles$r = {};
|
|
982
982
|
|
|
983
983
|
var _excluded$4 = ["description", "loading", "children", "className"];
|
|
984
|
-
var propTypes$
|
|
984
|
+
var propTypes$C = {
|
|
985
985
|
description: PropTypes__default["default"].node,
|
|
986
986
|
loading: PropTypes__default["default"].bool,
|
|
987
987
|
children: PropTypes__default["default"].node,
|
|
988
988
|
className: PropTypes__default["default"].string
|
|
989
989
|
};
|
|
990
|
-
var defaultProps$
|
|
990
|
+
var defaultProps$C = {
|
|
991
991
|
description: null,
|
|
992
992
|
loading: false,
|
|
993
993
|
children: null,
|
|
@@ -1006,12 +1006,12 @@ var FormPanel = function FormPanel(_ref) {
|
|
|
1006
1006
|
}, props), description, loading ? /*#__PURE__*/React__default["default"].createElement(Spinner, null) : children);
|
|
1007
1007
|
};
|
|
1008
1008
|
|
|
1009
|
-
FormPanel.propTypes = propTypes$
|
|
1010
|
-
FormPanel.defaultProps = defaultProps$
|
|
1009
|
+
FormPanel.propTypes = propTypes$C;
|
|
1010
|
+
FormPanel.defaultProps = defaultProps$C;
|
|
1011
1011
|
|
|
1012
1012
|
var styles$q = {"container":"micromag-core-menus-breadcrumb-container","arrow":"micromag-core-menus-breadcrumb-arrow"};
|
|
1013
1013
|
|
|
1014
|
-
var propTypes$
|
|
1014
|
+
var propTypes$B = {
|
|
1015
1015
|
items: core.PropTypes.menuItems,
|
|
1016
1016
|
theme: core.PropTypes.bootstrapThemes,
|
|
1017
1017
|
separator: PropTypes__default["default"].oneOf([null, 'arrow']),
|
|
@@ -1019,7 +1019,7 @@ var propTypes$A = {
|
|
|
1019
1019
|
noWrap: PropTypes__default["default"].bool,
|
|
1020
1020
|
className: PropTypes__default["default"].string
|
|
1021
1021
|
};
|
|
1022
|
-
var defaultProps$
|
|
1022
|
+
var defaultProps$B = {
|
|
1023
1023
|
items: [],
|
|
1024
1024
|
theme: null,
|
|
1025
1025
|
separator: null,
|
|
@@ -1069,11 +1069,11 @@ var Breadcrumb = function Breadcrumb(_ref) {
|
|
|
1069
1069
|
})));
|
|
1070
1070
|
};
|
|
1071
1071
|
|
|
1072
|
-
Breadcrumb.propTypes = propTypes$
|
|
1073
|
-
Breadcrumb.defaultProps = defaultProps$
|
|
1072
|
+
Breadcrumb.propTypes = propTypes$B;
|
|
1073
|
+
Breadcrumb.defaultProps = defaultProps$B;
|
|
1074
1074
|
|
|
1075
1075
|
var _excluded$3 = ["type", "className", "label", "children", "onClick", "active"];
|
|
1076
|
-
var propTypes$
|
|
1076
|
+
var propTypes$A = {
|
|
1077
1077
|
items: core.PropTypes.menuItems,
|
|
1078
1078
|
children: PropTypes__default["default"].node,
|
|
1079
1079
|
visible: PropTypes__default["default"].bool,
|
|
@@ -1083,7 +1083,7 @@ var propTypes$z = {
|
|
|
1083
1083
|
onClickItem: PropTypes__default["default"].func,
|
|
1084
1084
|
onClickOutside: PropTypes__default["default"].func
|
|
1085
1085
|
};
|
|
1086
|
-
var defaultProps$
|
|
1086
|
+
var defaultProps$A = {
|
|
1087
1087
|
items: [],
|
|
1088
1088
|
children: null,
|
|
1089
1089
|
visible: false,
|
|
@@ -1181,11 +1181,11 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
1181
1181
|
}));
|
|
1182
1182
|
};
|
|
1183
1183
|
|
|
1184
|
-
Dropdown.propTypes = propTypes$
|
|
1185
|
-
Dropdown.defaultProps = defaultProps$
|
|
1184
|
+
Dropdown.propTypes = propTypes$A;
|
|
1185
|
+
Dropdown.defaultProps = defaultProps$A;
|
|
1186
1186
|
|
|
1187
1187
|
var _excluded$2 = ["id", "className", "linkClassName", "href", "label", "external", "items", "dropdown", "active", "onClick"];
|
|
1188
|
-
var propTypes$
|
|
1188
|
+
var propTypes$z = {
|
|
1189
1189
|
items: core.PropTypes.menuItems,
|
|
1190
1190
|
tagName: PropTypes__default["default"].string,
|
|
1191
1191
|
itemTagName: PropTypes__default["default"].string,
|
|
@@ -1204,7 +1204,7 @@ var propTypes$y = {
|
|
|
1204
1204
|
dropdownLinkClassName: PropTypes__default["default"].string,
|
|
1205
1205
|
dropdownAlign: core.PropTypes.dropdownAlign
|
|
1206
1206
|
};
|
|
1207
|
-
var defaultProps$
|
|
1207
|
+
var defaultProps$z = {
|
|
1208
1208
|
items: [],
|
|
1209
1209
|
tagName: 'ul',
|
|
1210
1210
|
itemTagName: 'li',
|
|
@@ -1328,12 +1328,12 @@ var Menu = function Menu(_ref) {
|
|
|
1328
1328
|
}));
|
|
1329
1329
|
};
|
|
1330
1330
|
|
|
1331
|
-
Menu.propTypes = propTypes$
|
|
1332
|
-
Menu.defaultProps = defaultProps$
|
|
1331
|
+
Menu.propTypes = propTypes$z;
|
|
1332
|
+
Menu.defaultProps = defaultProps$z;
|
|
1333
1333
|
|
|
1334
1334
|
var styles$p = {"collapse":"micromag-core-menus-navbar-collapse"};
|
|
1335
1335
|
|
|
1336
|
-
var propTypes$
|
|
1336
|
+
var propTypes$y = {
|
|
1337
1337
|
brand: PropTypes__default["default"].node,
|
|
1338
1338
|
brandLink: PropTypes__default["default"].string,
|
|
1339
1339
|
breadcrumbs: PropTypes__default["default"].node,
|
|
@@ -1349,7 +1349,7 @@ var propTypes$x = {
|
|
|
1349
1349
|
breadCrumbsClassName: PropTypes__default["default"].string,
|
|
1350
1350
|
collapseClassName: PropTypes__default["default"].string
|
|
1351
1351
|
};
|
|
1352
|
-
var defaultProps$
|
|
1352
|
+
var defaultProps$y = {
|
|
1353
1353
|
brand: null,
|
|
1354
1354
|
brandLink: null,
|
|
1355
1355
|
breadcrumbs: null,
|
|
@@ -1425,8 +1425,8 @@ var Navbar = function Navbar(_ref) {
|
|
|
1425
1425
|
}, children) : children));
|
|
1426
1426
|
};
|
|
1427
1427
|
|
|
1428
|
-
Navbar.propTypes = propTypes$
|
|
1429
|
-
Navbar.defaultProps = defaultProps$
|
|
1428
|
+
Navbar.propTypes = propTypes$y;
|
|
1429
|
+
Navbar.defaultProps = defaultProps$y;
|
|
1430
1430
|
|
|
1431
1431
|
var styles$o = {};
|
|
1432
1432
|
|
|
@@ -1446,7 +1446,7 @@ var messages = reactIntl.defineMessages({
|
|
|
1446
1446
|
}]
|
|
1447
1447
|
}
|
|
1448
1448
|
});
|
|
1449
|
-
var propTypes$
|
|
1449
|
+
var propTypes$x = {
|
|
1450
1450
|
page: PropTypes__default["default"].number,
|
|
1451
1451
|
total: PropTypes__default["default"].number,
|
|
1452
1452
|
url: PropTypes__default["default"].string,
|
|
@@ -1457,7 +1457,7 @@ var propTypes$w = {
|
|
|
1457
1457
|
linkClassName: PropTypes__default["default"].string,
|
|
1458
1458
|
onClickPage: PropTypes__default["default"].func
|
|
1459
1459
|
};
|
|
1460
|
-
var defaultProps$
|
|
1460
|
+
var defaultProps$x = {
|
|
1461
1461
|
page: 1,
|
|
1462
1462
|
total: 1,
|
|
1463
1463
|
url: null,
|
|
@@ -1531,12 +1531,12 @@ var PaginationMenu = function PaginationMenu(_ref) {
|
|
|
1531
1531
|
}, /*#__PURE__*/React__default["default"].createElement(Label, null, messages.next))) : null));
|
|
1532
1532
|
};
|
|
1533
1533
|
|
|
1534
|
-
PaginationMenu.propTypes = propTypes$
|
|
1535
|
-
PaginationMenu.defaultProps = defaultProps$
|
|
1534
|
+
PaginationMenu.propTypes = propTypes$x;
|
|
1535
|
+
PaginationMenu.defaultProps = defaultProps$x;
|
|
1536
1536
|
|
|
1537
1537
|
var styles$n = {"container":"micromag-core-menus-tabs-container"};
|
|
1538
1538
|
|
|
1539
|
-
var propTypes$
|
|
1539
|
+
var propTypes$w = {
|
|
1540
1540
|
items: core.PropTypes.menuItems,
|
|
1541
1541
|
size: core.PropTypes.buttonSize,
|
|
1542
1542
|
theme: core.PropTypes.buttonTheme,
|
|
@@ -1545,7 +1545,7 @@ var propTypes$v = {
|
|
|
1545
1545
|
className: PropTypes__default["default"].string,
|
|
1546
1546
|
onClickItem: PropTypes__default["default"].func
|
|
1547
1547
|
};
|
|
1548
|
-
var defaultProps$
|
|
1548
|
+
var defaultProps$w = {
|
|
1549
1549
|
items: [],
|
|
1550
1550
|
size: null,
|
|
1551
1551
|
theme: 'secondary',
|
|
@@ -1576,17 +1576,17 @@ var TabsMenu = function TabsMenu(_ref) {
|
|
|
1576
1576
|
}));
|
|
1577
1577
|
};
|
|
1578
1578
|
|
|
1579
|
-
TabsMenu.propTypes = propTypes$
|
|
1580
|
-
TabsMenu.defaultProps = defaultProps$
|
|
1579
|
+
TabsMenu.propTypes = propTypes$w;
|
|
1580
|
+
TabsMenu.defaultProps = defaultProps$w;
|
|
1581
1581
|
|
|
1582
1582
|
var styles$m = {"container":"micromag-core-modals-container","modals":"micromag-core-modals-modals","hasModals":"micromag-core-modals-hasModals"};
|
|
1583
1583
|
|
|
1584
|
-
var propTypes$
|
|
1584
|
+
var propTypes$v = {
|
|
1585
1585
|
modals: core.PropTypes.modals.isRequired,
|
|
1586
1586
|
setModalsContainer: PropTypes__default["default"].func.isRequired,
|
|
1587
1587
|
className: PropTypes__default["default"].string
|
|
1588
1588
|
};
|
|
1589
|
-
var defaultProps$
|
|
1589
|
+
var defaultProps$v = {
|
|
1590
1590
|
className: null
|
|
1591
1591
|
};
|
|
1592
1592
|
|
|
@@ -1606,12 +1606,12 @@ var ModalsContainer = function ModalsContainer(_ref) {
|
|
|
1606
1606
|
}));
|
|
1607
1607
|
};
|
|
1608
1608
|
|
|
1609
|
-
ModalsContainer.propTypes = propTypes$
|
|
1610
|
-
ModalsContainer.defaultProps = defaultProps$
|
|
1609
|
+
ModalsContainer.propTypes = propTypes$v;
|
|
1610
|
+
ModalsContainer.defaultProps = defaultProps$v;
|
|
1611
1611
|
var Modals = contexts.withModals(ModalsContainer);
|
|
1612
1612
|
|
|
1613
1613
|
/* eslint-disable react/no-array-index-key, react/jsx-props-no-spreading */
|
|
1614
|
-
var propTypes$
|
|
1614
|
+
var propTypes$u = {
|
|
1615
1615
|
id: PropTypes__default["default"].string,
|
|
1616
1616
|
data: PropTypes__default["default"].object,
|
|
1617
1617
|
// eslint-disable-line react/forbid-prop-types
|
|
@@ -1621,7 +1621,7 @@ var propTypes$t = {
|
|
|
1621
1621
|
unregister: PropTypes__default["default"].func,
|
|
1622
1622
|
children: PropTypes__default["default"].node
|
|
1623
1623
|
};
|
|
1624
|
-
var defaultProps$
|
|
1624
|
+
var defaultProps$u = {
|
|
1625
1625
|
id: null,
|
|
1626
1626
|
data: null,
|
|
1627
1627
|
container: null,
|
|
@@ -1654,17 +1654,17 @@ var ElementPortal = function ElementPortal(_ref) {
|
|
|
1654
1654
|
return container !== null ? /*#__PURE__*/ReactDOM__default["default"].createPortal(children, container) : null;
|
|
1655
1655
|
};
|
|
1656
1656
|
|
|
1657
|
-
ElementPortal.propTypes = propTypes$
|
|
1658
|
-
ElementPortal.defaultProps = defaultProps$
|
|
1657
|
+
ElementPortal.propTypes = propTypes$u;
|
|
1658
|
+
ElementPortal.defaultProps = defaultProps$u;
|
|
1659
1659
|
|
|
1660
1660
|
/* eslint-disable react/no-array-index-key, react/jsx-props-no-spreading */
|
|
1661
|
-
var propTypes$
|
|
1661
|
+
var propTypes$t = {
|
|
1662
1662
|
id: PropTypes__default["default"].string,
|
|
1663
1663
|
data: PropTypes__default["default"].object,
|
|
1664
1664
|
// eslint-disable-line react/forbid-prop-types
|
|
1665
1665
|
children: PropTypes__default["default"].node
|
|
1666
1666
|
};
|
|
1667
|
-
var defaultProps$
|
|
1667
|
+
var defaultProps$t = {
|
|
1668
1668
|
id: null,
|
|
1669
1669
|
data: null,
|
|
1670
1670
|
children: null
|
|
@@ -1691,18 +1691,18 @@ var ModalPortal = function ModalPortal(_ref) {
|
|
|
1691
1691
|
}, children);
|
|
1692
1692
|
};
|
|
1693
1693
|
|
|
1694
|
-
ModalPortal.propTypes = propTypes$
|
|
1695
|
-
ModalPortal.defaultProps = defaultProps$
|
|
1694
|
+
ModalPortal.propTypes = propTypes$t;
|
|
1695
|
+
ModalPortal.defaultProps = defaultProps$t;
|
|
1696
1696
|
|
|
1697
1697
|
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"};
|
|
1698
1698
|
|
|
1699
|
-
var propTypes$
|
|
1699
|
+
var propTypes$s = {
|
|
1700
1700
|
id: PropTypes__default["default"].string,
|
|
1701
1701
|
title: PropTypes__default["default"].string,
|
|
1702
1702
|
position: PropTypes__default["default"].oneOf(['center', 'top']),
|
|
1703
1703
|
children: PropTypes__default["default"].node
|
|
1704
1704
|
};
|
|
1705
|
-
var defaultProps$
|
|
1705
|
+
var defaultProps$s = {
|
|
1706
1706
|
id: null,
|
|
1707
1707
|
title: null,
|
|
1708
1708
|
position: 'center',
|
|
@@ -1732,12 +1732,12 @@ var Modal = function Modal(_ref) {
|
|
|
1732
1732
|
}, children)));
|
|
1733
1733
|
};
|
|
1734
1734
|
|
|
1735
|
-
Modal.propTypes = propTypes$
|
|
1736
|
-
Modal.defaultProps = defaultProps$
|
|
1735
|
+
Modal.propTypes = propTypes$s;
|
|
1736
|
+
Modal.defaultProps = defaultProps$s;
|
|
1737
1737
|
|
|
1738
1738
|
var styles$k = {"container":"micromag-core-modals-dialog-container"};
|
|
1739
1739
|
|
|
1740
|
-
var propTypes$
|
|
1740
|
+
var propTypes$r = {
|
|
1741
1741
|
title: core.PropTypes.label,
|
|
1742
1742
|
header: PropTypes__default["default"].node,
|
|
1743
1743
|
children: PropTypes__default["default"].node,
|
|
@@ -1747,7 +1747,7 @@ var propTypes$q = {
|
|
|
1747
1747
|
onClickClose: PropTypes__default["default"].func,
|
|
1748
1748
|
className: PropTypes__default["default"].string
|
|
1749
1749
|
};
|
|
1750
|
-
var defaultProps$
|
|
1750
|
+
var defaultProps$r = {
|
|
1751
1751
|
title: null,
|
|
1752
1752
|
header: null,
|
|
1753
1753
|
children: null,
|
|
@@ -1795,8 +1795,8 @@ var ModalDialog = function ModalDialog(_ref) {
|
|
|
1795
1795
|
}) : null) : null));
|
|
1796
1796
|
};
|
|
1797
1797
|
|
|
1798
|
-
ModalDialog.propTypes = propTypes$
|
|
1799
|
-
ModalDialog.defaultProps = defaultProps$
|
|
1798
|
+
ModalDialog.propTypes = propTypes$r;
|
|
1799
|
+
ModalDialog.defaultProps = defaultProps$r;
|
|
1800
1800
|
|
|
1801
1801
|
// import classNames from 'classnames';
|
|
1802
1802
|
var DashboardModal = /*#__PURE__*/React__default["default"].lazy(function () {
|
|
@@ -1807,14 +1807,14 @@ var DashboardModal = /*#__PURE__*/React__default["default"].lazy(function () {
|
|
|
1807
1807
|
};
|
|
1808
1808
|
});
|
|
1809
1809
|
});
|
|
1810
|
-
var propTypes$
|
|
1810
|
+
var propTypes$q = {
|
|
1811
1811
|
type: PropTypes__default["default"].oneOfType([core.PropTypes.mediaTypes, PropTypes__default["default"].array]),
|
|
1812
1812
|
opened: PropTypes__default["default"].bool,
|
|
1813
1813
|
sources: PropTypes__default["default"].arrayOf(PropTypes__default["default"].string),
|
|
1814
1814
|
onUploaded: PropTypes__default["default"].func,
|
|
1815
1815
|
onRequestClose: PropTypes__default["default"].func
|
|
1816
1816
|
};
|
|
1817
|
-
var defaultProps$
|
|
1817
|
+
var defaultProps$q = {
|
|
1818
1818
|
type: null,
|
|
1819
1819
|
opened: false,
|
|
1820
1820
|
sources: ['webcam', 'facebook', 'instagram', 'dropbox', 'google-drive'],
|
|
@@ -1865,17 +1865,17 @@ var UploadModal = function UploadModal(_ref2) {
|
|
|
1865
1865
|
})) : null;
|
|
1866
1866
|
};
|
|
1867
1867
|
|
|
1868
|
-
UploadModal.propTypes = propTypes$
|
|
1869
|
-
UploadModal.defaultProps = defaultProps$
|
|
1868
|
+
UploadModal.propTypes = propTypes$q;
|
|
1869
|
+
UploadModal.defaultProps = defaultProps$q;
|
|
1870
1870
|
|
|
1871
1871
|
var styles$j = {"container":"micromag-core-panels-container"};
|
|
1872
1872
|
|
|
1873
|
-
var propTypes$
|
|
1873
|
+
var propTypes$p = {
|
|
1874
1874
|
panels: core.PropTypes.panels,
|
|
1875
1875
|
setPanelsContainer: PropTypes__default["default"].func,
|
|
1876
1876
|
className: PropTypes__default["default"].string
|
|
1877
1877
|
};
|
|
1878
|
-
var defaultProps$
|
|
1878
|
+
var defaultProps$p = {
|
|
1879
1879
|
panels: [],
|
|
1880
1880
|
setPanelsContainer: null,
|
|
1881
1881
|
className: null
|
|
@@ -1897,18 +1897,18 @@ var PanelsContainer = function PanelsContainer(_ref) {
|
|
|
1897
1897
|
}));
|
|
1898
1898
|
};
|
|
1899
1899
|
|
|
1900
|
-
PanelsContainer.propTypes = propTypes$
|
|
1901
|
-
PanelsContainer.defaultProps = defaultProps$
|
|
1900
|
+
PanelsContainer.propTypes = propTypes$p;
|
|
1901
|
+
PanelsContainer.defaultProps = defaultProps$p;
|
|
1902
1902
|
var Panels = contexts.withPanels(PanelsContainer);
|
|
1903
1903
|
|
|
1904
1904
|
/* eslint-disable react/no-array-index-key, react/jsx-props-no-spreading */
|
|
1905
|
-
var propTypes$
|
|
1905
|
+
var propTypes$o = {
|
|
1906
1906
|
id: PropTypes__default["default"].string,
|
|
1907
1907
|
data: PropTypes__default["default"].object,
|
|
1908
1908
|
// eslint-disable-line react/forbid-prop-types
|
|
1909
1909
|
children: PropTypes__default["default"].node
|
|
1910
1910
|
};
|
|
1911
|
-
var defaultProps$
|
|
1911
|
+
var defaultProps$o = {
|
|
1912
1912
|
id: null,
|
|
1913
1913
|
data: null,
|
|
1914
1914
|
children: null
|
|
@@ -1941,18 +1941,18 @@ var PanelPortal = function PanelPortal(_ref) {
|
|
|
1941
1941
|
}, children);
|
|
1942
1942
|
};
|
|
1943
1943
|
|
|
1944
|
-
PanelPortal.propTypes = propTypes$
|
|
1945
|
-
PanelPortal.defaultProps = defaultProps$
|
|
1944
|
+
PanelPortal.propTypes = propTypes$o;
|
|
1945
|
+
PanelPortal.defaultProps = defaultProps$o;
|
|
1946
1946
|
|
|
1947
1947
|
var styles$i = {"container":"micromag-core-panels-panel-container"};
|
|
1948
1948
|
|
|
1949
1949
|
/* eslint-disable react/no-array-index-key, react/jsx-props-no-spreading */
|
|
1950
|
-
var propTypes$
|
|
1950
|
+
var propTypes$n = {
|
|
1951
1951
|
id: PropTypes__default["default"].string,
|
|
1952
1952
|
title: PropTypes__default["default"].string,
|
|
1953
1953
|
children: PropTypes__default["default"].node
|
|
1954
1954
|
};
|
|
1955
|
-
var defaultProps$
|
|
1955
|
+
var defaultProps$n = {
|
|
1956
1956
|
id: null,
|
|
1957
1957
|
title: null,
|
|
1958
1958
|
children: null
|
|
@@ -1978,12 +1978,12 @@ var Panel = function Panel(_ref) {
|
|
|
1978
1978
|
}, children));
|
|
1979
1979
|
};
|
|
1980
1980
|
|
|
1981
|
-
Panel.propTypes = propTypes$
|
|
1982
|
-
Panel.defaultProps = defaultProps$
|
|
1981
|
+
Panel.propTypes = propTypes$n;
|
|
1982
|
+
Panel.defaultProps = defaultProps$n;
|
|
1983
1983
|
|
|
1984
1984
|
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"};
|
|
1985
1985
|
|
|
1986
|
-
var propTypes$
|
|
1986
|
+
var propTypes$m = {
|
|
1987
1987
|
title: PropTypes__default["default"].node,
|
|
1988
1988
|
children: PropTypes__default["default"].node,
|
|
1989
1989
|
className: PropTypes__default["default"].string,
|
|
@@ -1992,7 +1992,7 @@ var propTypes$l = {
|
|
|
1992
1992
|
openedClassName: PropTypes__default["default"].string,
|
|
1993
1993
|
buttonClassName: PropTypes__default["default"].string
|
|
1994
1994
|
};
|
|
1995
|
-
var defaultProps$
|
|
1995
|
+
var defaultProps$m = {
|
|
1996
1996
|
title: null,
|
|
1997
1997
|
children: null,
|
|
1998
1998
|
className: null,
|
|
@@ -2040,8 +2040,62 @@ var CollapsablePanel = function CollapsablePanel(_ref) {
|
|
|
2040
2040
|
}, children));
|
|
2041
2041
|
};
|
|
2042
2042
|
|
|
2043
|
-
CollapsablePanel.propTypes = propTypes$
|
|
2044
|
-
CollapsablePanel.defaultProps = defaultProps$
|
|
2043
|
+
CollapsablePanel.propTypes = propTypes$m;
|
|
2044
|
+
CollapsablePanel.defaultProps = defaultProps$m;
|
|
2045
|
+
|
|
2046
|
+
var propTypes$l = {
|
|
2047
|
+
stroke: PropTypes__default["default"].string,
|
|
2048
|
+
border: PropTypes__default["default"].string,
|
|
2049
|
+
fill: PropTypes__default["default"].string,
|
|
2050
|
+
className: PropTypes__default["default"].string
|
|
2051
|
+
};
|
|
2052
|
+
var defaultProps$l = {
|
|
2053
|
+
stroke: 'currentColor',
|
|
2054
|
+
border: 'rgba(0,0,0,0.67)',
|
|
2055
|
+
fill: '#fff',
|
|
2056
|
+
className: null
|
|
2057
|
+
};
|
|
2058
|
+
|
|
2059
|
+
var Close = function Close(_ref) {
|
|
2060
|
+
var stroke = _ref.stroke,
|
|
2061
|
+
border = _ref.border,
|
|
2062
|
+
fill = _ref.fill,
|
|
2063
|
+
className = _ref.className;
|
|
2064
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
2065
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2066
|
+
width: "42.9",
|
|
2067
|
+
height: "42.9",
|
|
2068
|
+
viewBox: "0 0 42.9 42.9",
|
|
2069
|
+
className: className
|
|
2070
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
2071
|
+
transform: "translate(-352.531 -47.531)"
|
|
2072
|
+
}, border ? /*#__PURE__*/React__default["default"].createElement("path", {
|
|
2073
|
+
fill: border,
|
|
2074
|
+
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"
|
|
2075
|
+
}) : null, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
2076
|
+
fill: fill,
|
|
2077
|
+
d: "M374,50c10.5,0,19,8.5,19,19s-8.5,19-19,19s-19-8.5-19-19S363.5,50,374,50z"
|
|
2078
|
+
}), /*#__PURE__*/React__default["default"].createElement("g", {
|
|
2079
|
+
transform: "translate(366.893 61.893)"
|
|
2080
|
+
}, /*#__PURE__*/React__default["default"].createElement("g", {
|
|
2081
|
+
transform: "translate(0 0)"
|
|
2082
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
2083
|
+
fill: fill,
|
|
2084
|
+
stroke: stroke,
|
|
2085
|
+
strokeWidth: "2",
|
|
2086
|
+
strokeLinecap: "round",
|
|
2087
|
+
d: "M14.2,0.3L0,13.9"
|
|
2088
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
2089
|
+
fill: fill,
|
|
2090
|
+
stroke: stroke,
|
|
2091
|
+
strokeWidth: "2",
|
|
2092
|
+
strokeLinecap: "round",
|
|
2093
|
+
d: "M0.3,0l13.7,14.2"
|
|
2094
|
+
})))));
|
|
2095
|
+
};
|
|
2096
|
+
|
|
2097
|
+
Close.propTypes = propTypes$l;
|
|
2098
|
+
Close.defaultProps = defaultProps$l;
|
|
2045
2099
|
|
|
2046
2100
|
/* eslint-disable react/jsx-props-no-spreading */
|
|
2047
2101
|
var propTypes$k = {
|
|
@@ -4335,6 +4389,7 @@ exports.Breadcrumb = Breadcrumb;
|
|
|
4335
4389
|
exports.Button = Button$1;
|
|
4336
4390
|
exports.Buttons = Buttons;
|
|
4337
4391
|
exports.Card = Card;
|
|
4392
|
+
exports.Close = Close;
|
|
4338
4393
|
exports.CollapsablePanel = CollapsablePanel;
|
|
4339
4394
|
exports.Date = Date$1;
|
|
4340
4395
|
exports.Detector = Detector;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.115",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -132,5 +132,5 @@
|
|
|
132
132
|
"publishConfig": {
|
|
133
133
|
"access": "public"
|
|
134
134
|
},
|
|
135
|
-
"gitHead": "
|
|
135
|
+
"gitHead": "47c269c5f0b4b423cb5bb187f12ec821479b89dc"
|
|
136
136
|
}
|