@micromag/core 0.3.251 → 0.3.262
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/css/styles.css +2 -2
- package/es/components.js +61 -38
- package/es/contexts.js +79 -134
- package/es/hooks.js +88 -69
- package/es/utils.js +49 -1
- package/lib/components.js +61 -38
- package/lib/contexts.js +78 -136
- package/lib/hooks.js +88 -68
- package/lib/utils.js +50 -0
- package/package.json +2 -2
package/assets/css/styles.css
CHANGED
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
.micromag-core-panels-container{position:static}
|
|
15
15
|
.micromag-core-panels-panel-container{position:static}
|
|
16
16
|
.micromag-core-partials-collapsable-panel-container .micromag-core-partials-collapsable-panel-top{border-bottom:1px solid #dedede}.micromag-core-partials-collapsable-panel-container .micromag-core-partials-collapsable-panel-button{display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;padding:.25rem 0;font-size:.9rem;font-weight:700;text-align:left}.micromag-core-partials-collapsable-panel-container .micromag-core-partials-collapsable-panel-label{-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}.micromag-core-partials-collapsable-panel-container .micromag-core-partials-collapsable-panel-content{max-height:0;padding-top:1rem;overflow:hidden;-webkit-transition:max-height .2s ease-out;-o-transition:max-height .2s ease-out;transition:max-height .2s ease-out}.micromag-core-partials-collapsable-panel-container.micromag-core-partials-collapsable-panel-isOpened .micromag-core-partials-collapsable-panel-content{max-height:500px}
|
|
17
|
-
.micromag-core-partials-placeholder-block-container{padding:2px
|
|
17
|
+
.micromag-core-partials-placeholder-block-container{padding:2px}.micromag-core-partials-placeholder-block-container.micromag-core-partials-placeholder-block-outline{margin:2px 0;border:2px solid hsla(0,0%,100%,.6)}.micromag-core-partials-placeholder-block-container.micromag-core-partials-placeholder-block-withInvertedColors{mix-blend-mode:difference}.micromag-core-partials-placeholder-block-box{display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;margin:0 auto;background-color:currentColor}.micromag-core-partials-placeholder-block-withInvertedColors .micromag-core-partials-placeholder-block-box{background-color:hsla(0,0%,100%,.6)}.micromag-core-partials-placeholder-block-outline .micromag-core-partials-placeholder-block-box{background-color:rgba(0,0,0,0)}
|
|
18
18
|
.micromag-core-partials-empty-container{display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;border:2px dashed #6c6c6c;color:#6c6c6c}.micromag-core-partials-empty-container .micromag-core-partials-empty-middle{text-align:center}.micromag-core-partials-empty-container.micromag-core-partials-empty-withoutBorder{border:0}.micromag-core-partials-empty-container.micromag-core-partials-empty-invertColor{border:2px dashed #343434;color:#343434}
|
|
19
19
|
|
|
20
20
|
.micromag-core-partials-slideshow-container{position:relative;overflow:hidden}.micromag-core-partials-slideshow-container .micromag-core-partials-slideshow-item,.micromag-core-partials-slideshow-container .micromag-core-partials-slideshow-items{width:100%;height:100%}.micromag-core-partials-slideshow-container .micromag-core-partials-slideshow-item{position:absolute;-webkit-transition:-webkit-transform .3s ease-out;transition:-webkit-transform .3s ease-out;-o-transition:transform .3s ease-out;transition:transform .3s ease-out;transition:transform .3s ease-out, -webkit-transform .3s ease-out}.micromag-core-partials-slideshow-container .micromag-core-partials-slideshow-item.micromag-core-partials-slideshow-prev{-webkit-transform:translateX(-100%);-ms-transform:translateX(-100%);transform:translateX(-100%)}.micromag-core-partials-slideshow-container .micromag-core-partials-slideshow-item.micromag-core-partials-slideshow-current{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}.micromag-core-partials-slideshow-container .micromag-core-partials-slideshow-item.micromag-core-partials-slideshow-next{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%)}
|
|
21
21
|
.micromag-core-placeholders-icon{color:#1c1c1c}
|
|
22
|
-
.micromag-core-partials-placeholder-text-container{width:100%;padding:2px
|
|
22
|
+
.micromag-core-partials-placeholder-text-container{width:100%;padding:2px}.micromag-core-partials-placeholder-text-container.micromag-core-partials-placeholder-text-withInvertedColors{mix-blend-mode:difference}.micromag-core-partials-placeholder-text-line{height:16px;background-color:currentColor}.micromag-core-partials-placeholder-text-withInvertedColors .micromag-core-partials-placeholder-text-line{background-color:hsla(0,0%,100%,.6)}
|
|
23
23
|
.micromag-core-placeholders-map-container:before{position:absolute;top:0;left:0;width:100%;height:100%}.micromag-core-placeholders-map-container{position:relative}.micromag-core-placeholders-map-container .micromag-core-placeholders-map-icon{position:absolute;width:15%;height:15%;color:#1c1c1c}.micromag-core-placeholders-map-container .micromag-core-placeholders-map-icon:first-child{top:10%;left:40%}.micromag-core-placeholders-map-container .micromag-core-placeholders-map-icon:nth-child(2){top:35%;left:60%}.micromag-core-placeholders-map-container .micromag-core-placeholders-map-icon:nth-child(3){top:50%;left:15%}.micromag-core-placeholders-map-container .micromag-core-placeholders-map-icon:nth-child(4){top:70%;left:60%}.micromag-core-placeholders-map-container:before{content:"";display:block;opacity:.2;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKwAAAEyCAYAAABnKjtfAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyVpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDYuMC1jMDAyIDc5LjE2NDQ4OCwgMjAyMC8wNy8xMC0yMjowNjo1MyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJ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woYklB1n7jVq0chl3OJUqbA5NLM30HHCZz1dYy9sGDXYEJUEzFzZsyLYyJmjzUo+kmXBoxYGX1D+7dW1E1GbHPRSWsGGPKwuyelHHiFqusGEJ9sqIrENkLVdYS3tcDUnWcoW1tiHb2LFspFhhrW3INkLWcoUNz2u10st6R81aLhfGHjWLrCSsCZpd/EwCkLDquXcsOQGn/zldftbqwRnZzhzKLgnC8hNkBfXChr4AZAX1JQGygpmEHTrFjz4HhN2VlR1SwERJgKxgJmHDhACygnphabwGM8LSHghmhL1z9AWAAWFpYgFTwoaaFUC1sH3H7BUYEpYdqcGMsP9kJAC6IuZMl+8HCHurcoMFqhN2UN9c0cQC6oWlLwDMCBtGApAV1AtLXwCYEZa+ADAzSsC2QWAmYX2y3nEawULC0hcAJhKWjiswI6wfrhqSrGBB2MqxEwsYEZb2QDAjbL8eCaAvAMQ5tN2mLwPukRW08NGwlr/8PyArWBA27HFFEwuor2FpDwQzwrJtEJgRlvZAMCMs7YFgRliefQVm8OOwPxxNLGBI2J+cBrDCJacAEBYAYQEQFhAWAGEBEBYQFgBhARAWEBYAYQEQFhAWAGEBEBYQFgBhARAWEBYAYQEQFhAWAGEBEBZy4D8CDACfbQUc6LQcNAAAAABJRU5ErkJggg==");background-size:cover}
|
|
24
24
|
.micromag-core-placeholders-video-360-container .micromag-core-placeholders-video-360-box{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.micromag-core-placeholders-video-360-container .micromag-core-placeholders-video-360-icon{margin-bottom:5px;color:#1c1c1c}.micromag-core-placeholders-video-360-container .micromag-core-placeholders-video-360-label{color:#1c1c1c;font-size:.75em}
|
|
25
25
|
.micromag-core-screens-screen-sizer-container,.micromag-core-screens-screen-sizer-frame{position:relative}.micromag-core-screens-screen-sizer-screen{position:absolute;top:0;left:0;-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}
|
package/es/components.js
CHANGED
|
@@ -70,7 +70,7 @@ Label.defaultProps = defaultProps$L;
|
|
|
70
70
|
|
|
71
71
|
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"};
|
|
72
72
|
|
|
73
|
-
var _excluded$
|
|
73
|
+
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"];
|
|
74
74
|
var propTypes$K = {
|
|
75
75
|
type: PropTypes$1.string,
|
|
76
76
|
theme: PropTypes.buttonTheme,
|
|
@@ -169,7 +169,7 @@ var Button$1 = function Button(_ref) {
|
|
|
169
169
|
iconClassName = _ref.iconClassName,
|
|
170
170
|
labelClassName = _ref.labelClassName,
|
|
171
171
|
refButton = _ref.refButton,
|
|
172
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
172
|
+
props = _objectWithoutProperties(_ref, _excluded$b);
|
|
173
173
|
|
|
174
174
|
var finalLabel = label || children;
|
|
175
175
|
var text = finalLabel !== null ? /*#__PURE__*/React.createElement(Label, null, finalLabel) : null;
|
|
@@ -228,7 +228,7 @@ Button$1.defaultProps = defaultProps$K;
|
|
|
228
228
|
|
|
229
229
|
var styles$v = {};
|
|
230
230
|
|
|
231
|
-
var _excluded$
|
|
231
|
+
var _excluded$a = ["className", "onClick", "theme"];
|
|
232
232
|
var propTypes$J = {
|
|
233
233
|
buttons: PropTypes.buttons,
|
|
234
234
|
size: PropTypes.buttonSize,
|
|
@@ -268,7 +268,7 @@ var Buttons = function Buttons(_ref) {
|
|
|
268
268
|
_onClick = _button$onClick === void 0 ? null : _button$onClick,
|
|
269
269
|
_button$theme = button.theme,
|
|
270
270
|
buttonTheme = _button$theme === void 0 ? null : _button$theme,
|
|
271
|
-
buttonProps = _objectWithoutProperties(button, _excluded$
|
|
271
|
+
buttonProps = _objectWithoutProperties(button, _excluded$a);
|
|
272
272
|
|
|
273
273
|
var fixedProps = {
|
|
274
274
|
key: "button-".concat(index),
|
|
@@ -291,7 +291,7 @@ var Buttons = function Buttons(_ref) {
|
|
|
291
291
|
Buttons.propTypes = propTypes$J;
|
|
292
292
|
Buttons.defaultProps = defaultProps$J;
|
|
293
293
|
|
|
294
|
-
var _excluded$
|
|
294
|
+
var _excluded$9 = ["className"];
|
|
295
295
|
var propTypes$I = {
|
|
296
296
|
className: PropTypes$1.string
|
|
297
297
|
};
|
|
@@ -301,7 +301,7 @@ var defaultProps$I = {
|
|
|
301
301
|
|
|
302
302
|
var BackButton = function BackButton(_ref) {
|
|
303
303
|
var className = _ref.className,
|
|
304
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
304
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
305
305
|
|
|
306
306
|
return /*#__PURE__*/React.createElement(Button$1, Object.assign({
|
|
307
307
|
className: classNames(['px-2', _defineProperty({}, className, className)]),
|
|
@@ -318,7 +318,7 @@ BackButton.defaultProps = defaultProps$I;
|
|
|
318
318
|
|
|
319
319
|
var styles$u = {"actions":"micromag-core-forms-form-actions","left":"micromag-core-forms-form-left","right":"micromag-core-forms-form-right"};
|
|
320
320
|
|
|
321
|
-
var _excluded$
|
|
321
|
+
var _excluded$8 = ["type"],
|
|
322
322
|
_excluded2 = ["component", "id", "settings"];
|
|
323
323
|
var propTypes$H = {
|
|
324
324
|
name: PropTypes$1.string,
|
|
@@ -362,7 +362,7 @@ var FieldForm = function FieldForm(_ref) {
|
|
|
362
362
|
var _ref2 = field || {},
|
|
363
363
|
_ref2$type = _ref2.type,
|
|
364
364
|
type = _ref2$type === void 0 ? null : _ref2$type,
|
|
365
|
-
fieldProps = _objectWithoutProperties(_ref2, _excluded$
|
|
365
|
+
fieldProps = _objectWithoutProperties(_ref2, _excluded$8);
|
|
366
366
|
|
|
367
367
|
var fieldDefinition = fieldsManager.getDefinition(type) || null;
|
|
368
368
|
|
|
@@ -670,7 +670,7 @@ Form.defaultProps = defaultProps$G;
|
|
|
670
670
|
|
|
671
671
|
var styles$t = {"withoutStyle":"micromag-core-partials-link-withoutStyle"};
|
|
672
672
|
|
|
673
|
-
var _excluded$
|
|
673
|
+
var _excluded$7 = ["href", "external", "children", "target", "rel", "className", "withoutStyle"];
|
|
674
674
|
var propTypes$F = {
|
|
675
675
|
href: PropTypes$1.string,
|
|
676
676
|
external: PropTypes$1.bool,
|
|
@@ -698,7 +698,7 @@ var Link = function Link(_ref) {
|
|
|
698
698
|
rel = _ref.rel,
|
|
699
699
|
className = _ref.className,
|
|
700
700
|
withoutStyle = _ref.withoutStyle,
|
|
701
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
701
|
+
props = _objectWithoutProperties(_ref, _excluded$7);
|
|
702
702
|
|
|
703
703
|
return external ? /*#__PURE__*/React.createElement("a", Object.assign({
|
|
704
704
|
className: classNames([className, _defineProperty({}, styles$t.withoutStyle, withoutStyle)]),
|
|
@@ -714,7 +714,7 @@ var Link = function Link(_ref) {
|
|
|
714
714
|
Link.propTypes = propTypes$F;
|
|
715
715
|
Link.defaultProps = defaultProps$F;
|
|
716
716
|
|
|
717
|
-
var _excluded$
|
|
717
|
+
var _excluded$6 = ["label", "className"];
|
|
718
718
|
var propTypes$E = {
|
|
719
719
|
href: PropTypes$1.string,
|
|
720
720
|
header: PropTypes$1.node,
|
|
@@ -802,7 +802,7 @@ var Card = function Card(_ref) {
|
|
|
802
802
|
var label = _ref2.label,
|
|
803
803
|
_ref2$className = _ref2.className,
|
|
804
804
|
linkClassName = _ref2$className === void 0 ? null : _ref2$className,
|
|
805
|
-
linkProps = _objectWithoutProperties(_ref2, _excluded$
|
|
805
|
+
linkProps = _objectWithoutProperties(_ref2, _excluded$6);
|
|
806
806
|
|
|
807
807
|
return /*#__PURE__*/React.createElement(Link, Object.assign({
|
|
808
808
|
key: "link-".concat(label, "-").concat(index),
|
|
@@ -943,7 +943,7 @@ Spinner.defaultProps = defaultProps$D;
|
|
|
943
943
|
|
|
944
944
|
var styles$s = {};
|
|
945
945
|
|
|
946
|
-
var _excluded$
|
|
946
|
+
var _excluded$5 = ["description", "loading", "children", "className"];
|
|
947
947
|
var propTypes$C = {
|
|
948
948
|
description: PropTypes$1.node,
|
|
949
949
|
loading: PropTypes$1.bool,
|
|
@@ -962,7 +962,7 @@ var FormPanel = function FormPanel(_ref) {
|
|
|
962
962
|
loading = _ref.loading,
|
|
963
963
|
children = _ref.children,
|
|
964
964
|
className = _ref.className,
|
|
965
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
965
|
+
props = _objectWithoutProperties(_ref, _excluded$5);
|
|
966
966
|
|
|
967
967
|
return /*#__PURE__*/React.createElement(Card, Object.assign({
|
|
968
968
|
className: classNames([styles$s.container, _defineProperty({}, className, className !== null)])
|
|
@@ -1035,7 +1035,7 @@ var Breadcrumb = function Breadcrumb(_ref) {
|
|
|
1035
1035
|
Breadcrumb.propTypes = propTypes$B;
|
|
1036
1036
|
Breadcrumb.defaultProps = defaultProps$B;
|
|
1037
1037
|
|
|
1038
|
-
var _excluded$
|
|
1038
|
+
var _excluded$4 = ["type", "className", "label", "children", "onClick", "active"];
|
|
1039
1039
|
var propTypes$A = {
|
|
1040
1040
|
items: PropTypes.menuItems,
|
|
1041
1041
|
children: PropTypes$1.node,
|
|
@@ -1108,7 +1108,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
1108
1108
|
customOnClick = _it$onClick === void 0 ? null : _it$onClick,
|
|
1109
1109
|
_it$active = it.active,
|
|
1110
1110
|
active = _it$active === void 0 ? false : _it$active,
|
|
1111
|
-
itemProps = _objectWithoutProperties(it, _excluded$
|
|
1111
|
+
itemProps = _objectWithoutProperties(it, _excluded$4);
|
|
1112
1112
|
|
|
1113
1113
|
var ItemComponent = 'div';
|
|
1114
1114
|
|
|
@@ -1147,7 +1147,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
1147
1147
|
Dropdown.propTypes = propTypes$A;
|
|
1148
1148
|
Dropdown.defaultProps = defaultProps$A;
|
|
1149
1149
|
|
|
1150
|
-
var _excluded$
|
|
1150
|
+
var _excluded$3 = ["id", "className", "linkClassName", "href", "label", "external", "items", "dropdown", "active", "onClick"];
|
|
1151
1151
|
var propTypes$z = {
|
|
1152
1152
|
items: PropTypes.menuItems,
|
|
1153
1153
|
tagName: PropTypes$1.string,
|
|
@@ -1237,7 +1237,7 @@ var Menu = function Menu(_ref) {
|
|
|
1237
1237
|
active = _it$active === void 0 ? false : _it$active,
|
|
1238
1238
|
_it$onClick = it.onClick,
|
|
1239
1239
|
customOnClick = _it$onClick === void 0 ? null : _it$onClick,
|
|
1240
|
-
itemProps = _objectWithoutProperties(it, _excluded$
|
|
1240
|
+
itemProps = _objectWithoutProperties(it, _excluded$3);
|
|
1241
1241
|
|
|
1242
1242
|
var onClickItem = dropdown !== null ? function (e) {
|
|
1243
1243
|
e.preventDefault();
|
|
@@ -2181,7 +2181,7 @@ var Detector = function Detector(_ref) {
|
|
|
2181
2181
|
Detector.propTypes = propTypes$j;
|
|
2182
2182
|
Detector.defaultProps = defaultProps$j;
|
|
2183
2183
|
|
|
2184
|
-
var styles$h = {"container":"micromag-core-partials-placeholder-block-container","
|
|
2184
|
+
var styles$h = {"container":"micromag-core-partials-placeholder-block-container","outline":"micromag-core-partials-placeholder-block-outline","withInvertedColors":"micromag-core-partials-placeholder-block-withInvertedColors","box":"micromag-core-partials-placeholder-block-box"};
|
|
2185
2185
|
|
|
2186
2186
|
var propTypes$i = {
|
|
2187
2187
|
width: PropTypes$1.oneOfType([PropTypes$1.number, PropTypes$1.string]),
|
|
@@ -2189,7 +2189,8 @@ var propTypes$i = {
|
|
|
2189
2189
|
outline: PropTypes$1.bool,
|
|
2190
2190
|
className: PropTypes$1.string,
|
|
2191
2191
|
boxClassName: PropTypes$1.string,
|
|
2192
|
-
children: PropTypes$1.node
|
|
2192
|
+
children: PropTypes$1.node,
|
|
2193
|
+
withInvertedColors: PropTypes$1.bool
|
|
2193
2194
|
};
|
|
2194
2195
|
var defaultProps$i = {
|
|
2195
2196
|
width: '100%',
|
|
@@ -2197,7 +2198,8 @@ var defaultProps$i = {
|
|
|
2197
2198
|
outline: false,
|
|
2198
2199
|
className: null,
|
|
2199
2200
|
boxClassName: null,
|
|
2200
|
-
children: null
|
|
2201
|
+
children: null,
|
|
2202
|
+
withInvertedColors: true
|
|
2201
2203
|
};
|
|
2202
2204
|
|
|
2203
2205
|
var PlaceholderBlock = function PlaceholderBlock(_ref) {
|
|
@@ -2208,9 +2210,10 @@ var PlaceholderBlock = function PlaceholderBlock(_ref) {
|
|
|
2208
2210
|
outline = _ref.outline,
|
|
2209
2211
|
className = _ref.className,
|
|
2210
2212
|
boxClassName = _ref.boxClassName,
|
|
2213
|
+
withInvertedColors = _ref.withInvertedColors,
|
|
2211
2214
|
children = _ref.children;
|
|
2212
2215
|
return /*#__PURE__*/React.createElement("div", {
|
|
2213
|
-
className: classNames([styles$h.container, (_ref2 = {}, _defineProperty(_ref2, className, className !== null), _defineProperty(_ref2, styles$h.outline, outline), _ref2)])
|
|
2216
|
+
className: classNames([styles$h.container, (_ref2 = {}, _defineProperty(_ref2, className, className !== null), _defineProperty(_ref2, styles$h.outline, outline), _defineProperty(_ref2, styles$h.withInvertedColors, withInvertedColors), _ref2)])
|
|
2214
2217
|
}, /*#__PURE__*/React.createElement("div", {
|
|
2215
2218
|
className: classNames([styles$h.box, _defineProperty({}, boxClassName, boxClassName !== null)]),
|
|
2216
2219
|
style: {
|
|
@@ -3268,7 +3271,7 @@ var Audio = function Audio(_ref) {
|
|
|
3268
3271
|
}));
|
|
3269
3272
|
};
|
|
3270
3273
|
|
|
3271
|
-
var styles$c = {"container":"micromag-core-partials-placeholder-text-container","line":"micromag-core-partials-placeholder-text-line"};
|
|
3274
|
+
var styles$c = {"container":"micromag-core-partials-placeholder-text-container","withInvertedColors":"micromag-core-partials-placeholder-text-withInvertedColors","line":"micromag-core-partials-placeholder-text-line"};
|
|
3272
3275
|
|
|
3273
3276
|
var propTypes$b = {
|
|
3274
3277
|
lines: PropTypes$1.number,
|
|
@@ -3276,7 +3279,8 @@ var propTypes$b = {
|
|
|
3276
3279
|
width: PropTypes$1.oneOfType([PropTypes$1.number, PropTypes$1.string]),
|
|
3277
3280
|
height: PropTypes$1.oneOfType([PropTypes$1.number, PropTypes$1.string]),
|
|
3278
3281
|
fontSize: PropTypes$1.number,
|
|
3279
|
-
className: PropTypes$1.string
|
|
3282
|
+
className: PropTypes$1.string,
|
|
3283
|
+
withInvertedColors: PropTypes$1.bool
|
|
3280
3284
|
};
|
|
3281
3285
|
var defaultProps$b = {
|
|
3282
3286
|
lines: 1,
|
|
@@ -3284,20 +3288,24 @@ var defaultProps$b = {
|
|
|
3284
3288
|
width: '100%',
|
|
3285
3289
|
height: null,
|
|
3286
3290
|
fontSize: 16,
|
|
3287
|
-
className: null
|
|
3291
|
+
className: null,
|
|
3292
|
+
withInvertedColors: true
|
|
3288
3293
|
};
|
|
3289
3294
|
|
|
3290
3295
|
var PlaceholderText = function PlaceholderText(_ref) {
|
|
3296
|
+
var _ref2;
|
|
3297
|
+
|
|
3291
3298
|
var lines = _ref.lines,
|
|
3292
3299
|
lineMargin = _ref.lineMargin,
|
|
3293
3300
|
width = _ref.width,
|
|
3294
3301
|
height = _ref.height,
|
|
3295
3302
|
fontSize = _ref.fontSize,
|
|
3296
|
-
className = _ref.className
|
|
3303
|
+
className = _ref.className,
|
|
3304
|
+
withInvertedColors = _ref.withInvertedColors;
|
|
3297
3305
|
var lineHeight = height !== null && isNumber(height) ? "".concat(Math.round(height * fontSize), "px") : height;
|
|
3298
|
-
var oddWidth = isNumber(width) ? width * 0.9 : '
|
|
3306
|
+
var oddWidth = isNumber(width) ? width * 0.9 : '80%';
|
|
3299
3307
|
return /*#__PURE__*/React.createElement("div", {
|
|
3300
|
-
className: classNames([styles$c.container,
|
|
3308
|
+
className: classNames([styles$c.container, (_ref2 = {}, _defineProperty(_ref2, className, className), _defineProperty(_ref2, styles$c.withInvertedColors, withInvertedColors), _ref2)])
|
|
3301
3309
|
}, _toConsumableArray(Array(lines)).map(function (e, index) {
|
|
3302
3310
|
return /*#__PURE__*/React.createElement("div", {
|
|
3303
3311
|
key: "line-".concat(index),
|
|
@@ -3333,16 +3341,18 @@ var Button = function Button(_ref) {
|
|
|
3333
3341
|
}));
|
|
3334
3342
|
};
|
|
3335
3343
|
|
|
3336
|
-
|
|
3344
|
+
var _excluded$2 = ["width", "height", "className"];
|
|
3337
3345
|
var Image = function Image(_ref) {
|
|
3338
3346
|
var width = _ref.width,
|
|
3339
3347
|
height = _ref.height,
|
|
3340
|
-
className = _ref.className
|
|
3341
|
-
|
|
3348
|
+
className = _ref.className,
|
|
3349
|
+
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
3350
|
+
|
|
3351
|
+
return /*#__PURE__*/React.createElement(PlaceholderBlock, Object.assign({}, props, {
|
|
3342
3352
|
width: width,
|
|
3343
3353
|
height: height,
|
|
3344
3354
|
className: className
|
|
3345
|
-
}, /*#__PURE__*/React.createElement(FontAwesomeIcon, {
|
|
3355
|
+
}), /*#__PURE__*/React.createElement(FontAwesomeIcon, {
|
|
3346
3356
|
icon: faImage,
|
|
3347
3357
|
className: styles$d.icon
|
|
3348
3358
|
}));
|
|
@@ -3422,7 +3432,9 @@ var Subtitle = function Subtitle(props) {
|
|
|
3422
3432
|
/* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
|
|
3423
3433
|
|
|
3424
3434
|
var TextPlaceholder = function TextPlaceholder(props) {
|
|
3425
|
-
var _props$
|
|
3435
|
+
var _props$className = props.className,
|
|
3436
|
+
className = _props$className === void 0 ? null : _props$className,
|
|
3437
|
+
_props$height = props.height,
|
|
3426
3438
|
height = _props$height === void 0 ? 0.2 : _props$height,
|
|
3427
3439
|
_props$lines = props.lines,
|
|
3428
3440
|
lines = _props$lines === void 0 ? 4 : _props$lines,
|
|
@@ -3432,7 +3444,7 @@ var TextPlaceholder = function TextPlaceholder(props) {
|
|
|
3432
3444
|
height: height,
|
|
3433
3445
|
lines: lines,
|
|
3434
3446
|
lineMargin: lineMargin,
|
|
3435
|
-
className: classNames([
|
|
3447
|
+
className: classNames([className, styles$d.text])
|
|
3436
3448
|
}));
|
|
3437
3449
|
};
|
|
3438
3450
|
|
|
@@ -3445,11 +3457,17 @@ var Timeline = function Timeline(props) {
|
|
|
3445
3457
|
|
|
3446
3458
|
/* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
|
|
3447
3459
|
var Title$1 = function Title(props) {
|
|
3460
|
+
var _props$height = props.height,
|
|
3461
|
+
height = _props$height === void 0 ? 0.5 : _props$height,
|
|
3462
|
+
_props$lines = props.lines,
|
|
3463
|
+
lines = _props$lines === void 0 ? 2 : _props$lines,
|
|
3464
|
+
_props$lineMargin = props.lineMargin,
|
|
3465
|
+
lineMargin = _props$lineMargin === void 0 ? 2 : _props$lineMargin;
|
|
3448
3466
|
return /*#__PURE__*/React.createElement(PlaceholderText, Object.assign({}, props, {
|
|
3449
3467
|
className: classNames([props.className, styles$d.title]),
|
|
3450
|
-
height:
|
|
3451
|
-
lines:
|
|
3452
|
-
lineMargin:
|
|
3468
|
+
height: height,
|
|
3469
|
+
lines: lines,
|
|
3470
|
+
lineMargin: lineMargin
|
|
3453
3471
|
}));
|
|
3454
3472
|
};
|
|
3455
3473
|
|
|
@@ -3634,6 +3652,7 @@ var propTypes$9 = {
|
|
|
3634
3652
|
screen: PropTypes.storyComponent.isRequired,
|
|
3635
3653
|
renderContext: PropTypes.renderContext,
|
|
3636
3654
|
screenState: PropTypes$1.string,
|
|
3655
|
+
index: PropTypes$1.number,
|
|
3637
3656
|
active: PropTypes$1.bool,
|
|
3638
3657
|
current: PropTypes$1.bool,
|
|
3639
3658
|
component: PropTypes$1.node,
|
|
@@ -3645,6 +3664,7 @@ var defaultProps$9 = {
|
|
|
3645
3664
|
active: true,
|
|
3646
3665
|
renderContext: null,
|
|
3647
3666
|
screenState: null,
|
|
3667
|
+
index: null,
|
|
3648
3668
|
current: false,
|
|
3649
3669
|
component: null,
|
|
3650
3670
|
components: null,
|
|
@@ -3656,6 +3676,7 @@ var Screen = function Screen(_ref) {
|
|
|
3656
3676
|
var screen = _ref.screen,
|
|
3657
3677
|
renderContext = _ref.renderContext,
|
|
3658
3678
|
screenState = _ref.screenState,
|
|
3679
|
+
index = _ref.index,
|
|
3659
3680
|
active = _ref.active,
|
|
3660
3681
|
current = _ref.current,
|
|
3661
3682
|
components = _ref.components,
|
|
@@ -3669,7 +3690,8 @@ var Screen = function Screen(_ref) {
|
|
|
3669
3690
|
|
|
3670
3691
|
var CustomScreenComponent = components !== null ? getComponentFromName(type, components) || null : null;
|
|
3671
3692
|
var ContextScreenComponent = useScreenComponent(type);
|
|
3672
|
-
var ScreenComponent = CustomScreenComponent || ContextScreenComponent;
|
|
3693
|
+
var ScreenComponent = CustomScreenComponent || ContextScreenComponent; // Comment
|
|
3694
|
+
|
|
3673
3695
|
return /*#__PURE__*/React.createElement(ScreenProvider, {
|
|
3674
3696
|
data: screen,
|
|
3675
3697
|
renderContext: renderContext,
|
|
@@ -3677,6 +3699,7 @@ var Screen = function Screen(_ref) {
|
|
|
3677
3699
|
}, ScreenComponent !== null ? /*#__PURE__*/React.createElement("div", {
|
|
3678
3700
|
className: classNames([styles$8.container, _defineProperty({}, className, className !== null)])
|
|
3679
3701
|
}, /*#__PURE__*/React.createElement(ScreenComponent, Object.assign({}, screen, {
|
|
3702
|
+
index: index,
|
|
3680
3703
|
active: active,
|
|
3681
3704
|
current: current,
|
|
3682
3705
|
mediaRef: mediaRef
|