@micromag/element-author 0.3.411 → 0.3.414

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.
@@ -1,2 +1,2 @@
1
1
  .micromag-element-author-avatar-container{display:inline-block;position:relative;width:100%;z-index:1}.micromag-element-author-avatar-container.micromag-element-author-avatar-shapeCircle .micromag-element-author-avatar-shape{background-color:#fff;background-position:top;border-radius:50%;overflow:hidden}.micromag-element-author-avatar-container .micromag-element-author-avatar-shape{background-color:#fff;background-position:50%;background-repeat:no-repeat;background-size:cover;-webkit-box-shadow:0 0 4px rgba(0,0,0,.2);box-shadow:0 0 4px rgba(0,0,0,.2);display:block;height:0;padding-bottom:100%;width:100%}
2
- .micromag-element-author-container{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;vertical-align:center}.micromag-element-author-container .micromag-element-author-image{margin-right:10px;max-width:4em}.micromag-element-author-container .micromag-element-author-link{color:currentColor;display:inline-block}.micromag-element-author-container .micromag-element-author-right{display:block}.micromag-element-author-container .micromag-element-author-collaborator,.micromag-element-author-container .micromag-element-author-name{white-space:nowrap}.micromag-element-author-container .micromag-element-author-name p{display:inline;margin:0}.micromag-element-author-container .micromag-element-author-collaborator{background-color:transparent;position:absolute}.micromag-element-author-container .micromag-element-author-collaborator .micromag-element-author-collaboratorText{font-size:inherit}.micromag-element-author-container .micromag-element-author-collaborator .micromag-element-author-collaboratorText p{display:inline}.micromag-element-author-container.micromag-element-author-isSmall{font-size:9px}.micromag-element-author-container.micromag-element-author-isSmall .micromag-element-author-name{font-size:9px;white-space:normal}.micromag-element-author-container.micromag-element-author-isSmall .micromag-element-author-image{max-width:30px}.micromag-element-author-container.micromag-element-author-withoutImage .micromag-element-author-name{margin-left:0;padding-left:0}.micromag-element-author-container.micromag-element-author-withoutImage .micromag-element-author-prefix{margin-right:0;padding-right:.4em}
2
+ .micromag-element-author-container{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;vertical-align:center}.micromag-element-author-container .micromag-element-author-image{margin-right:10px;max-width:35px}.micromag-element-author-container .micromag-element-author-link{text-decoration:none}.micromag-element-author-container .micromag-element-author-right{display:block}.micromag-element-author-container .micromag-element-author-name p{display:inline;margin:0}.micromag-element-author-container .micromag-element-author-collaborator{background-color:transparent}.micromag-element-author-container .micromag-element-author-collaborator .micromag-element-author-collaboratorText{font-size:inherit}.micromag-element-author-container .micromag-element-author-collaborator .micromag-element-author-collaboratorText p{display:inline}
package/es/index.js CHANGED
@@ -3,7 +3,6 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProper
3
3
  import classNames from 'classnames';
4
4
  import PropTypes$1 from 'prop-types';
5
5
  import React from 'react';
6
- import 'react-intl';
7
6
  import { PropTypes } from '@micromag/core';
8
7
  import { getOptimalImageUrl, pascalCase, isTextFilled } from '@micromag/core/utils';
9
8
  import Link from '@micromag/element-link';
@@ -57,9 +56,9 @@ var Avatar = function Avatar(_ref) {
57
56
  Avatar.propTypes = propTypes$1;
58
57
  Avatar.defaultProps = defaultProps$1;
59
58
 
60
- var styles = {"container":"micromag-element-author-container","image":"micromag-element-author-image","link":"micromag-element-author-link","right":"micromag-element-author-right","name":"micromag-element-author-name","collaborator":"micromag-element-author-collaborator","collaboratorText":"micromag-element-author-collaboratorText","isSmall":"micromag-element-author-isSmall","withoutImage":"micromag-element-author-withoutImage","prefix":"micromag-element-author-prefix"};
59
+ var styles = {"container":"micromag-element-author-container","image":"micromag-element-author-image","link":"micromag-element-author-link","right":"micromag-element-author-right","name":"micromag-element-author-name","collaborator":"micromag-element-author-collaborator","collaboratorText":"micromag-element-author-collaboratorText"};
61
60
 
62
- var _excluded = ["author", "withImage", "withoutLink", "isSmall", "linkUnderlineColor", "className", "backgroundClassName", "collaboratorClassName", "shouldLoad"];
61
+ var _excluded = ["author", "withImage", "withoutLink", "linkUnderlineColor", "className", "backgroundClassName", "collaboratorClassName", "shouldLoad"];
63
62
  var propTypes = {
64
63
  author: PropTypes$1.shape({
65
64
  slug: PropTypes$1.string,
@@ -70,7 +69,6 @@ var propTypes = {
70
69
  }),
71
70
  withImage: PropTypes$1.bool,
72
71
  withoutLink: PropTypes$1.bool,
73
- isSmall: PropTypes$1.bool,
74
72
  linkUnderlineColor: PropTypes$1.string,
75
73
  className: PropTypes$1.string,
76
74
  backgroundClassName: PropTypes$1.string,
@@ -81,7 +79,6 @@ var defaultProps = {
81
79
  author: null,
82
80
  withImage: true,
83
81
  withoutLink: false,
84
- isSmall: false,
85
82
  linkUnderlineColor: null,
86
83
  className: null,
87
84
  backgroundClassName: null,
@@ -89,11 +86,9 @@ var defaultProps = {
89
86
  shouldLoad: true
90
87
  };
91
88
  var Author = function Author(_ref) {
92
- var _ref4;
93
89
  var author = _ref.author,
94
90
  withImage = _ref.withImage,
95
91
  withoutLink = _ref.withoutLink,
96
- isSmall = _ref.isSmall,
97
92
  linkUnderlineColor = _ref.linkUnderlineColor,
98
93
  className = _ref.className,
99
94
  backgroundClassName = _ref.backgroundClassName,
@@ -119,7 +114,7 @@ var Author = function Author(_ref) {
119
114
  inline: true
120
115
  })) : null;
121
116
  return /*#__PURE__*/React.createElement("div", Object.assign({
122
- className: classNames([styles.container, (_ref4 = {}, _defineProperty(_ref4, styles.isSmall, isSmall), _defineProperty(_ref4, styles.withoutAvatar, withAvatar), _defineProperty(_ref4, styles.withoutImage, !withImage || image === null), _defineProperty(_ref4, className, className !== null), _ref4)])
117
+ className: classNames([styles.container, _defineProperty({}, className, className !== null)])
123
118
  }, otherProps), withAvatar ? /*#__PURE__*/React.createElement(Avatar, {
124
119
  className: styles.image,
125
120
  image: image,
package/lib/index.js CHANGED
@@ -5,7 +5,6 @@ var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProp
5
5
  var classNames = require('classnames');
6
6
  var PropTypes = require('prop-types');
7
7
  var React = require('react');
8
- require('react-intl');
9
8
  var core = require('@micromag/core');
10
9
  var utils = require('@micromag/core/utils');
11
10
  var Link = require('@micromag/element-link');
@@ -69,9 +68,9 @@ var Avatar = function Avatar(_ref) {
69
68
  Avatar.propTypes = propTypes$1;
70
69
  Avatar.defaultProps = defaultProps$1;
71
70
 
72
- var styles = {"container":"micromag-element-author-container","image":"micromag-element-author-image","link":"micromag-element-author-link","right":"micromag-element-author-right","name":"micromag-element-author-name","collaborator":"micromag-element-author-collaborator","collaboratorText":"micromag-element-author-collaboratorText","isSmall":"micromag-element-author-isSmall","withoutImage":"micromag-element-author-withoutImage","prefix":"micromag-element-author-prefix"};
71
+ var styles = {"container":"micromag-element-author-container","image":"micromag-element-author-image","link":"micromag-element-author-link","right":"micromag-element-author-right","name":"micromag-element-author-name","collaborator":"micromag-element-author-collaborator","collaboratorText":"micromag-element-author-collaboratorText"};
73
72
 
74
- var _excluded = ["author", "withImage", "withoutLink", "isSmall", "linkUnderlineColor", "className", "backgroundClassName", "collaboratorClassName", "shouldLoad"];
73
+ var _excluded = ["author", "withImage", "withoutLink", "linkUnderlineColor", "className", "backgroundClassName", "collaboratorClassName", "shouldLoad"];
75
74
  var propTypes = {
76
75
  author: PropTypes__default["default"].shape({
77
76
  slug: PropTypes__default["default"].string,
@@ -82,7 +81,6 @@ var propTypes = {
82
81
  }),
83
82
  withImage: PropTypes__default["default"].bool,
84
83
  withoutLink: PropTypes__default["default"].bool,
85
- isSmall: PropTypes__default["default"].bool,
86
84
  linkUnderlineColor: PropTypes__default["default"].string,
87
85
  className: PropTypes__default["default"].string,
88
86
  backgroundClassName: PropTypes__default["default"].string,
@@ -93,7 +91,6 @@ var defaultProps = {
93
91
  author: null,
94
92
  withImage: true,
95
93
  withoutLink: false,
96
- isSmall: false,
97
94
  linkUnderlineColor: null,
98
95
  className: null,
99
96
  backgroundClassName: null,
@@ -101,11 +98,9 @@ var defaultProps = {
101
98
  shouldLoad: true
102
99
  };
103
100
  var Author = function Author(_ref) {
104
- var _ref4;
105
101
  var author = _ref.author,
106
102
  withImage = _ref.withImage,
107
103
  withoutLink = _ref.withoutLink,
108
- isSmall = _ref.isSmall,
109
104
  linkUnderlineColor = _ref.linkUnderlineColor,
110
105
  className = _ref.className,
111
106
  backgroundClassName = _ref.backgroundClassName,
@@ -131,7 +126,7 @@ var Author = function Author(_ref) {
131
126
  inline: true
132
127
  })) : null;
133
128
  return /*#__PURE__*/React__default["default"].createElement("div", Object.assign({
134
- className: classNames__default["default"]([styles.container, (_ref4 = {}, _defineProperty__default["default"](_ref4, styles.isSmall, isSmall), _defineProperty__default["default"](_ref4, styles.withoutAvatar, withAvatar), _defineProperty__default["default"](_ref4, styles.withoutImage, !withImage || image === null), _defineProperty__default["default"](_ref4, className, className !== null), _ref4)])
129
+ className: classNames__default["default"]([styles.container, _defineProperty__default["default"]({}, className, className !== null)])
135
130
  }, otherProps), withAvatar ? /*#__PURE__*/React__default["default"].createElement(Avatar, {
136
131
  className: styles.image,
137
132
  image: image,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-author",
3
- "version": "0.3.411",
3
+ "version": "0.3.414",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -64,5 +64,5 @@
64
64
  "access": "public",
65
65
  "registry": "https://registry.npmjs.org/"
66
66
  },
67
- "gitHead": "06ef83636bf6f3ed8dea7fa2a7aee9909d6da7d4"
67
+ "gitHead": "d992e87bf9264c4b36a60ba9b4608768a777344d"
68
68
  }