@prom-ui/core 0.0.70 → 0.0.71
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/Avatar/cjs/index.development.js +2 -2
- package/Avatar/cjs/index.production.js +1 -1
- package/Avatar/package.json +1 -1
- package/Body/package.json +1 -1
- package/Box/cjs/style.development.css +1 -1
- package/Box/cjs/style.production.css +1 -1
- package/Box/package.json +1 -1
- package/Button/package.json +1 -1
- package/ButtonPageUp/package.json +1 -1
- package/Checkbox/package.json +1 -1
- package/Flex/package.json +1 -1
- package/Grid/package.json +1 -1
- package/Icon/package.json +1 -1
- package/Image/package.json +1 -1
- package/ImageEmoji/package.json +1 -1
- package/Input/package.json +1 -1
- package/KeyPress/package.json +1 -1
- package/Line/package.json +1 -1
- package/Link/package.json +1 -1
- package/List/package.json +1 -1
- package/Media/package.json +1 -1
- package/OutsideClick/package.json +1 -1
- package/Overlay/package.json +1 -1
- package/Picture/package.json +1 -1
- package/PortableOverlay/cjs/style.development.css +1 -1
- package/PortableOverlay/cjs/style.production.css +1 -1
- package/PortableOverlay/package.json +1 -1
- package/Portal/package.json +1 -1
- package/QRCode/package.json +1 -1
- package/Rating/package.json +1 -1
- package/SafeQuery/package.json +1 -1
- package/Scroll/package.json +1 -1
- package/ScrollControls/package.json +1 -1
- package/SideOverlay/package.json +1 -1
- package/SimpleSlider/package.json +1 -1
- package/Skeleton/package.json +1 -1
- package/Spinner/package.json +1 -1
- package/Text/package.json +1 -1
- package/TextEmoji/package.json +1 -1
- package/Tooltip/package.json +1 -1
- package/Tumbler/package.json +1 -1
- package/package.json +2 -2
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var classNames = require('classnames');
|
|
7
7
|
var Icon = require('@prom-ui/core/Icon');
|
|
8
|
-
var
|
|
8
|
+
var User = require('@prom-ui/icons/User');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
11
|
|
|
@@ -143,7 +143,7 @@ var Avatar = React__namespace.forwardRef(function (_a, ref) {
|
|
|
143
143
|
className: css.text
|
|
144
144
|
}, shortName) : React__namespace.createElement(Icon.Icon, {
|
|
145
145
|
className: css.icon,
|
|
146
|
-
"icon-as":
|
|
146
|
+
"icon-as": User.SvgUser
|
|
147
147
|
})));
|
|
148
148
|
});
|
|
149
149
|
Avatar.displayName = 'Avatar';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("classnames"),r=require("@prom-ui/core/Icon"),n=require("@prom-ui/icons/
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("classnames"),r=require("@prom-ui/core/Icon"),n=require("@prom-ui/icons/User");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var i=o(e),c=a(t),l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},l.apply(this,arguments)};var u={root:"ap8QD",image:"_52SeG",text:"-Fg0p",icon:"-JCN2",theme_white:"VDWp7","theme_black-100":"AQ1tT","theme_violet-300":"yK-3d",theme_multicolor:"xV5U3"},s=i.forwardRef((function(e,t){var a,o=e.image,s=e.name,f=e.size,m=void 0===f?40:f,p=e.loading,d=void 0===p?"eager":p,g=e.theme,v=void 0===g?"violet-300":g,h=e.className,y=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}(e,["image","name","size","loading","theme","className"]),b=!!o,O=void 0,j=null;if(!b){var _=s?s.trim():"";"multicolor"===v&&(O=function(e){var t,r=0;for(t=0;t<e.length;t+=1)r=e.charCodeAt(t)+((r<<5)-r);var n="#";for(t=0;t<3;t+=1)n+="00".concat((r>>8*t&255).toString(16)).slice(-2);return n}(_)),j=function(e){return e.split(" ").slice(0,2).map((function(e){return e[0]})).join("")}(_)}return i.createElement("div",l({className:c.default(u.root,h,(a={},a[u["theme_".concat(v)]]=!b,a))},y,{style:{background:O,width:m,height:m,fontSize:m/2.2},ref:t}),b?i.createElement("img",{className:u.image,src:o,alt:s,width:m,height:m,loading:d}):i.createElement(i.Fragment,null,j?i.createElement("span",{className:u.text},j):i.createElement(r.Icon,{className:u.icon,"icon-as":n.SvgUser})))}));s.displayName="Avatar",exports.Avatar=s,require("./style.production.css");
|
package/Avatar/package.json
CHANGED