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

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;AA6DlC,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;AAgElC,QAAA,MAAM,aAAa,EAAE,sBAAsB,CACzC,SAAS,EACT,WAAW,CACS,CAAC;AAcvB,eAAe,aAAa,CAAC"}
@@ -73,10 +73,12 @@ function Avatar(props, ref) {
73
73
  (0, _react.useEffect)(function () {
74
74
  if (!(0, _isEmpty.default)(kind)) {
75
75
  // eslint-disable-next-line no-console
76
- console.warn('[decisiv] The `kind` prop for the `Avatar` component has been deprecated. Use `color` + `palette` instead.');
76
+ console.warn('[decisiv] Avatar: the `kind` prop is deprecated. Migrate to `color` and `palette`.');
77
77
  } // eslint-disable-next-line react-hooks/exhaustive-deps
78
78
 
79
- }, []); // This is done to not break the now deprecated `secondary` kind variant. Should be removed in the future.
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.
80
82
 
81
83
  var componentColor = kind === 'secondary' ? 'licoriceMousse' : color;
82
84
  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.1",
3
+ "version": "2.0.2-alpha.2",
4
4
  "description": "Decisiv's design system React components",
5
5
  "author": "Decisiv UI Development Team",
6
6
  "license": "MIT",