@trafilea/afrodita-components 6.49.3 → 6.49.5
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 +12 -9
- package/build/index.esm.js +13 -10
- package/build/index.esm.js.map +1 -1
- package/build/index.js +13 -10
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -4581,17 +4581,17 @@ var FitGuarantee$1 = function (props) { return (jsxRuntime.jsx(Icon$1, __assign$
|
|
|
4581
4581
|
|
|
4582
4582
|
var FitPredictor$1 = function (props) { return (jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "other/fit_predictor" }), void 0)); };
|
|
4583
4583
|
|
|
4584
|
-
var
|
|
4584
|
+
var FlagAU = function (props) { return jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "other/flag_aus" }), void 0); };
|
|
4585
4585
|
|
|
4586
4586
|
var FlagCA = function (props) { return jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "other/flag_canada" }), void 0); };
|
|
4587
4587
|
|
|
4588
|
+
var FlagGB = function (props) { return jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "other/flag_uk" }), void 0); };
|
|
4589
|
+
|
|
4588
4590
|
var FlagNZ = function (props) { return jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "other/flag_nz" }), void 0); };
|
|
4589
4591
|
|
|
4590
4592
|
var FlagSG = function (props) { return jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "other/flag_sg" }), void 0); };
|
|
4591
4593
|
|
|
4592
|
-
var
|
|
4593
|
-
|
|
4594
|
-
var FlagUSA$1 = function (props) { return jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "other/flag_usa" }), void 0); };
|
|
4594
|
+
var FlagUS = function (props) { return jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "other/flag_usa" }), void 0); };
|
|
4595
4595
|
|
|
4596
4596
|
var FreeExchange = function (props) { return (jsxRuntime.jsx(Icon$1, __assign$1({}, props, { name: "other/free_exchange" }), void 0)); };
|
|
4597
4597
|
|
|
@@ -4651,12 +4651,12 @@ var Other = /*#__PURE__*/Object.freeze({
|
|
|
4651
4651
|
ExpressShipping: ExpressShipping,
|
|
4652
4652
|
FitGuarantee: FitGuarantee$1,
|
|
4653
4653
|
FitPredictor: FitPredictor$1,
|
|
4654
|
-
|
|
4654
|
+
FlagAU: FlagAU,
|
|
4655
4655
|
FlagCA: FlagCA,
|
|
4656
|
+
FlagGB: FlagGB,
|
|
4656
4657
|
FlagNZ: FlagNZ,
|
|
4657
4658
|
FlagSG: FlagSG,
|
|
4658
|
-
|
|
4659
|
-
FlagUSA: FlagUSA$1,
|
|
4659
|
+
FlagUS: FlagUS,
|
|
4660
4660
|
FreeExchange: FreeExchange,
|
|
4661
4661
|
GetDiscount: GetDiscount,
|
|
4662
4662
|
HasselFreeReturns: HasselFreeReturns,
|
|
@@ -7856,7 +7856,7 @@ var sizeMapper = (_a = {},
|
|
|
7856
7856
|
_a[exports.ComponentSize.XSmall] = 'small',
|
|
7857
7857
|
_a[exports.ComponentSize.XXSmall] = 'small',
|
|
7858
7858
|
_a);
|
|
7859
|
-
var StyledBaseButton = newStyled(BaseButton)(templateObject_1$1s || (templateObject_1$1s = __makeTemplateObject(["\n width: ", ";\n font-size: ", ";\n padding: ", ";\n font-weight: ", ";\n border-radius: ", ";\n cursor: pointer;\n &:disabled {\n background-color: ", ";\n color: ", ";\n cursor: not-allowed;\n }\n svg {\n color: inherit;\n }\n"], ["\n width: ", ";\n font-size: ", ";\n padding: ", ";\n font-weight: ", ";\n border-radius: ", ";\n cursor: pointer;\n &:disabled {\n background-color: ", ";\n color: ", ";\n cursor: not-allowed;\n }\n svg {\n color: inherit;\n }\n"])), function (_a) {
|
|
7859
|
+
var StyledBaseButton = newStyled(BaseButton)(templateObject_1$1s || (templateObject_1$1s = __makeTemplateObject(["\n width: ", ";\n font-size: ", ";\n padding: ", ";\n font-weight: ", ";\n border-radius: ", ";\n cursor: pointer;\n ", "\n &:disabled {\n background-color: ", ";\n color: ", ";\n cursor: not-allowed;\n }\n svg {\n color: inherit;\n }\n"], ["\n width: ", ";\n font-size: ", ";\n padding: ", ";\n font-weight: ", ";\n border-radius: ", ";\n cursor: pointer;\n ", "\n &:disabled {\n background-color: ", ";\n color: ", ";\n cursor: not-allowed;\n }\n svg {\n color: inherit;\n }\n"])), function (_a) {
|
|
7860
7860
|
var wide = _a.wide;
|
|
7861
7861
|
return (wide ? '100%' : 'fit-content');
|
|
7862
7862
|
}, function (_a) {
|
|
@@ -7871,6 +7871,9 @@ var StyledBaseButton = newStyled(BaseButton)(templateObject_1$1s || (templateObj
|
|
|
7871
7871
|
}, function (_a) {
|
|
7872
7872
|
var theme = _a.theme;
|
|
7873
7873
|
return theme.component.button.borderRadius;
|
|
7874
|
+
}, function (_a) {
|
|
7875
|
+
var alignItems = _a.alignItems;
|
|
7876
|
+
return alignItems && "align-items: ".concat(alignItems, ";");
|
|
7874
7877
|
}, function (_a) {
|
|
7875
7878
|
var theme = _a.theme;
|
|
7876
7879
|
return theme.colors.background.disabled;
|
|
@@ -7886,7 +7889,7 @@ var templateObject_1$1s, templateObject_2$18;
|
|
|
7886
7889
|
|
|
7887
7890
|
var BaseCTA = function (_a) {
|
|
7888
7891
|
var _b, _c, _d;
|
|
7889
|
-
var text = _a.text, _e = _a.wide, wide = _e === void 0 ? false : _e, _f = _a.size, size = _f === void 0 ? exports.ComponentSize.Medium : _f, iconName = _a.iconName, icon = _a.icon, props = __rest(_a, ["text", "wide", "size", "iconName", "icon"]);
|
|
7892
|
+
var text = _a.text, _e = _a.wide, wide = _e === void 0 ? false : _e, _f = _a.size, size = _f === void 0 ? exports.ComponentSize.Medium : _f, iconName = _a.iconName, icon = _a.icon, alignItems = _a.alignItems, props = __rest(_a, ["text", "wide", "size", "iconName", "icon", "alignItems"]);
|
|
7890
7893
|
var theme = useTheme();
|
|
7891
7894
|
var currentIconName, iconPos = 'right', iconMargin = '10px', iconSize = '24px';
|
|
7892
7895
|
if (icon) {
|
|
@@ -7907,7 +7910,7 @@ var BaseCTA = function (_a) {
|
|
|
7907
7910
|
width: iconSize,
|
|
7908
7911
|
height: iconSize,
|
|
7909
7912
|
};
|
|
7910
|
-
return (jsxRuntime.jsxs(StyledBaseButton, __assign$1({}, props, { wide: wide, size: size }, { children: [currentIconName && iconPos === 'left' && (jsxRuntime.jsx(StyledIcon, __assign$1({}, commonIconProps, { marginRight: iconMargin }), void 0)), text, currentIconName && iconPos === 'right' && (jsxRuntime.jsx(StyledIcon, __assign$1({}, commonIconProps, { marginLeft: iconMargin }), void 0))] }), void 0));
|
|
7913
|
+
return (jsxRuntime.jsxs(StyledBaseButton, __assign$1({}, props, { wide: wide, size: size, alignItems: alignItems }, { children: [currentIconName && iconPos === 'left' && (jsxRuntime.jsx(StyledIcon, __assign$1({}, commonIconProps, { marginRight: iconMargin }), void 0)), text, currentIconName && iconPos === 'right' && (jsxRuntime.jsx(StyledIcon, __assign$1({}, commonIconProps, { marginLeft: iconMargin }), void 0))] }), void 0));
|
|
7911
7914
|
};
|
|
7912
7915
|
|
|
7913
7916
|
var ButtonPrimary = function (_a) {
|