@trafilea/afrodita-components 6.43.7 → 6.43.8
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.esm.js +5 -5
- package/build/index.js +5 -5
- package/package.json +1 -1
package/build/index.esm.js
CHANGED
|
@@ -21888,10 +21888,10 @@ var FlexContainer = newStyled.div(templateObject_1$1 || (templateObject_1$1 = __
|
|
|
21888
21888
|
"\n [data-testid='subscription-frequency'] {\n border: 0;\n padding-left: 0 !important;\n padding-right: 32px !important;\n }\n\n [role='listbox']{\n margin-left: -20px;\n }\n ";
|
|
21889
21889
|
});
|
|
21890
21890
|
var DiscountTag = newStyled.div(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject(["\n position: absolute;\n top: -24px;\n right: 18px;\n background-color: ", ";\n color: white;\n padding: 5px 10px;\n font-size: 12px;\n font-weight: bold;\n line-height: 14px;\n border-radius: ", ";\n"], ["\n position: absolute;\n top: -24px;\n right: 18px;\n background-color: ", ";\n color: white;\n padding: 5px 10px;\n font-size: 12px;\n font-weight: bold;\n line-height: 14px;\n border-radius: ", ";\n"])), function (_a) {
|
|
21891
|
-
var theme = _a.theme,
|
|
21892
|
-
return
|
|
21893
|
-
? theme.
|
|
21894
|
-
: theme.
|
|
21891
|
+
var theme = _a.theme, selected = _a.selected;
|
|
21892
|
+
return selected
|
|
21893
|
+
? theme.component.autoship.discountTag.backgroundColor
|
|
21894
|
+
: theme.colors.shades[350].color;
|
|
21895
21895
|
}, function (_a) {
|
|
21896
21896
|
var theme = _a.theme;
|
|
21897
21897
|
return "".concat(theme.component.autoship.discountTag.borderRadius, " \n ").concat(theme.component.autoship.discountTag.borderRadius, " 0 0");
|
|
@@ -22026,7 +22026,7 @@ var SubscriptionPlanSelector = function (_a) {
|
|
|
22026
22026
|
}
|
|
22027
22027
|
return null;
|
|
22028
22028
|
};
|
|
22029
|
-
return (jsxs$1(Container$1, __assign$1({ className: className }, { children: [jsxs$1(SubscriptionContainer, __assign$1({ highlighted: radiosStatuses.subscription.checked, onClick: function () { return handleRadioClicked('subscription'); }, "data-testid": "subscription-purchase-block", disabled: radiosStatuses.subscription.disabled }, { children: [jsx$1(DiscountTag, __assign$1({ className: discountTagClassName,
|
|
22029
|
+
return (jsxs$1(Container$1, __assign$1({ className: className }, { children: [jsxs$1(SubscriptionContainer, __assign$1({ highlighted: radiosStatuses.subscription.checked, onClick: function () { return handleRadioClicked('subscription'); }, "data-testid": "subscription-purchase-block", disabled: radiosStatuses.subscription.disabled }, { children: [jsx$1(DiscountTag, __assign$1({ className: discountTagClassName, selected: radiosStatuses.subscription.checked }, { children: discountLabel !== null && discountLabel !== void 0 ? discountLabel : "".concat(subscriptionPctOverListPriceRounded, "% OFF - SAVE ").concat(currencySymbol).concat(subscriptionSaving.toFixed(2)) }), void 0), jsxs$1(SubscriptionHeader, __assign$1({ showBorder: radiosStatuses.subscription.checked }, { children: [jsxs$1(FlexContainer, __assign$1({ "data-testid": "subscription-block", onClick: function () { return handleRadioClicked('subscription'); } }, { children: [jsx$1(RadioInput, { label: radios.subscription.label, icon: radios.subscription.icon, name: "subscription", id: "subscription", value: "subscription", size: ComponentSize.Medium, style: { marginRight: '10px' }, useV2Style: true, onChange: function () {
|
|
22030
22030
|
setRadiosStatuses(function (prev) { return ({
|
|
22031
22031
|
subscription: __assign$1(__assign$1({}, prev.subscription), { checked: true }),
|
|
22032
22032
|
oneTime: __assign$1(__assign$1({}, prev.oneTime), { checked: false }),
|
package/build/index.js
CHANGED
|
@@ -21914,10 +21914,10 @@ var FlexContainer = newStyled.div(templateObject_1$1 || (templateObject_1$1 = __
|
|
|
21914
21914
|
"\n [data-testid='subscription-frequency'] {\n border: 0;\n padding-left: 0 !important;\n padding-right: 32px !important;\n }\n\n [role='listbox']{\n margin-left: -20px;\n }\n ";
|
|
21915
21915
|
});
|
|
21916
21916
|
var DiscountTag = newStyled.div(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject(["\n position: absolute;\n top: -24px;\n right: 18px;\n background-color: ", ";\n color: white;\n padding: 5px 10px;\n font-size: 12px;\n font-weight: bold;\n line-height: 14px;\n border-radius: ", ";\n"], ["\n position: absolute;\n top: -24px;\n right: 18px;\n background-color: ", ";\n color: white;\n padding: 5px 10px;\n font-size: 12px;\n font-weight: bold;\n line-height: 14px;\n border-radius: ", ";\n"])), function (_a) {
|
|
21917
|
-
var theme = _a.theme,
|
|
21918
|
-
return
|
|
21919
|
-
? theme.
|
|
21920
|
-
: theme.
|
|
21917
|
+
var theme = _a.theme, selected = _a.selected;
|
|
21918
|
+
return selected
|
|
21919
|
+
? theme.component.autoship.discountTag.backgroundColor
|
|
21920
|
+
: theme.colors.shades[350].color;
|
|
21921
21921
|
}, function (_a) {
|
|
21922
21922
|
var theme = _a.theme;
|
|
21923
21923
|
return "".concat(theme.component.autoship.discountTag.borderRadius, " \n ").concat(theme.component.autoship.discountTag.borderRadius, " 0 0");
|
|
@@ -22052,7 +22052,7 @@ var SubscriptionPlanSelector = function (_a) {
|
|
|
22052
22052
|
}
|
|
22053
22053
|
return null;
|
|
22054
22054
|
};
|
|
22055
|
-
return (jsxRuntime.jsxs(Container$1, __assign$1({ className: className }, { children: [jsxRuntime.jsxs(SubscriptionContainer, __assign$1({ highlighted: radiosStatuses.subscription.checked, onClick: function () { return handleRadioClicked('subscription'); }, "data-testid": "subscription-purchase-block", disabled: radiosStatuses.subscription.disabled }, { children: [jsxRuntime.jsx(DiscountTag, __assign$1({ className: discountTagClassName,
|
|
22055
|
+
return (jsxRuntime.jsxs(Container$1, __assign$1({ className: className }, { children: [jsxRuntime.jsxs(SubscriptionContainer, __assign$1({ highlighted: radiosStatuses.subscription.checked, onClick: function () { return handleRadioClicked('subscription'); }, "data-testid": "subscription-purchase-block", disabled: radiosStatuses.subscription.disabled }, { children: [jsxRuntime.jsx(DiscountTag, __assign$1({ className: discountTagClassName, selected: radiosStatuses.subscription.checked }, { children: discountLabel !== null && discountLabel !== void 0 ? discountLabel : "".concat(subscriptionPctOverListPriceRounded, "% OFF - SAVE ").concat(currencySymbol).concat(subscriptionSaving.toFixed(2)) }), void 0), jsxRuntime.jsxs(SubscriptionHeader, __assign$1({ showBorder: radiosStatuses.subscription.checked }, { children: [jsxRuntime.jsxs(FlexContainer, __assign$1({ "data-testid": "subscription-block", onClick: function () { return handleRadioClicked('subscription'); } }, { children: [jsxRuntime.jsx(RadioInput, { label: radios.subscription.label, icon: radios.subscription.icon, name: "subscription", id: "subscription", value: "subscription", size: exports.ComponentSize.Medium, style: { marginRight: '10px' }, useV2Style: true, onChange: function () {
|
|
22056
22056
|
setRadiosStatuses(function (prev) { return ({
|
|
22057
22057
|
subscription: __assign$1(__assign$1({}, prev.subscription), { checked: true }),
|
|
22058
22058
|
oneTime: __assign$1(__assign$1({}, prev.oneTime), { checked: false }),
|
package/package.json
CHANGED