@trafilea/afrodita-components 7.27.6 → 7.27.7

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 o}from"tslib";import{jsxs as i,jsx as e}from"@emotion/react/jsx-runtime";import"react/jsx-runtime";import"../../core/theme/Theme.js";import"react";import"../../types/enums.js";import"../pricing/clubOffer/ClubOfferTag.js";import"../pricing/discount/styled.js";import"../pricing/styles.js";import{Tooltip as t}from"../tooltip/Tooltip.js";import"../atoms/PriceLabel/PriceLabel.js";import"../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.styled.js";import"../atoms/HorizontalDivider/HorizontalDivider.js";import{Icon as r}from"../atoms/Icon/Icon.js";import"../atoms/Image/styled.js";import"../atoms/PriceLabelV2/PriceLabelV2.js";import"../atoms/Toggle/toggle.styled.js";import l from"./ColorRadioGroup.js";import{renderOptions as s}from"./SingleColorPicker.js";import{ColorPickerWrapper as n,TooltipContent as a,NumericTooltip as m}from"./styles/ColorPickerwithTootip.styled.js";var d=function(d){var c,p=d.options,v=void 0===p?[]:p,u=d.selectedValue,h=d.label,b=d.onChange,g=d.inline,j=void 0!==g&&g,f=d.maxVisibleOptions,C=void 0===f?5:f,w=d.showCross,y=d.className,L=d.tooltipOptions,P=d.translatedLabels,I=v.slice(0,C),x=v.slice(C),T=(null!=L?L:{}).showCloseIcon,O=(null==L?void 0:L.numeric)?null==x?void 0:x.length:0,N=u?null!==(c=null==P?void 0:P[u.label])&&void 0!==c?c:u.label:void 0;return i(n,o({className:y,value:u,onChange:b,css:{flexDirection:j?"row":"column",alignItems:j?"center":"start"}},{children:[e(l.Label,{label:h,values:N&&!j?N:void 0},void 0),i(l.OptionsContainer,o({css:{marginTop:j?"0":"0.63rem",marginLeft:j?"1.5rem":"0"},"data-testid":"radio-group-options-container"},{children:[s(I,w,void 0,P),!!x.length&&e("div",o({style:{display:"flex",alignItems:"center",justifyContent:"center"}},{children:e(t,o({showCloseIcon:T,position:1,elementContent:e(a,o({className:"tooltip-content"},{children:s(x,w,void 0,P)}),void 0),withArrow:!0},{children:(null==L?void 0:L.numeric)?i(m,o({"data-testid":"numeric-tooltip"},{children:["+",O]}),void 0):e("div",o({className:"arrow","data-testid":"tooltip-arrow"},{children:e(r,{name:"arrows/chevron_down",width:1,height:1},void 0)}),void 0)}),void 0)}),void 0)]}),void 0)]}),void 0)};export{d as default};
1
+ import{__assign as o}from"tslib";import{jsxs as i,jsx as e}from"@emotion/react/jsx-runtime";import"react/jsx-runtime";import"../../core/theme/Theme.js";import"react";import"../../types/enums.js";import"../pricing/clubOffer/ClubOfferTag.js";import"../pricing/discount/styled.js";import"../pricing/styles.js";import{Tooltip as t}from"../tooltip/Tooltip.js";import"../atoms/PriceLabel/PriceLabel.js";import"../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.styled.js";import"../atoms/HorizontalDivider/HorizontalDivider.js";import{Icon as r}from"../atoms/Icon/Icon.js";import"../atoms/Image/styled.js";import"../atoms/PriceLabelV2/PriceLabelV2.js";import"../atoms/Toggle/toggle.styled.js";import l from"./ColorRadioGroup.js";import{renderOptions as s}from"./SingleColorPicker.js";import{ColorPickerWrapper as n,TooltipContent as a,NumericTooltip as m}from"./styles/ColorPickerwithTootip.styled.js";var d=function(d){var c,p=d.options,v=void 0===p?[]:p,u=d.selectedValue,h=d.label,b=d.onChange,g=d.inline,j=void 0!==g&&g,f=d.maxVisibleOptions,C=void 0===f?5:f,w=d.showCross,y=d.className,L=d.tooltipOptions,P=d.translatedLabels,I=d.colorRadioGroupProps,x=v.slice(0,C),T=v.slice(C),O=(null!=L?L:{}).showCloseIcon,N=(null==L?void 0:L.numeric)?null==T?void 0:T.length:0,V=u?null!==(c=null==P?void 0:P[u.label])&&void 0!==c?c:u.label:void 0;return i(n,o({},I,{className:y,value:u,onChange:b,css:{flexDirection:j?"row":"column",alignItems:j?"center":"start"}},{children:[e(l.Label,{label:h,values:V&&!j?V:void 0},void 0),i(l.OptionsContainer,o({css:{marginTop:j?"0":"0.63rem",marginLeft:j?"1.5rem":"0"},"data-testid":"radio-group-options-container"},{children:[s(x,w,void 0,P),!!T.length&&e("div",o({style:{display:"flex",alignItems:"center",justifyContent:"center"}},{children:e(t,o({showCloseIcon:O,position:1,elementContent:e(a,o({className:"tooltip-content"},{children:s(T,w,void 0,P)}),void 0),withArrow:!0},{children:(null==L?void 0:L.numeric)?i(m,o({"data-testid":"numeric-tooltip"},{children:["+",N]}),void 0):e("div",o({className:"arrow","data-testid":"tooltip-arrow"},{children:e(r,{name:"arrows/chevron_down",width:1,height:1},void 0)}),void 0)}),void 0)}),void 0)]}),void 0)]}),void 0)};export{d as default};
2
2
  //# sourceMappingURL=ColorPickerWithTooltip.js.map
@@ -1,2 +1,2 @@
1
- import{__makeTemplateObject as n,__assign as e}from"tslib";import{jsx as r,jsxs as i}from"react/jsx-runtime";import a from"@emotion/styled";import{RadioGroup as l}from"@headlessui/react";import{Text as t}from"../text/Text.js";var o,s,d,m,p,c=a(l)(o||(o=n(["\n display: flex;\n flex-direction: column;\n"],["\n display: flex;\n flex-direction: column;\n"]))),f=a(l.Label)(s||(s=n(["\n font-size: 0.88rem;\n"],["\n font-size: 0.88rem;\n"]))),u=a(l.Option)(d||(d=n(["\n margin-right: 8px;\n\n svg {\n cursor: pointer;\n }\n"],["\n margin-right: 8px;\n\n svg {\n cursor: pointer;\n }\n"]))),v=a.span(m||(m=n(["\n font-weight: 600;\n"],["\n font-weight: 600;\n"]))),g=a.div(p||(p=n(["\n display: flex;\n margin-top: 0.63rem;\n flex-wrap: wrap;\n"],["\n display: flex;\n margin-top: 0.63rem;\n flex-wrap: wrap;\n"]))),h=Object.assign((function(n){var i=n.value,a=n.onChange,l=n.children,t=n.className;return r(c,e({value:i,onChange:a,className:t},{children:l}),void 0)}),{Label:function(n){var a=n.label,l=n.values;return r(f,{children:i(t,e({variant:"body",weight:"regular",size:"small",asSpan:!0},{children:[a," ",r(v,{children:l},void 0)]}),void 0)},void 0)},Option:function(n){var i=n.value,a=n.children,l=n.disabled,t=n["aria-label"];return r(u,e({value:i,disabled:l,"aria-label":t},{children:a}),void 0)},OptionsContainer:g});export{h as default};
1
+ import{__makeTemplateObject as n,__assign as e}from"tslib";import{jsx as i,jsxs as r}from"react/jsx-runtime";import a from"@emotion/styled";import{RadioGroup as o}from"@headlessui/react";import{Text as l}from"../text/Text.js";var t,s,d,m,p,c=a(o)(t||(t=n(["\n display: flex;\n flex-direction: column;\n"],["\n display: flex;\n flex-direction: column;\n"]))),f=a(o.Label)(s||(s=n(["\n font-size: 0.88rem;\n"],["\n font-size: 0.88rem;\n"]))),u=a(o.Option)(d||(d=n(["\n margin-right: 8px;\n\n svg {\n cursor: pointer;\n }\n"],["\n margin-right: 8px;\n\n svg {\n cursor: pointer;\n }\n"]))),v=a.span(m||(m=n(["\n font-weight: 600;\n"],["\n font-weight: 600;\n"]))),g=a.div(p||(p=n(["\n display: flex;\n margin-top: 0.63rem;\n flex-wrap: wrap;\n"],["\n display: flex;\n margin-top: 0.63rem;\n flex-wrap: wrap;\n"]))),h=Object.assign((function(n){var r=n.value,a=n.onChange,o=n.children,l=n.className,t=n.onClick,s=n.onKeyDown;return i(c,e({value:r,onChange:a,className:l,onClick:t,onKeyDown:s},{children:o}),void 0)}),{Label:function(n){var a=n.label,o=n.values;return i(f,{children:r(l,e({variant:"body",weight:"regular",size:"small",asSpan:!0},{children:[a," ",i(v,{children:o},void 0)]}),void 0)},void 0)},Option:function(n){var r=n.value,a=n.children,o=n.disabled,l=n["aria-label"];return i(u,e({value:r,disabled:o,"aria-label":l},{children:a}),void 0)},OptionsContainer:g});export{h as default};
2
2
  //# sourceMappingURL=ColorRadioGroup.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as o}from"tslib";import{jsxs as e,jsx as t}from"@emotion/react/jsx-runtime";import l from"./ColorRadioGroup.js";import{ColorSelector as r}from"./selector/ColorSelector.js";import{OutOfStock as n}from"./selector/OutOfStock.js";import{PatternSelector as i}from"./selector/PatternSelector.js";var a=function(e,a,s,c){return void 0===a&&(a=!1),0===(null==e?void 0:e.length)?t(n,{title:"out of stock color"},void 0):null==e?void 0:e.map((function(e){var n;return t(l.Option,o({value:e,"aria-label":null!==(n=null==c?void 0:c[e.label])&&void 0!==n?n:e.label},{children:function(o){var l=o.checked;return e.meta.color?t(r,{color:e.meta.color,selected:l,testId:"".concat(e.label.split(" ").join("-").toLowerCase(),"-selector"),noStock:e.noStock,showCross:a,dimension:s},void 0):e.meta.pattern?t(i,{url:e.meta.pattern.url,selected:l,noStock:e.noStock,dimension:s},void 0):null}}),e.label)}))},s=function(r){var n,i=r.options,s=r.selectedValue,c=r.label,d=r.onChange,m=r.inline,u=void 0!==m&&m,v=r.showCross,p=void 0!==v&&v,f=r.dimension,b=r.translatedLabels,h=s?null!==(n=null==b?void 0:b[s.label])&&void 0!==n?n:s.label:void 0;return e(l,o({value:s,onChange:d,css:{flexDirection:u?"row":"column",alignItems:u?"center":"start"}},{children:[t(l.Label,{label:c,values:h&&!u?h:void 0},void 0),t(l.OptionsContainer,o({css:{marginTop:u?"0":"0.5rem",marginLeft:u?"1.5rem":"0"},"data-testid":"radio-group-options-container"},{children:a(i,p,f,b)}),void 0)]}),void 0)};export{s as default,a as renderOptions};
1
+ import{__assign as o}from"tslib";import{jsxs as e,jsx as t}from"@emotion/react/jsx-runtime";import l from"./ColorRadioGroup.js";import{ColorSelector as r}from"./selector/ColorSelector.js";import{OutOfStock as n}from"./selector/OutOfStock.js";import{PatternSelector as i}from"./selector/PatternSelector.js";var a=function(e,a,s,c){return void 0===a&&(a=!1),0===(null==e?void 0:e.length)?t(n,{title:"out of stock color"},void 0):null==e?void 0:e.map((function(e){var n;return t(l.Option,o({value:e,"aria-label":null!==(n=null==c?void 0:c[e.label])&&void 0!==n?n:e.label},{children:function(o){var l=o.checked;return e.meta.color?t(r,{color:e.meta.color,selected:l,testId:"".concat(e.label.split(" ").join("-").toLowerCase(),"-selector"),noStock:e.noStock,showCross:a,dimension:s},void 0):e.meta.pattern?t(i,{url:e.meta.pattern.url,selected:l,noStock:e.noStock,dimension:s},void 0):null}}),e.label)}))},s=function(r){var n,i=r.options,s=r.selectedValue,c=r.label,d=r.onChange,u=r.inline,m=void 0!==u&&u,v=r.showCross,p=void 0!==v&&v,f=r.dimension,b=r.translatedLabels,h=r.colorRadioGroupProps,C=s?null!==(n=null==b?void 0:b[s.label])&&void 0!==n?n:s.label:void 0;return e(l,o({},h,{value:s,onChange:d,css:{flexDirection:m?"row":"column",alignItems:m?"center":"start"}},{children:[t(l.Label,{label:c,values:C&&!m?C:void 0},void 0),t(l.OptionsContainer,o({css:{marginTop:m?"0":"0.5rem",marginLeft:m?"1.5rem":"0"},"data-testid":"radio-group-options-container"},{children:a(i,p,f,b)}),void 0)]}),void 0)};export{s as default,a as renderOptions};
2
2
  //# sourceMappingURL=SingleColorPicker.js.map
package/build/index.d.ts CHANGED
@@ -3238,6 +3238,15 @@ declare const Collection: {
3238
3238
  ProductItemTK: ({ title, titleStyle, hasSpacing, textContainerGap, customSizeRating, image, ImageBorderRadius, imageHover, price, rating, size, alignName, url, className, topTag, topRightTag, bottomTag, onClick, priceDisplayType, originalPriceStyled, priceAtBottom, priceLoading, noFollow, colorPicker, isBNPL, hasStrength, clubPrice, showClubPriceLabel, isOnViewport, productTags, showProductTags, tagsPosition, discountTag, }: ProductItemSmallMobileProps$1) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
3239
3239
  };
3240
3240
 
3241
+ interface ColorPickerProps$1 {
3242
+ value?: ColorPickerOption | Set<ColorPickerOption>;
3243
+ onChange: (selectedOption: ColorPickerOption) => void;
3244
+ children: ReactNode;
3245
+ className?: string;
3246
+ onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
3247
+ onKeyDown?: (event: React.KeyboardEvent<HTMLDivElement>) => void;
3248
+ }
3249
+
3241
3250
  /** @jsxImportSource @emotion/react */
3242
3251
 
3243
3252
  interface ColorPickerWithTooltipProps {
@@ -3254,6 +3263,7 @@ interface ColorPickerWithTooltipProps {
3254
3263
  numeric?: boolean;
3255
3264
  };
3256
3265
  translatedLabels?: Record<string, string>;
3266
+ colorRadioGroupProps?: ColorPickerProps$1;
3257
3267
  }
3258
3268
  declare const ColorPickerWithTooltip: FC<ColorPickerWithTooltipProps>;
3259
3269
 
@@ -3274,8 +3284,9 @@ interface ColorPickerProps {
3274
3284
  showCross?: boolean;
3275
3285
  dimension?: ColorSelectorDimension;
3276
3286
  translatedLabels?: Record<string, string>;
3287
+ colorRadioGroupProps?: ColorPickerProps$1;
3277
3288
  }
3278
- declare const SingleColorPicker: ({ options, selectedValue, label, onChange, inline, showCross, dimension, translatedLabels, }: ColorPickerProps) => _emotion_react_jsx_runtime.JSX.Element;
3289
+ declare const SingleColorPicker: ({ options, selectedValue, label, onChange, inline, showCross, dimension, translatedLabels, colorRadioGroupProps, }: ColorPickerProps) => _emotion_react_jsx_runtime.JSX.Element;
3279
3290
 
3280
3291
  interface ColorSelectorProps {
3281
3292
  color: string[];
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("tslib"),i=require("@emotion/react/jsx-runtime");require("react/jsx-runtime"),require("../../core/theme/Theme.js"),require("react"),require("../../types/enums.js"),require("../pricing/clubOffer/ClubOfferTag.js"),require("../pricing/discount/styled.js"),require("../pricing/styles.js");var r=require("../tooltip/Tooltip.js");require("../atoms/PriceLabel/PriceLabel.js"),require("../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.styled.js"),require("../atoms/HorizontalDivider/HorizontalDivider.js");var o=require("../atoms/Icon/Icon.js");require("../atoms/Image/styled.js"),require("../atoms/PriceLabelV2/PriceLabelV2.js"),require("../atoms/Toggle/toggle.styled.js");var s=require("./ColorRadioGroup.js"),t=require("./SingleColorPicker.js"),l=require("./styles/ColorPickerwithTootip.styled.js");module.exports=function(n){var a,d=n.options,c=void 0===d?[]:d,u=n.selectedValue,m=n.label,v=n.onChange,p=n.inline,j=void 0!==p&&p,g=n.maxVisibleOptions,h=void 0===g?5:g,b=n.showCross,q=n.className,C=n.tooltipOptions,x=n.translatedLabels,_=c.slice(0,h),w=c.slice(h),y=(null!=C?C:{}).showCloseIcon,f=(null==C?void 0:C.numeric)?null==w?void 0:w.length:0,L=u?null!==(a=null==x?void 0:x[u.label])&&void 0!==a?a:u.label:void 0;return i.jsxs(l.ColorPickerWrapper,e.__assign({className:q,value:u,onChange:v,css:{flexDirection:j?"row":"column",alignItems:j?"center":"start"}},{children:[i.jsx(s.Label,{label:m,values:L&&!j?L:void 0},void 0),i.jsxs(s.OptionsContainer,e.__assign({css:{marginTop:j?"0":"0.63rem",marginLeft:j?"1.5rem":"0"},"data-testid":"radio-group-options-container"},{children:[t.renderOptions(_,b,void 0,x),!!w.length&&i.jsx("div",e.__assign({style:{display:"flex",alignItems:"center",justifyContent:"center"}},{children:i.jsx(r.Tooltip,e.__assign({showCloseIcon:y,position:1,elementContent:i.jsx(l.TooltipContent,e.__assign({className:"tooltip-content"},{children:t.renderOptions(w,b,void 0,x)}),void 0),withArrow:!0},{children:(null==C?void 0:C.numeric)?i.jsxs(l.NumericTooltip,e.__assign({"data-testid":"numeric-tooltip"},{children:["+",f]}),void 0):i.jsx("div",e.__assign({className:"arrow","data-testid":"tooltip-arrow"},{children:i.jsx(o.Icon,{name:"arrows/chevron_down",width:1,height:1},void 0)}),void 0)}),void 0)}),void 0)]}),void 0)]}),void 0)};
1
+ "use strict";var e=require("tslib"),i=require("@emotion/react/jsx-runtime");require("react/jsx-runtime"),require("../../core/theme/Theme.js"),require("react"),require("../../types/enums.js"),require("../pricing/clubOffer/ClubOfferTag.js"),require("../pricing/discount/styled.js"),require("../pricing/styles.js");var r=require("../tooltip/Tooltip.js");require("../atoms/PriceLabel/PriceLabel.js"),require("../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.styled.js"),require("../atoms/HorizontalDivider/HorizontalDivider.js");var o=require("../atoms/Icon/Icon.js");require("../atoms/Image/styled.js"),require("../atoms/PriceLabelV2/PriceLabelV2.js"),require("../atoms/Toggle/toggle.styled.js");var s=require("./ColorRadioGroup.js"),t=require("./SingleColorPicker.js"),l=require("./styles/ColorPickerwithTootip.styled.js");module.exports=function(n){var a,d=n.options,c=void 0===d?[]:d,u=n.selectedValue,m=n.label,v=n.onChange,p=n.inline,j=void 0!==p&&p,g=n.maxVisibleOptions,h=void 0===g?5:g,b=n.showCross,q=n.className,C=n.tooltipOptions,x=n.translatedLabels,_=n.colorRadioGroupProps,w=c.slice(0,h),y=c.slice(h),P=(null!=C?C:{}).showCloseIcon,f=(null==C?void 0:C.numeric)?null==y?void 0:y.length:0,L=u?null!==(a=null==x?void 0:x[u.label])&&void 0!==a?a:u.label:void 0;return i.jsxs(l.ColorPickerWrapper,e.__assign({},_,{className:q,value:u,onChange:v,css:{flexDirection:j?"row":"column",alignItems:j?"center":"start"}},{children:[i.jsx(s.Label,{label:m,values:L&&!j?L:void 0},void 0),i.jsxs(s.OptionsContainer,e.__assign({css:{marginTop:j?"0":"0.63rem",marginLeft:j?"1.5rem":"0"},"data-testid":"radio-group-options-container"},{children:[t.renderOptions(w,b,void 0,x),!!y.length&&i.jsx("div",e.__assign({style:{display:"flex",alignItems:"center",justifyContent:"center"}},{children:i.jsx(r.Tooltip,e.__assign({showCloseIcon:P,position:1,elementContent:i.jsx(l.TooltipContent,e.__assign({className:"tooltip-content"},{children:t.renderOptions(y,b,void 0,x)}),void 0),withArrow:!0},{children:(null==C?void 0:C.numeric)?i.jsxs(l.NumericTooltip,e.__assign({"data-testid":"numeric-tooltip"},{children:["+",f]}),void 0):i.jsx("div",e.__assign({className:"arrow","data-testid":"tooltip-arrow"},{children:i.jsx(o.Icon,{name:"arrows/chevron_down",width:1,height:1},void 0)}),void 0)}),void 0)}),void 0)]}),void 0)]}),void 0)};
2
2
  //# sourceMappingURL=ColorPickerWithTooltip.js.map
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("tslib"),n=require("react/jsx-runtime"),a=require("@emotion/styled"),i=require("@headlessui/react"),r=require("../text/Text.js");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l,s,o,d,u,c=t(a),p=c.default(i.RadioGroup)(l||(l=e.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"],["\n display: flex;\n flex-direction: column;\n"]))),m=c.default(i.RadioGroup.Label)(s||(s=e.__makeTemplateObject(["\n font-size: 0.88rem;\n"],["\n font-size: 0.88rem;\n"]))),f=c.default(i.RadioGroup.Option)(o||(o=e.__makeTemplateObject(["\n margin-right: 8px;\n\n svg {\n cursor: pointer;\n }\n"],["\n margin-right: 8px;\n\n svg {\n cursor: pointer;\n }\n"]))),x=c.default.span(d||(d=e.__makeTemplateObject(["\n font-weight: 600;\n"],["\n font-weight: 600;\n"]))),v=c.default.div(u||(u=e.__makeTemplateObject(["\n display: flex;\n margin-top: 0.63rem;\n flex-wrap: wrap;\n"],["\n display: flex;\n margin-top: 0.63rem;\n flex-wrap: wrap;\n"]))),g=Object.assign((function(a){var i=a.value,r=a.onChange,t=a.children,l=a.className;return n.jsx(p,e.__assign({value:i,onChange:r,className:l},{children:t}),void 0)}),{Label:function(a){var i=a.label,t=a.values;return n.jsx(m,{children:n.jsxs(r.Text,e.__assign({variant:"body",weight:"regular",size:"small",asSpan:!0},{children:[i," ",n.jsx(x,{children:t},void 0)]}),void 0)},void 0)},Option:function(a){var i=a.value,r=a.children,t=a.disabled,l=a["aria-label"];return n.jsx(f,e.__assign({value:i,disabled:t,"aria-label":l},{children:r}),void 0)},OptionsContainer:v});module.exports=g;
1
+ "use strict";var e=require("tslib"),n=require("react/jsx-runtime"),a=require("@emotion/styled"),i=require("@headlessui/react"),r=require("../text/Text.js");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l,o,s,d,u,c=t(a),p=c.default(i.RadioGroup)(l||(l=e.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"],["\n display: flex;\n flex-direction: column;\n"]))),m=c.default(i.RadioGroup.Label)(o||(o=e.__makeTemplateObject(["\n font-size: 0.88rem;\n"],["\n font-size: 0.88rem;\n"]))),f=c.default(i.RadioGroup.Option)(s||(s=e.__makeTemplateObject(["\n margin-right: 8px;\n\n svg {\n cursor: pointer;\n }\n"],["\n margin-right: 8px;\n\n svg {\n cursor: pointer;\n }\n"]))),x=c.default.span(d||(d=e.__makeTemplateObject(["\n font-weight: 600;\n"],["\n font-weight: 600;\n"]))),v=c.default.div(u||(u=e.__makeTemplateObject(["\n display: flex;\n margin-top: 0.63rem;\n flex-wrap: wrap;\n"],["\n display: flex;\n margin-top: 0.63rem;\n flex-wrap: wrap;\n"]))),g=Object.assign((function(a){var i=a.value,r=a.onChange,t=a.children,l=a.className,o=a.onClick,s=a.onKeyDown;return n.jsx(p,e.__assign({value:i,onChange:r,className:l,onClick:o,onKeyDown:s},{children:t}),void 0)}),{Label:function(a){var i=a.label,t=a.values;return n.jsx(m,{children:n.jsxs(r.Text,e.__assign({variant:"body",weight:"regular",size:"small",asSpan:!0},{children:[i," ",n.jsx(x,{children:t},void 0)]}),void 0)},void 0)},Option:function(a){var i=a.value,r=a.children,t=a.disabled,l=a["aria-label"];return n.jsx(f,e.__assign({value:i,disabled:t,"aria-label":l},{children:r}),void 0)},OptionsContainer:v});module.exports=g;
2
2
  //# sourceMappingURL=ColorRadioGroup.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),o=require("@emotion/react/jsx-runtime"),t=require("./ColorRadioGroup.js"),r=require("./selector/ColorSelector.js"),l=require("./selector/OutOfStock.js"),n=require("./selector/PatternSelector.js"),i=function(i,s,a,c){return void 0===s&&(s=!1),0===(null==i?void 0:i.length)?o.jsx(l.OutOfStock,{title:"out of stock color"},void 0):null==i?void 0:i.map((function(l){var i;return o.jsx(t.Option,e.__assign({value:l,"aria-label":null!==(i=null==c?void 0:c[l.label])&&void 0!==i?i:l.label},{children:function(e){var t=e.checked;return l.meta.color?o.jsx(r.ColorSelector,{color:l.meta.color,selected:t,testId:"".concat(l.label.split(" ").join("-").toLowerCase(),"-selector"),noStock:l.noStock,showCross:s,dimension:a},void 0):l.meta.pattern?o.jsx(n.PatternSelector,{url:l.meta.pattern.url,selected:t,noStock:l.noStock,dimension:a},void 0):null}}),l.label)}))};exports.default=function(r){var l,n=r.options,s=r.selectedValue,a=r.label,c=r.onChange,u=r.inline,d=void 0!==u&&u,v=r.showCross,m=void 0!==v&&v,p=r.dimension,j=r.translatedLabels,b=s?null!==(l=null==j?void 0:j[s.label])&&void 0!==l?l:s.label:void 0;return o.jsxs(t,e.__assign({value:s,onChange:c,css:{flexDirection:d?"row":"column",alignItems:d?"center":"start"}},{children:[o.jsx(t.Label,{label:a,values:b&&!d?b:void 0},void 0),o.jsx(t.OptionsContainer,e.__assign({css:{marginTop:d?"0":"0.5rem",marginLeft:d?"1.5rem":"0"},"data-testid":"radio-group-options-container"},{children:i(n,m,p,j)}),void 0)]}),void 0)},exports.renderOptions=i;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),o=require("@emotion/react/jsx-runtime"),r=require("./ColorRadioGroup.js"),t=require("./selector/ColorSelector.js"),l=require("./selector/OutOfStock.js"),n=require("./selector/PatternSelector.js"),i=function(i,s,a,c){return void 0===s&&(s=!1),0===(null==i?void 0:i.length)?o.jsx(l.OutOfStock,{title:"out of stock color"},void 0):null==i?void 0:i.map((function(l){var i;return o.jsx(r.Option,e.__assign({value:l,"aria-label":null!==(i=null==c?void 0:c[l.label])&&void 0!==i?i:l.label},{children:function(e){var r=e.checked;return l.meta.color?o.jsx(t.ColorSelector,{color:l.meta.color,selected:r,testId:"".concat(l.label.split(" ").join("-").toLowerCase(),"-selector"),noStock:l.noStock,showCross:s,dimension:a},void 0):l.meta.pattern?o.jsx(n.PatternSelector,{url:l.meta.pattern.url,selected:r,noStock:l.noStock,dimension:a},void 0):null}}),l.label)}))};exports.default=function(t){var l,n=t.options,s=t.selectedValue,a=t.label,c=t.onChange,u=t.inline,d=void 0!==u&&u,v=t.showCross,p=void 0!==v&&v,m=t.dimension,j=t.translatedLabels,b=t.colorRadioGroupProps,x=s?null!==(l=null==j?void 0:j[s.label])&&void 0!==l?l:s.label:void 0;return o.jsxs(r,e.__assign({},b,{value:s,onChange:c,css:{flexDirection:d?"row":"column",alignItems:d?"center":"start"}},{children:[o.jsx(r.Label,{label:a,values:x&&!d?x:void 0},void 0),o.jsx(r.OptionsContainer,e.__assign({css:{marginTop:d?"0":"0.5rem",marginLeft:d?"1.5rem":"0"},"data-testid":"radio-group-options-container"},{children:i(n,p,m,j)}),void 0)]}),void 0)},exports.renderOptions=i;
2
2
  //# sourceMappingURL=SingleColorPicker.js.map
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Trafilea's Design System",
4
4
  "author": "Trafilea",
5
5
  "repository": "https://github.com/trafilea/afrodita-components",
6
- "version": "7.27.6",
6
+ "version": "7.27.7",
7
7
  "private": false,
8
8
  "main": "build/lib/index.js",
9
9
  "style": "build/es/index.css",