@synerise/ds-avatar 0.17.10 → 0.17.11

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
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.17.11](https://github.com/synerise/synerise-design/compare/@synerise/ds-avatar@0.17.10...@synerise/ds-avatar@0.17.11) (2024-09-17)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-avatar
9
+
10
+
11
+
12
+
13
+
6
14
  ## [0.17.10](https://github.com/synerise/synerise-design/compare/@synerise/ds-avatar@0.17.9...@synerise/ds-avatar@0.17.10) (2024-09-13)
7
15
 
8
16
  **Note:** Version bump only for package @synerise/ds-avatar
package/dist/Avatar.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import '@synerise/ds-core/dist/js/style';
3
3
  import { AvatarProps } from './Avatar.types';
4
4
  import './style/index.less';
package/dist/Avatar.js CHANGED
@@ -11,7 +11,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
11
11
 
12
12
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
13
13
 
14
- import * as React from 'react';
14
+ import React from 'react';
15
15
  import Tooltip from '@synerise/ds-tooltip';
16
16
  import '@synerise/ds-core/dist/js/style';
17
17
  import { isIconComponent, getTooltipProps } from './utils';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import type { BadgeStatus } from '@synerise/ds-badge';
3
3
  import { AvatarProps as AntAvatarProps } from 'antd/lib/avatar';
4
4
  import { TooltipProps } from '@synerise/ds-tooltip/dist/Tooltip.types';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { ObjectAvatarProps } from '../Avatar.types';
3
3
  export declare const DEFAULT_COLOR_HUE = "600";
4
4
  export declare const DEFAULT_COLOR = "grey";
@@ -4,7 +4,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
4
4
 
5
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
6
 
7
- import * as React from 'react';
7
+ import React from 'react';
8
8
  import Icon, { MailM } from '@synerise/ds-icon';
9
9
  import { theme } from '@synerise/ds-core';
10
10
  import Badge from '@synerise/ds-badge';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { UserAvatarProps } from '../Avatar.types';
3
3
  export declare const DEFAULT_COLOR = "grey";
4
4
  export declare const DEFAULT_COLOR_HUE = "500";
@@ -4,7 +4,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
4
4
 
5
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
6
 
7
- import * as React from 'react';
7
+ import React from 'react';
8
8
  import Icon, { UserM, UserS } from '@synerise/ds-icon';
9
9
  import { theme } from '@synerise/ds-core';
10
10
  import Badge from '@synerise/ds-badge';
package/dist/utils.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { Color, ColorHue, UserAvatar, AvatarProps, TooltipObject } from './Avatar.types';
3
3
  export declare function getUserText(user: UserAvatar, src?: string | null, text?: string | null): string | null;
4
4
  export declare function isIconComponent(component: React.ReactNode | undefined): boolean;
package/dist/utils.js CHANGED
@@ -4,7 +4,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
4
 
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
- import * as React from 'react';
7
+ import React from 'react';
8
8
  import Icon from '@synerise/ds-icon';
9
9
  import selectColorByLetter from '@synerise/ds-utils/dist/selectColorByLetter/selectColorByLetter';
10
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-avatar",
3
- "version": "0.17.10",
3
+ "version": "0.17.11",
4
4
  "description": "Avatar UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "synerise/synerise-design",
@@ -33,12 +33,12 @@
33
33
  ],
34
34
  "types": "dist/index.d.ts",
35
35
  "dependencies": {
36
- "@synerise/ds-badge": "^0.8.9",
37
- "@synerise/ds-icon": "^0.65.5",
38
- "@synerise/ds-status": "^0.6.22",
39
- "@synerise/ds-tooltip": "^0.14.40",
40
- "@synerise/ds-typography": "^0.15.1",
41
- "@synerise/ds-utils": "^0.29.2"
36
+ "@synerise/ds-badge": "^0.8.10",
37
+ "@synerise/ds-icon": "^0.65.6",
38
+ "@synerise/ds-status": "^0.6.23",
39
+ "@synerise/ds-tooltip": "^0.14.41",
40
+ "@synerise/ds-typography": "^0.15.2",
41
+ "@synerise/ds-utils": "^0.29.3"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "@synerise/ds-core": "*",
@@ -46,5 +46,5 @@
46
46
  "react": ">=16.9.0 <= 17.0.2",
47
47
  "styled-components": "5.0.1"
48
48
  },
49
- "gitHead": "6f3231e4a9e0720ffee61b748488cecd590da6e6"
49
+ "gitHead": "ae3c38b44ca0f9071cd55f7b82c182a99b5710e8"
50
50
  }