@trafilea/afrodita-components 5.0.0-beta.144 → 5.0.0-beta.146

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 CHANGED
@@ -919,7 +919,7 @@ interface borderProps {
919
919
  }
920
920
  interface CardProps {
921
921
  children: ReactNode;
922
- backgroundColor: string;
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,16 @@ 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
+ orderHeaderText: {
1705
+ color: string;
1706
+ };
1687
1707
  };
1688
1708
  declare type ThemeTypography = {
1689
1709
  config: {
@@ -2475,9 +2495,9 @@ interface IconList {
2475
2495
  declare const IconsWithTitle: ({ iconName, iconTitle, backgroundColor, iconColor, iconSizeDesktop, iconSizeMobile, iconTitlePosition, iconTitleStyle, iconStyle, isTitleInnerHtml, }: IconList) => JSX.Element | null;
2476
2496
 
2477
2497
  interface NoteProps {
2478
- accentColor: string;
2479
- color: string;
2480
- backgroundColor: string;
2498
+ accentColor?: string;
2499
+ color?: string;
2500
+ backgroundColor?: string;
2481
2501
  importantNoteText: string;
2482
2502
  text: string;
2483
2503
  }
@@ -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) { return props.backgroundColor; }, function (props) { return props.theme.component.card.borderRadius; }, 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,
@@ -4739,7 +4741,7 @@ var SelectorSecondary = function (_a) {
4739
4741
  border: theme.component.selector.default.border,
4740
4742
  fontWeight: theme.component.selector.default.fontWeight,
4741
4743
  };
4742
- if (!active && showNoStockStyles) {
4744
+ if (showNoStockStyles) {
4743
4745
  stylesByActive = {
4744
4746
  background: theme.component.selector.noStock.background,
4745
4747
  color: theme.component.selector.noStock.color,
@@ -5109,7 +5111,7 @@ var PriceLabel = function (_a) {
5109
5111
  weight: 700,
5110
5112
  };
5111
5113
  var OriginalPrice = function () { return (jsx$1(Price, __assign$1({ size: originalPriceStyled ? size : ComponentSize.Small, color: theme.component.pricing.priceLabel.price.originalPriceColor, margin: true, underlined: originalPriceUnderlined, "data-testid": getTestId(testId, 'original-product-price') }, { children: originalPrice }), void 0)); };
5112
- return (jsxs$1(Container$N, { children: [jsx$1(Price, __assign$1({ margin: true, "data-testid": getTestId(testId, 'final-product-price') }, priceCommonProps, { style: finalPriceStyle }, { children: finalPrice }), void 0), !!originalPrice && jsx$1(OriginalPrice, {}, void 0), discount && (jsx$1(TagContainer, __assign$1({ size: size }, { children: jsx$1(DiscountTag, __assign$1({}, discount, { size: size }), void 0) }), void 0))] }, void 0));
5114
+ return (jsxs$1(Container$N, { children: [jsx$1(Price, __assign$1({ margin: true, "data-testid": getTestId(testId, 'final-product-price') }, priceCommonProps, { color: theme.component.pricing.priceLabel.price.actualPriceColor, style: finalPriceStyle }, { children: finalPrice }), void 0), !!originalPrice && jsx$1(OriginalPrice, {}, void 0), discount && (jsx$1(TagContainer, __assign$1({ size: size }, { children: jsx$1(DiscountTag, __assign$1({}, discount, { size: size }), void 0) }), void 0))] }, void 0));
5113
5115
  };
5114
5116
  var templateObject_1$1b, templateObject_2$M, templateObject_3$B;
5115
5117
 
@@ -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
- return (jsxs$1(Container$u, __assign$1({ color: backgroundColor, "data-testid": "Container" }, { children: [jsx$1(IconContainer$3, { children: jsx$1(Icon.Actions.LightExclamation, { fill: accentColor }, void 0) }, void 0), jsx$1("div", { children: jsxs$1(Text$4, __assign$1({ color: color }, { children: [importantNoteText && jsxs$1(Details, __assign$1({ color: accentColor }, { children: [importantNoteText, ":"] }), void 0), " ", text] }), void 0) }, void 0)] }), void 0));
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