@micromag/core 0.3.347 → 0.3.354
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 +265 -41
- package/es/hooks.js +5 -2
- package/es/index.js +210 -133
- package/es/utils.js +68 -2
- package/lib/components.js +271 -40
- package/lib/hooks.js +5 -2
- package/lib/index.js +211 -134
- package/lib/utils.js +69 -0
- package/package.json +2 -2
package/es/components.js
CHANGED
|
@@ -44,13 +44,13 @@ import { useSpring } from '@react-spring/core';
|
|
|
44
44
|
import { config, animated } from '@react-spring/web';
|
|
45
45
|
|
|
46
46
|
/* eslint-disable react/jsx-props-no-spreading */
|
|
47
|
-
var propTypes$
|
|
47
|
+
var propTypes$S = {
|
|
48
48
|
children: PropTypes.label.isRequired,
|
|
49
49
|
isHtml: PropTypes$1.bool,
|
|
50
50
|
values: PropTypes$1.object // eslint-disable-line react/forbid-prop-types
|
|
51
51
|
};
|
|
52
52
|
|
|
53
|
-
var defaultProps$
|
|
53
|
+
var defaultProps$S = {
|
|
54
54
|
isHtml: false,
|
|
55
55
|
values: {}
|
|
56
56
|
};
|
|
@@ -63,13 +63,13 @@ var Label = function Label(_ref) {
|
|
|
63
63
|
values: values
|
|
64
64
|
}, children)) : children;
|
|
65
65
|
};
|
|
66
|
-
Label.propTypes = propTypes$
|
|
67
|
-
Label.defaultProps = defaultProps$
|
|
66
|
+
Label.propTypes = propTypes$S;
|
|
67
|
+
Label.defaultProps = defaultProps$S;
|
|
68
68
|
|
|
69
69
|
var styles$w = {"container":"micromag-core-buttons-button-container","asLink":"micromag-core-buttons-button-asLink","withoutStyle":"micromag-core-buttons-button-withoutStyle","icon":"micromag-core-buttons-button-icon","label":"micromag-core-buttons-button-label","withIcon":"micromag-core-buttons-button-withIcon","right":"micromag-core-buttons-button-right","withAnimations":"micromag-core-buttons-button-withAnimations","icon-right":"micromag-core-buttons-button-icon-right","withIconColumns":"micromag-core-buttons-button-withIconColumns","linkDisabled":"micromag-core-buttons-button-linkDisabled"};
|
|
70
70
|
|
|
71
71
|
var _excluded$b = ["type", "theme", "size", "href", "external", "direct", "target", "label", "children", "focusable", "active", "icon", "iconPosition", "disabled", "loading", "disableOnLoading", "small", "big", "withShadow", "withoutStyle", "withoutBootstrapStyles", "withoutTheme", "asLink", "outline", "onClick", "className", "iconClassName", "labelClassName", "refButton"];
|
|
72
|
-
var propTypes$
|
|
72
|
+
var propTypes$R = {
|
|
73
73
|
type: PropTypes$1.string,
|
|
74
74
|
theme: PropTypes.buttonTheme,
|
|
75
75
|
size: PropTypes.buttonSize,
|
|
@@ -103,7 +103,7 @@ var propTypes$K = {
|
|
|
103
103
|
})])
|
|
104
104
|
};
|
|
105
105
|
|
|
106
|
-
var defaultProps$
|
|
106
|
+
var defaultProps$R = {
|
|
107
107
|
type: 'button',
|
|
108
108
|
theme: null,
|
|
109
109
|
size: null,
|
|
@@ -215,13 +215,13 @@ var Button$1 = function Button(_ref) {
|
|
|
215
215
|
tabIndex: focusable ? '0' : '-1'
|
|
216
216
|
}), content);
|
|
217
217
|
};
|
|
218
|
-
Button$1.propTypes = propTypes$
|
|
219
|
-
Button$1.defaultProps = defaultProps$
|
|
218
|
+
Button$1.propTypes = propTypes$R;
|
|
219
|
+
Button$1.defaultProps = defaultProps$R;
|
|
220
220
|
|
|
221
221
|
var styles$v = {};
|
|
222
222
|
|
|
223
223
|
var _excluded$a = ["className", "onClick", "theme"];
|
|
224
|
-
var propTypes$
|
|
224
|
+
var propTypes$Q = {
|
|
225
225
|
buttons: PropTypes.buttons,
|
|
226
226
|
size: PropTypes.buttonSize,
|
|
227
227
|
theme: PropTypes.buttonTheme,
|
|
@@ -230,7 +230,7 @@ var propTypes$J = {
|
|
|
230
230
|
className: PropTypes$1.string,
|
|
231
231
|
buttonClassName: PropTypes$1.string
|
|
232
232
|
};
|
|
233
|
-
var defaultProps$
|
|
233
|
+
var defaultProps$Q = {
|
|
234
234
|
buttons: [],
|
|
235
235
|
size: null,
|
|
236
236
|
theme: undefined,
|
|
@@ -275,14 +275,14 @@ var Buttons = function Buttons(_ref) {
|
|
|
275
275
|
return renderButton !== null ? renderButton(button, index, fixedProps) : /*#__PURE__*/React.createElement(Button$1, Object.assign({}, fixedProps, buttonProps));
|
|
276
276
|
}));
|
|
277
277
|
};
|
|
278
|
-
Buttons.propTypes = propTypes$
|
|
279
|
-
Buttons.defaultProps = defaultProps$
|
|
278
|
+
Buttons.propTypes = propTypes$Q;
|
|
279
|
+
Buttons.defaultProps = defaultProps$Q;
|
|
280
280
|
|
|
281
281
|
var _excluded$9 = ["className"];
|
|
282
|
-
var propTypes$
|
|
282
|
+
var propTypes$P = {
|
|
283
283
|
className: PropTypes$1.string
|
|
284
284
|
};
|
|
285
|
-
var defaultProps$
|
|
285
|
+
var defaultProps$P = {
|
|
286
286
|
className: null
|
|
287
287
|
};
|
|
288
288
|
var BackButton = function BackButton(_ref) {
|
|
@@ -297,12 +297,12 @@ var BackButton = function BackButton(_ref) {
|
|
|
297
297
|
})
|
|
298
298
|
}, props));
|
|
299
299
|
};
|
|
300
|
-
BackButton.propTypes = propTypes$
|
|
301
|
-
BackButton.defaultProps = defaultProps$
|
|
300
|
+
BackButton.propTypes = propTypes$P;
|
|
301
|
+
BackButton.defaultProps = defaultProps$P;
|
|
302
302
|
|
|
303
303
|
var _excluded$8 = ["type"],
|
|
304
304
|
_excluded2 = ["component", "id", "settings"];
|
|
305
|
-
var propTypes$
|
|
305
|
+
var propTypes$O = {
|
|
306
306
|
name: PropTypes$1.string,
|
|
307
307
|
// .isRequired,
|
|
308
308
|
value: PropTypes.component,
|
|
@@ -316,7 +316,7 @@ var propTypes$H = {
|
|
|
316
316
|
fieldContext: PropTypes$1.any // eslint-disable-line react/forbid-prop-types
|
|
317
317
|
};
|
|
318
318
|
|
|
319
|
-
var defaultProps$
|
|
319
|
+
var defaultProps$O = {
|
|
320
320
|
name: null,
|
|
321
321
|
form: null,
|
|
322
322
|
formComponents: {},
|
|
@@ -394,12 +394,12 @@ var FieldForm = function FieldForm(_ref) {
|
|
|
394
394
|
isForm: true
|
|
395
395
|
}, formProps))) : null;
|
|
396
396
|
};
|
|
397
|
-
FieldForm.propTypes = propTypes$
|
|
398
|
-
FieldForm.defaultProps = defaultProps$
|
|
397
|
+
FieldForm.propTypes = propTypes$O;
|
|
398
|
+
FieldForm.defaultProps = defaultProps$O;
|
|
399
399
|
|
|
400
400
|
var styles$u = {"actions":"micromag-core-forms-form-actions","left":"micromag-core-forms-form-left","right":"micromag-core-forms-form-right"};
|
|
401
401
|
|
|
402
|
-
var propTypes$
|
|
402
|
+
var propTypes$N = {
|
|
403
403
|
action: PropTypes$1.string.isRequired,
|
|
404
404
|
method: PropTypes$1.string,
|
|
405
405
|
fields: PropTypes.formFields,
|
|
@@ -428,7 +428,7 @@ var propTypes$G = {
|
|
|
428
428
|
actionsClassName: PropTypes$1.string,
|
|
429
429
|
cancelClassName: PropTypes$1.string
|
|
430
430
|
};
|
|
431
|
-
var defaultProps$
|
|
431
|
+
var defaultProps$N = {
|
|
432
432
|
method: 'POST',
|
|
433
433
|
fields: [],
|
|
434
434
|
initialValue: null,
|
|
@@ -632,13 +632,13 @@ var Form = function Form(_ref) {
|
|
|
632
632
|
}]
|
|
633
633
|
})) : null) : null);
|
|
634
634
|
};
|
|
635
|
-
Form.propTypes = propTypes$
|
|
636
|
-
Form.defaultProps = defaultProps$
|
|
635
|
+
Form.propTypes = propTypes$N;
|
|
636
|
+
Form.defaultProps = defaultProps$N;
|
|
637
637
|
|
|
638
638
|
var styles$t = {"withoutStyle":"micromag-core-partials-link-withoutStyle"};
|
|
639
639
|
|
|
640
640
|
var _excluded$7 = ["href", "external", "children", "target", "rel", "className", "withoutStyle"];
|
|
641
|
-
var propTypes$
|
|
641
|
+
var propTypes$M = {
|
|
642
642
|
href: PropTypes$1.string,
|
|
643
643
|
external: PropTypes$1.bool,
|
|
644
644
|
target: PropTypes$1.string,
|
|
@@ -647,7 +647,7 @@ var propTypes$F = {
|
|
|
647
647
|
withoutStyle: PropTypes$1.bool,
|
|
648
648
|
className: PropTypes$1.string
|
|
649
649
|
};
|
|
650
|
-
var defaultProps$
|
|
650
|
+
var defaultProps$M = {
|
|
651
651
|
href: '',
|
|
652
652
|
external: false,
|
|
653
653
|
target: '_blank',
|
|
@@ -675,11 +675,11 @@ var Link = function Link(_ref) {
|
|
|
675
675
|
to: href
|
|
676
676
|
}, props), /*#__PURE__*/React.createElement(Label, null, children));
|
|
677
677
|
};
|
|
678
|
-
Link.propTypes = propTypes$
|
|
679
|
-
Link.defaultProps = defaultProps$
|
|
678
|
+
Link.propTypes = propTypes$M;
|
|
679
|
+
Link.defaultProps = defaultProps$M;
|
|
680
680
|
|
|
681
681
|
var _excluded$6 = ["label", "className"];
|
|
682
|
-
var propTypes$
|
|
682
|
+
var propTypes$L = {
|
|
683
683
|
href: PropTypes$1.string,
|
|
684
684
|
header: PropTypes$1.node,
|
|
685
685
|
image: PropTypes$1.node,
|
|
@@ -708,7 +708,7 @@ var propTypes$E = {
|
|
|
708
708
|
onClickBody: PropTypes$1.func,
|
|
709
709
|
onClickFooter: PropTypes$1.func
|
|
710
710
|
};
|
|
711
|
-
var defaultProps$
|
|
711
|
+
var defaultProps$L = {
|
|
712
712
|
href: null,
|
|
713
713
|
header: null,
|
|
714
714
|
image: null,
|
|
@@ -822,15 +822,15 @@ var Card = function Card(_ref) {
|
|
|
822
822
|
className: cardClassName
|
|
823
823
|
}, cardInner);
|
|
824
824
|
};
|
|
825
|
-
Card.propTypes = propTypes$
|
|
826
|
-
Card.defaultProps = defaultProps$
|
|
825
|
+
Card.propTypes = propTypes$L;
|
|
826
|
+
Card.defaultProps = defaultProps$L;
|
|
827
827
|
|
|
828
|
-
var propTypes$
|
|
828
|
+
var propTypes$K = {
|
|
829
829
|
animated: PropTypes$1.bool,
|
|
830
830
|
color: PropTypes$1.string,
|
|
831
831
|
className: PropTypes$1.string
|
|
832
832
|
};
|
|
833
|
-
var defaultProps$
|
|
833
|
+
var defaultProps$K = {
|
|
834
834
|
animated: true,
|
|
835
835
|
color: 'currentColor',
|
|
836
836
|
className: null
|
|
@@ -893,19 +893,19 @@ var Spinner = function Spinner(_ref) {
|
|
|
893
893
|
repeatCount: "indefinite"
|
|
894
894
|
}) : null))));
|
|
895
895
|
};
|
|
896
|
-
Spinner.propTypes = propTypes$
|
|
897
|
-
Spinner.defaultProps = defaultProps$
|
|
896
|
+
Spinner.propTypes = propTypes$K;
|
|
897
|
+
Spinner.defaultProps = defaultProps$K;
|
|
898
898
|
|
|
899
899
|
var styles$s = {};
|
|
900
900
|
|
|
901
901
|
var _excluded$5 = ["description", "loading", "children", "className"];
|
|
902
|
-
var propTypes$
|
|
902
|
+
var propTypes$J = {
|
|
903
903
|
description: PropTypes$1.node,
|
|
904
904
|
loading: PropTypes$1.bool,
|
|
905
905
|
children: PropTypes$1.node,
|
|
906
906
|
className: PropTypes$1.string
|
|
907
907
|
};
|
|
908
|
-
var defaultProps$
|
|
908
|
+
var defaultProps$J = {
|
|
909
909
|
description: null,
|
|
910
910
|
loading: false,
|
|
911
911
|
children: null,
|
|
@@ -921,8 +921,228 @@ var FormPanel = function FormPanel(_ref) {
|
|
|
921
921
|
className: classNames([styles$s.container, _defineProperty({}, className, className !== null)])
|
|
922
922
|
}, props), description, loading ? /*#__PURE__*/React.createElement(Spinner, null) : children);
|
|
923
923
|
};
|
|
924
|
-
FormPanel.propTypes = propTypes$
|
|
925
|
-
FormPanel.defaultProps = defaultProps$
|
|
924
|
+
FormPanel.propTypes = propTypes$J;
|
|
925
|
+
FormPanel.defaultProps = defaultProps$J;
|
|
926
|
+
|
|
927
|
+
var propTypes$I = {
|
|
928
|
+
className: PropTypes$1.string,
|
|
929
|
+
color: PropTypes$1.string
|
|
930
|
+
};
|
|
931
|
+
var defaultProps$I = {
|
|
932
|
+
className: null,
|
|
933
|
+
color: '#fff'
|
|
934
|
+
};
|
|
935
|
+
var ArrowIcon = function ArrowIcon(_ref) {
|
|
936
|
+
var color = _ref.color,
|
|
937
|
+
className = _ref.className;
|
|
938
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
939
|
+
width: "20",
|
|
940
|
+
height: "14",
|
|
941
|
+
viewBox: "0 0 20 14",
|
|
942
|
+
fill: "none",
|
|
943
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
944
|
+
className: className
|
|
945
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
946
|
+
fillRule: "evenodd",
|
|
947
|
+
clipRule: "evenodd",
|
|
948
|
+
d: "M13.353 0.371014L19.319 6.33704C19.6851 6.70314 19.6851 7.29671 19.319 7.66282L13.353 13.6288C12.9869 13.9949 12.3933 13.9949 12.0272 13.6288C11.6611 13.2627 11.6611 12.6692 12.0272 12.3031L16.3929 7.9374H0V6.06246H16.3929L12.0272 1.6968C11.6611 1.33069 11.6611 0.737119 12.0272 0.371014C12.3933 0.0049094 12.9869 0.0049094 13.353 0.371014Z",
|
|
949
|
+
fill: color
|
|
950
|
+
}));
|
|
951
|
+
};
|
|
952
|
+
ArrowIcon.propTypes = propTypes$I;
|
|
953
|
+
ArrowIcon.defaultProps = defaultProps$I;
|
|
954
|
+
|
|
955
|
+
var propTypes$H = {
|
|
956
|
+
className: PropTypes$1.string,
|
|
957
|
+
color: PropTypes$1.string
|
|
958
|
+
};
|
|
959
|
+
var defaultProps$H = {
|
|
960
|
+
className: null,
|
|
961
|
+
color: '#fff'
|
|
962
|
+
};
|
|
963
|
+
var CloseIcon = function CloseIcon(_ref) {
|
|
964
|
+
var color = _ref.color,
|
|
965
|
+
className = _ref.className;
|
|
966
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
967
|
+
width: "22",
|
|
968
|
+
height: "22",
|
|
969
|
+
viewBox: "0 0 22 22",
|
|
970
|
+
fill: "none",
|
|
971
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
972
|
+
className: className
|
|
973
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
974
|
+
d: "M1 1L21 21",
|
|
975
|
+
stroke: color,
|
|
976
|
+
strokeWidth: "1.5",
|
|
977
|
+
strokeLinecap: "round"
|
|
978
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
979
|
+
d: "M1 21L21 0.999998",
|
|
980
|
+
stroke: color,
|
|
981
|
+
strokeWidth: "1.5",
|
|
982
|
+
strokeLinecap: "round"
|
|
983
|
+
}));
|
|
984
|
+
};
|
|
985
|
+
CloseIcon.propTypes = propTypes$H;
|
|
986
|
+
CloseIcon.defaultProps = defaultProps$H;
|
|
987
|
+
|
|
988
|
+
var propTypes$G = {
|
|
989
|
+
className: PropTypes$1.string,
|
|
990
|
+
color: PropTypes$1.string
|
|
991
|
+
};
|
|
992
|
+
var defaultProps$G = {
|
|
993
|
+
className: null,
|
|
994
|
+
color: '#fff'
|
|
995
|
+
};
|
|
996
|
+
var LinkIcon = function LinkIcon(_ref) {
|
|
997
|
+
var color = _ref.color,
|
|
998
|
+
className = _ref.className;
|
|
999
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
1000
|
+
width: "16",
|
|
1001
|
+
height: "16",
|
|
1002
|
+
viewBox: "0 0 16 16",
|
|
1003
|
+
fill: "none",
|
|
1004
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1005
|
+
className: className
|
|
1006
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
1007
|
+
d: "M6.60207 8.70208C7.75493 10.2515 9.95019 10.5697 11.4965 9.40761C11.6277 9.31077 11.7589 9.2001 11.8762 9.08251L13.9749 6.97975C15.3417 5.61018 15.3417 3.39674 13.9749 2.02717C12.608 0.657609 10.3989 0.657609 9.03205 2.02717L7.83086 3.22381",
|
|
1008
|
+
stroke: color,
|
|
1009
|
+
strokeWidth: "1.25",
|
|
1010
|
+
strokeLinecap: "round",
|
|
1011
|
+
strokeLinejoin: "round"
|
|
1012
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
1013
|
+
d: "M9.39793 7.29793C8.24507 5.74852 6.04981 5.43034 4.50345 6.59239C4.37229 6.68923 4.24113 6.7999 4.12377 6.91749L2.02515 9.02026C0.658284 10.3898 0.658284 12.6033 2.02515 13.9728C3.39201 15.3424 5.60109 15.3424 6.96795 13.9728L8.16223 12.7762",
|
|
1014
|
+
stroke: color,
|
|
1015
|
+
strokeWidth: "1.25",
|
|
1016
|
+
strokeLinecap: "round",
|
|
1017
|
+
strokeLinejoin: "round"
|
|
1018
|
+
}));
|
|
1019
|
+
};
|
|
1020
|
+
LinkIcon.propTypes = propTypes$G;
|
|
1021
|
+
LinkIcon.defaultProps = defaultProps$G;
|
|
1022
|
+
|
|
1023
|
+
var propTypes$F = {
|
|
1024
|
+
className: PropTypes$1.string,
|
|
1025
|
+
color: PropTypes$1.string
|
|
1026
|
+
};
|
|
1027
|
+
var defaultProps$F = {
|
|
1028
|
+
className: null,
|
|
1029
|
+
color: '#fff'
|
|
1030
|
+
};
|
|
1031
|
+
var MuteIcon = function MuteIcon(_ref) {
|
|
1032
|
+
var color = _ref.color,
|
|
1033
|
+
className = _ref.className;
|
|
1034
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
1035
|
+
width: "26",
|
|
1036
|
+
height: "26",
|
|
1037
|
+
viewBox: "0 0 26 26",
|
|
1038
|
+
fill: "none",
|
|
1039
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1040
|
+
className: className
|
|
1041
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
1042
|
+
d: "M7.09929 8.77987H1C0.447715 8.77987 0 9.22758 0 9.77987V15.7799C0 16.3322 0.447715 16.7799 1 16.7799H7.1076C7.35984 16.7799 7.60276 16.8752 7.78768 17.0467L14.3199 23.1062C14.9599 23.6999 16 23.246 16 22.3731V3.00199C16 2.12221 14.9458 1.67117 14.3095 2.2787L7.78983 8.50316C7.6038 8.68077 7.35649 8.77987 7.09929 8.77987Z",
|
|
1043
|
+
fill: color
|
|
1044
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
1045
|
+
d: "M18 18.6875C21.3137 18.6875 24 16.0012 24 12.6875C24 9.37379 21.3137 6.6875 18 6.6875",
|
|
1046
|
+
stroke: color
|
|
1047
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
1048
|
+
d: "M18 15.6875C19.6569 15.6875 21 14.3444 21 12.6875C21 11.0306 19.6569 9.6875 18 9.6875",
|
|
1049
|
+
stroke: color
|
|
1050
|
+
}));
|
|
1051
|
+
};
|
|
1052
|
+
MuteIcon.propTypes = propTypes$F;
|
|
1053
|
+
MuteIcon.defaultProps = defaultProps$F;
|
|
1054
|
+
|
|
1055
|
+
var propTypes$E = {
|
|
1056
|
+
className: PropTypes$1.string,
|
|
1057
|
+
color: PropTypes$1.string
|
|
1058
|
+
};
|
|
1059
|
+
var defaultProps$E = {
|
|
1060
|
+
className: null,
|
|
1061
|
+
color: '#fff'
|
|
1062
|
+
};
|
|
1063
|
+
var PauseIcon = function PauseIcon(_ref) {
|
|
1064
|
+
var color = _ref.color,
|
|
1065
|
+
className = _ref.className;
|
|
1066
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
1067
|
+
className: className,
|
|
1068
|
+
width: "14",
|
|
1069
|
+
height: "18",
|
|
1070
|
+
viewBox: "0 0 14 18",
|
|
1071
|
+
fill: "none",
|
|
1072
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1073
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
1074
|
+
width: "6",
|
|
1075
|
+
height: "18",
|
|
1076
|
+
rx: "2",
|
|
1077
|
+
fill: color
|
|
1078
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
1079
|
+
x: "8",
|
|
1080
|
+
width: "6",
|
|
1081
|
+
height: "18",
|
|
1082
|
+
rx: "2",
|
|
1083
|
+
fill: color
|
|
1084
|
+
}));
|
|
1085
|
+
};
|
|
1086
|
+
PauseIcon.propTypes = propTypes$E;
|
|
1087
|
+
PauseIcon.defaultProps = defaultProps$E;
|
|
1088
|
+
|
|
1089
|
+
var propTypes$D = {
|
|
1090
|
+
className: PropTypes$1.string,
|
|
1091
|
+
color: PropTypes$1.string
|
|
1092
|
+
};
|
|
1093
|
+
var defaultProps$D = {
|
|
1094
|
+
className: null,
|
|
1095
|
+
color: '#fff'
|
|
1096
|
+
};
|
|
1097
|
+
var PlayIcon = function PlayIcon(_ref) {
|
|
1098
|
+
var color = _ref.color,
|
|
1099
|
+
className = _ref.className;
|
|
1100
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
1101
|
+
width: "20",
|
|
1102
|
+
height: "23",
|
|
1103
|
+
viewBox: "0 0 20 23",
|
|
1104
|
+
fill: "none",
|
|
1105
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1106
|
+
className: className
|
|
1107
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
1108
|
+
d: "M16.25 12.5574L2.74999 20.3516C1.74999 20.9289 0.499993 20.2073 0.499993 19.0526L0.499994 3.4641C0.499994 2.3094 1.74999 1.58771 2.74999 2.16506L16.25 9.95929C17.25 10.5366 17.25 11.98 16.25 12.5574Z",
|
|
1109
|
+
fill: color,
|
|
1110
|
+
stroke: color
|
|
1111
|
+
}));
|
|
1112
|
+
};
|
|
1113
|
+
PlayIcon.propTypes = propTypes$D;
|
|
1114
|
+
PlayIcon.defaultProps = defaultProps$D;
|
|
1115
|
+
|
|
1116
|
+
var propTypes$C = {
|
|
1117
|
+
className: PropTypes$1.string,
|
|
1118
|
+
color: PropTypes$1.string
|
|
1119
|
+
};
|
|
1120
|
+
var defaultProps$C = {
|
|
1121
|
+
className: null,
|
|
1122
|
+
color: '#fff'
|
|
1123
|
+
};
|
|
1124
|
+
var UnmuteIcon = function UnmuteIcon(_ref) {
|
|
1125
|
+
var color = _ref.color,
|
|
1126
|
+
className = _ref.className;
|
|
1127
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
1128
|
+
width: "26",
|
|
1129
|
+
height: "26",
|
|
1130
|
+
viewBox: "0 0 26 26",
|
|
1131
|
+
fill: "none",
|
|
1132
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1133
|
+
className: className
|
|
1134
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
1135
|
+
d: "M7.09929 8.77987H1C0.447715 8.77987 0 9.22758 0 9.77987V15.7799C0 16.3322 0.447715 16.7799 1 16.7799H7.1076C7.35984 16.7799 7.60276 16.8752 7.78768 17.0467L14.3199 23.1062C14.9599 23.6999 16 23.246 16 22.3731V3.00199C16 2.12221 14.9458 1.67117 14.3095 2.2787L7.78983 8.50316C7.6038 8.68077 7.35649 8.77987 7.09929 8.77987Z",
|
|
1136
|
+
fill: color
|
|
1137
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
1138
|
+
fillRule: "evenodd",
|
|
1139
|
+
clipRule: "evenodd",
|
|
1140
|
+
d: "M20.8536 13.3946L23 15.5411L23.7071 14.834L21.5607 12.6875L23.7071 10.5411L23 9.83398L20.8536 11.9804L18.7071 9.83398L18 10.5411L20.1464 12.6875L18 14.834L18.7071 15.5411L20.8536 13.3946Z",
|
|
1141
|
+
fill: color
|
|
1142
|
+
}));
|
|
1143
|
+
};
|
|
1144
|
+
UnmuteIcon.propTypes = propTypes$C;
|
|
1145
|
+
UnmuteIcon.defaultProps = defaultProps$C;
|
|
926
1146
|
|
|
927
1147
|
var styles$r = {"container":"micromag-core-menus-breadcrumb-container","arrow":"micromag-core-menus-breadcrumb-arrow"};
|
|
928
1148
|
|
|
@@ -2881,6 +3101,10 @@ PropTypes$1.shape({
|
|
|
2881
3101
|
id: PropTypes$1.oneOfType([PropTypes$1.string, PropTypes$1.number]),
|
|
2882
3102
|
name: PropTypes$1.string
|
|
2883
3103
|
});
|
|
3104
|
+
PropTypes$1.shape({
|
|
3105
|
+
label: textElement,
|
|
3106
|
+
buttonStyle: boxStyle
|
|
3107
|
+
});
|
|
2884
3108
|
|
|
2885
3109
|
/* eslint-disable react/no-array-index-key */
|
|
2886
3110
|
var propTypes$d = {
|
|
@@ -4190,4 +4414,4 @@ var LinkStyle = function LinkStyle(_ref) {
|
|
|
4190
4414
|
LinkStyle.propTypes = propTypes;
|
|
4191
4415
|
LinkStyle.defaultProps = defaultProps;
|
|
4192
4416
|
|
|
4193
|
-
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$1 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 };
|
|
4417
|
+
export { ArrowIcon, BackButton, Breadcrumb, Button$1 as Button, Buttons, Card, Close, CloseIcon, CollapsablePanel, Date$1 as Date, Detector, Dropdown as DropdownMenu, ElementComponent as Element, Empty, FieldForm, FontFaces, Form, FormPanel, HighlightStyle, Label, Link, LinkIcon, LinkStyle, Media, Menu, Meta, Modal, ModalDialog, ModalPortal, Modals, MuteIcon, Navbar, PaginationMenu as Pagination, Panel, PanelPortal, Panels, PauseIcon, AdFrame as PlaceholderAdFrame, AdImage as PlaceholderAdImage, Audio as PlaceholderAudio, Button as PlaceholderButton, Image as PlaceholderImage, Line as PlaceholderLine, Map as PlaceholderMap, MapPath as PlaceholderMapPath, Quote as PlaceholderQuote, ShortText as PlaceholderShortText, Subtitle as PlaceholderSubtitle, TextPlaceholder as PlaceholderText, Timeline as PlaceholderTimeline, Title$1 as PlaceholderTitle, Video as PlaceholderVideo, Video360 as PlaceholderVideo360, VideoLoop as PlaceholderVideoLoop, PlayIcon, Screen$1 as Screen, ScreenElement, Placeholder as ScreenPlaceholder, Preview as ScreenPreview, ScreenSizer, Screens, Slideshow, Spinner, TabsMenu as Tabs, Transitions, TransitionsStagger, UnmuteIcon, UploadModal };
|
package/es/hooks.js
CHANGED
|
@@ -1599,7 +1599,9 @@ var useParsedStory = function useParsedStory(story) {
|
|
|
1599
1599
|
_ref$withMedias = _ref.withMedias,
|
|
1600
1600
|
withMedias = _ref$withMedias === void 0 ? true : _ref$withMedias,
|
|
1601
1601
|
_ref$withFonts = _ref.withFonts,
|
|
1602
|
-
withFonts = _ref$withFonts === void 0 ? true : _ref$withFonts
|
|
1602
|
+
withFonts = _ref$withFonts === void 0 ? true : _ref$withFonts,
|
|
1603
|
+
_ref$withMigrations = _ref.withMigrations,
|
|
1604
|
+
withMigrations = _ref$withMigrations === void 0 ? true : _ref$withMigrations;
|
|
1603
1605
|
var screensManager = useScreensManager();
|
|
1604
1606
|
var fieldsManager = useFieldsManager();
|
|
1605
1607
|
var parser = useMemo(function () {
|
|
@@ -1615,7 +1617,8 @@ var useParsedStory = function useParsedStory(story) {
|
|
|
1615
1617
|
return parser.parse(story, {
|
|
1616
1618
|
withMedias: withMedias,
|
|
1617
1619
|
withTheme: withTheme,
|
|
1618
|
-
withFonts: withFonts
|
|
1620
|
+
withFonts: withFonts,
|
|
1621
|
+
withMigrations: withMigrations
|
|
1619
1622
|
});
|
|
1620
1623
|
}, [parser, disabled, withMedias, withTheme, withFonts, story]);
|
|
1621
1624
|
return newStory;
|