@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;
|
|
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
|
-
|
|
76
|
-
|
|
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, {
|