@prom-ui/core 0.0.70 → 0.0.72
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 +3 -3
- package/Avatar/cjs/index.production.js +1 -1
- package/Avatar/cjs/style.development.css +1 -1
- package/Avatar/cjs/style.production.css +1 -1
- package/Avatar/index.d.ts +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
|
|
|
@@ -92,7 +92,7 @@ function stringAvatar(name) {
|
|
|
92
92
|
}).join('');
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
var css = {"root":"Avatar__root___ap8QD","image":"Avatar__image___52SeG","text":"Avatar__text___-Fg0p","icon":"Avatar__icon___-JCN2","theme_white":"Avatar__theme_white___VDWp7","theme_black-100":"Avatar__theme_black-100___AQ1tT","theme_violet-300":"Avatar__theme_violet-300___yK-3d","theme_multicolor":"Avatar__theme_multicolor___xV5U3"};
|
|
95
|
+
var css = {"root":"Avatar__root___ap8QD","image":"Avatar__image___52SeG","text":"Avatar__text___-Fg0p","icon":"Avatar__icon___-JCN2","theme_white":"Avatar__theme_white___VDWp7","theme_black-100":"Avatar__theme_black-100___AQ1tT","theme_violet-300":"Avatar__theme_violet-300___yK-3d","theme_yellow-500":"Avatar__theme_yellow-500___O2My9","theme_multicolor":"Avatar__theme_multicolor___xV5U3"};
|
|
96
96
|
|
|
97
97
|
var Avatar = React__namespace.forwardRef(function (_a, ref) {
|
|
98
98
|
var _b;
|
|
@@ -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 o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function a(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=a(e),c=o(t),l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);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_yellow-500":"O2My9",theme_multicolor:"xV5U3"},s=i.forwardRef((function(e,t){var o,a=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 o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["image","name","size","loading","theme","className"]),O=!!a,b=void 0,j=null;if(!O){var _=s?s.trim():"";"multicolor"===v&&(b=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,(o={},o[u["theme_".concat(v)]]=!O,o))},y,{style:{background:b,width:m,height:m,fontSize:m/2.2},ref:t}),O?i.createElement("img",{className:u.image,src:a,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");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.Avatar__root___ap8QD{display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:50%;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;font-weight:700;text-transform:uppercase;box-sizing:border-box;font-size:14px}.Avatar__image___52SeG{display:block;font-size:0;-o-object-fit:cover;object-fit:cover;background:var(--black-100)}.Avatar__text___-Fg0p{font-size:max(8px,min(1em,14px))}.Avatar__icon___-JCN2{width:60%;height:60%;max-width:24px;max-height:24px}.Avatar__theme_white___VDWp7{background:var(--white);color:var(--black-800)}.Avatar__theme_black-100___AQ1tT{background:var(--black-100);color:var(--black-800)}.Avatar__theme_violet-300___yK-3d{background:var(--violet-300);color:var(--white)}.Avatar__theme_multicolor___xV5U3{color:#fff}
|
|
1
|
+
.Avatar__root___ap8QD{display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:50%;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;font-weight:700;text-transform:uppercase;box-sizing:border-box;font-size:14px}.Avatar__image___52SeG{display:block;font-size:0;-o-object-fit:cover;object-fit:cover;background:var(--black-100)}.Avatar__text___-Fg0p{font-size:max(8px,min(1em,14px))}.Avatar__icon___-JCN2{width:60%;height:60%;max-width:24px;max-height:24px}.Avatar__theme_white___VDWp7{background:var(--white);color:var(--black-800)}.Avatar__theme_black-100___AQ1tT{background:var(--black-100);color:var(--black-800)}.Avatar__theme_violet-300___yK-3d{background:var(--violet-300);color:var(--white)}.Avatar__theme_yellow-500___O2My9{background:var(--yellow-500);color:var(--black-900)}.Avatar__theme_multicolor___xV5U3{color:#fff}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ap8QD{display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:50%;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;font-weight:700;text-transform:uppercase;box-sizing:border-box;font-size:14px}._52SeG{display:block;font-size:0;-o-object-fit:cover;object-fit:cover;background:var(--black-100)}.-Fg0p{font-size:max(8px,min(1em,14px))}.-JCN2{width:60%;height:60%;max-width:24px;max-height:24px}.VDWp7{background:var(--white);color:var(--black-800)}.AQ1tT{background:var(--black-100);color:var(--black-800)}.yK-3d{background:var(--violet-300);color:var(--white)}.xV5U3{color:#fff}
|
|
1
|
+
.ap8QD{display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:50%;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;font-weight:700;text-transform:uppercase;box-sizing:border-box;font-size:14px}._52SeG{display:block;font-size:0;-o-object-fit:cover;object-fit:cover;background:var(--black-100)}.-Fg0p{font-size:max(8px,min(1em,14px))}.-JCN2{width:60%;height:60%;max-width:24px;max-height:24px}.VDWp7{background:var(--white);color:var(--black-800)}.AQ1tT{background:var(--black-100);color:var(--black-800)}.yK-3d{background:var(--violet-300);color:var(--white)}.O2My9{background:var(--yellow-500);color:var(--black-900)}.xV5U3{color:#fff}
|
package/Avatar/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare type AvatarProps = React.ComponentPropsWithRef<"div"> & {
|
|
|
7
7
|
/** Размер в px */
|
|
8
8
|
size?: number;
|
|
9
9
|
/** Тема */
|
|
10
|
-
theme?: 'white' | 'black-100' | 'violet-300' | 'multicolor';
|
|
10
|
+
theme?: 'white' | 'black-100' | 'violet-300' | 'yellow-500' | 'multicolor';
|
|
11
11
|
/** Отложенная загрузка изображения */
|
|
12
12
|
loading?: 'lazy' | 'eager';
|
|
13
13
|
};
|
package/Avatar/package.json
CHANGED