@availity/mui-avatar 0.1.16 → 0.1.17

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/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.1.17](https://github.com/Availity/element/compare/@availity/mui-avatar@0.1.16...@availity/mui-avatar@0.1.17) (2024-04-04)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `mui-icon` updated to version `0.8.1`
10
+
11
+ ### Performance Improvements
12
+
13
+ * **mui-avatar:** use path imports for material deps ([b73a531](https://github.com/Availity/element/commit/b73a53146678ce7aa61247878d3573999496cbee))
14
+
5
15
  ## [0.1.16](https://github.com/Availity/element/compare/@availity/mui-avatar@0.1.15...@availity/mui-avatar@0.1.16) (2024-03-15)
6
16
 
7
17
  ### Dependency Updates
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { AvatarProps as AvatarProps$1 } from '@mui/material';
1
+ import { AvatarProps as AvatarProps$1 } from '@mui/material/Avatar';
2
2
 
3
3
  interface AvatarProps extends Omit<AvatarProps$1, 'variant'> {
4
4
  /** The size of the component.
package/dist/index.js CHANGED
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
+ var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
5
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
8
  var __export = (target, all) => {
7
9
  for (var name in all)
@@ -15,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
15
17
  }
16
18
  return to;
17
19
  };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
18
24
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
25
 
20
26
  // src/index.ts
@@ -25,7 +31,7 @@ __export(src_exports, {
25
31
  module.exports = __toCommonJS(src_exports);
26
32
 
27
33
  // src/lib/Avatar.tsx
28
- var import_material = require("@mui/material");
34
+ var import_Avatar = __toESM(require("@mui/material/Avatar"));
29
35
  var import_design_tokens = require("@availity/design-tokens");
30
36
  var import_jsx_runtime = require("react/jsx-runtime");
31
37
  var sizeStyling = {
@@ -48,7 +54,7 @@ var formatChildren = (children, size) => {
48
54
  return children;
49
55
  };
50
56
  var Avatar = ({ children, size = "xl", sx, ...rest }) => {
51
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Avatar, {
57
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Avatar.default, {
52
58
  ...rest,
53
59
  variant: "circular",
54
60
  sx: {
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/lib/Avatar.tsx
2
- import { Avatar as MuiAvatar } from "@mui/material";
2
+ import { default as MuiAvatar } from "@mui/material/Avatar";
3
3
  import { tokens } from "@availity/design-tokens";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  var sizeStyling = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/mui-avatar",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "Availity MUI Avatar Component - part of the @availity/element design system",
5
5
  "keywords": [
6
6
  "react",
@@ -32,7 +32,7 @@
32
32
  "publish:canary": "yarn npm publish --access public --tag canary"
33
33
  },
34
34
  "devDependencies": {
35
- "@availity/mui-icon": "^0.8.0",
35
+ "@availity/mui-icon": "^0.8.1",
36
36
  "@mui/material": "^5.14.12",
37
37
  "react": "18.2.0",
38
38
  "react-dom": "18.2.0",
@@ -1,4 +1,4 @@
1
- import { Avatar as MuiAvatar, AvatarProps as MuiAvatarProps } from '@mui/material';
1
+ import { default as MuiAvatar, AvatarProps as MuiAvatarProps } from '@mui/material/Avatar';
2
2
  import React from 'react';
3
3
  import { tokens } from '@availity/design-tokens';
4
4