@micromag/core 0.3.252 → 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.
@@ -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;mix-blend-mode:difference}.micromag-core-partials-placeholder-block-container .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:hsla(0,0%,100%,.6)}.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-outline .micromag-core-partials-placeholder-block-box{background-color:rgba(0,0,0,0)}
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;mix-blend-mode:difference}.micromag-core-partials-placeholder-text-container .micromag-core-partials-placeholder-text-line{height:16px;background-color:hsla(0,0%,100%,.6)}
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+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlI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A+53iDF4BJZk+PPjd/F+mf96wBZ0yesl/O6/mGwpOVNwI17W9/f57ToKgmQ9W14aeQUL+QrXdh1LeuscFHHjhZJE8JOC5S1eTc/pga1IWxJTSxhj9QwHko9akzYknZieXBvc/NgUNickzVsgLbbPMIl36iwoYklB1n7jVq0chl3OJUqbA5NLM30HHCZz1dYy9sGDXYEJUEzFzZsyLYyJmjzUo+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$a = ["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"];
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$a);
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$9 = ["className", "onClick", "theme"];
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$9);
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$8 = ["className"];
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$8);
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$7 = ["type"],
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$7);
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$6 = ["href", "external", "children", "target", "rel", "className", "withoutStyle"];
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$6);
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$5 = ["label", "className"];
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$5);
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$4 = ["description", "loading", "children", "className"];
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$4);
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$3 = ["type", "className", "label", "children", "onClick", "active"];
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$3);
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$2 = ["id", "className", "linkClassName", "href", "label", "external", "items", "dropdown", "active", "onClick"];
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$2);
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","box":"micromag-core-partials-placeholder-block-box","outline":"micromag-core-partials-placeholder-block-outline"};
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 : '90%';
3306
+ var oddWidth = isNumber(width) ? width * 0.9 : '80%';
3299
3307
  return /*#__PURE__*/React.createElement("div", {
3300
- className: classNames([styles$c.container, _defineProperty({}, className, className)])
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
- /* eslint-disable react/prop-types */
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
- return /*#__PURE__*/React.createElement(PlaceholderBlock, {
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$height = props.height,
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([props.className, styles$d.text])
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: 0.5,
3451
- lines: 2,
3452
- lineMargin: 4
3468
+ height: height,
3469
+ lines: lines,
3470
+ lineMargin: lineMargin
3453
3471
  }));
3454
3472
  };
3455
3473
 
package/es/utils.js CHANGED
@@ -638,6 +638,38 @@ function getShadowCoords(angle, distance) {
638
638
  };
639
639
  }
640
640
 
641
+ // import isObject from 'lodash/isObject';
642
+ function getJustifyContent(horizontal) {
643
+ if (horizontal === 'left') return 'flex-start';
644
+ if (horizontal === 'middle') return 'center';
645
+ if (horizontal === 'right') return 'flex-end';
646
+ return null;
647
+ }
648
+
649
+ function getAlignItems(vertical) {
650
+ if (vertical === 'top') return 'flex-start';
651
+ if (vertical === 'middle') return 'center';
652
+ if (vertical === 'bottom') return 'flex-end';
653
+ return null;
654
+ }
655
+
656
+ var getStyleFromAlignment = function getStyleFromAlignment(value) {
657
+ if (value === null) {
658
+ return null;
659
+ }
660
+
661
+ var _value$horizontal = value.horizontal,
662
+ horizontal = _value$horizontal === void 0 ? null : _value$horizontal,
663
+ _value$vertical = value.vertical,
664
+ vertical = _value$vertical === void 0 ? null : _value$vertical;
665
+ var justifyContent = getJustifyContent(horizontal);
666
+ var alignItems = getAlignItems(vertical);
667
+ return {
668
+ justifyContent: justifyContent,
669
+ alignItems: alignItems
670
+ };
671
+ };
672
+
641
673
  var getStyleFromColor = function getStyleFromColor() {
642
674
  var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
643
675
  var property = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'backgroundColor';
@@ -1109,4 +1141,4 @@ var getContrastingColor = function getContrastingColor(backgroundColor) {
1109
1141
  return tinycolor(color).spin(30).toString();
1110
1142
  };
1111
1143
 
1112
- export { convertStyleToString, copyToClipboard, createNullableOnChange, createUseEvent, easings, getColorAsString, getComponentFromName, getContrastingColor, getDeviceScreens, getDisplayName, getFieldByName, getFieldFromPath, getFileName, getFontFamily as getFontFamilyFromFont, getGridLayoutName, largestRemainderRound as getLargestRemainderRound, getLayersFromBackground, getLayoutParts, getMediaFilesAsArray, getOptimalImageUrl, getScreenExtraField, getSecondsFromTime, getShadowCoords, getStyleFromBorder, getStyleFromBox, getStyleFromColor, getStyleFromContainer, getStyleFromHighlight, getStyleFromImage, getStyleFromLink, getStyleFromMargin, getStyleFromText, getVideoSupportedMimes, isImageFilled, isIos, isTextFilled$1 as isLabelFilled, isMessage, isTextFilled, isValidUrl, schemaId, setValue as setFieldValue, slug, unique, validateFields };
1144
+ export { convertStyleToString, copyToClipboard, createNullableOnChange, createUseEvent, easings, getColorAsString, getComponentFromName, getContrastingColor, getDeviceScreens, getDisplayName, getFieldByName, getFieldFromPath, getFileName, getFontFamily as getFontFamilyFromFont, getGridLayoutName, largestRemainderRound as getLargestRemainderRound, getLayersFromBackground, getLayoutParts, getMediaFilesAsArray, getOptimalImageUrl, getScreenExtraField, getSecondsFromTime, getShadowCoords, getStyleFromAlignment, getStyleFromBorder, getStyleFromBox, getStyleFromColor, getStyleFromContainer, getStyleFromHighlight, getStyleFromImage, getStyleFromLink, getStyleFromMargin, getStyleFromText, getVideoSupportedMimes, isImageFilled, isIos, isTextFilled$1 as isLabelFilled, isMessage, isTextFilled, isValidUrl, schemaId, setValue as setFieldValue, slug, unique, validateFields };
package/lib/components.js CHANGED
@@ -111,7 +111,7 @@ Label.defaultProps = defaultProps$L;
111
111
 
112
112
  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"};
113
113
 
114
- var _excluded$a = ["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"];
114
+ 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"];
115
115
  var propTypes$K = {
116
116
  type: PropTypes__default["default"].string,
117
117
  theme: core.PropTypes.buttonTheme,
@@ -210,7 +210,7 @@ var Button$1 = function Button(_ref) {
210
210
  iconClassName = _ref.iconClassName,
211
211
  labelClassName = _ref.labelClassName,
212
212
  refButton = _ref.refButton,
213
- props = _objectWithoutProperties__default["default"](_ref, _excluded$a);
213
+ props = _objectWithoutProperties__default["default"](_ref, _excluded$b);
214
214
 
215
215
  var finalLabel = label || children;
216
216
  var text = finalLabel !== null ? /*#__PURE__*/React__default["default"].createElement(Label, null, finalLabel) : null;
@@ -269,7 +269,7 @@ Button$1.defaultProps = defaultProps$K;
269
269
 
270
270
  var styles$v = {};
271
271
 
272
- var _excluded$9 = ["className", "onClick", "theme"];
272
+ var _excluded$a = ["className", "onClick", "theme"];
273
273
  var propTypes$J = {
274
274
  buttons: core.PropTypes.buttons,
275
275
  size: core.PropTypes.buttonSize,
@@ -309,7 +309,7 @@ var Buttons = function Buttons(_ref) {
309
309
  _onClick = _button$onClick === void 0 ? null : _button$onClick,
310
310
  _button$theme = button.theme,
311
311
  buttonTheme = _button$theme === void 0 ? null : _button$theme,
312
- buttonProps = _objectWithoutProperties__default["default"](button, _excluded$9);
312
+ buttonProps = _objectWithoutProperties__default["default"](button, _excluded$a);
313
313
 
314
314
  var fixedProps = {
315
315
  key: "button-".concat(index),
@@ -332,7 +332,7 @@ var Buttons = function Buttons(_ref) {
332
332
  Buttons.propTypes = propTypes$J;
333
333
  Buttons.defaultProps = defaultProps$J;
334
334
 
335
- var _excluded$8 = ["className"];
335
+ var _excluded$9 = ["className"];
336
336
  var propTypes$I = {
337
337
  className: PropTypes__default["default"].string
338
338
  };
@@ -342,7 +342,7 @@ var defaultProps$I = {
342
342
 
343
343
  var BackButton = function BackButton(_ref) {
344
344
  var className = _ref.className,
345
- props = _objectWithoutProperties__default["default"](_ref, _excluded$8);
345
+ props = _objectWithoutProperties__default["default"](_ref, _excluded$9);
346
346
 
347
347
  return /*#__PURE__*/React__default["default"].createElement(Button$1, Object.assign({
348
348
  className: classNames__default["default"](['px-2', _defineProperty__default["default"]({}, className, className)]),
@@ -359,7 +359,7 @@ BackButton.defaultProps = defaultProps$I;
359
359
 
360
360
  var styles$u = {"actions":"micromag-core-forms-form-actions","left":"micromag-core-forms-form-left","right":"micromag-core-forms-form-right"};
361
361
 
362
- var _excluded$7 = ["type"],
362
+ var _excluded$8 = ["type"],
363
363
  _excluded2 = ["component", "id", "settings"];
364
364
  var propTypes$H = {
365
365
  name: PropTypes__default["default"].string,
@@ -403,7 +403,7 @@ var FieldForm = function FieldForm(_ref) {
403
403
  var _ref2 = field || {},
404
404
  _ref2$type = _ref2.type,
405
405
  type = _ref2$type === void 0 ? null : _ref2$type,
406
- fieldProps = _objectWithoutProperties__default["default"](_ref2, _excluded$7);
406
+ fieldProps = _objectWithoutProperties__default["default"](_ref2, _excluded$8);
407
407
 
408
408
  var fieldDefinition = fieldsManager.getDefinition(type) || null;
409
409
 
@@ -711,7 +711,7 @@ Form.defaultProps = defaultProps$G;
711
711
 
712
712
  var styles$t = {"withoutStyle":"micromag-core-partials-link-withoutStyle"};
713
713
 
714
- var _excluded$6 = ["href", "external", "children", "target", "rel", "className", "withoutStyle"];
714
+ var _excluded$7 = ["href", "external", "children", "target", "rel", "className", "withoutStyle"];
715
715
  var propTypes$F = {
716
716
  href: PropTypes__default["default"].string,
717
717
  external: PropTypes__default["default"].bool,
@@ -739,7 +739,7 @@ var Link = function Link(_ref) {
739
739
  rel = _ref.rel,
740
740
  className = _ref.className,
741
741
  withoutStyle = _ref.withoutStyle,
742
- props = _objectWithoutProperties__default["default"](_ref, _excluded$6);
742
+ props = _objectWithoutProperties__default["default"](_ref, _excluded$7);
743
743
 
744
744
  return external ? /*#__PURE__*/React__default["default"].createElement("a", Object.assign({
745
745
  className: classNames__default["default"]([className, _defineProperty__default["default"]({}, styles$t.withoutStyle, withoutStyle)]),
@@ -755,7 +755,7 @@ var Link = function Link(_ref) {
755
755
  Link.propTypes = propTypes$F;
756
756
  Link.defaultProps = defaultProps$F;
757
757
 
758
- var _excluded$5 = ["label", "className"];
758
+ var _excluded$6 = ["label", "className"];
759
759
  var propTypes$E = {
760
760
  href: PropTypes__default["default"].string,
761
761
  header: PropTypes__default["default"].node,
@@ -843,7 +843,7 @@ var Card = function Card(_ref) {
843
843
  var label = _ref2.label,
844
844
  _ref2$className = _ref2.className,
845
845
  linkClassName = _ref2$className === void 0 ? null : _ref2$className,
846
- linkProps = _objectWithoutProperties__default["default"](_ref2, _excluded$5);
846
+ linkProps = _objectWithoutProperties__default["default"](_ref2, _excluded$6);
847
847
 
848
848
  return /*#__PURE__*/React__default["default"].createElement(Link, Object.assign({
849
849
  key: "link-".concat(label, "-").concat(index),
@@ -984,7 +984,7 @@ Spinner.defaultProps = defaultProps$D;
984
984
 
985
985
  var styles$s = {};
986
986
 
987
- var _excluded$4 = ["description", "loading", "children", "className"];
987
+ var _excluded$5 = ["description", "loading", "children", "className"];
988
988
  var propTypes$C = {
989
989
  description: PropTypes__default["default"].node,
990
990
  loading: PropTypes__default["default"].bool,
@@ -1003,7 +1003,7 @@ var FormPanel = function FormPanel(_ref) {
1003
1003
  loading = _ref.loading,
1004
1004
  children = _ref.children,
1005
1005
  className = _ref.className,
1006
- props = _objectWithoutProperties__default["default"](_ref, _excluded$4);
1006
+ props = _objectWithoutProperties__default["default"](_ref, _excluded$5);
1007
1007
 
1008
1008
  return /*#__PURE__*/React__default["default"].createElement(Card, Object.assign({
1009
1009
  className: classNames__default["default"]([styles$s.container, _defineProperty__default["default"]({}, className, className !== null)])
@@ -1076,7 +1076,7 @@ var Breadcrumb = function Breadcrumb(_ref) {
1076
1076
  Breadcrumb.propTypes = propTypes$B;
1077
1077
  Breadcrumb.defaultProps = defaultProps$B;
1078
1078
 
1079
- var _excluded$3 = ["type", "className", "label", "children", "onClick", "active"];
1079
+ var _excluded$4 = ["type", "className", "label", "children", "onClick", "active"];
1080
1080
  var propTypes$A = {
1081
1081
  items: core.PropTypes.menuItems,
1082
1082
  children: PropTypes__default["default"].node,
@@ -1149,7 +1149,7 @@ var Dropdown = function Dropdown(_ref) {
1149
1149
  customOnClick = _it$onClick === void 0 ? null : _it$onClick,
1150
1150
  _it$active = it.active,
1151
1151
  active = _it$active === void 0 ? false : _it$active,
1152
- itemProps = _objectWithoutProperties__default["default"](it, _excluded$3);
1152
+ itemProps = _objectWithoutProperties__default["default"](it, _excluded$4);
1153
1153
 
1154
1154
  var ItemComponent = 'div';
1155
1155
 
@@ -1188,7 +1188,7 @@ var Dropdown = function Dropdown(_ref) {
1188
1188
  Dropdown.propTypes = propTypes$A;
1189
1189
  Dropdown.defaultProps = defaultProps$A;
1190
1190
 
1191
- var _excluded$2 = ["id", "className", "linkClassName", "href", "label", "external", "items", "dropdown", "active", "onClick"];
1191
+ var _excluded$3 = ["id", "className", "linkClassName", "href", "label", "external", "items", "dropdown", "active", "onClick"];
1192
1192
  var propTypes$z = {
1193
1193
  items: core.PropTypes.menuItems,
1194
1194
  tagName: PropTypes__default["default"].string,
@@ -1278,7 +1278,7 @@ var Menu = function Menu(_ref) {
1278
1278
  active = _it$active === void 0 ? false : _it$active,
1279
1279
  _it$onClick = it.onClick,
1280
1280
  customOnClick = _it$onClick === void 0 ? null : _it$onClick,
1281
- itemProps = _objectWithoutProperties__default["default"](it, _excluded$2);
1281
+ itemProps = _objectWithoutProperties__default["default"](it, _excluded$3);
1282
1282
 
1283
1283
  var onClickItem = dropdown !== null ? function (e) {
1284
1284
  e.preventDefault();
@@ -2222,7 +2222,7 @@ var Detector = function Detector(_ref) {
2222
2222
  Detector.propTypes = propTypes$j;
2223
2223
  Detector.defaultProps = defaultProps$j;
2224
2224
 
2225
- var styles$h = {"container":"micromag-core-partials-placeholder-block-container","box":"micromag-core-partials-placeholder-block-box","outline":"micromag-core-partials-placeholder-block-outline"};
2225
+ 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"};
2226
2226
 
2227
2227
  var propTypes$i = {
2228
2228
  width: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string]),
@@ -2230,7 +2230,8 @@ var propTypes$i = {
2230
2230
  outline: PropTypes__default["default"].bool,
2231
2231
  className: PropTypes__default["default"].string,
2232
2232
  boxClassName: PropTypes__default["default"].string,
2233
- children: PropTypes__default["default"].node
2233
+ children: PropTypes__default["default"].node,
2234
+ withInvertedColors: PropTypes__default["default"].bool
2234
2235
  };
2235
2236
  var defaultProps$i = {
2236
2237
  width: '100%',
@@ -2238,7 +2239,8 @@ var defaultProps$i = {
2238
2239
  outline: false,
2239
2240
  className: null,
2240
2241
  boxClassName: null,
2241
- children: null
2242
+ children: null,
2243
+ withInvertedColors: true
2242
2244
  };
2243
2245
 
2244
2246
  var PlaceholderBlock = function PlaceholderBlock(_ref) {
@@ -2249,9 +2251,10 @@ var PlaceholderBlock = function PlaceholderBlock(_ref) {
2249
2251
  outline = _ref.outline,
2250
2252
  className = _ref.className,
2251
2253
  boxClassName = _ref.boxClassName,
2254
+ withInvertedColors = _ref.withInvertedColors,
2252
2255
  children = _ref.children;
2253
2256
  return /*#__PURE__*/React__default["default"].createElement("div", {
2254
- className: classNames__default["default"]([styles$h.container, (_ref2 = {}, _defineProperty__default["default"](_ref2, className, className !== null), _defineProperty__default["default"](_ref2, styles$h.outline, outline), _ref2)])
2257
+ className: classNames__default["default"]([styles$h.container, (_ref2 = {}, _defineProperty__default["default"](_ref2, className, className !== null), _defineProperty__default["default"](_ref2, styles$h.outline, outline), _defineProperty__default["default"](_ref2, styles$h.withInvertedColors, withInvertedColors), _ref2)])
2255
2258
  }, /*#__PURE__*/React__default["default"].createElement("div", {
2256
2259
  className: classNames__default["default"]([styles$h.box, _defineProperty__default["default"]({}, boxClassName, boxClassName !== null)]),
2257
2260
  style: {
@@ -3309,7 +3312,7 @@ var Audio = function Audio(_ref) {
3309
3312
  }));
3310
3313
  };
3311
3314
 
3312
- var styles$c = {"container":"micromag-core-partials-placeholder-text-container","line":"micromag-core-partials-placeholder-text-line"};
3315
+ var styles$c = {"container":"micromag-core-partials-placeholder-text-container","withInvertedColors":"micromag-core-partials-placeholder-text-withInvertedColors","line":"micromag-core-partials-placeholder-text-line"};
3313
3316
 
3314
3317
  var propTypes$b = {
3315
3318
  lines: PropTypes__default["default"].number,
@@ -3317,7 +3320,8 @@ var propTypes$b = {
3317
3320
  width: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string]),
3318
3321
  height: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string]),
3319
3322
  fontSize: PropTypes__default["default"].number,
3320
- className: PropTypes__default["default"].string
3323
+ className: PropTypes__default["default"].string,
3324
+ withInvertedColors: PropTypes__default["default"].bool
3321
3325
  };
3322
3326
  var defaultProps$b = {
3323
3327
  lines: 1,
@@ -3325,20 +3329,24 @@ var defaultProps$b = {
3325
3329
  width: '100%',
3326
3330
  height: null,
3327
3331
  fontSize: 16,
3328
- className: null
3332
+ className: null,
3333
+ withInvertedColors: true
3329
3334
  };
3330
3335
 
3331
3336
  var PlaceholderText = function PlaceholderText(_ref) {
3337
+ var _ref2;
3338
+
3332
3339
  var lines = _ref.lines,
3333
3340
  lineMargin = _ref.lineMargin,
3334
3341
  width = _ref.width,
3335
3342
  height = _ref.height,
3336
3343
  fontSize = _ref.fontSize,
3337
- className = _ref.className;
3344
+ className = _ref.className,
3345
+ withInvertedColors = _ref.withInvertedColors;
3338
3346
  var lineHeight = height !== null && isNumber__default["default"](height) ? "".concat(Math.round(height * fontSize), "px") : height;
3339
- var oddWidth = isNumber__default["default"](width) ? width * 0.9 : '90%';
3347
+ var oddWidth = isNumber__default["default"](width) ? width * 0.9 : '80%';
3340
3348
  return /*#__PURE__*/React__default["default"].createElement("div", {
3341
- className: classNames__default["default"]([styles$c.container, _defineProperty__default["default"]({}, className, className)])
3349
+ className: classNames__default["default"]([styles$c.container, (_ref2 = {}, _defineProperty__default["default"](_ref2, className, className), _defineProperty__default["default"](_ref2, styles$c.withInvertedColors, withInvertedColors), _ref2)])
3342
3350
  }, _toConsumableArray__default["default"](Array(lines)).map(function (e, index) {
3343
3351
  return /*#__PURE__*/React__default["default"].createElement("div", {
3344
3352
  key: "line-".concat(index),
@@ -3374,16 +3382,18 @@ var Button = function Button(_ref) {
3374
3382
  }));
3375
3383
  };
3376
3384
 
3377
- /* eslint-disable react/prop-types */
3385
+ var _excluded$2 = ["width", "height", "className"];
3378
3386
  var Image = function Image(_ref) {
3379
3387
  var width = _ref.width,
3380
3388
  height = _ref.height,
3381
- className = _ref.className;
3382
- return /*#__PURE__*/React__default["default"].createElement(PlaceholderBlock, {
3389
+ className = _ref.className,
3390
+ props = _objectWithoutProperties__default["default"](_ref, _excluded$2);
3391
+
3392
+ return /*#__PURE__*/React__default["default"].createElement(PlaceholderBlock, Object.assign({}, props, {
3383
3393
  width: width,
3384
3394
  height: height,
3385
3395
  className: className
3386
- }, /*#__PURE__*/React__default["default"].createElement(reactFontawesome.FontAwesomeIcon, {
3396
+ }), /*#__PURE__*/React__default["default"].createElement(reactFontawesome.FontAwesomeIcon, {
3387
3397
  icon: faImage.faImage,
3388
3398
  className: styles$d.icon
3389
3399
  }));
@@ -3463,7 +3473,9 @@ var Subtitle = function Subtitle(props) {
3463
3473
  /* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
3464
3474
 
3465
3475
  var TextPlaceholder = function TextPlaceholder(props) {
3466
- var _props$height = props.height,
3476
+ var _props$className = props.className,
3477
+ className = _props$className === void 0 ? null : _props$className,
3478
+ _props$height = props.height,
3467
3479
  height = _props$height === void 0 ? 0.2 : _props$height,
3468
3480
  _props$lines = props.lines,
3469
3481
  lines = _props$lines === void 0 ? 4 : _props$lines,
@@ -3473,7 +3485,7 @@ var TextPlaceholder = function TextPlaceholder(props) {
3473
3485
  height: height,
3474
3486
  lines: lines,
3475
3487
  lineMargin: lineMargin,
3476
- className: classNames__default["default"]([props.className, styles$d.text])
3488
+ className: classNames__default["default"]([className, styles$d.text])
3477
3489
  }));
3478
3490
  };
3479
3491
 
@@ -3486,11 +3498,17 @@ var Timeline = function Timeline(props) {
3486
3498
 
3487
3499
  /* eslint-disable react/jsx-props-no-spreading, react/destructuring-assignment, react/prop-types */
3488
3500
  var Title$1 = function Title(props) {
3501
+ var _props$height = props.height,
3502
+ height = _props$height === void 0 ? 0.5 : _props$height,
3503
+ _props$lines = props.lines,
3504
+ lines = _props$lines === void 0 ? 2 : _props$lines,
3505
+ _props$lineMargin = props.lineMargin,
3506
+ lineMargin = _props$lineMargin === void 0 ? 2 : _props$lineMargin;
3489
3507
  return /*#__PURE__*/React__default["default"].createElement(PlaceholderText, Object.assign({}, props, {
3490
3508
  className: classNames__default["default"]([props.className, styles$d.title]),
3491
- height: 0.5,
3492
- lines: 2,
3493
- lineMargin: 4
3509
+ height: height,
3510
+ lines: lines,
3511
+ lineMargin: lineMargin
3494
3512
  }));
3495
3513
  };
3496
3514
 
package/lib/utils.js CHANGED
@@ -657,6 +657,38 @@ function getShadowCoords(angle, distance) {
657
657
  };
658
658
  }
659
659
 
660
+ // import isObject from 'lodash/isObject';
661
+ function getJustifyContent(horizontal) {
662
+ if (horizontal === 'left') return 'flex-start';
663
+ if (horizontal === 'middle') return 'center';
664
+ if (horizontal === 'right') return 'flex-end';
665
+ return null;
666
+ }
667
+
668
+ function getAlignItems(vertical) {
669
+ if (vertical === 'top') return 'flex-start';
670
+ if (vertical === 'middle') return 'center';
671
+ if (vertical === 'bottom') return 'flex-end';
672
+ return null;
673
+ }
674
+
675
+ var getStyleFromAlignment = function getStyleFromAlignment(value) {
676
+ if (value === null) {
677
+ return null;
678
+ }
679
+
680
+ var _value$horizontal = value.horizontal,
681
+ horizontal = _value$horizontal === void 0 ? null : _value$horizontal,
682
+ _value$vertical = value.vertical,
683
+ vertical = _value$vertical === void 0 ? null : _value$vertical;
684
+ var justifyContent = getJustifyContent(horizontal);
685
+ var alignItems = getAlignItems(vertical);
686
+ return {
687
+ justifyContent: justifyContent,
688
+ alignItems: alignItems
689
+ };
690
+ };
691
+
660
692
  var getStyleFromColor = function getStyleFromColor() {
661
693
  var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
662
694
  var property = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'backgroundColor';
@@ -1159,6 +1191,7 @@ exports.getOptimalImageUrl = getOptimalImageUrl;
1159
1191
  exports.getScreenExtraField = getScreenExtraField;
1160
1192
  exports.getSecondsFromTime = getSecondsFromTime;
1161
1193
  exports.getShadowCoords = getShadowCoords;
1194
+ exports.getStyleFromAlignment = getStyleFromAlignment;
1162
1195
  exports.getStyleFromBorder = getStyleFromBorder;
1163
1196
  exports.getStyleFromBox = getStyleFromBox;
1164
1197
  exports.getStyleFromColor = getStyleFromColor;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/core",
3
- "version": "0.3.252",
3
+ "version": "0.3.262",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -133,5 +133,5 @@
133
133
  "publishConfig": {
134
134
  "access": "public"
135
135
  },
136
- "gitHead": "67a8b8144a40086a6dfd98c9eb8c4b6b8ebb05b0"
136
+ "gitHead": "2299eaeb150cfdd14b4da321bf9089ab1e6383c2"
137
137
  }