@trafilea/afrodita-components 6.51.2 → 6.51.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 +1 -0
- package/build/index.esm.js +2 -2
- package/build/index.js +2 -2
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -4075,6 +4075,7 @@ declare type JoinClubProps = {
|
|
|
4075
4075
|
buttonText?: string | JSX.Element;
|
|
4076
4076
|
buttonStyle?: React.CSSProperties;
|
|
4077
4077
|
termsText?: string | JSX.Element;
|
|
4078
|
+
toggleColor?: React.CSSProperties['color'];
|
|
4078
4079
|
};
|
|
4079
4080
|
|
|
4080
4081
|
declare const JoinClubCard: React.FC<JoinClubProps>;
|
package/build/index.esm.js
CHANGED
|
@@ -20717,13 +20717,13 @@ var StyledButton = newStyled.button(templateObject_1$p || (templateObject_1$p =
|
|
|
20717
20717
|
return customStyle && __assign$1({}, customStyle);
|
|
20718
20718
|
});
|
|
20719
20719
|
var JoinClubCard = function (_a) {
|
|
20720
|
-
var onCheckToggle = _a.onCheckToggle, isChecked = _a.isChecked, icon = _a.icon, link = _a.link, bodyCopy = _a.bodyCopy, titleCopy = _a.titleCopy, style = _a.style, _b = _a.showButton, showButton = _b === void 0 ? false : _b, _c = _a.buttonText, buttonText = _c === void 0 ? 'ADD' : _c, _d = _a.buttonStyle, buttonStyle = _d === void 0 ? {} : _d, termsText = _a.termsText;
|
|
20720
|
+
var onCheckToggle = _a.onCheckToggle, isChecked = _a.isChecked, icon = _a.icon, link = _a.link, bodyCopy = _a.bodyCopy, titleCopy = _a.titleCopy, style = _a.style, _b = _a.showButton, showButton = _b === void 0 ? false : _b, _c = _a.buttonText, buttonText = _c === void 0 ? 'ADD' : _c, _d = _a.buttonStyle, buttonStyle = _d === void 0 ? {} : _d, termsText = _a.termsText, toggleColor = _a.toggleColor;
|
|
20721
20721
|
var _e = useState(isChecked), checked = _e[0], setChecked = _e[1];
|
|
20722
20722
|
var handleToggleValue = function (value) {
|
|
20723
20723
|
setChecked(value);
|
|
20724
20724
|
onCheckToggle(value);
|
|
20725
20725
|
};
|
|
20726
|
-
return (jsx$1(Card, __assign$1({ link: link, icon: icon, isChecked: checked, bodyCopy: bodyCopy, titleCopy: titleCopy, style: style, termsText: termsText }, { children: showButton ? (jsx$1(StyledButton, __assign$1({ onClick: function () { return handleToggleValue(!checked); }, customStyle: buttonStyle }, { children: buttonText }), void 0)) : (jsx$1(ToggleComponent, { onToggle: handleToggleValue, isChecked: checked }, void 0)) }), void 0));
|
|
20726
|
+
return (jsx$1(Card, __assign$1({ link: link, icon: icon, isChecked: checked, bodyCopy: bodyCopy, titleCopy: titleCopy, style: style, termsText: termsText }, { children: showButton ? (jsx$1(StyledButton, __assign$1({ onClick: function () { return handleToggleValue(!checked); }, customStyle: buttonStyle }, { children: buttonText }), void 0)) : (jsx$1(ToggleComponent, { onToggle: handleToggleValue, isChecked: checked, color: toggleColor }, void 0)) }), void 0));
|
|
20727
20727
|
};
|
|
20728
20728
|
var templateObject_1$p;
|
|
20729
20729
|
|
package/build/index.js
CHANGED
|
@@ -20743,13 +20743,13 @@ var StyledButton = newStyled.button(templateObject_1$p || (templateObject_1$p =
|
|
|
20743
20743
|
return customStyle && __assign$1({}, customStyle);
|
|
20744
20744
|
});
|
|
20745
20745
|
var JoinClubCard = function (_a) {
|
|
20746
|
-
var onCheckToggle = _a.onCheckToggle, isChecked = _a.isChecked, icon = _a.icon, link = _a.link, bodyCopy = _a.bodyCopy, titleCopy = _a.titleCopy, style = _a.style, _b = _a.showButton, showButton = _b === void 0 ? false : _b, _c = _a.buttonText, buttonText = _c === void 0 ? 'ADD' : _c, _d = _a.buttonStyle, buttonStyle = _d === void 0 ? {} : _d, termsText = _a.termsText;
|
|
20746
|
+
var onCheckToggle = _a.onCheckToggle, isChecked = _a.isChecked, icon = _a.icon, link = _a.link, bodyCopy = _a.bodyCopy, titleCopy = _a.titleCopy, style = _a.style, _b = _a.showButton, showButton = _b === void 0 ? false : _b, _c = _a.buttonText, buttonText = _c === void 0 ? 'ADD' : _c, _d = _a.buttonStyle, buttonStyle = _d === void 0 ? {} : _d, termsText = _a.termsText, toggleColor = _a.toggleColor;
|
|
20747
20747
|
var _e = React$2.useState(isChecked), checked = _e[0], setChecked = _e[1];
|
|
20748
20748
|
var handleToggleValue = function (value) {
|
|
20749
20749
|
setChecked(value);
|
|
20750
20750
|
onCheckToggle(value);
|
|
20751
20751
|
};
|
|
20752
|
-
return (jsxRuntime.jsx(Card, __assign$1({ link: link, icon: icon, isChecked: checked, bodyCopy: bodyCopy, titleCopy: titleCopy, style: style, termsText: termsText }, { children: showButton ? (jsxRuntime.jsx(StyledButton, __assign$1({ onClick: function () { return handleToggleValue(!checked); }, customStyle: buttonStyle }, { children: buttonText }), void 0)) : (jsxRuntime.jsx(ToggleComponent, { onToggle: handleToggleValue, isChecked: checked }, void 0)) }), void 0));
|
|
20752
|
+
return (jsxRuntime.jsx(Card, __assign$1({ link: link, icon: icon, isChecked: checked, bodyCopy: bodyCopy, titleCopy: titleCopy, style: style, termsText: termsText }, { children: showButton ? (jsxRuntime.jsx(StyledButton, __assign$1({ onClick: function () { return handleToggleValue(!checked); }, customStyle: buttonStyle }, { children: buttonText }), void 0)) : (jsxRuntime.jsx(ToggleComponent, { onToggle: handleToggleValue, isChecked: checked, color: toggleColor }, void 0)) }), void 0));
|
|
20753
20753
|
};
|
|
20754
20754
|
var templateObject_1$p;
|
|
20755
20755
|
|
package/package.json
CHANGED