@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.d.ts
CHANGED
|
@@ -950,17 +950,17 @@ declare const FitGuarantee$1: IconComponent;
|
|
|
950
950
|
|
|
951
951
|
declare const FitPredictor$1: IconComponent;
|
|
952
952
|
|
|
953
|
-
declare const
|
|
953
|
+
declare const FlagAU: IconComponent;
|
|
954
954
|
|
|
955
955
|
declare const FlagCA: IconComponent;
|
|
956
956
|
|
|
957
|
+
declare const FlagGB: IconComponent;
|
|
958
|
+
|
|
957
959
|
declare const FlagNZ: IconComponent;
|
|
958
960
|
|
|
959
961
|
declare const FlagSG: IconComponent;
|
|
960
962
|
|
|
961
|
-
declare const
|
|
962
|
-
|
|
963
|
-
declare const FlagUSA$1: IconComponent;
|
|
963
|
+
declare const FlagUS: IconComponent;
|
|
964
964
|
|
|
965
965
|
declare const FreeExchange: IconComponent;
|
|
966
966
|
|
|
@@ -1016,11 +1016,12 @@ declare const Other_Chat: typeof Chat;
|
|
|
1016
1016
|
declare const Other_Coupons: typeof Coupons;
|
|
1017
1017
|
declare const Other_Email: typeof Email;
|
|
1018
1018
|
declare const Other_ExpressShipping: typeof ExpressShipping;
|
|
1019
|
-
declare const
|
|
1019
|
+
declare const Other_FlagAU: typeof FlagAU;
|
|
1020
1020
|
declare const Other_FlagCA: typeof FlagCA;
|
|
1021
|
+
declare const Other_FlagGB: typeof FlagGB;
|
|
1021
1022
|
declare const Other_FlagNZ: typeof FlagNZ;
|
|
1022
1023
|
declare const Other_FlagSG: typeof FlagSG;
|
|
1023
|
-
declare const
|
|
1024
|
+
declare const Other_FlagUS: typeof FlagUS;
|
|
1024
1025
|
declare const Other_FreeExchange: typeof FreeExchange;
|
|
1025
1026
|
declare const Other_GetDiscount: typeof GetDiscount;
|
|
1026
1027
|
declare const Other_HasselFreeReturns: typeof HasselFreeReturns;
|
|
@@ -1056,12 +1057,12 @@ declare namespace Other {
|
|
|
1056
1057
|
Other_ExpressShipping as ExpressShipping,
|
|
1057
1058
|
FitGuarantee$1 as FitGuarantee,
|
|
1058
1059
|
FitPredictor$1 as FitPredictor,
|
|
1059
|
-
|
|
1060
|
+
Other_FlagAU as FlagAU,
|
|
1060
1061
|
Other_FlagCA as FlagCA,
|
|
1062
|
+
Other_FlagGB as FlagGB,
|
|
1061
1063
|
Other_FlagNZ as FlagNZ,
|
|
1062
1064
|
Other_FlagSG as FlagSG,
|
|
1063
|
-
|
|
1064
|
-
FlagUSA$1 as FlagUSA,
|
|
1065
|
+
Other_FlagUS as FlagUS,
|
|
1065
1066
|
Other_FreeExchange as FreeExchange,
|
|
1066
1067
|
Other_GetDiscount as GetDiscount,
|
|
1067
1068
|
Other_HasselFreeReturns as HasselFreeReturns,
|
|
@@ -2553,6 +2554,7 @@ declare type CTAProps = {
|
|
|
2553
2554
|
margin?: string;
|
|
2554
2555
|
size?: string;
|
|
2555
2556
|
};
|
|
2557
|
+
alignItems?: CSSProperties['alignItems'];
|
|
2556
2558
|
};
|
|
2557
2559
|
declare type DropdownOption<T> = {
|
|
2558
2560
|
key: string;
|
|
@@ -3172,6 +3174,7 @@ interface BaseCTAProps {
|
|
|
3172
3174
|
position?: 'left' | 'right';
|
|
3173
3175
|
margin?: string;
|
|
3174
3176
|
};
|
|
3177
|
+
alignItems?: CSSProperties['alignItems'];
|
|
3175
3178
|
}
|
|
3176
3179
|
|
|
3177
3180
|
declare type ButtonProps = {
|
package/build/index.esm.js
CHANGED
|
@@ -4555,17 +4555,17 @@ var FitGuarantee$1 = function (props) { return (jsx$1(Icon$1, __assign$1({}, pro
|
|
|
4555
4555
|
|
|
4556
4556
|
var FitPredictor$1 = function (props) { return (jsx$1(Icon$1, __assign$1({}, props, { name: "other/fit_predictor" }), void 0)); };
|
|
4557
4557
|
|
|
4558
|
-
var
|
|
4558
|
+
var FlagAU = function (props) { return jsx$1(Icon$1, __assign$1({}, props, { name: "other/flag_aus" }), void 0); };
|
|
4559
4559
|
|
|
4560
4560
|
var FlagCA = function (props) { return jsx$1(Icon$1, __assign$1({}, props, { name: "other/flag_canada" }), void 0); };
|
|
4561
4561
|
|
|
4562
|
+
var FlagGB = function (props) { return jsx$1(Icon$1, __assign$1({}, props, { name: "other/flag_uk" }), void 0); };
|
|
4563
|
+
|
|
4562
4564
|
var FlagNZ = function (props) { return jsx$1(Icon$1, __assign$1({}, props, { name: "other/flag_nz" }), void 0); };
|
|
4563
4565
|
|
|
4564
4566
|
var FlagSG = function (props) { return jsx$1(Icon$1, __assign$1({}, props, { name: "other/flag_sg" }), void 0); };
|
|
4565
4567
|
|
|
4566
|
-
var
|
|
4567
|
-
|
|
4568
|
-
var FlagUSA$1 = function (props) { return jsx$1(Icon$1, __assign$1({}, props, { name: "other/flag_usa" }), void 0); };
|
|
4568
|
+
var FlagUS = function (props) { return jsx$1(Icon$1, __assign$1({}, props, { name: "other/flag_usa" }), void 0); };
|
|
4569
4569
|
|
|
4570
4570
|
var FreeExchange = function (props) { return (jsx$1(Icon$1, __assign$1({}, props, { name: "other/free_exchange" }), void 0)); };
|
|
4571
4571
|
|
|
@@ -4625,12 +4625,12 @@ var Other = /*#__PURE__*/Object.freeze({
|
|
|
4625
4625
|
ExpressShipping: ExpressShipping,
|
|
4626
4626
|
FitGuarantee: FitGuarantee$1,
|
|
4627
4627
|
FitPredictor: FitPredictor$1,
|
|
4628
|
-
|
|
4628
|
+
FlagAU: FlagAU,
|
|
4629
4629
|
FlagCA: FlagCA,
|
|
4630
|
+
FlagGB: FlagGB,
|
|
4630
4631
|
FlagNZ: FlagNZ,
|
|
4631
4632
|
FlagSG: FlagSG,
|
|
4632
|
-
|
|
4633
|
-
FlagUSA: FlagUSA$1,
|
|
4633
|
+
FlagUS: FlagUS,
|
|
4634
4634
|
FreeExchange: FreeExchange,
|
|
4635
4635
|
GetDiscount: GetDiscount,
|
|
4636
4636
|
HasselFreeReturns: HasselFreeReturns,
|
|
@@ -7830,7 +7830,7 @@ var sizeMapper = (_a = {},
|
|
|
7830
7830
|
_a[ComponentSize.XSmall] = 'small',
|
|
7831
7831
|
_a[ComponentSize.XXSmall] = 'small',
|
|
7832
7832
|
_a);
|
|
7833
|
-
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) {
|
|
7833
|
+
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) {
|
|
7834
7834
|
var wide = _a.wide;
|
|
7835
7835
|
return (wide ? '100%' : 'fit-content');
|
|
7836
7836
|
}, function (_a) {
|
|
@@ -7845,6 +7845,9 @@ var StyledBaseButton = newStyled(BaseButton)(templateObject_1$1s || (templateObj
|
|
|
7845
7845
|
}, function (_a) {
|
|
7846
7846
|
var theme = _a.theme;
|
|
7847
7847
|
return theme.component.button.borderRadius;
|
|
7848
|
+
}, function (_a) {
|
|
7849
|
+
var alignItems = _a.alignItems;
|
|
7850
|
+
return alignItems && "align-items: ".concat(alignItems, ";");
|
|
7848
7851
|
}, function (_a) {
|
|
7849
7852
|
var theme = _a.theme;
|
|
7850
7853
|
return theme.colors.background.disabled;
|
|
@@ -7860,7 +7863,7 @@ var templateObject_1$1s, templateObject_2$18;
|
|
|
7860
7863
|
|
|
7861
7864
|
var BaseCTA = function (_a) {
|
|
7862
7865
|
var _b, _c, _d;
|
|
7863
|
-
var text = _a.text, _e = _a.wide, wide = _e === void 0 ? false : _e, _f = _a.size, size = _f === void 0 ? ComponentSize.Medium : _f, iconName = _a.iconName, icon = _a.icon, props = __rest(_a, ["text", "wide", "size", "iconName", "icon"]);
|
|
7866
|
+
var text = _a.text, _e = _a.wide, wide = _e === void 0 ? false : _e, _f = _a.size, size = _f === void 0 ? ComponentSize.Medium : _f, iconName = _a.iconName, icon = _a.icon, alignItems = _a.alignItems, props = __rest(_a, ["text", "wide", "size", "iconName", "icon", "alignItems"]);
|
|
7864
7867
|
var theme = useTheme();
|
|
7865
7868
|
var currentIconName, iconPos = 'right', iconMargin = '10px', iconSize = '24px';
|
|
7866
7869
|
if (icon) {
|
|
@@ -7881,7 +7884,7 @@ var BaseCTA = function (_a) {
|
|
|
7881
7884
|
width: iconSize,
|
|
7882
7885
|
height: iconSize,
|
|
7883
7886
|
};
|
|
7884
|
-
return (jsxs$1(StyledBaseButton, __assign$1({}, props, { wide: wide, size: size }, { children: [currentIconName && iconPos === 'left' && (jsx$1(StyledIcon, __assign$1({}, commonIconProps, { marginRight: iconMargin }), void 0)), text, currentIconName && iconPos === 'right' && (jsx$1(StyledIcon, __assign$1({}, commonIconProps, { marginLeft: iconMargin }), void 0))] }), void 0));
|
|
7887
|
+
return (jsxs$1(StyledBaseButton, __assign$1({}, props, { wide: wide, size: size, alignItems: alignItems }, { children: [currentIconName && iconPos === 'left' && (jsx$1(StyledIcon, __assign$1({}, commonIconProps, { marginRight: iconMargin }), void 0)), text, currentIconName && iconPos === 'right' && (jsx$1(StyledIcon, __assign$1({}, commonIconProps, { marginLeft: iconMargin }), void 0))] }), void 0));
|
|
7885
7888
|
};
|
|
7886
7889
|
|
|
7887
7890
|
var ButtonPrimary = function (_a) {
|