@react-md/avatar
Advanced tools
Comparing version 5.0.0 to 5.1.0
@@ -6,2 +6,14 @@ # Change Log | ||
# [5.1.0](https://github.com/mlaursen/react-md/compare/v5.0.0...v5.1.0) (2022-03-18) | ||
### Other Internal Changes | ||
* run lint-scripts --fix for consistent-type-imports ([42d839d](https://github.com/mlaursen/react-md/commit/42d839d359922e0a8ee3775a75162b9755a2c2b6)) | ||
# [5.0.0](https://github.com/mlaursen/react-md/compare/v4.0.3...v5.0.0) (2022-01-31) | ||
@@ -8,0 +20,0 @@ |
@@ -39,6 +39,6 @@ var __assign = (this && this.__assign) || function () { | ||
if (src || imgProps) { | ||
img = (_jsx("img", __assign({ src: src, alt: alt, referrerPolicy: referrerPolicy }, imgProps, { className: cn(block("image"), imgProps === null || imgProps === void 0 ? void 0 : imgProps.className) }), void 0)); | ||
img = (_jsx("img", __assign({ src: src, alt: alt, referrerPolicy: referrerPolicy }, imgProps, { className: cn(block("image"), imgProps === null || imgProps === void 0 ? void 0 : imgProps.className) }))); | ||
} | ||
return (_jsxs("span", __assign({}, props, { ref: ref, className: cn(block((_b = {}, _b[color] = color, _b)), className) }, { children: [img, children] }), void 0)); | ||
return (_jsxs("span", __assign({}, props, { ref: ref, className: cn(block((_b = {}, _b[color] = color, _b)), className) }, { children: [img, children] }))); | ||
}); | ||
//# sourceMappingURL=Avatar.js.map |
@@ -1,3 +0,3 @@ | ||
import { HTMLAttributes, ImgHTMLAttributes } from "react"; | ||
import { PropsWithRef } from "@react-md/utils"; | ||
import type { HTMLAttributes, ImgHTMLAttributes } from "react"; | ||
import type { PropsWithRef } from "@react-md/utils"; | ||
declare type ImgAttributes = ImgHTMLAttributes<HTMLImageElement>; | ||
@@ -4,0 +4,0 @@ export interface AvatarProps extends HTMLAttributes<HTMLSpanElement> { |
@@ -45,6 +45,6 @@ "use strict"; | ||
if (src || imgProps) { | ||
img = ((0, jsx_runtime_1.jsx)("img", __assign({ src: src, alt: alt, referrerPolicy: referrerPolicy }, imgProps, { className: (0, classnames_1.default)(block("image"), imgProps === null || imgProps === void 0 ? void 0 : imgProps.className) }), void 0)); | ||
img = ((0, jsx_runtime_1.jsx)("img", __assign({ src: src, alt: alt, referrerPolicy: referrerPolicy }, imgProps, { className: (0, classnames_1.default)(block("image"), imgProps === null || imgProps === void 0 ? void 0 : imgProps.className) }))); | ||
} | ||
return ((0, jsx_runtime_1.jsxs)("span", __assign({}, props, { ref: ref, className: (0, classnames_1.default)(block((_b = {}, _b[color] = color, _b)), className) }, { children: [img, children] }), void 0)); | ||
return ((0, jsx_runtime_1.jsxs)("span", __assign({}, props, { ref: ref, className: (0, classnames_1.default)(block((_b = {}, _b[color] = color, _b)), className) }, { children: [img, children] }))); | ||
}); | ||
//# sourceMappingURL=Avatar.js.map |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k; |
{ | ||
"name": "@react-md/avatar", | ||
"version": "5.0.0", | ||
"version": "5.1.0", | ||
"description": "This package is used to avatars which are used to symbolize people or objects.", | ||
@@ -32,5 +32,5 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@react-md/icon": "^5.0.0", | ||
"@react-md/theme": "^5.0.0", | ||
"@react-md/utils": "^5.0.0", | ||
"@react-md/icon": "^5.1.0", | ||
"@react-md/theme": "^5.1.0", | ||
"@react-md/utils": "^5.1.0", | ||
"classnames": "^2.3.1" | ||
@@ -57,3 +57,3 @@ }, | ||
}, | ||
"gitHead": "a67e871627db20ca8ee4b672f6e99f2f7f438c96" | ||
"gitHead": "d2446029706ae96aada0131f93ed7c1adcc14d70" | ||
} |
@@ -1,3 +0,3 @@ | ||
import { HTMLAttributes, ImgHTMLAttributes } from "react"; | ||
import { PropsWithRef } from "@react-md/utils"; | ||
import type { HTMLAttributes, ImgHTMLAttributes } from "react"; | ||
import type { PropsWithRef } from "@react-md/utils"; | ||
declare type ImgAttributes = ImgHTMLAttributes<HTMLImageElement>; | ||
@@ -4,0 +4,0 @@ export interface AvatarProps extends HTMLAttributes<HTMLSpanElement> { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
54510
465
Updated@react-md/icon@^5.1.0
Updated@react-md/theme@^5.1.0
Updated@react-md/utils@^5.1.0