@trafilea/afrodita-components 7.5.0 → 7.5.1
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as t}from"tslib";import{jsxs as
|
|
1
|
+
import{__assign as t,__rest as r}from"tslib";import{jsxs as e,jsx as i}from"react/jsx-runtime";import{useTheme as o}from"../../../../core/theme/Theme.js";import{Text as n}from"../../../text/Text.js";import{Footer as m}from"../Footer/Footer.js";import{ProductItem as c}from"../ProductItem/ProductItem.js";import{Container as d,Header as l,OptionsList as p,OptionItem as h,Anchor as s}from"./styled.js";var v=function(v){var a=v.options,f=v.header,u=v.footer,j=v.onViewAll,x=v.testId,I=v.onItemClick,k=o();return e(d,t({"data-testid":x,theme:k},{children:[f&&i(l,t({theme:k},{children:i(n,t({variant:"heading6",weight:"demi"},{children:f}),void 0)}),void 0),i(p,{children:a.map((function(e){var o=e.optionUrl,n=e.price,m=e.src,d=e.title,l=r(e,["optionUrl","price","src","title"]);return i(h,t({theme:k},{children:i(s,t({href:o,onClick:function(){return r=t({optionUrl:o,price:n,src:m,title:d},l),void(null==I||I(r));var r}},{children:i(c,{src:m,title:d,price:n},void 0)}),void 0)}),d)}))},void 0),u&&i(m,{text:u,onClick:j},void 0)]}),void 0)};export{v as ResultsPanel};
|
|
2
2
|
//# sourceMappingURL=ResultsPanel.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),t=require("../../../../core/theme/Theme.js"),i=require("../../../text/Text.js"),s=require("../Footer/Footer.js"),o=require("../ProductItem/ProductItem.js"),n=require("./styled.js");exports.ResultsPanel=function(
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),t=require("../../../../core/theme/Theme.js"),i=require("../../../text/Text.js"),s=require("../Footer/Footer.js"),o=require("../ProductItem/ProductItem.js"),n=require("./styled.js");exports.ResultsPanel=function(c){var d=c.options,l=c.header,u=c.footer,a=c.onViewAll,h=c.testId,_=c.onItemClick,j=t.useTheme();return r.jsxs(n.Container,e.__assign({"data-testid":h,theme:j},{children:[l&&r.jsx(n.Header,e.__assign({theme:j},{children:r.jsx(i.Text,e.__assign({variant:"heading6",weight:"demi"},{children:l}),void 0)}),void 0),r.jsx(n.OptionsList,{children:d.map((function(t){var i=t.optionUrl,s=t.price,c=t.src,d=t.title,l=e.__rest(t,["optionUrl","price","src","title"]);return r.jsx(n.OptionItem,e.__assign({theme:j},{children:r.jsx(n.Anchor,e.__assign({href:i,onClick:function(){return r=e.__assign({optionUrl:i,price:s,src:c,title:d},l),void(null==_||_(r));var r}},{children:r.jsx(o.ProductItem,{src:c,title:d,price:s},void 0)}),void 0)}),d)}))},void 0),u&&r.jsx(s.Footer,{text:u,onClick:a},void 0)]}),void 0)};
|
|
2
2
|
//# sourceMappingURL=ResultsPanel.js.map
|
package/package.json
CHANGED