@trafilea/afrodita-components 6.31.3 → 6.31.4
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 +21 -13
- package/build/index.esm.js +319 -316
- package/build/index.esm.js.map +1 -1
- package/build/index.js +319 -315
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.esm.js
CHANGED
|
@@ -6965,6 +6965,30 @@ var Collection = {
|
|
|
6965
6965
|
ProductItemTK: ProductItemTK,
|
|
6966
6966
|
};
|
|
6967
6967
|
|
|
6968
|
+
var CustomRadioGroup = newStyled(lt)(templateObject_1$1q || (templateObject_1$1q = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
|
|
6969
|
+
newStyled(lt.Label)(templateObject_2$14 || (templateObject_2$14 = __makeTemplateObject(["\n font-size: 0.88rem;\n"], ["\n font-size: 0.88rem;\n"])));
|
|
6970
|
+
var CustomRadioGroupOption = newStyled(lt.Option)(templateObject_3$R || (templateObject_3$R = __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"])));
|
|
6971
|
+
var Span = newStyled.span(templateObject_4$G || (templateObject_4$G = __makeTemplateObject(["\n font-weight: 600;\n"], ["\n font-weight: 600;\n"])));
|
|
6972
|
+
var OptionsContainer = newStyled.div(templateObject_5$w || (templateObject_5$w = __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"])));
|
|
6973
|
+
var Label$5 = function (_a) {
|
|
6974
|
+
var label = _a.label, values = _a.values;
|
|
6975
|
+
return (jsxs$1(Text$7, __assign$1({ variant: "body", weight: "regular", size: "small" }, { children: [label, " ", jsx$1(Span, { children: values }, void 0)] }), void 0));
|
|
6976
|
+
};
|
|
6977
|
+
var Option = function (_a) {
|
|
6978
|
+
var value = _a.value, children = _a.children;
|
|
6979
|
+
return (jsx$1(CustomRadioGroupOption, __assign$1({ value: value }, { children: children }), void 0));
|
|
6980
|
+
};
|
|
6981
|
+
var ColorRadioGroup = function (_a) {
|
|
6982
|
+
var value = _a.value, onChange = _a.onChange, children = _a.children, className = _a.className;
|
|
6983
|
+
return (jsx$1(CustomRadioGroup, __assign$1({ value: value, onChange: onChange, className: className }, { children: children }), void 0));
|
|
6984
|
+
};
|
|
6985
|
+
var ColorRadioGroup$1 = Object.assign(ColorRadioGroup, {
|
|
6986
|
+
Label: Label$5,
|
|
6987
|
+
Option: Option,
|
|
6988
|
+
OptionsContainer: OptionsContainer,
|
|
6989
|
+
});
|
|
6990
|
+
var templateObject_1$1q, templateObject_2$14, templateObject_3$R, templateObject_4$G, templateObject_5$w;
|
|
6991
|
+
|
|
6968
6992
|
var OneColorSelector = function (_a) {
|
|
6969
6993
|
var color = _a.color, selected = _a.selected, testId = _a.testId, noStock = _a.noStock, _b = _a.showCross, showCross = _b === void 0 ? false : _b;
|
|
6970
6994
|
var theme = useTheme();
|
|
@@ -7004,30 +7028,6 @@ var OutOfStock = function (_a) {
|
|
|
7004
7028
|
return (jsxs$1("svg", __assign$1({ width: "32", height: "33", viewBox: "0 0 32 33", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [jsx$1("title", { children: title }, void 0), jsx$1("mask", __assign$1({ id: "path-1-inside-1", fill: "white" }, { children: jsx$1("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.89435 9.60565C8.40619 10.0938 8.40619 10.8853 8.89435 11.3734L14.0209 16.5L8.89433 21.6266C8.40617 22.1147 8.40617 22.9062 8.89433 23.3943C9.38248 23.8825 10.1739 23.8825 10.6621 23.3943L15.7887 18.2677L21.2687 23.7478C21.7569 24.2359 22.5483 24.2359 23.0365 23.7478C23.5246 23.2596 23.5246 22.4682 23.0365 21.98L17.5564 16.5L23.0365 11.02C23.5246 10.5318 23.5246 9.74035 23.0365 9.25219C22.5483 8.76404 21.7568 8.76404 21.2687 9.25219L15.7887 14.7322L10.6621 9.60565C10.174 9.1175 9.3825 9.1175 8.89435 9.60565Z" }, void 0) }), void 0), jsx$1("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.89435 9.60565C8.40619 10.0938 8.40619 10.8853 8.89435 11.3734L14.0209 16.5L8.89433 21.6266C8.40617 22.1147 8.40617 22.9062 8.89433 23.3943C9.38248 23.8825 10.1739 23.8825 10.6621 23.3943L15.7887 18.2677L21.2687 23.7478C21.7569 24.2359 22.5483 24.2359 23.0365 23.7478C23.5246 23.2596 23.5246 22.4682 23.0365 21.98L17.5564 16.5L23.0365 11.02C23.5246 10.5318 23.5246 9.74035 23.0365 9.25219C22.5483 8.76404 21.7568 8.76404 21.2687 9.25219L15.7887 14.7322L10.6621 9.60565C10.174 9.1175 9.3825 9.1175 8.89435 9.60565Z", fill: theme.colors.shades['300'].color }, void 0), jsx$1("path", { d: "M14.0209 16.5L14.5866 17.0657L15.1523 16.5L14.5866 15.9343L14.0209 16.5ZM8.89433 21.6266L9.46001 22.1922L8.89433 21.6266ZM10.6621 23.3943L11.2278 23.96L10.6621 23.3943ZM15.7887 18.2677L16.3544 17.7021L15.7887 17.1364L15.223 17.7021L15.7887 18.2677ZM17.5564 16.5L16.9908 15.9343L16.4251 16.5L16.9908 17.0657L17.5564 16.5ZM23.0365 11.02L23.6021 11.5856L23.0365 11.02ZM21.2687 9.25219L21.8344 9.81788L21.2687 9.25219ZM15.7887 14.7322L15.223 15.2979L15.7887 15.8636L16.3544 15.2979L15.7887 14.7322ZM9.46003 10.8077C9.2843 10.632 9.2843 10.3471 9.46003 10.1713L8.32866 9.03997C7.52809 9.84054 7.52809 11.1385 8.32866 11.9391L9.46003 10.8077ZM14.5866 15.9343L9.46003 10.8077L8.32866 11.9391L13.4552 17.0657L14.5866 15.9343ZM9.46001 22.1922L14.5866 17.0657L13.4552 15.9343L8.32864 21.0609L9.46001 22.1922ZM9.46001 22.8286C9.28428 22.6529 9.28428 22.368 9.46001 22.1922L8.32864 21.0609C7.52807 21.8614 7.52807 23.1594 8.32864 23.96L9.46001 22.8286ZM10.0964 22.8286C9.92067 23.0044 9.63575 23.0044 9.46001 22.8286L8.32864 23.96C9.12922 24.7606 10.4272 24.7606 11.2278 23.96L10.0964 22.8286ZM15.223 17.7021L10.0964 22.8286L11.2278 23.96L16.3544 18.8334L15.223 17.7021ZM21.8344 23.1821L16.3544 17.7021L15.223 18.8334L20.703 24.3135L21.8344 23.1821ZM22.4708 23.1821C22.2951 23.3578 22.0101 23.3578 21.8344 23.1821L20.703 24.3135C21.5036 25.114 22.8016 25.114 23.6022 24.3135L22.4708 23.1821ZM22.4708 22.5457C22.6465 22.7214 22.6465 23.0064 22.4708 23.1821L23.6022 24.3135C24.4027 23.5129 24.4027 22.2149 23.6022 21.4143L22.4708 22.5457ZM16.9908 17.0657L22.4708 22.5457L23.6022 21.4143L18.1221 15.9343L16.9908 17.0657ZM22.4708 10.4543L16.9908 15.9343L18.1221 17.0657L23.6021 11.5856L22.4708 10.4543ZM22.4708 9.81788C22.6465 9.99361 22.6465 10.2785 22.4708 10.4543L23.6021 11.5856C24.4027 10.7851 24.4027 9.48708 23.6021 8.68651L22.4708 9.81788ZM21.8344 9.81788C22.0101 9.64214 22.295 9.64214 22.4708 9.81788L23.6021 8.68651C22.8016 7.88593 21.5036 7.88593 20.703 8.68651L21.8344 9.81788ZM16.3544 15.2979L21.8344 9.81788L20.703 8.68651L15.223 14.1665L16.3544 15.2979ZM10.0964 10.1713L15.223 15.2979L16.3544 14.1665L11.2278 9.03997L10.0964 10.1713ZM9.46003 10.1713C9.63577 9.9956 9.92069 9.9956 10.0964 10.1713L11.2278 9.03997C10.4272 8.23939 9.12924 8.23939 8.32866 9.03997L9.46003 10.1713Z", fill: "white", mask: "url(#path-1-inside-1)" }, void 0), jsx$1("circle", { cx: "16", cy: "16.5", r: "12", stroke: theme.colors.shades['300'].color, strokeWidth: "0.5" }, void 0)] }), void 0));
|
|
7005
7029
|
};
|
|
7006
7030
|
|
|
7007
|
-
var CustomRadioGroup = newStyled(lt)(templateObject_1$1q || (templateObject_1$1q = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
|
|
7008
|
-
newStyled(lt.Label)(templateObject_2$14 || (templateObject_2$14 = __makeTemplateObject(["\n font-size: 0.88rem;\n"], ["\n font-size: 0.88rem;\n"])));
|
|
7009
|
-
var CustomRadioGroupOption = newStyled(lt.Option)(templateObject_3$R || (templateObject_3$R = __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"])));
|
|
7010
|
-
var Span = newStyled.span(templateObject_4$G || (templateObject_4$G = __makeTemplateObject(["\n font-weight: 600;\n"], ["\n font-weight: 600;\n"])));
|
|
7011
|
-
var OptionsContainer = newStyled.div(templateObject_5$w || (templateObject_5$w = __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"])));
|
|
7012
|
-
var Label$5 = function (_a) {
|
|
7013
|
-
var label = _a.label, values = _a.values;
|
|
7014
|
-
return (jsxs$1(Text$7, __assign$1({ variant: "body", weight: "regular", size: "small" }, { children: [label, " ", jsx$1(Span, { children: values }, void 0)] }), void 0));
|
|
7015
|
-
};
|
|
7016
|
-
var Option = function (_a) {
|
|
7017
|
-
var value = _a.value, children = _a.children;
|
|
7018
|
-
return (jsx$1(CustomRadioGroupOption, __assign$1({ value: value }, { children: children }), void 0));
|
|
7019
|
-
};
|
|
7020
|
-
var ColorRadioGroup = function (_a) {
|
|
7021
|
-
var value = _a.value, onChange = _a.onChange, children = _a.children, className = _a.className;
|
|
7022
|
-
return (jsx$1(CustomRadioGroup, __assign$1({ value: value, onChange: onChange, className: className }, { children: children }), void 0));
|
|
7023
|
-
};
|
|
7024
|
-
var ColorRadioGroup$1 = Object.assign(ColorRadioGroup, {
|
|
7025
|
-
Label: Label$5,
|
|
7026
|
-
Option: Option,
|
|
7027
|
-
OptionsContainer: OptionsContainer,
|
|
7028
|
-
});
|
|
7029
|
-
var templateObject_1$1q, templateObject_2$14, templateObject_3$R, templateObject_4$G, templateObject_5$w;
|
|
7030
|
-
|
|
7031
7031
|
var Container$W = newStyled.div(templateObject_1$1p || (templateObject_1$1p = __makeTemplateObject(["\n width: 2rem;\n height: 2rem;\n border-radius: 50%;\n border: 0.081rem solid ", ";\n box-sizing: border-box;\n padding: 0.156rem;\n cursor: pointer;\n opacity: ", ";\n"], ["\n width: 2rem;\n height: 2rem;\n border-radius: 50%;\n border: 0.081rem solid ", ";\n box-sizing: border-box;\n padding: 0.156rem;\n cursor: pointer;\n opacity: ", ";\n"])), function (_a) {
|
|
7032
7032
|
var borderColor = _a.borderColor;
|
|
7033
7033
|
return borderColor;
|
|
@@ -7044,7 +7044,37 @@ var PatternSelector = function (_a) {
|
|
|
7044
7044
|
};
|
|
7045
7045
|
var templateObject_1$1p, templateObject_2$13;
|
|
7046
7046
|
|
|
7047
|
-
var renderOptions$1 = function (
|
|
7047
|
+
var renderOptions$1 = function (options, showCross) {
|
|
7048
|
+
if (showCross === void 0) { showCross = false; }
|
|
7049
|
+
if ((options === null || options === void 0 ? void 0 : options.length) === 0) {
|
|
7050
|
+
return jsx(OutOfStock, { title: "out of stock color" }, void 0);
|
|
7051
|
+
}
|
|
7052
|
+
return options === null || options === void 0 ? void 0 : options.map(function (option) { return (jsx(ColorRadioGroup$1.Option, __assign$1({ value: option }, { children: function (_a) {
|
|
7053
|
+
var checked = _a.checked;
|
|
7054
|
+
if (option.meta.color) {
|
|
7055
|
+
return (jsx(ColorSelector, { color: option.meta.color, selected: checked, testId: "".concat(option.label.split(' ').join('-').toLowerCase(), "-selector"), noStock: option.noStock, showCross: showCross }, void 0));
|
|
7056
|
+
}
|
|
7057
|
+
if (option.meta.pattern) {
|
|
7058
|
+
return (jsx(PatternSelector, { url: option.meta.pattern.url, selected: checked, noStock: option.noStock }, void 0));
|
|
7059
|
+
}
|
|
7060
|
+
return null;
|
|
7061
|
+
} }), option.label)); });
|
|
7062
|
+
};
|
|
7063
|
+
var SingleColorPicker = function (_a) {
|
|
7064
|
+
var options = _a.options, selectedValue = _a.selectedValue, label = _a.label, onChange = _a.onChange, _b = _a.inline, inline = _b === void 0 ? false : _b, _c = _a.showCross, showCross = _c === void 0 ? false : _c;
|
|
7065
|
+
return (jsxs(ColorRadioGroup$1, __assign$1({ value: selectedValue, onChange: onChange, css: { flexDirection: inline ? 'row' : 'column', alignItems: inline ? 'center' : 'start' } }, { children: [jsx(ColorRadioGroup$1.Label, { label: label, values: selectedValue && !inline ? selectedValue.label : undefined }, void 0), jsx(ColorRadioGroup$1.OptionsContainer, __assign$1({ css: { marginTop: inline ? '0' : '0.63rem', marginLeft: inline ? '1.5rem' : '0' }, "data-testid": "radio-group-options-container" }, { children: renderOptions$1(options, showCross) }), void 0)] }), void 0));
|
|
7066
|
+
};
|
|
7067
|
+
|
|
7068
|
+
var ColorPickerWithTooltip = function (_a) {
|
|
7069
|
+
var _b = _a.options, options = _b === void 0 ? [] : _b, selectedValue = _a.selectedValue, label = _a.label, onChange = _a.onChange, _c = _a.inline, inline = _c === void 0 ? false : _c, _d = _a.maxVisibleOptions, maxVisibleOptions = _d === void 0 ? 5 : _d, showCross = _a.showCross;
|
|
7070
|
+
var visibleOptions = options.slice(0, maxVisibleOptions);
|
|
7071
|
+
var hiddenOptions = options.slice(maxVisibleOptions);
|
|
7072
|
+
var ColorPickerWrapper = newStyled(ColorRadioGroup$1)(templateObject_1$1o || (templateObject_1$1o = __makeTemplateObject(["\n max-width: 300px;\n\n .tooltip-container {\n transform: translateX(-30%);\n &::before,\n &::after {\n left: 80%;\n }\n }\n\n .arrow {\n width: 24px;\n height: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n margin-bottom: 10px;\n }\n\n .tooltip-content {\n display: flex;\n max-width: 300px;\n flex-wrap: wrap;\n }\n "], ["\n max-width: 300px;\n\n .tooltip-container {\n transform: translateX(-30%);\n &::before,\n &::after {\n left: 80%;\n }\n }\n\n .arrow {\n width: 24px;\n height: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n margin-bottom: 10px;\n }\n\n .tooltip-content {\n display: flex;\n max-width: 300px;\n flex-wrap: wrap;\n }\n "])));
|
|
7073
|
+
return (jsxs(ColorPickerWrapper, __assign$1({ value: selectedValue, onChange: onChange, css: { flexDirection: inline ? 'row' : 'column', alignItems: inline ? 'center' : 'start' } }, { children: [jsx(ColorRadioGroup$1.Label, { label: label, values: selectedValue && !inline ? selectedValue.label : undefined }, void 0), jsxs(ColorRadioGroup$1.OptionsContainer, __assign$1({ css: { marginTop: inline ? '0' : '0.63rem', marginLeft: inline ? '1.5rem' : '0' }, "data-testid": "radio-group-options-container" }, { children: [renderOptions$1(visibleOptions, showCross), !!hiddenOptions.length && (jsx("div", __assign$1({ style: { display: 'flex', alignItems: 'center', justifyContent: 'center' } }, { children: jsx(Tooltip, __assign$1({ position: 1, elementContent: jsx("div", __assign$1({ className: "tooltip-content" }, { children: renderOptions$1(hiddenOptions, showCross) }), void 0), withArrow: true }, { children: jsx("div", __assign$1({ className: "arrow", "data-testid": "tooltip-arrow" }, { children: jsx(Icon$1, { name: "arrows/chevron_down", width: 1, height: 1 }, void 0) }), void 0) }), void 0) }), void 0))] }), void 0)] }), void 0));
|
|
7074
|
+
};
|
|
7075
|
+
var templateObject_1$1o;
|
|
7076
|
+
|
|
7077
|
+
var renderOptions = function (selectedColor, options) {
|
|
7048
7078
|
if (options == null || options.length === 0) {
|
|
7049
7079
|
return jsx$1(OutOfStock, { title: "out of stock color" }, void 0);
|
|
7050
7080
|
}
|
|
@@ -7077,39 +7107,9 @@ var MultiColorPicker = function (_a) {
|
|
|
7077
7107
|
var valueLabels = Array.from(selectedColor)
|
|
7078
7108
|
.map(function (item) { return item.label; })
|
|
7079
7109
|
.join(' | ');
|
|
7080
|
-
return (jsxs$1(ColorRadioGroup$1, __assign$1({ value: selectedColor, onChange: onChangeHandler }, { children: [jsx$1(ColorRadioGroup$1.Label, { label: label, values: valueLabels }, void 0), jsx$1(ColorRadioGroup$1.OptionsContainer, { children: renderOptions
|
|
7081
|
-
};
|
|
7082
|
-
|
|
7083
|
-
var renderOptions = function (options, showCross) {
|
|
7084
|
-
if (showCross === void 0) { showCross = false; }
|
|
7085
|
-
if ((options === null || options === void 0 ? void 0 : options.length) === 0) {
|
|
7086
|
-
return jsx(OutOfStock, { title: "out of stock color" }, void 0);
|
|
7087
|
-
}
|
|
7088
|
-
return options === null || options === void 0 ? void 0 : options.map(function (option) { return (jsx(ColorRadioGroup$1.Option, __assign$1({ value: option }, { children: function (_a) {
|
|
7089
|
-
var checked = _a.checked;
|
|
7090
|
-
if (option.meta.color) {
|
|
7091
|
-
return (jsx(ColorSelector, { color: option.meta.color, selected: checked, testId: "".concat(option.label.split(' ').join('-').toLowerCase(), "-selector"), noStock: option.noStock, showCross: showCross }, void 0));
|
|
7092
|
-
}
|
|
7093
|
-
if (option.meta.pattern) {
|
|
7094
|
-
return (jsx(PatternSelector, { url: option.meta.pattern.url, selected: checked, noStock: option.noStock }, void 0));
|
|
7095
|
-
}
|
|
7096
|
-
return null;
|
|
7097
|
-
} }), option.label)); });
|
|
7098
|
-
};
|
|
7099
|
-
var SingleColorPicker = function (_a) {
|
|
7100
|
-
var options = _a.options, selectedValue = _a.selectedValue, label = _a.label, onChange = _a.onChange, _b = _a.inline, inline = _b === void 0 ? false : _b, _c = _a.showCross, showCross = _c === void 0 ? false : _c;
|
|
7101
|
-
return (jsxs(ColorRadioGroup$1, __assign$1({ value: selectedValue, onChange: onChange, css: { flexDirection: inline ? 'row' : 'column', alignItems: inline ? 'center' : 'start' } }, { children: [jsx(ColorRadioGroup$1.Label, { label: label, values: selectedValue && !inline ? selectedValue.label : undefined }, void 0), jsx(ColorRadioGroup$1.OptionsContainer, __assign$1({ css: { marginTop: inline ? '0' : '0.63rem', marginLeft: inline ? '1.5rem' : '0' }, "data-testid": "radio-group-options-container" }, { children: renderOptions(options, showCross) }), void 0)] }), void 0));
|
|
7110
|
+
return (jsxs$1(ColorRadioGroup$1, __assign$1({ value: selectedColor, onChange: onChangeHandler }, { children: [jsx$1(ColorRadioGroup$1.Label, { label: label, values: valueLabels }, void 0), jsx$1(ColorRadioGroup$1.OptionsContainer, { children: renderOptions(selectedColor, options) }, void 0)] }), void 0));
|
|
7102
7111
|
};
|
|
7103
7112
|
|
|
7104
|
-
var ColorPickerWithTooltip = function (_a) {
|
|
7105
|
-
var _b = _a.options, options = _b === void 0 ? [] : _b, selectedValue = _a.selectedValue, label = _a.label, onChange = _a.onChange, _c = _a.inline, inline = _c === void 0 ? false : _c, _d = _a.maxVisibleOptions, maxVisibleOptions = _d === void 0 ? 5 : _d, showCross = _a.showCross;
|
|
7106
|
-
var visibleOptions = options.slice(0, maxVisibleOptions);
|
|
7107
|
-
var hiddenOptions = options.slice(maxVisibleOptions);
|
|
7108
|
-
var ColorPickerWrapper = newStyled(ColorRadioGroup$1)(templateObject_1$1o || (templateObject_1$1o = __makeTemplateObject(["\n max-width: 300px;\n\n .tooltip-container {\n transform: translateX(-30%);\n &::before,\n &::after {\n left: 80%;\n }\n }\n\n .arrow {\n width: 24px;\n height: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n margin-bottom: 10px;\n }\n\n .tooltip-content {\n display: flex;\n max-width: 300px;\n flex-wrap: wrap;\n }\n "], ["\n max-width: 300px;\n\n .tooltip-container {\n transform: translateX(-30%);\n &::before,\n &::after {\n left: 80%;\n }\n }\n\n .arrow {\n width: 24px;\n height: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n margin-bottom: 10px;\n }\n\n .tooltip-content {\n display: flex;\n max-width: 300px;\n flex-wrap: wrap;\n }\n "])));
|
|
7109
|
-
return (jsxs(ColorPickerWrapper, __assign$1({ value: selectedValue, onChange: onChange, css: { flexDirection: inline ? 'row' : 'column', alignItems: inline ? 'center' : 'start' } }, { children: [jsx(ColorRadioGroup$1.Label, { label: label, values: selectedValue && !inline ? selectedValue.label : undefined }, void 0), jsxs(ColorRadioGroup$1.OptionsContainer, __assign$1({ css: { marginTop: inline ? '0' : '0.63rem', marginLeft: inline ? '1.5rem' : '0' }, "data-testid": "radio-group-options-container" }, { children: [renderOptions(visibleOptions, showCross), !!hiddenOptions.length && (jsx("div", __assign$1({ style: { display: 'flex', alignItems: 'center', justifyContent: 'center' } }, { children: jsx(Tooltip, __assign$1({ position: 1, elementContent: jsx("div", __assign$1({ className: "tooltip-content" }, { children: renderOptions(hiddenOptions, showCross) }), void 0), withArrow: true }, { children: jsx("div", __assign$1({ className: "arrow", "data-testid": "tooltip-arrow" }, { children: jsx(Icon$1, { name: "arrows/chevron_down", width: 1, height: 1 }, void 0) }), void 0) }), void 0) }), void 0))] }), void 0)] }), void 0));
|
|
7110
|
-
};
|
|
7111
|
-
var templateObject_1$1o;
|
|
7112
|
-
|
|
7113
7113
|
var Wrapper$5 = newStyled.div(templateObject_1$1n || (templateObject_1$1n = __makeTemplateObject(["\n display: flex;\n align-items: center;\n padding: 0.625rem 1.25rem;\n background-color: ", ";\n width: 36.875rem;\n max-width: 100%;\n border-radius: 0.5rem;\n\n img {\n margin-right: ", ";\n }\n"], ["\n display: flex;\n align-items: center;\n padding: 0.625rem 1.25rem;\n background-color: ", ";\n width: 36.875rem;\n max-width: 100%;\n border-radius: 0.5rem;\n\n img {\n margin-right: ", ";\n }\n"])), function (props) { return props.backgroundColor; }, function (props) { return (props.rightToLeft ? '0' : '1.25rem'); });
|
|
7114
7114
|
var Col$1 = newStyled.div(templateObject_2$12 || (templateObject_2$12 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
|
|
7115
7115
|
var Row$2 = newStyled.div(templateObject_3$Q || (templateObject_3$Q = __makeTemplateObject(["\n display: flex;\n align-items: center;\n width: 100%;\n margin-left: 10px;\n\n ", "};\n"], ["\n display: flex;\n align-items: center;\n width: 100%;\n margin-left: 10px;\n\n ", "};\n"])), function (props) {
|
|
@@ -14948,267 +14948,11 @@ var useModal = function (id) {
|
|
|
14948
14948
|
};
|
|
14949
14949
|
var templateObject_1$N, templateObject_2$D, templateObject_3$x, templateObject_4$r, templateObject_5$k, templateObject_6$i, templateObject_7$g;
|
|
14950
14950
|
|
|
14951
|
-
var
|
|
14952
|
-
var height = _a.height;
|
|
14953
|
-
return height || '0.5rem';
|
|
14954
|
-
}, function (_a) {
|
|
14955
|
-
var backgroundColor = _a.backgroundColor;
|
|
14956
|
-
return backgroundColor;
|
|
14957
|
-
}, function (_a) {
|
|
14958
|
-
var percent = _a.percent;
|
|
14959
|
-
return (percent ? getBarWithBasedOnPercent$1(percent) : '50%');
|
|
14960
|
-
}, function (_a) {
|
|
14961
|
-
var borderRadius = _a.borderRadius;
|
|
14962
|
-
return borderRadius || '0.25rem';
|
|
14963
|
-
}, function (_a) {
|
|
14964
|
-
var percent = _a.percent;
|
|
14965
|
-
return (percent ? '0' : '-50%');
|
|
14966
|
-
}, function (_a) {
|
|
14967
|
-
var percent = _a.percent;
|
|
14968
|
-
return (percent ? 'none' : 'loading 1s ease-in 0.5s infinite');
|
|
14969
|
-
});
|
|
14970
|
-
var Background$1 = newStyled.div(function (_a) {
|
|
14971
|
-
var backgroundColor = _a.backgroundColor, height = _a.height, borderRadius = _a.borderRadius;
|
|
14972
|
-
return ({
|
|
14973
|
-
height: height || '0.5rem',
|
|
14974
|
-
width: '100%',
|
|
14975
|
-
backgroundColor: backgroundColor,
|
|
14976
|
-
borderRadius: borderRadius || '0.25rem',
|
|
14977
|
-
});
|
|
14978
|
-
});
|
|
14979
|
-
var BarContainer = newStyled.div({
|
|
14980
|
-
display: 'grid',
|
|
14981
|
-
gridTemplateColumns: '1fr 10fr 1fr',
|
|
14982
|
-
justifyContent: 'center',
|
|
14983
|
-
alignItems: 'center',
|
|
14984
|
-
width: '416px',
|
|
14985
|
-
gap: '8px',
|
|
14986
|
-
maxWidth: '100%',
|
|
14987
|
-
padding: '0 16px',
|
|
14988
|
-
position: 'relative',
|
|
14989
|
-
});
|
|
14990
|
-
var Container$z = newStyled.div(function (_a) {
|
|
14991
|
-
var backgroundColor = _a.backgroundColor;
|
|
14992
|
-
return ({
|
|
14993
|
-
width: '475px',
|
|
14994
|
-
maxWidth: '100%',
|
|
14995
|
-
display: 'flex',
|
|
14996
|
-
gap: '13px',
|
|
14997
|
-
padding: '16px 0',
|
|
14998
|
-
flexDirection: 'column',
|
|
14999
|
-
alignItems: 'center',
|
|
15000
|
-
background: backgroundColor,
|
|
15001
|
-
});
|
|
15002
|
-
});
|
|
15003
|
-
var MessageContainer = newStyled.div(templateObject_2$C || (templateObject_2$C = __makeTemplateObject(["\n padding: 0 1rem;\n text-align: center;\n"], ["\n padding: 0 1rem;\n text-align: center;\n"])));
|
|
15004
|
-
var getBarWithBasedOnPercent$1 = function (percent) {
|
|
15005
|
-
return percent <= 100 && percent >= 0 ? "".concat(percent, "%") : '0%';
|
|
15006
|
-
};
|
|
15007
|
-
var Value = newStyled.div(function (_a) {
|
|
15008
|
-
var isBold = _a.isBold;
|
|
15009
|
-
return ({
|
|
15010
|
-
fontWeight: isBold ? 600 : 400,
|
|
15011
|
-
});
|
|
15012
|
-
});
|
|
15013
|
-
var _calculatePercentage = function (currentAmount, endingValue) {
|
|
15014
|
-
var percentage = currentAmount / endingValue;
|
|
15015
|
-
return percentage > 1 ? 100 : percentage * 100;
|
|
15016
|
-
};
|
|
15017
|
-
var MotivatorProgressBar = function (_a) {
|
|
15018
|
-
var _b = _a.fillColor, fillColor = _b === void 0 ? '#F7A08B' : _b, _c = _a.backgroundColor, backgroundColor = _c === void 0 ? '#F7F7F7' : _c, _d = _a.unfilledColor, unfilledColor = _d === void 0 ? '#EEBFBD' : _d, _e = _a.currencyCode, currencyCode = _e === void 0 ? '$' : _e, _f = _a.endingValue, endingValue = _f === void 0 ? 70 : _f, _g = _a.currentAmount, currentAmount = _g === void 0 ? 0 : _g, rewardUnlockedMessage = _a.rewardUnlockedMessage, _h = _a.isClubBarMotivatorTest, isClubBarMotivatorTest = _h === void 0 ? false : _h;
|
|
15019
|
-
var theme = useTheme();
|
|
15020
|
-
var isRewardUnlocked = currentAmount >= endingValue;
|
|
15021
|
-
var progress = _calculatePercentage(currentAmount, endingValue);
|
|
15022
|
-
var getRemainingAmountMessage = function () {
|
|
15023
|
-
var remainingAmount = Math.round((endingValue - currentAmount) * 100) / 100;
|
|
15024
|
-
if (isClubBarMotivatorTest) {
|
|
15025
|
-
return (jsxs$1(MessageContainer, { children: ["Spend ", currencyCode, remainingAmount, " more to unlock ", jsx$1("strong", { children: "Free Priority Shipping" }, void 0), " with Club!"] }, void 0));
|
|
15026
|
-
}
|
|
15027
|
-
return (jsxs$1(MessageContainer, { children: ["Spend ", currencyCode, remainingAmount, " more to get ", jsx$1("strong", { children: "Free Shipping" }, void 0)] }, void 0));
|
|
15028
|
-
};
|
|
15029
|
-
return (jsxs$1(Container$z, __assign$1({ backgroundColor: backgroundColor }, { children: [jsxs$1(BarContainer, __assign$1({ "data-testid": "MPBContainer" }, { children: [jsxs$1(Value, { children: [currencyCode, currentAmount] }, void 0), jsx$1(Background$1, __assign$1({ backgroundColor: unfilledColor || theme.colors.shades['100'].color, "data-testid": "MPBBackground" }, { children: jsx$1(Bar$1, { "data-testid": "MPBBar", backgroundColor: fillColor, percent: progress }, void 0) }), void 0), jsxs$1(Value, __assign$1({ isBold: true }, { children: [currencyCode, endingValue] }), void 0)] }), void 0), isRewardUnlocked ? (jsx$1(MessageContainer, { dangerouslySetInnerHTML: { __html: rewardUnlockedMessage } }, void 0)) : (getRemainingAmountMessage())] }), void 0));
|
|
15030
|
-
};
|
|
15031
|
-
var templateObject_1$M, templateObject_2$C;
|
|
14951
|
+
var htmlReactParser = {exports: {}};
|
|
15032
14952
|
|
|
15033
|
-
var
|
|
15034
|
-
var theme = _a.theme;
|
|
15035
|
-
return theme.component.orderBar.backgroundColor;
|
|
15036
|
-
});
|
|
15037
|
-
var H1 = newStyled.h1(templateObject_2$B || (templateObject_2$B = __makeTemplateObject(["\n margin: 0;\n font-size: 1rem;\n line-height: 1.5rem;\n font-weight: 600;\n color: ", ";\n margin-left: 0.625rem;\n"], ["\n margin: 0;\n font-size: 1rem;\n line-height: 1.5rem;\n font-weight: 600;\n color: ", ";\n margin-left: 0.625rem;\n"])), function (props) { return props.color; });
|
|
15038
|
-
var OrderBar = function (_a) {
|
|
15039
|
-
var message = _a.message, color = _a.color;
|
|
15040
|
-
var theme = useTheme();
|
|
15041
|
-
return (jsxs$1(Container$y, __assign$1({ color: color }, { children: [jsx$1(Icon.Actions.Check, { width: 1.25, height: 0.875, fill: "#2F806A" }, void 0), jsx$1(H1, __assign$1({ color: theme.component.orderBar.fontColor }, { children: message }), void 0)] }), void 0));
|
|
15042
|
-
};
|
|
15043
|
-
var templateObject_1$L, templateObject_2$B;
|
|
14953
|
+
var lib$2 = {};
|
|
15044
14954
|
|
|
15045
|
-
var
|
|
15046
|
-
background: props.bgColor,
|
|
15047
|
-
height: '100%',
|
|
15048
|
-
width: '100%',
|
|
15049
|
-
maxHeight: '48px',
|
|
15050
|
-
border: 'none',
|
|
15051
|
-
display: 'flex',
|
|
15052
|
-
cursor: props.disabled ? 'not-allowed' : 'pointer',
|
|
15053
|
-
justifyContent: 'space-between',
|
|
15054
|
-
alignItems: 'center',
|
|
15055
|
-
padding: '10px 24px',
|
|
15056
|
-
}); });
|
|
15057
|
-
var StyledPanel = newStyled(Ye.Panel)({
|
|
15058
|
-
width: '100%',
|
|
15059
|
-
background: 'transparent',
|
|
15060
|
-
border: 'none',
|
|
15061
|
-
display: 'flex',
|
|
15062
|
-
flexDirection: 'column',
|
|
15063
|
-
alignItems: 'center',
|
|
15064
|
-
justifyContent: 'center',
|
|
15065
|
-
gap: '10px',
|
|
15066
|
-
});
|
|
15067
|
-
var StyledContent = newStyled.div(templateObject_1$K || (templateObject_1$K = __makeTemplateObject(["\n appearance: none;\n padding: 0 0 15px 0;\n margin: auto;\n border: none;\n background: ", ";\n font-size: inherit;\n line-height: inherit;\n color: inherit;\n cursor: auto;\n user-select: text;\n writing-mode: unset;\n font-family: inherit;\n display: flex;\n justify-content: center;\n align-items: center;\n width: ", ";\n height: fit-content;\n"], ["\n appearance: none;\n padding: 0 0 15px 0;\n margin: auto;\n border: none;\n background: ", ";\n font-size: inherit;\n line-height: inherit;\n color: inherit;\n cursor: auto;\n user-select: text;\n writing-mode: unset;\n font-family: inherit;\n display: flex;\n justify-content: center;\n align-items: center;\n width: ", ";\n height: fit-content;\n"])), function (_a) {
|
|
15068
|
-
var bgColor = _a.bgColor;
|
|
15069
|
-
return bgColor !== null && bgColor !== void 0 ? bgColor : '';
|
|
15070
|
-
}, function (_a) {
|
|
15071
|
-
var _b = _a.width, width = _b === void 0 ? '100%' : _b;
|
|
15072
|
-
return width;
|
|
15073
|
-
});
|
|
15074
|
-
var StyledController = newStyled.div(templateObject_2$A || (templateObject_2$A = __makeTemplateObject(["\n display: flex;\n align-items: flex-start;\n justify-content: flex-start;\n min-width: fit-content;\n appearance: none;\n padding: 0;\n margin: 0;\n border: none;\n background: none;\n font-size: inherit;\n line-height: inherit;\n color: inherit;\n user-select: text;\n writing-mode: unset;\n font-family: inherit;\n cursor: pointer;\n gap: 5px;\n"], ["\n display: flex;\n align-items: flex-start;\n justify-content: flex-start;\n min-width: fit-content;\n appearance: none;\n padding: 0;\n margin: 0;\n border: none;\n background: none;\n font-size: inherit;\n line-height: inherit;\n color: inherit;\n user-select: text;\n writing-mode: unset;\n font-family: inherit;\n cursor: pointer;\n gap: 5px;\n"])));
|
|
15075
|
-
var templateObject_1$K, templateObject_2$A;
|
|
15076
|
-
|
|
15077
|
-
var StyledDisclosure = newStyled(Ye)(function (_a) {
|
|
15078
|
-
var background = _a.background, width = _a.width;
|
|
15079
|
-
return ({
|
|
15080
|
-
display: 'flex',
|
|
15081
|
-
flexDirection: 'column',
|
|
15082
|
-
justifyContent: 'center',
|
|
15083
|
-
gap: '10px',
|
|
15084
|
-
background: background !== null && background !== void 0 ? background : '',
|
|
15085
|
-
width: width !== null && width !== void 0 ? width : 'auto',
|
|
15086
|
-
borderRadius: '8px',
|
|
15087
|
-
border: '0.063rem solid',
|
|
15088
|
-
borderColor: '#e5e5e5',
|
|
15089
|
-
padding: 'unset',
|
|
15090
|
-
overflow: 'hidden',
|
|
15091
|
-
});
|
|
15092
|
-
});
|
|
15093
|
-
var ControlIconComponent = memo(function (_a) {
|
|
15094
|
-
var open = _a.open, openIcon = _a.openIcon, closeIcon = _a.closeIcon, fillControlsCollor = _a.fillControlsCollor;
|
|
15095
|
-
var Icon = open ? closeIcon : openIcon;
|
|
15096
|
-
return jsx$1(Icon, { title: open ? 'Close' : 'Open', fill: fillControlsCollor }, void 0);
|
|
15097
|
-
});
|
|
15098
|
-
ControlIconComponent.displayName = 'ControlIconComponent';
|
|
15099
|
-
var HeaderContentComponent = memo(function (_a) {
|
|
15100
|
-
var open = _a.open, header = _a.header, headerOnOpen = _a.headerOnOpen;
|
|
15101
|
-
return jsx$1(Fragment$2, { children: open && headerOnOpen ? headerOnOpen : header }, void 0);
|
|
15102
|
-
});
|
|
15103
|
-
HeaderContentComponent.displayName = 'HeaderContentComponent';
|
|
15104
|
-
var AccordionContent = function (_a) {
|
|
15105
|
-
var open = _a.open, disabled = _a.disabled, bgColor = _a.bgColor, fillControlsCollor = _a.fillControlsCollor, header = _a.header, headerOnOpen = _a.headerOnOpen, children = _a.children, openIcon = _a.openIcon, closeIcon = _a.closeIcon, contentWidth = _a.contentWidth;
|
|
15106
|
-
return (jsxs$1(Fragment$2, { children: [jsxs$1(StyledButton$1, __assign$1({ "data-testid": "styled-button", disabled: disabled, bgColor: bgColor }, { children: [jsx$1(HeaderContentComponent, { open: open, header: header, headerOnOpen: headerOnOpen }, void 0), jsxs$1(StyledController, { children: [jsx$1(Text$7, __assign$1({ variant: "body", weight: "demi", size: "small", color: fillControlsCollor }, { children: "View Offers" }), void 0), jsx$1("span", __assign$1({ style: { marginTop: '3px' } }, { children: jsx$1(ControlIconComponent, { open: open, openIcon: openIcon, closeIcon: closeIcon, fillControlsCollor: fillControlsCollor }, void 0) }), void 0)] }, void 0)] }), void 0), open && (jsx$1(StyledContent, __assign$1({ width: contentWidth, bgColor: bgColor, onClick: function (e) { return e.stopPropagation(); } }, { children: jsx$1(StyledPanel, { children: children }, void 0) }), void 0))] }, void 0));
|
|
15107
|
-
};
|
|
15108
|
-
var BasicAccordion = function (_a) {
|
|
15109
|
-
var children = _a.children, header = _a.header, bgColor = _a.bgColor, headerOnOpen = _a.headerOnOpen, _b = _a.defaultOpen, defaultOpen = _b === void 0 ? false : _b, _c = _a.disabled, disabled = _c === void 0 ? false : _c, openIcon = _a.openIcon, closeIcon = _a.closeIcon, onClick = _a.onClick, _d = _a.width, width = _d === void 0 ? '100%' : _d, fillControlsCollor = _a.fillControlsCollor;
|
|
15110
|
-
return (jsx$1(StyledDisclosure, __assign$1({ "data-testid": "accordion-container", as: "div", background: bgColor, defaultOpen: defaultOpen, disabled: disabled, onClick: onClick, width: width }, { children: function (_a) {
|
|
15111
|
-
var open = _a.open;
|
|
15112
|
-
return (jsx$1(AccordionContent, __assign$1({ open: open, disabled: disabled, bgColor: bgColor, fillControlsCollor: fillControlsCollor, header: header, headerOnOpen: headerOnOpen, openIcon: openIcon, closeIcon: closeIcon }, { children: children }), void 0));
|
|
15113
|
-
} }), void 0));
|
|
15114
|
-
};
|
|
15115
|
-
|
|
15116
|
-
var TableElement$3 = newStyled.table(templateObject_1$J || (templateObject_1$J = __makeTemplateObject(["\n box-sizing: border-box;\n border-radius: ", ";\n border-bottom-left-radius: ", ";\n border-bottom-right-radius: ", ";\n border: 0.063rem solid var(--colors-shades-100-color);\n border-spacing: 0;\n font-size: 0.875rem;\n line-height: 3.125rem;\n width: 100%;\n color: var(--colors-shades-700-color);\n"], ["\n box-sizing: border-box;\n border-radius: ", ";\n border-bottom-left-radius: ", ";\n border-bottom-right-radius: ", ";\n border: 0.063rem solid var(--colors-shades-100-color);\n border-spacing: 0;\n font-size: 0.875rem;\n line-height: 3.125rem;\n width: 100%;\n color: var(--colors-shades-700-color);\n"])), function (props) { return (props.isSticky ? '0' : '0.5rem'); }, function (props) { return (props.isSticky ? '0.5rem' : '0'); }, function (props) { return (props.isSticky ? '0.5rem' : '0'); });
|
|
15117
|
-
var TableCell$3 = newStyled.td(templateObject_2$z || (templateObject_2$z = __makeTemplateObject(["\n border-bottom: 0.063rem solid var(--colors-shades-100-color);\n border-right: 0.063rem solid var(--colors-shades-100-color);\n line-height: normal;\n padding: 1rem 0;\n text-align: center;\n position: ", ";\n left: 0;\n z-index: ", ";\n border-bottom-left-radius: ", ";\n\n &:last-child {\n border-right: none;\n }\n\n &:first-of-type {\n font-weight: 600;\n text-align: center;\n }\n"], ["\n border-bottom: 0.063rem solid var(--colors-shades-100-color);\n border-right: 0.063rem solid var(--colors-shades-100-color);\n line-height: normal;\n padding: 1rem 0;\n text-align: center;\n position: ", ";\n left: 0;\n z-index: ", ";\n border-bottom-left-radius: ", ";\n\n &:last-child {\n border-right: none;\n }\n\n &:first-of-type {\n font-weight: 600;\n text-align: center;\n }\n"])), function (props) { return (props.isSticky ? 'sticky' : 'unset'); }, function (props) { return (props.isSticky ? 1 : 0); }, function (props) { return (props.isLast ? '0.5rem' : '0'); });
|
|
15118
|
-
var TableHead$3 = newStyled.th(templateObject_3$w || (templateObject_3$w = __makeTemplateObject(["\n border-bottom: 0.063rem solid var(--colors-shades-100-color);\n border-right: 0.063rem solid var(--colors-shades-100-color);\n font-weight: 600;\n line-height: normal;\n padding: 1rem;\n text-align: start;\n position: ", ";\n left: 0;\n z-index: ", ";\n background-color: ", ";\n\n &:last-child {\n border-right: none;\n }\n\n &:first-of-type {\n text-align: center;\n }\n"], ["\n border-bottom: 0.063rem solid var(--colors-shades-100-color);\n border-right: 0.063rem solid var(--colors-shades-100-color);\n font-weight: 600;\n line-height: normal;\n padding: 1rem;\n text-align: start;\n position: ", ";\n left: 0;\n z-index: ", ";\n background-color: ", ";\n\n &:last-child {\n border-right: none;\n }\n\n &:first-of-type {\n text-align: center;\n }\n"])), function (props) { return (props.isSticky ? 'sticky' : 'unset'); }, function (props) { return (props.isSticky ? 1 : 0); }, function (props) { return (props.isSticky ? '#fff6ef' : 'unset'); });
|
|
15119
|
-
var Label$3 = newStyled('div')(templateObject_4$q || (templateObject_4$q = __makeTemplateObject(["\n gap: 15px;\n width: 100%;\n display: flex;\n font-size: 14px;\n font-weight: 600;\n align-items: center;\n justify-content: center;\n"], ["\n gap: 15px;\n width: 100%;\n display: flex;\n font-size: 14px;\n font-weight: 600;\n align-items: center;\n justify-content: center;\n"])));
|
|
15120
|
-
newStyled(Label$3)(templateObject_5$j || (templateObject_5$j = __makeTemplateObject(["\n margin-bottom: 5px;\n"], ["\n margin-bottom: 5px;\n"])));
|
|
15121
|
-
newStyled(Label$3)(templateObject_6$h || (templateObject_6$h = __makeTemplateObject(["\n width: 20px;\n transform: rotate(270deg);\n"], ["\n width: 20px;\n transform: rotate(270deg);\n"])));
|
|
15122
|
-
var Container$x = newStyled('div')(templateObject_7$f || (templateObject_7$f = __makeTemplateObject(["\n gap: 5px;\n display: flex;\n width: fit-content;\n align-items: center;\n"], ["\n gap: 5px;\n display: flex;\n width: fit-content;\n align-items: center;\n"])));
|
|
15123
|
-
newStyled('span')(templateObject_8$b || (templateObject_8$b = __makeTemplateObject(["\n display: flex;\n min-width: 70px;\n justify-content: center;\n"], ["\n display: flex;\n min-width: 70px;\n justify-content: center;\n"])));
|
|
15124
|
-
var Column$2 = newStyled('div')(templateObject_9$7 || (templateObject_9$7 = __makeTemplateObject(["\n display: flex;\n min-width: 675px;\n align-items: flex-start;\n flex-direction: column;\n\n @media (max-width: 768px) {\n min-width: 100%;\n }\n"], ["\n display: flex;\n min-width: 675px;\n align-items: flex-start;\n flex-direction: column;\n\n @media (max-width: 768px) {\n min-width: 100%;\n }\n"])));
|
|
15125
|
-
var TableRow$3 = newStyled.tr(templateObject_10$7 || (templateObject_10$7 = __makeTemplateObject(["\n &:last-child {\n td {\n border-bottom: none;\n }\n }\n\n &.background {\n background-color: var(--colors-shades-10-color);\n }\n"], ["\n &:last-child {\n td {\n border-bottom: none;\n }\n }\n\n &.background {\n background-color: var(--colors-shades-10-color);\n }\n"])));
|
|
15126
|
-
var Header$1 = newStyled('div')(templateObject_11$5 || (templateObject_11$5 = __makeTemplateObject(["\n gap: 15px;\n display: flex;\n left: 0;\n border: 1px solid #e5e5e5;\n width: 100%;\n max-width: 92vw;\n position: sticky;\n padding: 14px 18px;\n border-top-left-radius: 12px;\n border-top-right-radius: 12px;\n border-bottom: none;\n background-color: #fff6ef;\n font-size: 0.875rem;\n font-weight: 600;\n\n @media (min-width: 400px) {\n max-width: 92.5vw;\n }\n"], ["\n gap: 15px;\n display: flex;\n left: 0;\n border: 1px solid #e5e5e5;\n width: 100%;\n max-width: 92vw;\n position: sticky;\n padding: 14px 18px;\n border-top-left-radius: 12px;\n border-top-right-radius: 12px;\n border-bottom: none;\n background-color: #fff6ef;\n font-size: 0.875rem;\n font-weight: 600;\n\n @media (min-width: 400px) {\n max-width: 92.5vw;\n }\n"])));
|
|
15127
|
-
var Parent = newStyled('div')(templateObject_12$2 || (templateObject_12$2 = __makeTemplateObject(["\n max-width: 100vw;\n position: relative;\n\n @media (max-width: 768px) {\n overflow-x: auto;\n &::-webkit-scrollbar {\n display: none;\n }\n\n -ms-overflow-style: none;\n }\n"], ["\n max-width: 100vw;\n position: relative;\n\n @media (max-width: 768px) {\n overflow-x: auto;\n &::-webkit-scrollbar {\n display: none;\n }\n\n -ms-overflow-style: none;\n }\n"])));
|
|
15128
|
-
var Arrow = newStyled('div')(templateObject_13$2 || (templateObject_13$2 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n width: 44px;\n height: 44px;\n z-index: 2;\n border-radius: 50%;\n background-color: #d4605b;\n bottom: 20px;\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n width: 44px;\n height: 44px;\n z-index: 2;\n border-radius: 50%;\n background-color: #d4605b;\n bottom: 20px;\n"])));
|
|
15129
|
-
var TableHeader = newStyled('thead')(templateObject_14$2 || (templateObject_14$2 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (props) {
|
|
15130
|
-
return props.isColored ? 'var(--colors-pallete-primary-80-color)' : 'unset';
|
|
15131
|
-
});
|
|
15132
|
-
var templateObject_1$J, templateObject_2$z, templateObject_3$w, templateObject_4$q, templateObject_5$j, templateObject_6$h, templateObject_7$f, templateObject_8$b, templateObject_9$7, templateObject_10$7, templateObject_11$5, templateObject_12$2, templateObject_13$2, templateObject_14$2;
|
|
15133
|
-
|
|
15134
|
-
var getIsOdd$2 = function (number) { return number % 2 !== 0; };
|
|
15135
|
-
// TODO: Refactor this color logic
|
|
15136
|
-
var getCellColor$2 = function (index, cell, isLight) {
|
|
15137
|
-
if (index == 0) {
|
|
15138
|
-
return isLight ? '#fff6ef' : '#f6f0e7';
|
|
15139
|
-
}
|
|
15140
|
-
switch (cell) {
|
|
15141
|
-
case 'XS':
|
|
15142
|
-
return '#f5bab0';
|
|
15143
|
-
case 'S':
|
|
15144
|
-
return '#f7a08b';
|
|
15145
|
-
case 'M':
|
|
15146
|
-
return '#ffe1b8';
|
|
15147
|
-
case 'L':
|
|
15148
|
-
return '#f5bab0';
|
|
15149
|
-
case 'XL':
|
|
15150
|
-
return '#8bbeea';
|
|
15151
|
-
case '2XL':
|
|
15152
|
-
return '#b1d7c3';
|
|
15153
|
-
case '3XL':
|
|
15154
|
-
return '#e7a4f7';
|
|
15155
|
-
case '4XL':
|
|
15156
|
-
return '#e7c9b2';
|
|
15157
|
-
default:
|
|
15158
|
-
return '';
|
|
15159
|
-
}
|
|
15160
|
-
};
|
|
15161
|
-
|
|
15162
|
-
var SizeChartTableV3 = function (_a) {
|
|
15163
|
-
var _b, _c;
|
|
15164
|
-
var headers = _a.headers, tableContent = _a.data, newSizeTableCss = _a.newSizeTableCss;
|
|
15165
|
-
var containerRef = useRef(null);
|
|
15166
|
-
var isMobile = useWindowDimensions().isMobile;
|
|
15167
|
-
var _d = useState(false), isAtScrollEnd = _d[0], setIsAtScrollEnd = _d[1];
|
|
15168
|
-
var _e = (_c = (_b = headers === null || headers === void 0 ? void 0 : headers[0]) === null || _b === void 0 ? void 0 : _b.split('/')) !== null && _c !== void 0 ? _c : [], xLabel = _e[0], yLabel = _e[1];
|
|
15169
|
-
var isMultilabel = xLabel && yLabel;
|
|
15170
|
-
var trimmedXLabel = trimLabel(xLabel);
|
|
15171
|
-
var trimmedYLabel = trimLabel(yLabel);
|
|
15172
|
-
useEffect(function () {
|
|
15173
|
-
var _a;
|
|
15174
|
-
var handleScroll = function () {
|
|
15175
|
-
var _a = containerRef.current, scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;
|
|
15176
|
-
var maxScroll = scrollWidth - clientWidth;
|
|
15177
|
-
var isAtEnd = scrollLeft >= maxScroll * 0.92;
|
|
15178
|
-
setIsAtScrollEnd(function (prevState) {
|
|
15179
|
-
if (isAtEnd !== prevState) {
|
|
15180
|
-
return isAtEnd;
|
|
15181
|
-
}
|
|
15182
|
-
return prevState;
|
|
15183
|
-
});
|
|
15184
|
-
};
|
|
15185
|
-
(_a = containerRef === null || containerRef === void 0 ? void 0 : containerRef.current) === null || _a === void 0 ? void 0 : _a.addEventListener('scroll', handleScroll);
|
|
15186
|
-
return function () { var _a; return (_a = containerRef === null || containerRef === void 0 ? void 0 : containerRef.current) === null || _a === void 0 ? void 0 : _a.removeEventListener('scroll', handleScroll); };
|
|
15187
|
-
}, []);
|
|
15188
|
-
// Generate unique ids for each cell
|
|
15189
|
-
var tableContentWithIds = tableContent === null || tableContent === void 0 ? void 0 : tableContent.map(function (row, rowIndex) {
|
|
15190
|
-
return row === null || row === void 0 ? void 0 : row.map(function (cell, cellIndex) { return ({
|
|
15191
|
-
id: "".concat(rowIndex, "-").concat(cellIndex),
|
|
15192
|
-
value: cell,
|
|
15193
|
-
}); });
|
|
15194
|
-
});
|
|
15195
|
-
return (jsxs$1(Fragment$2, { children: [jsx$1(Parent, __assign$1({ ref: containerRef }, { children: jsx$1(Container$x, { children: jsxs$1(Column$2, { children: [isMultilabel && (jsxs$1(Header$1, { children: [jsx$1("div", { children: trimmedYLabel }, void 0), jsx$1(Icon.Arrows.ChevronRightVariant, {}, void 0)] }, void 0)), jsxs$1(TableElement$3, __assign$1({ isSticky: !!newSizeTableCss }, { children: [jsx$1(TableHeader, __assign$1({ isColored: newSizeTableCss }, { children: jsx$1(TableRow$3, { children: headers === null || headers === void 0 ? void 0 : headers.map(function (header, index) { return (jsx$1(TableHead$3, __assign$1({ isSticky: !!newSizeTableCss && index === 0 }, { children: index === 0 && isMultilabel ? (jsxs$1("div", __assign$1({ style: { display: 'flex', alignItems: 'center', gap: '15px' } }, { children: [jsx$1("div", { children: trimmedXLabel }, void 0), jsx$1(Icon.Arrows.ChevronDownVariant, {}, void 0)] }), void 0)) : (header) }), header)); }) }, void 0) }), void 0), newSizeTableCss ? (jsx$1("tbody", { children: tableContentWithIds === null || tableContentWithIds === void 0 ? void 0 : tableContentWithIds.map(function (row, parentIndex) { return (jsx$1("tr", { children: row === null || row === void 0 ? void 0 : row.map(function (cell, index) { return (jsx$1(TableCell$3, __assign$1({ isSticky: index === 0, isLast: index === 0 && parentIndex === tableContent.length - 1, style: {
|
|
15196
|
-
backgroundColor: getCellColor$2(index, cell.value, true),
|
|
15197
|
-
} }, { children: cell.value }), cell.id)); }) }, row[0].id)); }) }, void 0)) : (jsx$1("tbody", { children: tableContentWithIds === null || tableContentWithIds === void 0 ? void 0 : tableContentWithIds.map(function (row, parentIndex) { return (jsx$1(TableRow$3, __assign$1({ className: getIsOdd$2(parentIndex) ? 'background' : '' }, { children: row === null || row === void 0 ? void 0 : row.map(function (cell) { return (jsx$1(TableCell$3, __assign$1({ isSticky: false }, { children: cell.value }), cell.id)); }) }), row[0].id)); }) }, void 0))] }), void 0)] }, void 0) }, void 0) }), void 0), newSizeTableCss && isMobile && jsx$1(ArrowTip, { isRight: !isAtScrollEnd }, void 0)] }, void 0));
|
|
15198
|
-
};
|
|
15199
|
-
var ArrowTip = function (_a) {
|
|
15200
|
-
var _b = _a.isRight, isRight = _b === void 0 ? true : _b;
|
|
15201
|
-
return (jsx$1(Arrow, __assign$1({ style: {
|
|
15202
|
-
left: isRight ? '85%' : '12%',
|
|
15203
|
-
} }, { children: isRight ? (jsx$1(Icon.Arrows.ChevronRightVariant, { fill: "white" }, void 0)) : (jsx$1(Icon.Arrows.ChevronLeftVariant, { fill: "white" }, void 0)) }), void 0));
|
|
15204
|
-
};
|
|
15205
|
-
var trimLabel = function (label) { var _a, _b; return (_b = (_a = label === null || label === void 0 ? void 0 : label.trim()) === null || _a === void 0 ? void 0 : _a.split(' ')) === null || _b === void 0 ? void 0 : _b[0]; };
|
|
15206
|
-
|
|
15207
|
-
var htmlReactParser = {exports: {}};
|
|
15208
|
-
|
|
15209
|
-
var lib$2 = {};
|
|
15210
|
-
|
|
15211
|
-
var possibleStandardNamesOptimized$1 = {};
|
|
14955
|
+
var possibleStandardNamesOptimized$1 = {};
|
|
15212
14956
|
|
|
15213
14957
|
// An attribute in which the DOM/SVG standard name is the same as the React prop name (e.g., 'accept').
|
|
15214
14958
|
var SAME$1 = 0;
|
|
@@ -18983,6 +18727,265 @@ HTMLReactParser$1.htmlToDOM;
|
|
|
18983
18727
|
HTMLReactParser$1.attributesToProps;
|
|
18984
18728
|
HTMLReactParser$1.Element;
|
|
18985
18729
|
|
|
18730
|
+
var Bar$1 = newStyled.div(templateObject_1$M || (templateObject_1$M = __makeTemplateObject(["\n @keyframes loading {\n 0% {\n transform: translateX(0);\n }\n to {\n transform: translateX(400%);\n }\n }\n\n height: ", ";\n background-color: ", ";\n width: ", ";\n border-radius: ", ";\n left: ", ";\n animation: ", ";\n"], ["\n @keyframes loading {\n 0% {\n transform: translateX(0);\n }\n to {\n transform: translateX(400%);\n }\n }\n\n height: ", ";\n background-color: ", ";\n width: ", ";\n border-radius: ", ";\n left: ", ";\n animation: ", ";\n"])), function (_a) {
|
|
18731
|
+
var height = _a.height;
|
|
18732
|
+
return height || '0.5rem';
|
|
18733
|
+
}, function (_a) {
|
|
18734
|
+
var backgroundColor = _a.backgroundColor;
|
|
18735
|
+
return backgroundColor;
|
|
18736
|
+
}, function (_a) {
|
|
18737
|
+
var percent = _a.percent;
|
|
18738
|
+
return (percent ? getBarWithBasedOnPercent$1(percent) : '50%');
|
|
18739
|
+
}, function (_a) {
|
|
18740
|
+
var borderRadius = _a.borderRadius;
|
|
18741
|
+
return borderRadius || '0.25rem';
|
|
18742
|
+
}, function (_a) {
|
|
18743
|
+
var percent = _a.percent;
|
|
18744
|
+
return (percent ? '0' : '-50%');
|
|
18745
|
+
}, function (_a) {
|
|
18746
|
+
var percent = _a.percent;
|
|
18747
|
+
return (percent ? 'none' : 'loading 1s ease-in 0.5s infinite');
|
|
18748
|
+
});
|
|
18749
|
+
var Background$1 = newStyled.div(function (_a) {
|
|
18750
|
+
var backgroundColor = _a.backgroundColor, height = _a.height, borderRadius = _a.borderRadius;
|
|
18751
|
+
return ({
|
|
18752
|
+
height: height || '0.5rem',
|
|
18753
|
+
width: '100%',
|
|
18754
|
+
backgroundColor: backgroundColor,
|
|
18755
|
+
borderRadius: borderRadius || '0.25rem',
|
|
18756
|
+
});
|
|
18757
|
+
});
|
|
18758
|
+
var BarContainer = newStyled.div({
|
|
18759
|
+
display: 'grid',
|
|
18760
|
+
gridTemplateColumns: '1fr 10fr 1fr',
|
|
18761
|
+
justifyContent: 'center',
|
|
18762
|
+
alignItems: 'center',
|
|
18763
|
+
width: '416px',
|
|
18764
|
+
gap: '8px',
|
|
18765
|
+
maxWidth: '100%',
|
|
18766
|
+
padding: '0 16px',
|
|
18767
|
+
position: 'relative',
|
|
18768
|
+
});
|
|
18769
|
+
var Container$z = newStyled.div(function (_a) {
|
|
18770
|
+
var backgroundColor = _a.backgroundColor;
|
|
18771
|
+
return ({
|
|
18772
|
+
width: '475px',
|
|
18773
|
+
maxWidth: '100%',
|
|
18774
|
+
display: 'flex',
|
|
18775
|
+
gap: '13px',
|
|
18776
|
+
padding: '16px 0',
|
|
18777
|
+
flexDirection: 'column',
|
|
18778
|
+
alignItems: 'center',
|
|
18779
|
+
background: backgroundColor,
|
|
18780
|
+
});
|
|
18781
|
+
});
|
|
18782
|
+
var MessageContainer = newStyled.div(templateObject_2$C || (templateObject_2$C = __makeTemplateObject(["\n padding: 0 1rem;\n text-align: center;\n"], ["\n padding: 0 1rem;\n text-align: center;\n"])));
|
|
18783
|
+
var getBarWithBasedOnPercent$1 = function (percent) {
|
|
18784
|
+
return percent <= 100 && percent >= 0 ? "".concat(percent, "%") : '0%';
|
|
18785
|
+
};
|
|
18786
|
+
var Value = newStyled.div(function (_a) {
|
|
18787
|
+
var isBold = _a.isBold;
|
|
18788
|
+
return ({
|
|
18789
|
+
fontWeight: isBold ? 600 : 400,
|
|
18790
|
+
});
|
|
18791
|
+
});
|
|
18792
|
+
var _calculatePercentage = function (currentAmount, endingValue) {
|
|
18793
|
+
var percentage = currentAmount / endingValue;
|
|
18794
|
+
return percentage > 1 ? 100 : percentage * 100;
|
|
18795
|
+
};
|
|
18796
|
+
var MotivatorProgressBar = function (_a) {
|
|
18797
|
+
var _b = _a.fillColor, fillColor = _b === void 0 ? '#F7A08B' : _b, _c = _a.backgroundColor, backgroundColor = _c === void 0 ? '#F7F7F7' : _c, _d = _a.unfilledColor, unfilledColor = _d === void 0 ? '#EEBFBD' : _d, _e = _a.currencyCode, currencyCode = _e === void 0 ? '$' : _e, _f = _a.endingValue, endingValue = _f === void 0 ? 70 : _f, _g = _a.currentAmount, currentAmount = _g === void 0 ? 0 : _g, rewardUnlockedMessage = _a.rewardUnlockedMessage, _h = _a.isClubBarMotivatorTest, isClubBarMotivatorTest = _h === void 0 ? false : _h, remainingAmountMessage = _a.remainingAmountMessage;
|
|
18798
|
+
var theme = useTheme();
|
|
18799
|
+
var isRewardUnlocked = currentAmount >= endingValue;
|
|
18800
|
+
var progress = _calculatePercentage(currentAmount, endingValue);
|
|
18801
|
+
var getRemainingAmountMessage = function () {
|
|
18802
|
+
var remainingAmount = Math.round((endingValue - currentAmount) * 100) / 100;
|
|
18803
|
+
if (isClubBarMotivatorTest) {
|
|
18804
|
+
return (jsxs$1(MessageContainer, { children: ["Spend ", currencyCode, remainingAmount, " more to unlock ", jsx$1("strong", { children: "Free Priority Shipping" }, void 0), " with Club!"] }, void 0));
|
|
18805
|
+
}
|
|
18806
|
+
var message = remainingAmountMessage !== null && remainingAmountMessage !== void 0 ? remainingAmountMessage : "Spend currencyCoderemainingAmount more to get <strong>Free Shipping</strong>";
|
|
18807
|
+
message = message.replace('currencyCode', currencyCode);
|
|
18808
|
+
message = message.replace('remainingAmount', remainingAmount.toString());
|
|
18809
|
+
return (jsx$1(MessageContainer, { children: HTMLReactParser$1(message) }, void 0));
|
|
18810
|
+
};
|
|
18811
|
+
return (jsxs$1(Container$z, __assign$1({ backgroundColor: backgroundColor }, { children: [jsxs$1(BarContainer, __assign$1({ "data-testid": "MPBContainer" }, { children: [jsxs$1(Value, { children: [currencyCode, currentAmount] }, void 0), jsx$1(Background$1, __assign$1({ backgroundColor: unfilledColor || theme.colors.shades['100'].color, "data-testid": "MPBBackground" }, { children: jsx$1(Bar$1, { "data-testid": "MPBBar", backgroundColor: fillColor, percent: progress }, void 0) }), void 0), jsxs$1(Value, __assign$1({ isBold: true }, { children: [currencyCode, endingValue] }), void 0)] }), void 0), isRewardUnlocked ? (jsx$1(MessageContainer, { dangerouslySetInnerHTML: { __html: rewardUnlockedMessage } }, void 0)) : (getRemainingAmountMessage())] }), void 0));
|
|
18812
|
+
};
|
|
18813
|
+
var templateObject_1$M, templateObject_2$C;
|
|
18814
|
+
|
|
18815
|
+
var Container$y = newStyled.div(templateObject_1$L || (templateObject_1$L = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ", ";\n padding: 0.75rem 0;\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ", ";\n padding: 0.75rem 0;\n"])), function (_a) {
|
|
18816
|
+
var theme = _a.theme;
|
|
18817
|
+
return theme.component.orderBar.backgroundColor;
|
|
18818
|
+
});
|
|
18819
|
+
var H1 = newStyled.h1(templateObject_2$B || (templateObject_2$B = __makeTemplateObject(["\n margin: 0;\n font-size: 1rem;\n line-height: 1.5rem;\n font-weight: 600;\n color: ", ";\n margin-left: 0.625rem;\n"], ["\n margin: 0;\n font-size: 1rem;\n line-height: 1.5rem;\n font-weight: 600;\n color: ", ";\n margin-left: 0.625rem;\n"])), function (props) { return props.color; });
|
|
18820
|
+
var OrderBar = function (_a) {
|
|
18821
|
+
var message = _a.message, color = _a.color;
|
|
18822
|
+
var theme = useTheme();
|
|
18823
|
+
return (jsxs$1(Container$y, __assign$1({ color: color }, { children: [jsx$1(Icon.Actions.Check, { width: 1.25, height: 0.875, fill: "#2F806A" }, void 0), jsx$1(H1, __assign$1({ color: theme.component.orderBar.fontColor }, { children: message }), void 0)] }), void 0));
|
|
18824
|
+
};
|
|
18825
|
+
var templateObject_1$L, templateObject_2$B;
|
|
18826
|
+
|
|
18827
|
+
var StyledButton$1 = newStyled(Ye.Button)(function (props) { return ({
|
|
18828
|
+
background: props.bgColor,
|
|
18829
|
+
height: '100%',
|
|
18830
|
+
width: '100%',
|
|
18831
|
+
maxHeight: '48px',
|
|
18832
|
+
border: 'none',
|
|
18833
|
+
display: 'flex',
|
|
18834
|
+
cursor: props.disabled ? 'not-allowed' : 'pointer',
|
|
18835
|
+
justifyContent: 'space-between',
|
|
18836
|
+
alignItems: 'center',
|
|
18837
|
+
padding: '10px 24px',
|
|
18838
|
+
}); });
|
|
18839
|
+
var StyledPanel = newStyled(Ye.Panel)({
|
|
18840
|
+
width: '100%',
|
|
18841
|
+
background: 'transparent',
|
|
18842
|
+
border: 'none',
|
|
18843
|
+
display: 'flex',
|
|
18844
|
+
flexDirection: 'column',
|
|
18845
|
+
alignItems: 'center',
|
|
18846
|
+
justifyContent: 'center',
|
|
18847
|
+
gap: '10px',
|
|
18848
|
+
});
|
|
18849
|
+
var StyledContent = newStyled.div(templateObject_1$K || (templateObject_1$K = __makeTemplateObject(["\n appearance: none;\n padding: 0 0 15px 0;\n margin: auto;\n border: none;\n background: ", ";\n font-size: inherit;\n line-height: inherit;\n color: inherit;\n cursor: auto;\n user-select: text;\n writing-mode: unset;\n font-family: inherit;\n display: flex;\n justify-content: center;\n align-items: center;\n width: ", ";\n height: fit-content;\n"], ["\n appearance: none;\n padding: 0 0 15px 0;\n margin: auto;\n border: none;\n background: ", ";\n font-size: inherit;\n line-height: inherit;\n color: inherit;\n cursor: auto;\n user-select: text;\n writing-mode: unset;\n font-family: inherit;\n display: flex;\n justify-content: center;\n align-items: center;\n width: ", ";\n height: fit-content;\n"])), function (_a) {
|
|
18850
|
+
var bgColor = _a.bgColor;
|
|
18851
|
+
return bgColor !== null && bgColor !== void 0 ? bgColor : '';
|
|
18852
|
+
}, function (_a) {
|
|
18853
|
+
var _b = _a.width, width = _b === void 0 ? '100%' : _b;
|
|
18854
|
+
return width;
|
|
18855
|
+
});
|
|
18856
|
+
var StyledController = newStyled.div(templateObject_2$A || (templateObject_2$A = __makeTemplateObject(["\n display: flex;\n align-items: flex-start;\n justify-content: flex-start;\n min-width: fit-content;\n appearance: none;\n padding: 0;\n margin: 0;\n border: none;\n background: none;\n font-size: inherit;\n line-height: inherit;\n color: inherit;\n user-select: text;\n writing-mode: unset;\n font-family: inherit;\n cursor: pointer;\n gap: 5px;\n"], ["\n display: flex;\n align-items: flex-start;\n justify-content: flex-start;\n min-width: fit-content;\n appearance: none;\n padding: 0;\n margin: 0;\n border: none;\n background: none;\n font-size: inherit;\n line-height: inherit;\n color: inherit;\n user-select: text;\n writing-mode: unset;\n font-family: inherit;\n cursor: pointer;\n gap: 5px;\n"])));
|
|
18857
|
+
var templateObject_1$K, templateObject_2$A;
|
|
18858
|
+
|
|
18859
|
+
var StyledDisclosure = newStyled(Ye)(function (_a) {
|
|
18860
|
+
var background = _a.background, width = _a.width;
|
|
18861
|
+
return ({
|
|
18862
|
+
display: 'flex',
|
|
18863
|
+
flexDirection: 'column',
|
|
18864
|
+
justifyContent: 'center',
|
|
18865
|
+
gap: '10px',
|
|
18866
|
+
background: background !== null && background !== void 0 ? background : '',
|
|
18867
|
+
width: width !== null && width !== void 0 ? width : 'auto',
|
|
18868
|
+
borderRadius: '8px',
|
|
18869
|
+
border: '0.063rem solid',
|
|
18870
|
+
borderColor: '#e5e5e5',
|
|
18871
|
+
padding: 'unset',
|
|
18872
|
+
overflow: 'hidden',
|
|
18873
|
+
});
|
|
18874
|
+
});
|
|
18875
|
+
var ControlIconComponent = memo(function (_a) {
|
|
18876
|
+
var open = _a.open, openIcon = _a.openIcon, closeIcon = _a.closeIcon, fillControlsCollor = _a.fillControlsCollor;
|
|
18877
|
+
var Icon = open ? closeIcon : openIcon;
|
|
18878
|
+
return jsx$1(Icon, { title: open ? 'Close' : 'Open', fill: fillControlsCollor }, void 0);
|
|
18879
|
+
});
|
|
18880
|
+
ControlIconComponent.displayName = 'ControlIconComponent';
|
|
18881
|
+
var HeaderContentComponent = memo(function (_a) {
|
|
18882
|
+
var open = _a.open, header = _a.header, headerOnOpen = _a.headerOnOpen;
|
|
18883
|
+
return jsx$1(Fragment$2, { children: open && headerOnOpen ? headerOnOpen : header }, void 0);
|
|
18884
|
+
});
|
|
18885
|
+
HeaderContentComponent.displayName = 'HeaderContentComponent';
|
|
18886
|
+
var AccordionContent = function (_a) {
|
|
18887
|
+
var open = _a.open, disabled = _a.disabled, bgColor = _a.bgColor, fillControlsCollor = _a.fillControlsCollor, header = _a.header, headerOnOpen = _a.headerOnOpen, children = _a.children, openIcon = _a.openIcon, closeIcon = _a.closeIcon, contentWidth = _a.contentWidth;
|
|
18888
|
+
return (jsxs$1(Fragment$2, { children: [jsxs$1(StyledButton$1, __assign$1({ "data-testid": "styled-button", disabled: disabled, bgColor: bgColor }, { children: [jsx$1(HeaderContentComponent, { open: open, header: header, headerOnOpen: headerOnOpen }, void 0), jsxs$1(StyledController, { children: [jsx$1(Text$7, __assign$1({ variant: "body", weight: "demi", size: "small", color: fillControlsCollor }, { children: "View Offers" }), void 0), jsx$1("span", __assign$1({ style: { marginTop: '3px' } }, { children: jsx$1(ControlIconComponent, { open: open, openIcon: openIcon, closeIcon: closeIcon, fillControlsCollor: fillControlsCollor }, void 0) }), void 0)] }, void 0)] }), void 0), open && (jsx$1(StyledContent, __assign$1({ width: contentWidth, bgColor: bgColor, onClick: function (e) { return e.stopPropagation(); } }, { children: jsx$1(StyledPanel, { children: children }, void 0) }), void 0))] }, void 0));
|
|
18889
|
+
};
|
|
18890
|
+
var BasicAccordion = function (_a) {
|
|
18891
|
+
var children = _a.children, header = _a.header, bgColor = _a.bgColor, headerOnOpen = _a.headerOnOpen, _b = _a.defaultOpen, defaultOpen = _b === void 0 ? false : _b, _c = _a.disabled, disabled = _c === void 0 ? false : _c, openIcon = _a.openIcon, closeIcon = _a.closeIcon, onClick = _a.onClick, _d = _a.width, width = _d === void 0 ? '100%' : _d, fillControlsCollor = _a.fillControlsCollor;
|
|
18892
|
+
return (jsx$1(StyledDisclosure, __assign$1({ "data-testid": "accordion-container", as: "div", background: bgColor, defaultOpen: defaultOpen, disabled: disabled, onClick: onClick, width: width }, { children: function (_a) {
|
|
18893
|
+
var open = _a.open;
|
|
18894
|
+
return (jsx$1(AccordionContent, __assign$1({ open: open, disabled: disabled, bgColor: bgColor, fillControlsCollor: fillControlsCollor, header: header, headerOnOpen: headerOnOpen, openIcon: openIcon, closeIcon: closeIcon }, { children: children }), void 0));
|
|
18895
|
+
} }), void 0));
|
|
18896
|
+
};
|
|
18897
|
+
|
|
18898
|
+
var TableElement$3 = newStyled.table(templateObject_1$J || (templateObject_1$J = __makeTemplateObject(["\n box-sizing: border-box;\n border-radius: ", ";\n border-bottom-left-radius: ", ";\n border-bottom-right-radius: ", ";\n border: 0.063rem solid var(--colors-shades-100-color);\n border-spacing: 0;\n font-size: 0.875rem;\n line-height: 3.125rem;\n width: 100%;\n color: var(--colors-shades-700-color);\n"], ["\n box-sizing: border-box;\n border-radius: ", ";\n border-bottom-left-radius: ", ";\n border-bottom-right-radius: ", ";\n border: 0.063rem solid var(--colors-shades-100-color);\n border-spacing: 0;\n font-size: 0.875rem;\n line-height: 3.125rem;\n width: 100%;\n color: var(--colors-shades-700-color);\n"])), function (props) { return (props.isSticky ? '0' : '0.5rem'); }, function (props) { return (props.isSticky ? '0.5rem' : '0'); }, function (props) { return (props.isSticky ? '0.5rem' : '0'); });
|
|
18899
|
+
var TableCell$3 = newStyled.td(templateObject_2$z || (templateObject_2$z = __makeTemplateObject(["\n border-bottom: 0.063rem solid var(--colors-shades-100-color);\n border-right: 0.063rem solid var(--colors-shades-100-color);\n line-height: normal;\n padding: 1rem 0;\n text-align: center;\n position: ", ";\n left: 0;\n z-index: ", ";\n border-bottom-left-radius: ", ";\n\n &:last-child {\n border-right: none;\n }\n\n &:first-of-type {\n font-weight: 600;\n text-align: center;\n }\n"], ["\n border-bottom: 0.063rem solid var(--colors-shades-100-color);\n border-right: 0.063rem solid var(--colors-shades-100-color);\n line-height: normal;\n padding: 1rem 0;\n text-align: center;\n position: ", ";\n left: 0;\n z-index: ", ";\n border-bottom-left-radius: ", ";\n\n &:last-child {\n border-right: none;\n }\n\n &:first-of-type {\n font-weight: 600;\n text-align: center;\n }\n"])), function (props) { return (props.isSticky ? 'sticky' : 'unset'); }, function (props) { return (props.isSticky ? 1 : 0); }, function (props) { return (props.isLast ? '0.5rem' : '0'); });
|
|
18900
|
+
var TableHead$3 = newStyled.th(templateObject_3$w || (templateObject_3$w = __makeTemplateObject(["\n border-bottom: 0.063rem solid var(--colors-shades-100-color);\n border-right: 0.063rem solid var(--colors-shades-100-color);\n font-weight: 600;\n line-height: normal;\n padding: 1rem;\n text-align: start;\n position: ", ";\n left: 0;\n z-index: ", ";\n background-color: ", ";\n\n &:last-child {\n border-right: none;\n }\n\n &:first-of-type {\n text-align: center;\n }\n"], ["\n border-bottom: 0.063rem solid var(--colors-shades-100-color);\n border-right: 0.063rem solid var(--colors-shades-100-color);\n font-weight: 600;\n line-height: normal;\n padding: 1rem;\n text-align: start;\n position: ", ";\n left: 0;\n z-index: ", ";\n background-color: ", ";\n\n &:last-child {\n border-right: none;\n }\n\n &:first-of-type {\n text-align: center;\n }\n"])), function (props) { return (props.isSticky ? 'sticky' : 'unset'); }, function (props) { return (props.isSticky ? 1 : 0); }, function (props) { return (props.isSticky ? '#fff6ef' : 'unset'); });
|
|
18901
|
+
var Label$3 = newStyled('div')(templateObject_4$q || (templateObject_4$q = __makeTemplateObject(["\n gap: 15px;\n width: 100%;\n display: flex;\n font-size: 14px;\n font-weight: 600;\n align-items: center;\n justify-content: center;\n"], ["\n gap: 15px;\n width: 100%;\n display: flex;\n font-size: 14px;\n font-weight: 600;\n align-items: center;\n justify-content: center;\n"])));
|
|
18902
|
+
newStyled(Label$3)(templateObject_5$j || (templateObject_5$j = __makeTemplateObject(["\n margin-bottom: 5px;\n"], ["\n margin-bottom: 5px;\n"])));
|
|
18903
|
+
newStyled(Label$3)(templateObject_6$h || (templateObject_6$h = __makeTemplateObject(["\n width: 20px;\n transform: rotate(270deg);\n"], ["\n width: 20px;\n transform: rotate(270deg);\n"])));
|
|
18904
|
+
var Container$x = newStyled('div')(templateObject_7$f || (templateObject_7$f = __makeTemplateObject(["\n gap: 5px;\n display: flex;\n width: fit-content;\n align-items: center;\n"], ["\n gap: 5px;\n display: flex;\n width: fit-content;\n align-items: center;\n"])));
|
|
18905
|
+
newStyled('span')(templateObject_8$b || (templateObject_8$b = __makeTemplateObject(["\n display: flex;\n min-width: 70px;\n justify-content: center;\n"], ["\n display: flex;\n min-width: 70px;\n justify-content: center;\n"])));
|
|
18906
|
+
var Column$2 = newStyled('div')(templateObject_9$7 || (templateObject_9$7 = __makeTemplateObject(["\n display: flex;\n min-width: 675px;\n align-items: flex-start;\n flex-direction: column;\n\n @media (max-width: 768px) {\n min-width: 100%;\n }\n"], ["\n display: flex;\n min-width: 675px;\n align-items: flex-start;\n flex-direction: column;\n\n @media (max-width: 768px) {\n min-width: 100%;\n }\n"])));
|
|
18907
|
+
var TableRow$3 = newStyled.tr(templateObject_10$7 || (templateObject_10$7 = __makeTemplateObject(["\n &:last-child {\n td {\n border-bottom: none;\n }\n }\n\n &.background {\n background-color: var(--colors-shades-10-color);\n }\n"], ["\n &:last-child {\n td {\n border-bottom: none;\n }\n }\n\n &.background {\n background-color: var(--colors-shades-10-color);\n }\n"])));
|
|
18908
|
+
var Header$1 = newStyled('div')(templateObject_11$5 || (templateObject_11$5 = __makeTemplateObject(["\n gap: 15px;\n display: flex;\n left: 0;\n border: 1px solid #e5e5e5;\n width: 100%;\n max-width: 92vw;\n position: sticky;\n padding: 14px 18px;\n border-top-left-radius: 12px;\n border-top-right-radius: 12px;\n border-bottom: none;\n background-color: #fff6ef;\n font-size: 0.875rem;\n font-weight: 600;\n\n @media (min-width: 400px) {\n max-width: 92.5vw;\n }\n"], ["\n gap: 15px;\n display: flex;\n left: 0;\n border: 1px solid #e5e5e5;\n width: 100%;\n max-width: 92vw;\n position: sticky;\n padding: 14px 18px;\n border-top-left-radius: 12px;\n border-top-right-radius: 12px;\n border-bottom: none;\n background-color: #fff6ef;\n font-size: 0.875rem;\n font-weight: 600;\n\n @media (min-width: 400px) {\n max-width: 92.5vw;\n }\n"])));
|
|
18909
|
+
var Parent = newStyled('div')(templateObject_12$2 || (templateObject_12$2 = __makeTemplateObject(["\n max-width: 100vw;\n position: relative;\n\n @media (max-width: 768px) {\n overflow-x: auto;\n &::-webkit-scrollbar {\n display: none;\n }\n\n -ms-overflow-style: none;\n }\n"], ["\n max-width: 100vw;\n position: relative;\n\n @media (max-width: 768px) {\n overflow-x: auto;\n &::-webkit-scrollbar {\n display: none;\n }\n\n -ms-overflow-style: none;\n }\n"])));
|
|
18910
|
+
var Arrow = newStyled('div')(templateObject_13$2 || (templateObject_13$2 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n width: 44px;\n height: 44px;\n z-index: 2;\n border-radius: 50%;\n background-color: #d4605b;\n bottom: 20px;\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n width: 44px;\n height: 44px;\n z-index: 2;\n border-radius: 50%;\n background-color: #d4605b;\n bottom: 20px;\n"])));
|
|
18911
|
+
var TableHeader = newStyled('thead')(templateObject_14$2 || (templateObject_14$2 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (props) {
|
|
18912
|
+
return props.isColored ? 'var(--colors-pallete-primary-80-color)' : 'unset';
|
|
18913
|
+
});
|
|
18914
|
+
var templateObject_1$J, templateObject_2$z, templateObject_3$w, templateObject_4$q, templateObject_5$j, templateObject_6$h, templateObject_7$f, templateObject_8$b, templateObject_9$7, templateObject_10$7, templateObject_11$5, templateObject_12$2, templateObject_13$2, templateObject_14$2;
|
|
18915
|
+
|
|
18916
|
+
var getIsOdd$2 = function (number) { return number % 2 !== 0; };
|
|
18917
|
+
// TODO: Refactor this color logic
|
|
18918
|
+
var getCellColor$2 = function (index, cell, isLight) {
|
|
18919
|
+
if (index == 0) {
|
|
18920
|
+
return isLight ? '#fff6ef' : '#f6f0e7';
|
|
18921
|
+
}
|
|
18922
|
+
switch (cell) {
|
|
18923
|
+
case 'XS':
|
|
18924
|
+
return '#f5bab0';
|
|
18925
|
+
case 'S':
|
|
18926
|
+
return '#f7a08b';
|
|
18927
|
+
case 'M':
|
|
18928
|
+
return '#ffe1b8';
|
|
18929
|
+
case 'L':
|
|
18930
|
+
return '#f5bab0';
|
|
18931
|
+
case 'XL':
|
|
18932
|
+
return '#8bbeea';
|
|
18933
|
+
case '2XL':
|
|
18934
|
+
return '#b1d7c3';
|
|
18935
|
+
case '3XL':
|
|
18936
|
+
return '#e7a4f7';
|
|
18937
|
+
case '4XL':
|
|
18938
|
+
return '#e7c9b2';
|
|
18939
|
+
default:
|
|
18940
|
+
return '';
|
|
18941
|
+
}
|
|
18942
|
+
};
|
|
18943
|
+
|
|
18944
|
+
var SizeChartTableV3 = function (_a) {
|
|
18945
|
+
var _b, _c;
|
|
18946
|
+
var headers = _a.headers, tableContent = _a.data, newSizeTableCss = _a.newSizeTableCss;
|
|
18947
|
+
var containerRef = useRef(null);
|
|
18948
|
+
var isMobile = useWindowDimensions().isMobile;
|
|
18949
|
+
var _d = useState(false), isAtScrollEnd = _d[0], setIsAtScrollEnd = _d[1];
|
|
18950
|
+
var _e = (_c = (_b = headers === null || headers === void 0 ? void 0 : headers[0]) === null || _b === void 0 ? void 0 : _b.split('/')) !== null && _c !== void 0 ? _c : [], xLabel = _e[0], yLabel = _e[1];
|
|
18951
|
+
var isMultilabel = xLabel && yLabel;
|
|
18952
|
+
var trimmedXLabel = trimLabel(xLabel);
|
|
18953
|
+
var trimmedYLabel = trimLabel(yLabel);
|
|
18954
|
+
useEffect(function () {
|
|
18955
|
+
var _a;
|
|
18956
|
+
var handleScroll = function () {
|
|
18957
|
+
var _a = containerRef.current, scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;
|
|
18958
|
+
var maxScroll = scrollWidth - clientWidth;
|
|
18959
|
+
var isAtEnd = scrollLeft >= maxScroll * 0.92;
|
|
18960
|
+
setIsAtScrollEnd(function (prevState) {
|
|
18961
|
+
if (isAtEnd !== prevState) {
|
|
18962
|
+
return isAtEnd;
|
|
18963
|
+
}
|
|
18964
|
+
return prevState;
|
|
18965
|
+
});
|
|
18966
|
+
};
|
|
18967
|
+
(_a = containerRef === null || containerRef === void 0 ? void 0 : containerRef.current) === null || _a === void 0 ? void 0 : _a.addEventListener('scroll', handleScroll);
|
|
18968
|
+
return function () { var _a; return (_a = containerRef === null || containerRef === void 0 ? void 0 : containerRef.current) === null || _a === void 0 ? void 0 : _a.removeEventListener('scroll', handleScroll); };
|
|
18969
|
+
}, []);
|
|
18970
|
+
// Generate unique ids for each cell
|
|
18971
|
+
var tableContentWithIds = tableContent === null || tableContent === void 0 ? void 0 : tableContent.map(function (row, rowIndex) {
|
|
18972
|
+
return row === null || row === void 0 ? void 0 : row.map(function (cell, cellIndex) { return ({
|
|
18973
|
+
id: "".concat(rowIndex, "-").concat(cellIndex),
|
|
18974
|
+
value: cell,
|
|
18975
|
+
}); });
|
|
18976
|
+
});
|
|
18977
|
+
return (jsxs$1(Fragment$2, { children: [jsx$1(Parent, __assign$1({ ref: containerRef }, { children: jsx$1(Container$x, { children: jsxs$1(Column$2, { children: [isMultilabel && (jsxs$1(Header$1, { children: [jsx$1("div", { children: trimmedYLabel }, void 0), jsx$1(Icon.Arrows.ChevronRightVariant, {}, void 0)] }, void 0)), jsxs$1(TableElement$3, __assign$1({ isSticky: !!newSizeTableCss }, { children: [jsx$1(TableHeader, __assign$1({ isColored: newSizeTableCss }, { children: jsx$1(TableRow$3, { children: headers === null || headers === void 0 ? void 0 : headers.map(function (header, index) { return (jsx$1(TableHead$3, __assign$1({ isSticky: !!newSizeTableCss && index === 0 }, { children: index === 0 && isMultilabel ? (jsxs$1("div", __assign$1({ style: { display: 'flex', alignItems: 'center', gap: '15px' } }, { children: [jsx$1("div", { children: trimmedXLabel }, void 0), jsx$1(Icon.Arrows.ChevronDownVariant, {}, void 0)] }), void 0)) : (header) }), header)); }) }, void 0) }), void 0), newSizeTableCss ? (jsx$1("tbody", { children: tableContentWithIds === null || tableContentWithIds === void 0 ? void 0 : tableContentWithIds.map(function (row, parentIndex) { return (jsx$1("tr", { children: row === null || row === void 0 ? void 0 : row.map(function (cell, index) { return (jsx$1(TableCell$3, __assign$1({ isSticky: index === 0, isLast: index === 0 && parentIndex === tableContent.length - 1, style: {
|
|
18978
|
+
backgroundColor: getCellColor$2(index, cell.value, true),
|
|
18979
|
+
} }, { children: cell.value }), cell.id)); }) }, row[0].id)); }) }, void 0)) : (jsx$1("tbody", { children: tableContentWithIds === null || tableContentWithIds === void 0 ? void 0 : tableContentWithIds.map(function (row, parentIndex) { return (jsx$1(TableRow$3, __assign$1({ className: getIsOdd$2(parentIndex) ? 'background' : '' }, { children: row === null || row === void 0 ? void 0 : row.map(function (cell) { return (jsx$1(TableCell$3, __assign$1({ isSticky: false }, { children: cell.value }), cell.id)); }) }), row[0].id)); }) }, void 0))] }), void 0)] }, void 0) }, void 0) }), void 0), newSizeTableCss && isMobile && jsx$1(ArrowTip, { isRight: !isAtScrollEnd }, void 0)] }, void 0));
|
|
18980
|
+
};
|
|
18981
|
+
var ArrowTip = function (_a) {
|
|
18982
|
+
var _b = _a.isRight, isRight = _b === void 0 ? true : _b;
|
|
18983
|
+
return (jsx$1(Arrow, __assign$1({ style: {
|
|
18984
|
+
left: isRight ? '85%' : '12%',
|
|
18985
|
+
} }, { children: isRight ? (jsx$1(Icon.Arrows.ChevronRightVariant, { fill: "white" }, void 0)) : (jsx$1(Icon.Arrows.ChevronLeftVariant, { fill: "white" }, void 0)) }), void 0));
|
|
18986
|
+
};
|
|
18987
|
+
var trimLabel = function (label) { var _a, _b; return (_b = (_a = label === null || label === void 0 ? void 0 : label.trim()) === null || _a === void 0 ? void 0 : _a.split(' ')) === null || _b === void 0 ? void 0 : _b[0]; };
|
|
18988
|
+
|
|
18986
18989
|
var Container$w = newStyled.div(templateObject_1$I || (templateObject_1$I = __makeTemplateObject(["\n position: relative;\n display: flex;\n border-radius: 6px;\n gap: 6px;\n"], ["\n position: relative;\n display: flex;\n border-radius: 6px;\n gap: 6px;\n"])));
|
|
18987
18990
|
var Card$1 = newStyled.div(templateObject_2$y || (templateObject_2$y = __makeTemplateObject(["\n --background: var(--colors-background-color);\n\n flex: 1;\n position: relative;\n overflow: hidden;\n cursor: pointer;\n border: 2px solid var(--component-packSelector-borderColor);\n padding: 20px 7px 7px;\n text-align: center;\n background-color: var(--background);\n border-radius: var(--component-packSelector-borderRadius);\n\n &[aria-checked='true'] {\n --color: var(--component-packSelector-selectedColor);\n\n border-color: var(--color);\n\n & * {\n p {\n color: var(--color);\n }\n }\n }\n"], ["\n --background: var(--colors-background-color);\n\n flex: 1;\n position: relative;\n overflow: hidden;\n cursor: pointer;\n border: 2px solid var(--component-packSelector-borderColor);\n padding: 20px 7px 7px;\n text-align: center;\n background-color: var(--background);\n border-radius: var(--component-packSelector-borderRadius);\n\n &[aria-checked='true'] {\n --color: var(--component-packSelector-selectedColor);\n\n border-color: var(--color);\n\n & * {\n p {\n color: var(--color);\n }\n }\n }\n"])));
|
|
18988
18991
|
var Tag$1 = newStyled.div(templateObject_3$v || (templateObject_3$v = __makeTemplateObject(["\n position: absolute;\n width: 100%;\n left: 50%;\n top: 0;\n transform: translateX(-50%);\n background-color: var(--component-packSelector-tagColor);\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 1px 0;\n\n [aria-checked='true'] & {\n background-color: var(--component-packSelector-selectedColor);\n\n & * {\n color: var(--component-packSelector-selectedContrast) !important;\n }\n }\n"], ["\n position: absolute;\n width: 100%;\n left: 50%;\n top: 0;\n transform: translateX(-50%);\n background-color: var(--component-packSelector-tagColor);\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 1px 0;\n\n [aria-checked='true'] & {\n background-color: var(--component-packSelector-selectedColor);\n\n & * {\n color: var(--component-packSelector-selectedContrast) !important;\n }\n }\n"])));
|
|
@@ -21124,5 +21127,5 @@ var SizeChartTableV2 = function (_a) {
|
|
|
21124
21127
|
}, borderColor: theme.colors.shades['100'].color }, { children: cell }), index)); }) }, index)); }) }, void 0)) : (jsx$1("tbody", { children: tableContent === null || tableContent === void 0 ? void 0 : tableContent.map(function (row, index) { return (jsx$1(TableRow, __assign$1({ className: getIsOdd(index) ? 'background' : '', backgroundColor: theme.colors.shades['10'].color }, { children: row === null || row === void 0 ? void 0 : row.map(function (cell, index) { return (jsx$1(TableCell, __assign$1({ borderColor: theme.colors.shades['100'].color }, { children: cell }), index)); }) }), index)); }) }, void 0))] }), void 0) }, void 0)] }, void 0)] }, void 0));
|
|
21125
21128
|
};
|
|
21126
21129
|
|
|
21127
|
-
export { AbsorbencyLevel, Accordion$1 as Accordion, AccordionOptions, AmazonButton, AssetsProvider, Autoship, AutoshipV2, BasicAccordion, BeforeAfterCard, BeforeAfterVariant, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, BuyNowPayLater, CacheProvider, CancellationFlowAccordionContentPerPartner, Card$3 as Card, CardSectionType, CartItemCard, CartProductItem, CategorySquareTag, CategoryTag, Checkbox, ClubOfferSelector, ClubOfferTag, ClubPriceMemberLabel, ClubRadioGroupInput, Collection, ColorPickerWithTooltip, ComponentPosition, ComponentSize, CouponCard, index$1 as CrossSell, DeliveryDetails, DiscountTag$2 as DiscountTag, Drawer, DropdownDialog, DropdownListIcons, FilteringDropdown, Tags as FilteringTags, Filters, FitGuarantee, FitPredictor, Global, HurryUp, Icon, IconButton, IconsWithTitle, Image$3 as Image, ImageCardWithDescription, Input$3 as Input, InputValidationType, JoinClubCard, Icon$1 as LibIcon, Modal, MotivatorProgressBar, MultiColorPicker, Note, OfferBanner, OrderBar, Overlay, PackSelector, PackSelectorV2, Pagination, PaginatorBlog, PaymentMethod, PaypalButton, Portal, PriceLabel$1 as PriceLabel, PriceLabelV2$1 as PriceLabelV2, PriceLabelV3, ProductCard, ProductCardV2, ProductCardV3, ProductGallery, ProductGalleryMobile, ProductGalleryMobileV2, ProductGalleryMobileV3, ProductGalleryMobileV4, ProgressBar, QuantityPicker, RadioGroupInput, RadioInput, RadioPrimary, Rating, Review, Review$1 as ReviewDetail, ReviewsHeader, ScrollToTop, SearchBar, SearchNavigation, SeasonOfferTag, ShortBanner, SimpleDropdown, SimpleOrderItem, SingleColorPicker, SizeChartTable, SizeChartTableV2, SizeChartTableV3, SizeDropdown, SizeFitGuide, SizeSelector, SizeTable, SliderNavigation, Spacing, Spinner, StarList, StrengthBars, Tab, Tabs, Text$7 as Text, TextButton, TextWithImage, ThemeProvider, ThemeVariables, Timer, Toast, Tooltip, Totals, TrackingProgress, TrackingProgressV2, Video$1 as Video, buildImageUrl, componentSizeMapper, createCache, css, decimalFormat, formatPrice, getSrcSet, isEmail, isEmpty, isNumber$1 as isNumber, isPhoneNumber, isValidDate, mediaQueries, modalEvent, SeasonOfferRoundedTag as seasonOfferRoundedTag, simulateMouseClick, sliceString, newStyled as styled, useDeviceType, useModal, useModalEvent, useOnClickOutside, useTheme, useThemeAssets, useWindowDimensions };
|
|
21130
|
+
export { AbsorbencyLevel, Accordion$1 as Accordion, AccordionOptions, AmazonButton, AssetsProvider, Autoship, AutoshipV2, BasicAccordion, BeforeAfterCard, BeforeAfterVariant, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, BuyNowPayLater, CacheProvider, CancellationFlowAccordionContentPerPartner, Card$3 as Card, CardSectionType, CartItemCard, CartProductItem, CategorySquareTag, CategoryTag, Checkbox, ClubOfferSelector, ClubOfferTag, ClubPriceMemberLabel, ClubRadioGroupInput, Collection, ColorPickerWithTooltip, ComponentPosition, ComponentSize, CouponCard, index$1 as CrossSell, DeliveryDetails, DiscountTag$2 as DiscountTag, Drawer, DropdownDialog, DropdownListIcons, FilteringDropdown, Tags as FilteringTags, Filters, FitGuarantee, FitPredictor, Global, HurryUp, Icon, IconButton, IconsWithTitle, Image$3 as Image, ImageCardWithDescription, Input$3 as Input, InputValidationType, JoinClubCard, Icon$1 as LibIcon, Modal, MotivatorProgressBar, MultiColorPicker, Note, OfferBanner, OrderBar, Overlay, PackSelector, PackSelectorV2, Pagination, PaginatorBlog, PaymentMethod, PaypalButton, Portal, PriceLabel$1 as PriceLabel, PriceLabelV2$1 as PriceLabelV2, PriceLabelV3, ProductCard, ProductCardV2, ProductCardV3, ProductGallery, ProductGalleryMobile, ProductGalleryMobileV2, ProductGalleryMobileV3, ProductGalleryMobileV4, ProgressBar, QuantityPicker, RadioGroupInput, RadioInput, RadioPrimary, Rating, Review, Review$1 as ReviewDetail, ReviewsHeader, ScrollToTop, SearchBar, SearchNavigation, SeasonOfferTag, ShortBanner, SimpleDropdown, SimpleOrderItem, SingleColorPicker, SizeChartTable, SizeChartTableV2, SizeChartTableV3, SizeDropdown, SizeFitGuide, SizeSelector, SizeTable, SliderNavigation, Spacing, Spinner, StarList, StrengthBars, Tab, Tabs, Text$7 as Text, TextButton, TextWithImage, ThemeProvider, ThemeVariables, Timer, Toast, ToggleComponent, Tooltip, Totals, TrackingProgress, TrackingProgressV2, Video$1 as Video, buildImageUrl, componentSizeMapper, createCache, css, decimalFormat, formatPrice, getSrcSet, isEmail, isEmpty, isNumber$1 as isNumber, isPhoneNumber, isValidDate, mediaQueries, modalEvent, SeasonOfferRoundedTag as seasonOfferRoundedTag, simulateMouseClick, sliceString, newStyled as styled, useDeviceType, useModal, useModalEvent, useOnClickOutside, useTheme, useThemeAssets, useWindowDimensions };
|
|
21128
21131
|
//# sourceMappingURL=index.esm.js.map
|