@trafilea/afrodita-components 5.0.0-beta.145 → 5.0.0-beta.147
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 +29 -7
- package/build/index.esm.js +6 -3
- package/build/index.esm.js.map +1 -1
- package/build/index.js +6 -3
- package/build/index.js.map +1 -1
- package/build/theme/revel.theme.d.ts +22 -0
- package/build/theme/revel.theme.js +22 -1
- package/build/theme/shapermint.theme.d.ts +22 -0
- package/build/theme/shapermint.theme.js +21 -0
- package/build/theme/truekind.theme.d.ts +22 -0
- package/build/theme/truekind.theme.js +23 -2
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -919,7 +919,7 @@ interface borderProps {
|
|
|
919
919
|
}
|
|
920
920
|
interface CardProps {
|
|
921
921
|
children: ReactNode;
|
|
922
|
-
backgroundColor
|
|
922
|
+
backgroundColor?: string;
|
|
923
923
|
widthAuto?: boolean;
|
|
924
924
|
border?: borderProps;
|
|
925
925
|
flex?: boolean;
|
|
@@ -1385,6 +1385,7 @@ declare type ThemeComponent = {
|
|
|
1385
1385
|
};
|
|
1386
1386
|
card: {
|
|
1387
1387
|
borderRadius: string;
|
|
1388
|
+
backgroundColor: string;
|
|
1388
1389
|
};
|
|
1389
1390
|
radio: {
|
|
1390
1391
|
borderColor: string;
|
|
@@ -1663,11 +1664,20 @@ declare type ThemeComponent = {
|
|
|
1663
1664
|
price: {
|
|
1664
1665
|
size: ComponentSize$1.Small | ComponentSize$1.Medium | ComponentSize$1.Large;
|
|
1665
1666
|
originalPriceColor: string;
|
|
1667
|
+
actualPriceColor: string;
|
|
1666
1668
|
};
|
|
1667
1669
|
};
|
|
1668
1670
|
};
|
|
1669
1671
|
orderSummary: {
|
|
1670
1672
|
backgroundColor: string;
|
|
1673
|
+
maxWidth?: string;
|
|
1674
|
+
padding?: string;
|
|
1675
|
+
borderRadius?: string;
|
|
1676
|
+
onMobile: {
|
|
1677
|
+
maxWidth?: string;
|
|
1678
|
+
padding?: string;
|
|
1679
|
+
backgroundColor?: string;
|
|
1680
|
+
};
|
|
1671
1681
|
};
|
|
1672
1682
|
expressCheckout: {
|
|
1673
1683
|
fontFamily: string;
|
|
@@ -1684,6 +1694,18 @@ declare type ThemeComponent = {
|
|
|
1684
1694
|
fontWeight: number;
|
|
1685
1695
|
lineHeight: string;
|
|
1686
1696
|
};
|
|
1697
|
+
deliveryDetails: {
|
|
1698
|
+
note: {
|
|
1699
|
+
accentColor: string;
|
|
1700
|
+
color: string;
|
|
1701
|
+
backgroundColor: string;
|
|
1702
|
+
};
|
|
1703
|
+
};
|
|
1704
|
+
text: {
|
|
1705
|
+
orderHeader: {
|
|
1706
|
+
color: string;
|
|
1707
|
+
};
|
|
1708
|
+
};
|
|
1687
1709
|
};
|
|
1688
1710
|
declare type ThemeTypography = {
|
|
1689
1711
|
config: {
|
|
@@ -1934,9 +1956,9 @@ interface DeliveryDetailsProps {
|
|
|
1934
1956
|
note?: {
|
|
1935
1957
|
importantNoteText: string;
|
|
1936
1958
|
text: string;
|
|
1937
|
-
accentColor
|
|
1938
|
-
backgroundColor
|
|
1939
|
-
color
|
|
1959
|
+
accentColor?: string;
|
|
1960
|
+
backgroundColor?: string;
|
|
1961
|
+
color?: string;
|
|
1940
1962
|
};
|
|
1941
1963
|
}
|
|
1942
1964
|
declare const DeliveryDetails: ({ deliveryDetailsText, arrivingBy, shippingTo, instantOrderUpdate, note, }: DeliveryDetailsProps) => JSX.Element;
|
|
@@ -2475,9 +2497,9 @@ interface IconList {
|
|
|
2475
2497
|
declare const IconsWithTitle: ({ iconName, iconTitle, backgroundColor, iconColor, iconSizeDesktop, iconSizeMobile, iconTitlePosition, iconTitleStyle, iconStyle, isTitleInnerHtml, }: IconList) => JSX.Element | null;
|
|
2476
2498
|
|
|
2477
2499
|
interface NoteProps {
|
|
2478
|
-
accentColor
|
|
2479
|
-
color
|
|
2480
|
-
backgroundColor
|
|
2500
|
+
accentColor?: string;
|
|
2501
|
+
color?: string;
|
|
2502
|
+
backgroundColor?: string;
|
|
2481
2503
|
importantNoteText: string;
|
|
2482
2504
|
text: string;
|
|
2483
2505
|
}
|
package/build/index.esm.js
CHANGED
|
@@ -4186,13 +4186,15 @@ var Container$R = newStyled.div(templateObject_1$1k || (templateObject_1$1k = __
|
|
|
4186
4186
|
}, function (_a) {
|
|
4187
4187
|
var widthAuto = _a.widthAuto;
|
|
4188
4188
|
return (widthAuto ? 'auto' : 'fit-content');
|
|
4189
|
-
}, function (props) {
|
|
4189
|
+
}, function (props) {
|
|
4190
|
+
return props.backgroundColor ? props.backgroundColor : props.theme.component.card.backgroundColor;
|
|
4191
|
+
}, function (props) { return props.theme.component.card.borderRadius; }, function (props) {
|
|
4190
4192
|
return props.border ? "".concat(props.border.borderWidth, " solid ").concat(props.border.borderColor) : 'none';
|
|
4191
4193
|
});
|
|
4192
4194
|
var Card$1 = function (_a) {
|
|
4193
4195
|
var children = _a.children, backgroundColor = _a.backgroundColor, _b = _a.widthAuto, widthAuto = _b === void 0 ? true : _b, border = _a.border, _c = _a.flex, flex = _c === void 0 ? true : _c;
|
|
4194
4196
|
var theme = useTheme();
|
|
4195
|
-
return (jsx$1(Container$R, __assign$1({ backgroundColor: backgroundColor, widthAuto: widthAuto, border: border, flex: flex, "data-testid": "CardContainer", theme: theme }, { children: children }), void 0));
|
|
4197
|
+
return (jsx$1(Container$R, __assign$1({ backgroundColor: backgroundColor ? backgroundColor : theme.component.card.backgroundColor, widthAuto: widthAuto, border: border, flex: flex, "data-testid": "CardContainer", theme: theme }, { children: children }), void 0));
|
|
4196
4198
|
};
|
|
4197
4199
|
var Card$2 = Object.assign(Card$1, {
|
|
4198
4200
|
Header: CardHeader,
|
|
@@ -12347,7 +12349,8 @@ var Text$4 = newStyled.p(templateObject_3$q || (templateObject_3$q = __makeTempl
|
|
|
12347
12349
|
var Details = newStyled.span(templateObject_4$i || (templateObject_4$i = __makeTemplateObject(["\n color: ", ";\n font-weight: 700;\n"], ["\n color: ", ";\n font-weight: 700;\n"])), function (props) { return props.color; });
|
|
12348
12350
|
var Note = function (_a) {
|
|
12349
12351
|
var accentColor = _a.accentColor, color = _a.color, backgroundColor = _a.backgroundColor, importantNoteText = _a.importantNoteText, text = _a.text;
|
|
12350
|
-
|
|
12352
|
+
var theme = useTheme();
|
|
12353
|
+
return (jsxs$1(Container$u, __assign$1({ color: backgroundColor ? backgroundColor : theme.component.deliveryDetails.note.backgroundColor, "data-testid": "Container" }, { children: [jsx$1(IconContainer$3, { children: jsx$1(Icon.Actions.LightExclamation, { fill: accentColor ? accentColor : theme.component.deliveryDetails.note.accentColor }, void 0) }, void 0), jsx$1("div", { children: jsxs$1(Text$4, __assign$1({ color: color ? color : theme.component.deliveryDetails.note.color }, { children: [importantNoteText && (jsxs$1(Details, __assign$1({ color: accentColor ? accentColor : theme.component.deliveryDetails.note.accentColor }, { children: [importantNoteText, ":"] }), void 0)), ' ', text] }), void 0) }, void 0)] }), void 0));
|
|
12351
12354
|
};
|
|
12352
12355
|
var templateObject_1$J, templateObject_2$u, templateObject_3$q, templateObject_4$i;
|
|
12353
12356
|
|