@trafilea/afrodita-components 5.0.0-beta.2 → 5.0.0-beta.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.
package/build/index.d.ts CHANGED
@@ -1670,7 +1670,7 @@ interface PackOption {
1670
1670
  }
1671
1671
  interface PackSelectorProps {
1672
1672
  packs: PackOption[];
1673
- selectedValue: string;
1673
+ selectedValue: PackOption;
1674
1674
  onChange: (size: PackOption) => void;
1675
1675
  }
1676
1676
  declare const PackSelector: FC<PackSelectorProps>;
@@ -15018,7 +15018,7 @@ var IconPlaceholder = newStyled.div(templateObject_7 || (templateObject_7 = __ma
15018
15018
  var PackSelector = function (_a) {
15019
15019
  var packs = _a.packs, selectedValue = _a.selectedValue, onChange = _a.onChange;
15020
15020
  return (jsx$1(Container, __assign$1({ role: "radiogroup" }, { children: packs.map(function (pack) {
15021
- return (jsx$1(PackCard, { pack: pack, onChange: onChange, selected: selectedValue === pack.label }, pack.label));
15021
+ return (jsx$1(PackCard, { pack: pack, onChange: onChange, selected: selectedValue === pack }, pack.label));
15022
15022
  }) }), void 0));
15023
15023
  };
15024
15024
  var PackCard = function (_a) {
package/build/index.js CHANGED
@@ -15044,7 +15044,7 @@ var IconPlaceholder = newStyled.div(templateObject_7 || (templateObject_7 = __ma
15044
15044
  var PackSelector = function (_a) {
15045
15045
  var packs = _a.packs, selectedValue = _a.selectedValue, onChange = _a.onChange;
15046
15046
  return (jsxRuntime.jsx(Container, __assign$1({ role: "radiogroup" }, { children: packs.map(function (pack) {
15047
- return (jsxRuntime.jsx(PackCard, { pack: pack, onChange: onChange, selected: selectedValue === pack.label }, pack.label));
15047
+ return (jsxRuntime.jsx(PackCard, { pack: pack, onChange: onChange, selected: selectedValue === pack }, pack.label));
15048
15048
  }) }), void 0));
15049
15049
  };
15050
15050
  var PackCard = function (_a) {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Trafilea's Design System",
4
4
  "author": "Trafilea",
5
5
  "repository": "https://github.com/trafilea/afrodita-components",
6
- "version": "5.0.0-beta.2",
6
+ "version": "5.0.0-beta.3",
7
7
  "private": false,
8
8
  "main": "build/index.js",
9
9
  "style": "build/index.css",