@via-profit/ui-kit 0.1.0-rc.93 → 0.1.0-rc.95

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.
@@ -62,7 +62,6 @@ const Autocomplete = react_1.default.forwardRef((props, ref) => {
62
62
  }
63
63
  dispatch((0, context_1.actionSetPartial)({
64
64
  filteredItems: items,
65
- currentValue: null,
66
65
  inputValue: '',
67
66
  }));
68
67
  setTimeout(() => {
@@ -46,7 +46,6 @@ const Picture = styled_1.default.picture `
46
46
  }
47
47
  }}
48
48
  `;
49
- const generateKey = () => (Math.random() * 10000).toFixed();
50
49
  const AvatarPicture = (props, ref) => {
51
50
  const { src, variant } = props, nativeProps = __rest(props, ["src", "variant"]);
52
51
  const defaultSrc = react_1.default.useMemo(() => {
@@ -67,7 +66,7 @@ const AvatarPicture = (props, ref) => {
67
66
  return (react_1.default.createElement(Picture, Object.assign({}, nativeProps, { "$variant": variant, ref: ref }),
68
67
  src.map((_a) => {
69
68
  var { isDefault } = _a, srcProps = __rest(_a, ["isDefault"]);
70
- return (react_1.default.createElement("source", Object.assign({ key: generateKey() }, srcProps)));
69
+ return (react_1.default.createElement("source", Object.assign({ key: `${srcProps.srcSet}:${srcProps.type}` }, srcProps)));
71
70
  }),
72
71
  react_1.default.createElement("img", { src: (defaultSrc === null || defaultSrc === void 0 ? void 0 : defaultSrc.srcSet) || '' })));
73
72
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@via-profit/ui-kit",
3
- "version": "0.1.0-rc.93",
3
+ "version": "0.1.0-rc.95",
4
4
  "description": "UI Kit",
5
5
  "repository": {
6
6
  "type": "git",