@trafilea/afrodita-components 5.0.0-beta.104 → 5.0.0-beta.105

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
@@ -1787,8 +1787,9 @@ declare const DeliveryDetails: ({ deliveryDetailsText, arrivingBy, shippingTo, i
1787
1787
  interface ScrollToTopProps {
1788
1788
  scrollToTopText: string;
1789
1789
  onClick: () => void;
1790
+ fill?: string;
1790
1791
  }
1791
- declare const ScrollToTop: ({ scrollToTopText, onClick }: ScrollToTopProps) => JSX.Element;
1792
+ declare const ScrollToTop: ({ scrollToTopText, onClick, fill }: ScrollToTopProps) => JSX.Element;
1792
1793
 
1793
1794
  interface OrderBarProps {
1794
1795
  message: string;
@@ -12404,9 +12404,10 @@ var templateObject_1$F, templateObject_2$r, templateObject_3$n, templateObject_4
12404
12404
  var Container$q = newStyled.div(templateObject_1$E || (templateObject_1$E = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n cursor: pointer;\n user-select: none;\n"], ["\n display: inline-flex;\n align-items: center;\n cursor: pointer;\n user-select: none;\n"])));
12405
12405
  var Text$3 = newStyled.p(templateObject_2$q || (templateObject_2$q = __makeTemplateObject(["\n margin: 0;\n font-size: 1rem;\n line-height: 1.5rem;\n font-weight: 700;\n color: ", ";\n margin-right: 0.313rem;\n"], ["\n margin: 0;\n font-size: 1rem;\n line-height: 1.5rem;\n font-weight: 700;\n color: ", ";\n margin-right: 0.313rem;\n"])), function (props) { return props.color; });
12406
12406
  var ScrollToTop = function (_a) {
12407
- var scrollToTopText = _a.scrollToTopText, onClick = _a.onClick;
12407
+ var scrollToTopText = _a.scrollToTopText, onClick = _a.onClick, fill = _a.fill;
12408
12408
  var theme = useTheme();
12409
- return (jsxs$1(Container$q, __assign$1({ onClick: onClick, "data-testid": "Container" }, { children: [jsx$1(Text$3, __assign$1({ color: theme.colors.shades['700'].color }, { children: scrollToTopText }), void 0), jsx$1(Icon.Arrows.ChevronUpSolid, { width: 1.375, height: 1.375, fill: theme.colors.pallete.primary.color }, void 0)] }), void 0));
12409
+ var fillValue = fill || theme.colors.pallete.primary.color;
12410
+ return (jsxs$1(Container$q, __assign$1({ onClick: onClick, "data-testid": "Container" }, { children: [jsx$1(Text$3, __assign$1({ color: theme.colors.shades['700'].color }, { children: scrollToTopText }), void 0), jsx$1(Icon.Arrows.CircleChevronUp, { width: 1.375, height: 1.375, fill: fillValue }, void 0)] }), void 0));
12410
12411
  };
12411
12412
  var templateObject_1$E, templateObject_2$q;
12412
12413