@decisiv/ui-components 2.0.2-alpha.2 → 2.0.2-alpha.3

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAEZ,sBAAsB,EAGvB,MAAM,OAAO,CAAC;AAUf,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAKjD,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;AAgElC,QAAA,MAAM,aAAa,EAAE,sBAAsB,CACzC,SAAS,EACT,WAAW,CACS,CAAC;AAcvB,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAEZ,sBAAsB,EAGvB,MAAM,OAAO,CAAC;AAUf,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAKjD,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;AA6DlC,QAAA,MAAM,aAAa,EAAE,sBAAsB,CACzC,SAAS,EACT,WAAW,CACS,CAAC;AAcvB,eAAe,aAAa,CAAC"}
@@ -71,14 +71,9 @@ function Avatar(props, ref) {
71
71
  shouldUseGravatar = _useGravatar2[1];
72
72
 
73
73
  (0, _react.useEffect)(function () {
74
- if (!(0, _isEmpty.default)(kind)) {
75
- // eslint-disable-next-line no-console
76
- console.warn('[decisiv] Avatar: the `kind` prop is deprecated. Migrate to `color` and `palette`.');
77
- } // eslint-disable-next-line react-hooks/exhaustive-deps
78
-
79
- }, []); // TODO: Remove the `kind` prop and this fallback in a future major version
80
- // when all consumers have migrated to the new `color` and `palette` props
81
- // This is done to not break the now deprecated `secondary` kind variant. Should be removed in the future.
74
+ if (!(0, _isEmpty.default)(kind)) window.console && // eslint-disable-next-line no-console
75
+ console.warn('[KeyDesignSystems] The `kind` prop for the `Avatar` component has been deprecated. Please use `color` + `palette` instead.'); // eslint-disable-next-line react-hooks/exhaustive-deps
76
+ }, []); // This is done to not break the now deprecated `secondary` kind variant. Should be removed in the future.
82
77
 
83
78
  var componentColor = kind === 'secondary' ? 'licoriceMousse' : color;
84
79
  return _react.default.createElement(_AvatarContainer.default, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decisiv/ui-components",
3
- "version": "2.0.2-alpha.2",
3
+ "version": "2.0.2-alpha.3",
4
4
  "description": "Decisiv's design system React components",
5
5
  "author": "Decisiv UI Development Team",
6
6
  "license": "MIT",