@trafilea/afrodita-components 5.0.0-beta.10 → 5.0.0-beta.11
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 +9 -3
- package/build/index.esm.js +94 -126
- package/build/index.esm.js.map +1 -1
- package/build/index.js +94 -125
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -509,8 +509,9 @@ interface SizeFitGuideProps {
|
|
|
509
509
|
title: string;
|
|
510
510
|
fitPercentage?: number;
|
|
511
511
|
onClick: () => void;
|
|
512
|
+
onClickFitPercentage?: () => void;
|
|
512
513
|
}
|
|
513
|
-
declare const SizeFitGuide: ({ title, fitPercentage, onClick }: SizeFitGuideProps) => JSX.Element;
|
|
514
|
+
declare const SizeFitGuide: ({ title, fitPercentage, onClick, onClickFitPercentage, }: SizeFitGuideProps) => JSX.Element;
|
|
514
515
|
|
|
515
516
|
interface BaseButtonProps {
|
|
516
517
|
children: React.ReactNode;
|
|
@@ -1620,7 +1621,12 @@ declare const Overlay: _emotion_styled.StyledComponent<{
|
|
|
1620
1621
|
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
1621
1622
|
declare const Modal: FC<ModalProps>;
|
|
1622
1623
|
declare const modalEvent: (id: string, detail: Omit<Events['modal'], 'id'>) => void;
|
|
1623
|
-
declare const useModalEvent: (id: string, cb: (event: CustomEvent<Events['modal']>) => void) => void;
|
|
1624
|
+
declare const useModalEvent: (id: string, cb: (event: CustomEvent<Events['modal']>) => void) => void;
|
|
1625
|
+
declare const useModal: (id: string) => {
|
|
1626
|
+
opened: boolean;
|
|
1627
|
+
open: () => void;
|
|
1628
|
+
close: () => void;
|
|
1629
|
+
};
|
|
1624
1630
|
|
|
1625
1631
|
interface CloseButtonProps {
|
|
1626
1632
|
onClick: () => void;
|
|
@@ -1741,4 +1747,4 @@ declare const formatPrice: (value: number, { locale, currency }?: {
|
|
|
1741
1747
|
currency?: string | undefined;
|
|
1742
1748
|
}) => string;
|
|
1743
1749
|
|
|
1744
|
-
export { Accordion, AmazonButton, AssetsProvider, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, ButtonType, CTAProps, _default as Card, CardSectionType, CartProductItem, CategoryTag, Checkbox, Collection, Color, ColorPickerOption, ComponentPosition, ComponentSize, index_d as CrossSell, DeliveryDetails, DiscountTag, Drawer, DropdownListIcons, DropdownListIconsItem, DropdownListIconsSubItem, DropdownOption, Filter, FilterChange, FilteringDropdown, Tags as FilteringTags, Filters, FitPredictor, Icon, IconButton, IconProps, IconWithOpacityProps, Image, ImageType, Input, InputValidationType, Modal, MultiColorPicker, OfferBanner, OrderBar, Overlay, PackSelector, Pagination, Pattern, PaymentMethod, PaypalButton, Portal, PriceLabel, ProductGallery, ProductGalleryMobile, ProgressBar, QuantityPicker, RadioGroupInput, RadioGroupOption, RadioInput, Rating, Review, ScrollToTop, SearchBar, SearchBarOptionItem, SeasonOfferTag, SimpleDropdown, SimpleOrderItem, SingleColorPicker, SizeFitGuide, SizeOption, SizeSelector, SizeTable, SliderNavigation, Spacing, Spinner, StarList, Text, TextButton, Theme, ThemeAssets, ThemeBasicPallete, ThemeBreakpoints, ThemeColorPallete, ThemeColors, ThemeComponent, ThemeFonts, ThemeProvider, ThemeTypography, ThemeVariables, Timer, Tooltip, Totals, WithTestId, decimalFormat, formatPrice, isEmail, isEmpty, isNumber, isPhoneNumber, isValidDate, modalEvent, simulateMouseClick, sliceString, useModalEvent, useOnClickOutside, useTheme, useThemeAssets, useWindowDimensions };
|
|
1750
|
+
export { Accordion, AmazonButton, AssetsProvider, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, ButtonType, CTAProps, _default as Card, CardSectionType, CartProductItem, CategoryTag, Checkbox, Collection, Color, ColorPickerOption, ComponentPosition, ComponentSize, index_d as CrossSell, DeliveryDetails, DiscountTag, Drawer, DropdownListIcons, DropdownListIconsItem, DropdownListIconsSubItem, DropdownOption, Filter, FilterChange, FilteringDropdown, Tags as FilteringTags, Filters, FitPredictor, Icon, IconButton, IconProps, IconWithOpacityProps, Image, ImageType, Input, InputValidationType, Modal, MultiColorPicker, OfferBanner, OrderBar, Overlay, PackSelector, Pagination, Pattern, PaymentMethod, PaypalButton, Portal, PriceLabel, ProductGallery, ProductGalleryMobile, ProgressBar, QuantityPicker, RadioGroupInput, RadioGroupOption, RadioInput, Rating, Review, ScrollToTop, SearchBar, SearchBarOptionItem, SeasonOfferTag, SimpleDropdown, SimpleOrderItem, SingleColorPicker, SizeFitGuide, SizeOption, SizeSelector, SizeTable, SliderNavigation, Spacing, Spinner, StarList, Text, TextButton, Theme, ThemeAssets, ThemeBasicPallete, ThemeBreakpoints, ThemeColorPallete, ThemeColors, ThemeComponent, ThemeFonts, ThemeProvider, ThemeTypography, ThemeVariables, Timer, Tooltip, Totals, WithTestId, decimalFormat, formatPrice, isEmail, isEmpty, isNumber, isPhoneNumber, isValidDate, modalEvent, simulateMouseClick, sliceString, useModal, useModalEvent, useOnClickOutside, useTheme, useThemeAssets, useWindowDimensions };
|
package/build/index.esm.js
CHANGED
|
@@ -4255,10 +4255,10 @@ var templateObject_1$11;
|
|
|
4255
4255
|
|
|
4256
4256
|
var Container$E = newStyled.div(templateObject_1$10 || (templateObject_1$10 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: 0.88rem;\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: 0.88rem;\n"])));
|
|
4257
4257
|
var P$3 = newStyled.p(templateObject_2$F || (templateObject_2$F = __makeTemplateObject(["\n margin: 0;\n"], ["\n margin: 0;\n"])));
|
|
4258
|
-
var PercentageSpan = newStyled.span(templateObject_3$q || (templateObject_3$q = __makeTemplateObject(["\n font-weight: 700;\n text-decoration-line: underline;\n"], ["\n font-weight: 700;\n text-decoration-line: underline;\n"])));
|
|
4258
|
+
var PercentageSpan = newStyled.span(templateObject_3$q || (templateObject_3$q = __makeTemplateObject(["\n font-weight: 700;\n text-decoration-line: underline;\n cursor: pointer;\n"], ["\n font-weight: 700;\n text-decoration-line: underline;\n cursor: pointer;\n"])));
|
|
4259
4259
|
var SizeFitGuide = function (_a) {
|
|
4260
|
-
var title = _a.title, fitPercentage = _a.fitPercentage, onClick = _a.onClick;
|
|
4261
|
-
return (jsxs$1(Container$E, { children: [jsx$1(TextButton, { LeadingIcon: Icon.PDP.Rule, size: ComponentSize.Small, text: title, onClick: onClick }, void 0), !!fitPercentage && (jsxs$1(P$3, { children: ["Fit As Expected:
|
|
4260
|
+
var title = _a.title, fitPercentage = _a.fitPercentage, onClick = _a.onClick, onClickFitPercentage = _a.onClickFitPercentage;
|
|
4261
|
+
return (jsxs$1(Container$E, { children: [jsx$1(TextButton, { LeadingIcon: Icon.PDP.Rule, size: ComponentSize.Small, text: title, onClick: onClick }, void 0), !!fitPercentage && (jsxs$1(P$3, { children: ["Fit As Expected:", ' ', jsxs$1(PercentageSpan, __assign$1({ onClick: onClickFitPercentage, role: "button" }, { children: [fitPercentage, "%"] }), void 0)] }, void 0))] }, void 0));
|
|
4262
4262
|
};
|
|
4263
4263
|
var templateObject_1$10, templateObject_2$F, templateObject_3$q;
|
|
4264
4264
|
|
|
@@ -5702,41 +5702,29 @@ var index$2 = function (breakpoints) {
|
|
|
5702
5702
|
};
|
|
5703
5703
|
};
|
|
5704
5704
|
|
|
5705
|
-
var mediaQueries =
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
"@media(min-width: ".concat(theme.mediaQueries.mobile, "px)"),
|
|
5709
|
-
"@media(min-width: ".concat(theme.mediaQueries.desktop, "px)"),
|
|
5710
|
-
], { literal: true });
|
|
5711
|
-
};
|
|
5705
|
+
var mediaQueries = index$2(["@media(max-width: 900px)", "@media(min-width: 900px)"], {
|
|
5706
|
+
literal: true,
|
|
5707
|
+
});
|
|
5712
5708
|
|
|
5713
5709
|
var Title$3 = newStyled.h1(templateObject_1$w || (templateObject_1$w = __makeTemplateObject(["\n color: ", ";\n font-size: 1.25rem;\n line-height: 1.75rem;\n font-weight: 600;\n margin: 0;\n text-align: center;\n"], ["\n color: ", ";\n font-size: 1.25rem;\n line-height: 1.75rem;\n font-weight: 600;\n margin: 0;\n text-align: center;\n"])), function (props) { return props.color; });
|
|
5714
5710
|
var Line = newStyled.div(templateObject_2$k || (templateObject_2$k = __makeTemplateObject(["\n width: 100%;\n height: 0.063rem;\n background-color: ", ";\n margin: 0.938rem 0;\n"], ["\n width: 100%;\n height: 0.063rem;\n background-color: ", ";\n margin: 0.938rem 0;\n"])), function (props) { return props.backgroundColor; });
|
|
5715
|
-
var Row$1 = newStyled.div(templateObject_3$f || (templateObject_3$f = __makeTemplateObject(["\n display: flex;\n ", "\n justify-content: space-between;\n align-items: flex-start;\n"], ["\n display: flex;\n ", "\n justify-content: space-between;\n align-items: flex-start;\n"])),
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
});
|
|
5729
|
-
var
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
width: ['auto', '1.375rem'],
|
|
5733
|
-
});
|
|
5734
|
-
});
|
|
5735
|
-
var SectionTitle = newStyled.h1(templateObject_6$5 || (templateObject_6$5 = __makeTemplateObject(["\n ", "\n color: ", ";\n font-size: 1rem;\n line-height: 1.25rem;\n font-weight: 600;\n margin: 0;\n"], ["\n ", "\n color: ", ";\n font-size: 1rem;\n line-height: 1.25rem;\n font-weight: 600;\n margin: 0;\n"])), function (props) {
|
|
5736
|
-
return mediaQueries(props)({
|
|
5737
|
-
display: ['block', 'flex'],
|
|
5738
|
-
});
|
|
5739
|
-
}, function (_a) {
|
|
5711
|
+
var Row$1 = newStyled.div(templateObject_3$f || (templateObject_3$f = __makeTemplateObject(["\n display: flex;\n ", "\n justify-content: space-between;\n align-items: flex-start;\n"], ["\n display: flex;\n ", "\n justify-content: space-between;\n align-items: flex-start;\n"])), mediaQueries({
|
|
5712
|
+
flexDirection: ['column', 'row'],
|
|
5713
|
+
}));
|
|
5714
|
+
var Col$1 = newStyled.div(templateObject_4$a || (templateObject_4$a = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n flex: 1;\n ", "\n"], ["\n display: flex;\n flex-direction: column;\n justify-content: center;\n flex: 1;\n ", "\n"])), mediaQueries({
|
|
5715
|
+
margin: ['0', '0 1.25rem'],
|
|
5716
|
+
marginBottom: ['1.875rem', '0'],
|
|
5717
|
+
alignItems: ['center', 'flex-start'],
|
|
5718
|
+
textAlign: ['center', 'inherit'],
|
|
5719
|
+
width: ['100%', 'inherit'],
|
|
5720
|
+
}));
|
|
5721
|
+
var IconContainer$2 = newStyled.div(templateObject_5$6 || (templateObject_5$6 = __makeTemplateObject(["\n width: 1.375rem;\n height: 1.375rem;\n margin-right: 0.438rem;\n ", "\n"], ["\n width: 1.375rem;\n height: 1.375rem;\n margin-right: 0.438rem;\n ", "\n"])), mediaQueries({
|
|
5722
|
+
marginBottom: ['1.875rem', '0'],
|
|
5723
|
+
width: ['auto', '1.375rem'],
|
|
5724
|
+
}));
|
|
5725
|
+
var SectionTitle = newStyled.h1(templateObject_6$5 || (templateObject_6$5 = __makeTemplateObject(["\n ", "\n color: ", ";\n font-size: 1rem;\n line-height: 1.25rem;\n font-weight: 600;\n margin: 0;\n"], ["\n ", "\n color: ", ";\n font-size: 1rem;\n line-height: 1.25rem;\n font-weight: 600;\n margin: 0;\n"])), mediaQueries({
|
|
5726
|
+
display: ['block', 'flex'],
|
|
5727
|
+
}), function (_a) {
|
|
5740
5728
|
var theme = _a.theme;
|
|
5741
5729
|
return theme.colors.shades['700'].color;
|
|
5742
5730
|
});
|
|
@@ -5780,12 +5768,9 @@ var templateObject_1$t, templateObject_2$h, templateObject_3$e, templateObject_4
|
|
|
5780
5768
|
|
|
5781
5769
|
var Container$g = newStyled.div(templateObject_1$s || (templateObject_1$s = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n width: auto;\n"], ["\n display: flex;\n flex-direction: row;\n width: auto;\n"])));
|
|
5782
5770
|
var ImageContainer$1 = newStyled.div(templateObject_2$g || (templateObject_2$g = __makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])));
|
|
5783
|
-
var DescriptionContainer = newStyled.div(templateObject_3$d || (templateObject_3$d = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n ", ";\n width: 100%;\n"], ["\n display: flex;\n flex-direction: column;\n ", ";\n width: 100%;\n"])),
|
|
5784
|
-
|
|
5785
|
-
|
|
5786
|
-
marginLeft: ['0.938rem', '1.875rem'],
|
|
5787
|
-
});
|
|
5788
|
-
});
|
|
5771
|
+
var DescriptionContainer = newStyled.div(templateObject_3$d || (templateObject_3$d = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n ", ";\n width: 100%;\n"], ["\n display: flex;\n flex-direction: column;\n ", ";\n width: 100%;\n"])), mediaQueries({
|
|
5772
|
+
marginLeft: ['0.938rem', '1.875rem'],
|
|
5773
|
+
}));
|
|
5789
5774
|
var Title$2 = newStyled.h2(function (_a) {
|
|
5790
5775
|
var color = _a.color;
|
|
5791
5776
|
return ({
|
|
@@ -5807,9 +5792,9 @@ var Subtitle = newStyled.h3(function (_a) {
|
|
|
5807
5792
|
});
|
|
5808
5793
|
});
|
|
5809
5794
|
var PriceContainer = newStyled.div(templateObject_4$8 || (templateObject_4$8 = __makeTemplateObject(["\n display: flex;\n ", ";\n height: 100%;\n align-items: end;\n margin-top: 0.219rem;\n"], ["\n display: flex;\n ", ";\n height: 100%;\n align-items: end;\n margin-top: 0.219rem;\n"])), function (_a) {
|
|
5810
|
-
var withTag = _a.withTag
|
|
5795
|
+
var withTag = _a.withTag; _a.theme;
|
|
5811
5796
|
return withTag
|
|
5812
|
-
? mediaQueries({
|
|
5797
|
+
? mediaQueries({
|
|
5813
5798
|
justifyContent: ['space-between', 'end'],
|
|
5814
5799
|
flexDirection: ['row', 'column'],
|
|
5815
5800
|
})
|
|
@@ -5831,39 +5816,24 @@ function formatDate(date) {
|
|
|
5831
5816
|
}
|
|
5832
5817
|
|
|
5833
5818
|
var Container$f = newStyled.div(templateObject_1$r || (templateObject_1$r = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n width: auto;\n color: #292929;\n"], ["\n display: flex;\n flex-direction: column;\n width: auto;\n color: #292929;\n"])));
|
|
5834
|
-
var Heading = newStyled.div(templateObject_2$f || (templateObject_2$f = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n width: 100%;\n ", ";\n text-align: right;\n margin-bottom: 10px;\n"], ["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n width: 100%;\n ", ";\n text-align: right;\n margin-bottom: 10px;\n"])),
|
|
5835
|
-
|
|
5836
|
-
|
|
5837
|
-
|
|
5838
|
-
|
|
5839
|
-
|
|
5840
|
-
});
|
|
5841
|
-
var
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
|
|
5846
|
-
|
|
5847
|
-
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
|
|
5851
|
-
|
|
5852
|
-
});
|
|
5853
|
-
var H2$1 = newStyled.h2(templateObject_5$4 || (templateObject_5$4 = __makeTemplateObject(["\n font-weight: 600;\n ", ";\n margin: 0;\n"], ["\n font-weight: 600;\n ", ";\n margin: 0;\n"])), function (_a) {
|
|
5854
|
-
var theme = _a.theme;
|
|
5855
|
-
return mediaQueries({ theme: theme })({
|
|
5856
|
-
fontSize: ['16px', '18px'],
|
|
5857
|
-
lineHeight: ['24px', '28px'],
|
|
5858
|
-
});
|
|
5859
|
-
});
|
|
5860
|
-
var H3$1 = newStyled.h3(templateObject_6$4 || (templateObject_6$4 = __makeTemplateObject(["\n font-size: 16px;\n line-height: 24px;\n ", ";\n margin: 10px 0 8px;\n"], ["\n font-size: 16px;\n line-height: 24px;\n ", ";\n margin: 10px 0 8px;\n"])), function (_a) {
|
|
5861
|
-
var theme = _a.theme;
|
|
5862
|
-
return mediaQueries({ theme: theme })({
|
|
5863
|
-
fontSize: ['14px', '16px'],
|
|
5864
|
-
lineHeight: ['22px', '24px'],
|
|
5865
|
-
});
|
|
5866
|
-
});
|
|
5819
|
+
var Heading = newStyled.div(templateObject_2$f || (templateObject_2$f = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n width: 100%;\n ", ";\n text-align: right;\n margin-bottom: 10px;\n"], ["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n width: 100%;\n ", ";\n text-align: right;\n margin-bottom: 10px;\n"])), mediaQueries({
|
|
5820
|
+
fontSize: ['14px', '16px'],
|
|
5821
|
+
lineHeight: ['22px', '24px'],
|
|
5822
|
+
}));
|
|
5823
|
+
var Content = newStyled.div(templateObject_3$c || (templateObject_3$c = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n ", ";\n"], ["\n display: flex;\n justify-content: space-between;\n ", ";\n"])), mediaQueries({
|
|
5824
|
+
flexDirection: ['column', 'row'],
|
|
5825
|
+
}));
|
|
5826
|
+
var ReviewContainer = newStyled.div(templateObject_4$7 || (templateObject_4$7 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n ", ";\n"], ["\n display: flex;\n flex-direction: column;\n ", ";\n"])), mediaQueries({
|
|
5827
|
+
margin: ['0 0 8px 0', '0 50px 0 0'],
|
|
5828
|
+
}));
|
|
5829
|
+
var H2$1 = newStyled.h2(templateObject_5$4 || (templateObject_5$4 = __makeTemplateObject(["\n font-weight: 600;\n ", ";\n margin: 0;\n"], ["\n font-weight: 600;\n ", ";\n margin: 0;\n"])), mediaQueries({
|
|
5830
|
+
fontSize: ['16px', '18px'],
|
|
5831
|
+
lineHeight: ['24px', '28px'],
|
|
5832
|
+
}));
|
|
5833
|
+
var H3$1 = newStyled.h3(templateObject_6$4 || (templateObject_6$4 = __makeTemplateObject(["\n font-size: 16px;\n line-height: 24px;\n ", ";\n margin: 10px 0 8px;\n"], ["\n font-size: 16px;\n line-height: 24px;\n ", ";\n margin: 10px 0 8px;\n"])), mediaQueries({
|
|
5834
|
+
fontSize: ['14px', '16px'],
|
|
5835
|
+
lineHeight: ['22px', '24px'],
|
|
5836
|
+
}));
|
|
5867
5837
|
var P$1 = newStyled.p(templateObject_7$2 || (templateObject_7$2 = __makeTemplateObject(["\n font-weight: normal;\n font-size: 16px;\n line-height: 24px;\n margin: 0;\n"], ["\n font-weight: normal;\n font-size: 16px;\n line-height: 24px;\n margin: 0;\n"])));
|
|
5868
5838
|
var Review = function (_a) {
|
|
5869
5839
|
var reviewerName = _a.reviewerName, date = _a.date, rating = _a.rating, stars = _a.stars, title = _a.title, description = _a.description, image = _a.image;
|
|
@@ -10413,12 +10383,9 @@ function FilteringDropdown(_a) {
|
|
|
10413
10383
|
|
|
10414
10384
|
var Container$b = newStyled.div(templateObject_1$h || (templateObject_1$h = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n user-select: none;\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n user-select: none;\n"])));
|
|
10415
10385
|
var IconContainer$1 = newStyled.div(templateObject_2$8 || (templateObject_2$8 = __makeTemplateObject(["\n width: 0.531rem;\n height: 0.875rem;\n display: flex;\n align-items: center;\n cursor: pointer;\n"], ["\n width: 0.531rem;\n height: 0.875rem;\n display: flex;\n align-items: center;\n cursor: pointer;\n"])));
|
|
10416
|
-
var PageNumbersContainer = newStyled.div(templateObject_3$8 || (templateObject_3$8 = __makeTemplateObject(["\n display: flex;\n ", ";\n"], ["\n display: flex;\n ", ";\n"])),
|
|
10417
|
-
|
|
10418
|
-
|
|
10419
|
-
margin: ['0 0.75rem', '0 1.25rem'],
|
|
10420
|
-
});
|
|
10421
|
-
});
|
|
10386
|
+
var PageNumbersContainer = newStyled.div(templateObject_3$8 || (templateObject_3$8 = __makeTemplateObject(["\n display: flex;\n ", ";\n"], ["\n display: flex;\n ", ";\n"])), mediaQueries({
|
|
10387
|
+
margin: ['0 0.75rem', '0 1.25rem'],
|
|
10388
|
+
}));
|
|
10422
10389
|
var PageNumber = newStyled.span(templateObject_4$4 || (templateObject_4$4 = __makeTemplateObject(["\n font-weight: ", ";\n color: ", ";\n text-align: center;\n cursor: pointer;\n border-bottom: ", ";\n ", ";\n"], ["\n font-weight: ", ";\n color: ", ";\n text-align: center;\n cursor: pointer;\n border-bottom: ", ";\n ", ";\n"])), function (_a) {
|
|
10423
10390
|
var bold = _a.bold;
|
|
10424
10391
|
return (bold ? '700' : '500');
|
|
@@ -10428,14 +10395,11 @@ var PageNumber = newStyled.span(templateObject_4$4 || (templateObject_4$4 = __ma
|
|
|
10428
10395
|
}, function (_a) {
|
|
10429
10396
|
var underline = _a.underline, borderColor = _a.borderColor;
|
|
10430
10397
|
return underline ? "0.063rem solid ".concat(borderColor) : 'none';
|
|
10431
|
-
},
|
|
10432
|
-
|
|
10433
|
-
|
|
10434
|
-
|
|
10435
|
-
|
|
10436
|
-
width: ['1.25rem', '1.875rem'],
|
|
10437
|
-
});
|
|
10438
|
-
});
|
|
10398
|
+
}, mediaQueries({
|
|
10399
|
+
fontSize: ['1rem', '1.25rem'],
|
|
10400
|
+
lineHeight: ['1.5rem', '1.75rem'],
|
|
10401
|
+
width: ['1.25rem', '1.875rem'],
|
|
10402
|
+
}));
|
|
10439
10403
|
var templateObject_1$h, templateObject_2$8, templateObject_3$8, templateObject_4$4;
|
|
10440
10404
|
|
|
10441
10405
|
var Pagination = function (_a) {
|
|
@@ -10452,11 +10416,9 @@ var Pagination = function (_a) {
|
|
|
10452
10416
|
return (jsxs$1(Container$b, __assign$1({ "data-testid": "PaginationContainer" }, { children: [jsx$1(IconContainer$1, __assign$1({ onClick: function () { return handlePageChange(page - 1); }, "data-testid": "LeftChevron" }, { children: jsx$1(Icon.Arrows.ChevronLeft, { fill: disabled ? theme.colors.shades['250'].color : theme.colors.shades['700'].color }, void 0) }), void 0), jsx$1(PageNumbersContainer, __assign$1({ "data-testid": "PageNumbersContainer", theme: theme }, { children: new Array(to - from + 1).fill(0).map(function (_, i) { return (jsx$1(PageNumber, __assign$1({ onClick: function () { return handlePageChange(i + from); }, bold: boldActive && page === i + from, underline: underlineActive && page === i + from, role: 'button', color: disabled ? theme.colors.shades['250'].color : theme.colors.shades['700'].color, borderColor: disabled ? theme.colors.shades['250'].color : theme.colors.shades['700'].color, theme: theme }, { children: i + from }), i)); }) }), void 0), jsx$1(IconContainer$1, __assign$1({ onClick: function () { return handlePageChange(page + 1); }, "data-testid": "RightChevron" }, { children: jsx$1(Icon.Arrows.ChevronRight, { fill: disabled ? theme.colors.shades['250'].color : theme.colors.shades['700'].color }, void 0) }), void 0)] }), void 0));
|
|
10453
10417
|
};
|
|
10454
10418
|
|
|
10455
|
-
var Container$a = newStyled.div(templateObject_1$g || (templateObject_1$g = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n width: auto;\n padding: 0.688rem 0rem;\n ", ",\n"], ["\n display: flex;\n flex-direction: row;\n width: auto;\n padding: 0.688rem 0rem;\n ", ",\n"])),
|
|
10456
|
-
|
|
10457
|
-
|
|
10458
|
-
});
|
|
10459
|
-
});
|
|
10419
|
+
var Container$a = newStyled.div(templateObject_1$g || (templateObject_1$g = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n width: auto;\n padding: 0.688rem 0rem;\n ", ",\n"], ["\n display: flex;\n flex-direction: row;\n width: auto;\n padding: 0.688rem 0rem;\n ", ",\n"])), mediaQueries({
|
|
10420
|
+
borderTop: ['0.063rem solid var(--colors-shades-100-color)', 'none'],
|
|
10421
|
+
}));
|
|
10460
10422
|
var Description$1 = newStyled.div({
|
|
10461
10423
|
display: 'flex',
|
|
10462
10424
|
flexDirection: 'column',
|
|
@@ -10489,12 +10451,10 @@ var Ul = newStyled.ul({
|
|
|
10489
10451
|
margin: '0px',
|
|
10490
10452
|
padding: '0px',
|
|
10491
10453
|
});
|
|
10492
|
-
var Li = newStyled.li(templateObject_1$f || (templateObject_1$f = __makeTemplateObject(["\n width: 100%;\n cursor: pointer;\n list-style-type: none;\n box-sizing: border-box;\n &:hover {\n background-color: ", ";\n }\n ", ",\n"], ["\n width: 100%;\n cursor: pointer;\n list-style-type: none;\n box-sizing: border-box;\n &:hover {\n background-color: ", ";\n }\n ", ",\n"])), function (props) { return props.theme.colors.shades['100'].color; },
|
|
10493
|
-
|
|
10494
|
-
|
|
10495
|
-
|
|
10496
|
-
});
|
|
10497
|
-
});
|
|
10454
|
+
var Li = newStyled.li(templateObject_1$f || (templateObject_1$f = __makeTemplateObject(["\n width: 100%;\n cursor: pointer;\n list-style-type: none;\n box-sizing: border-box;\n &:hover {\n background-color: ", ";\n }\n ", ",\n"], ["\n width: 100%;\n cursor: pointer;\n list-style-type: none;\n box-sizing: border-box;\n &:hover {\n background-color: ", ";\n }\n ", ",\n"])), function (props) { return props.theme.colors.shades['100'].color; }, mediaQueries({
|
|
10455
|
+
padding: [0, '0rem 1rem'],
|
|
10456
|
+
borderRadius: [0, '0.5rem'],
|
|
10457
|
+
}));
|
|
10498
10458
|
var Button$2 = newStyled.button({
|
|
10499
10459
|
width: '100%',
|
|
10500
10460
|
border: 'none',
|
|
@@ -10502,18 +10462,14 @@ var Button$2 = newStyled.button({
|
|
|
10502
10462
|
cursor: 'pointer',
|
|
10503
10463
|
padding: 0,
|
|
10504
10464
|
});
|
|
10505
|
-
var Container$8 = newStyled.div(templateObject_2$7 || (templateObject_2$7 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n margin: 0rem;\n padding: 0rem;\n position: absolute;\n width: 100%;\n background-color: white;\n box-sizing: border-box;\n z-index: 2;\n ", ",\n"], ["\n display: flex;\n flex-direction: column;\n margin: 0rem;\n padding: 0rem;\n position: absolute;\n width: 100%;\n background-color: white;\n box-sizing: border-box;\n z-index: 2;\n ", ",\n"])),
|
|
10506
|
-
|
|
10507
|
-
|
|
10508
|
-
|
|
10509
|
-
|
|
10510
|
-
|
|
10511
|
-
|
|
10512
|
-
|
|
10513
|
-
return mediaQueries(props)({
|
|
10514
|
-
margin: ['0rem 0rem 1rem 0rem', '1rem'],
|
|
10515
|
-
});
|
|
10516
|
-
});
|
|
10465
|
+
var Container$8 = newStyled.div(templateObject_2$7 || (templateObject_2$7 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n margin: 0rem;\n padding: 0rem;\n position: absolute;\n width: 100%;\n background-color: white;\n box-sizing: border-box;\n z-index: 2;\n ", ",\n"], ["\n display: flex;\n flex-direction: column;\n margin: 0rem;\n padding: 0rem;\n position: absolute;\n width: 100%;\n background-color: white;\n box-sizing: border-box;\n z-index: 2;\n ", ",\n"])), mediaQueries({
|
|
10466
|
+
border: ['none', '0.063rem solid var(--colors-pallete-secondary-color)'],
|
|
10467
|
+
marginTop: ['1.25rem', '0.125rem'],
|
|
10468
|
+
borderRadius: ['0', '0.5rem'],
|
|
10469
|
+
}));
|
|
10470
|
+
var Header$1 = newStyled.div(templateObject_3$7 || (templateObject_3$7 = __makeTemplateObject(["\n ", ",\n"], ["\n ", ",\n"])), mediaQueries({
|
|
10471
|
+
margin: ['0rem 0rem 1rem 0rem', '1rem'],
|
|
10472
|
+
}));
|
|
10517
10473
|
var ResultsPanel = function (_a) {
|
|
10518
10474
|
var options = _a.options, header = _a.header, footer = _a.footer, onClick = _a.onClick, onViewAll = _a.onViewAll, testId = _a.testId;
|
|
10519
10475
|
var theme = useTheme();
|
|
@@ -10550,12 +10506,10 @@ var Input = newStyled.input(function (props) { return ({
|
|
|
10550
10506
|
},
|
|
10551
10507
|
}); });
|
|
10552
10508
|
|
|
10553
|
-
var Button$1 = newStyled.button(templateObject_1$e || (templateObject_1$e = __makeTemplateObject(["\n position: absolute;\n right: 1rem;\n background: white;\n border: none;\n align-self: center;\n padding: 0;\n ", ",\n"], ["\n position: absolute;\n right: 1rem;\n background: white;\n border: none;\n align-self: center;\n padding: 0;\n ", ",\n"])),
|
|
10554
|
-
|
|
10555
|
-
|
|
10556
|
-
|
|
10557
|
-
});
|
|
10558
|
-
});
|
|
10509
|
+
var Button$1 = newStyled.button(templateObject_1$e || (templateObject_1$e = __makeTemplateObject(["\n position: absolute;\n right: 1rem;\n background: white;\n border: none;\n align-self: center;\n padding: 0;\n ", ",\n"], ["\n position: absolute;\n right: 1rem;\n background: white;\n border: none;\n align-self: center;\n padding: 0;\n ", ",\n"])), mediaQueries({
|
|
10510
|
+
right: ['1rem', '-3.75rem'],
|
|
10511
|
+
top: ['0.75rem', '0'],
|
|
10512
|
+
}));
|
|
10559
10513
|
var ClearButton = function (_a) {
|
|
10560
10514
|
var onClick = _a.onClick;
|
|
10561
10515
|
var theme = useTheme();
|
|
@@ -11144,19 +11098,18 @@ var visibleStyle = function (_a) {
|
|
|
11144
11098
|
return opened
|
|
11145
11099
|
? css(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n opacity: 1;\n pointer-events: all;\n transform: translate(-50%, -50%);\n "], ["\n opacity: 1;\n pointer-events: all;\n transform: translate(-50%, -50%);\n "]))) : css(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject(["\n opacity: 0;\n pointer-events: none;\n transform: translate(-50%, -40%);\n "], ["\n opacity: 0;\n pointer-events: none;\n transform: translate(-50%, -40%);\n "])));
|
|
11146
11100
|
};
|
|
11147
|
-
var Container$3 = newStyled.div(templateObject_3$4 || (templateObject_3$4 = __makeTemplateObject(["\n border: 1px solid var(--colors-pallete-primary-color);\n border-radius: var(--radius-regular);\n padding: 20px;\n position: fixed;\n left: 50%;\n top: 50%;\n z-index: var(--zIndex-modal);\n background-color: var(--colors-background-color);\n
|
|
11101
|
+
var Container$3 = newStyled.div(templateObject_3$4 || (templateObject_3$4 = __makeTemplateObject(["\n border: 1px solid var(--colors-pallete-primary-color);\n border-radius: var(--radius-regular);\n padding: 20px;\n position: fixed;\n left: 50%;\n top: 50%;\n z-index: var(--zIndex-modal);\n background-color: var(--colors-background-color);\n transition: transform 0.3s, opacity 0.3s;\n max-width: 90vw;\n max-height: 90vh;\n ", "\n\n ", ";\n"], ["\n border: 1px solid var(--colors-pallete-primary-color);\n border-radius: var(--radius-regular);\n padding: 20px;\n position: fixed;\n left: 50%;\n top: 50%;\n z-index: var(--zIndex-modal);\n background-color: var(--colors-background-color);\n transition: transform 0.3s, opacity 0.3s;\n max-width: 90vw;\n max-height: 90vh;\n ", "\n\n ", ";\n"])), mediaQueries({
|
|
11102
|
+
minWidth: ['50%', 'var(--component-modal-minWidth)'],
|
|
11103
|
+
}), visibleStyle);
|
|
11148
11104
|
var Overlay = newStyled.div(templateObject_4$3 || (templateObject_4$3 = __makeTemplateObject(["\n position: fixed;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.75);\n z-index: var(--zIndex-overlay);\n transition: transform 0.3s, opacity 0.3s;\n\n ", "\n\n transform: none;\n"], ["\n position: fixed;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.75);\n z-index: var(--zIndex-overlay);\n transition: transform 0.3s, opacity 0.3s;\n\n ", "\n\n transform: none;\n"])), visibleStyle);
|
|
11149
11105
|
var Modal = function (_a) {
|
|
11150
11106
|
var id = _a.id, children = _a.children, _b = _a.dismissable, dismissable = _b === void 0 ? true : _b;
|
|
11151
|
-
var _c =
|
|
11152
|
-
useModalEvent(id, useCallback(function (e) {
|
|
11153
|
-
setOpened(e.detail.type === 'open');
|
|
11154
|
-
}, []));
|
|
11107
|
+
var _c = useModal(id), opened = _c.opened, close = _c.close;
|
|
11155
11108
|
var onDismiss = function () {
|
|
11156
11109
|
if (!dismissable) {
|
|
11157
11110
|
return;
|
|
11158
11111
|
}
|
|
11159
|
-
|
|
11112
|
+
close();
|
|
11160
11113
|
};
|
|
11161
11114
|
return (jsxs(Portal, __assign$1({ id: id }, { children: [jsx(Container$3, __assign$1({ opened: opened }, { children: children }), void 0), jsx(Overlay, { opened: opened, onClick: onDismiss }, void 0)] }), void 0));
|
|
11162
11115
|
};
|
|
@@ -11171,6 +11124,21 @@ var useModalEvent = function (id, cb) {
|
|
|
11171
11124
|
cb(event);
|
|
11172
11125
|
}, [id, cb]));
|
|
11173
11126
|
};
|
|
11127
|
+
var useModal = function (id) {
|
|
11128
|
+
var _a = useState(false), opened = _a[0], setOpened = _a[1];
|
|
11129
|
+
useModalEvent(id, useCallback(function (event) { return setOpened(event.detail.type === 'open'); }, []));
|
|
11130
|
+
var open = useCallback(function () {
|
|
11131
|
+
modalEvent(id, { type: 'open' });
|
|
11132
|
+
}, [id]);
|
|
11133
|
+
var close = useCallback(function () {
|
|
11134
|
+
modalEvent(id, { type: 'close' });
|
|
11135
|
+
}, [id]);
|
|
11136
|
+
return useMemo(function () { return ({
|
|
11137
|
+
opened: opened,
|
|
11138
|
+
open: open,
|
|
11139
|
+
close: close,
|
|
11140
|
+
}); }, [close, open, opened]);
|
|
11141
|
+
};
|
|
11174
11142
|
var templateObject_1$8, templateObject_2$4, templateObject_3$4, templateObject_4$3;
|
|
11175
11143
|
|
|
11176
11144
|
var Text$2 = newStyled.span(templateObject_1$7 || (templateObject_1$7 = __makeTemplateObject(["\n font-size: 0.875rem;\n font-weight: 600;\n line-height: 1.375rem;\n color: ", ";\n margin: 0;\n padding: 0;\n"], ["\n font-size: 0.875rem;\n font-weight: 600;\n line-height: 1.375rem;\n color: ", ";\n margin: 0;\n padding: 0;\n"])), function (props) { return props.color; });
|
|
@@ -15104,5 +15072,5 @@ var FilterCheckbox = function (_a) {
|
|
|
15104
15072
|
return (jsx$1(Checkbox, { onChange: onChange, text: text, id: "filter[".concat(sectionIndex, ",").concat(itemIndex, "]"), size: ComponentSize.Small, variant: "secondary" }, itemIndex));
|
|
15105
15073
|
};
|
|
15106
15074
|
|
|
15107
|
-
export { Accordion$1 as Accordion, AmazonButton, AssetsProvider, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, Card$2 as Card, CardSectionType, CartProductItem, CategoryTag, Checkbox, Collection, ComponentPosition, ComponentSize, index as CrossSell, DeliveryDetails, DiscountTag, Drawer, DropdownListIcons, FilteringDropdown, Tags as FilteringTags, Filters, FitPredictor, Icon, IconButton, Image, Input$1 as Input, InputValidationType, Modal, MultiColorPicker, OfferBanner, OrderBar, Overlay, PackSelector, Pagination, PaymentMethod, PaypalButton, Portal, PriceLabel, ProductGallery, ProductGalleryMobile, ProgressBar, QuantityPicker, RadioGroupInput, RadioInput, Rating, Review, ScrollToTop, SearchBar, SeasonOfferTag, SimpleDropdown, SimpleOrderItem, SingleColorPicker, SizeFitGuide, SizeSelector, SizeTable, SliderNavigation, Spacing, Spinner, StarList, Text$5 as Text, TextButton, ThemeProvider, ThemeVariables, Timer, Tooltip, Totals, decimalFormat, formatPrice, isEmail, isEmpty, isNumber$1 as isNumber, isPhoneNumber, isValidDate, modalEvent, simulateMouseClick, sliceString, useModalEvent, useOnClickOutside, useTheme, useThemeAssets, useWindowDimensions };
|
|
15075
|
+
export { Accordion$1 as Accordion, AmazonButton, AssetsProvider, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, Card$2 as Card, CardSectionType, CartProductItem, CategoryTag, Checkbox, Collection, ComponentPosition, ComponentSize, index as CrossSell, DeliveryDetails, DiscountTag, Drawer, DropdownListIcons, FilteringDropdown, Tags as FilteringTags, Filters, FitPredictor, Icon, IconButton, Image, Input$1 as Input, InputValidationType, Modal, MultiColorPicker, OfferBanner, OrderBar, Overlay, PackSelector, Pagination, PaymentMethod, PaypalButton, Portal, PriceLabel, ProductGallery, ProductGalleryMobile, ProgressBar, QuantityPicker, RadioGroupInput, RadioInput, Rating, Review, ScrollToTop, SearchBar, SeasonOfferTag, SimpleDropdown, SimpleOrderItem, SingleColorPicker, SizeFitGuide, SizeSelector, SizeTable, SliderNavigation, Spacing, Spinner, StarList, Text$5 as Text, TextButton, ThemeProvider, ThemeVariables, Timer, Tooltip, Totals, decimalFormat, formatPrice, isEmail, isEmpty, isNumber$1 as isNumber, isPhoneNumber, isValidDate, modalEvent, simulateMouseClick, sliceString, useModal, useModalEvent, useOnClickOutside, useTheme, useThemeAssets, useWindowDimensions };
|
|
15108
15076
|
//# sourceMappingURL=index.esm.js.map
|