@trafilea/afrodita-components 6.16.1 → 6.16.3
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 +13 -7
- package/build/index.esm.js +37 -25
- package/build/index.esm.js.map +1 -1
- package/build/index.js +37 -25
- package/build/index.js.map +1 -1
- package/build/theme/revel.theme.d.ts +1 -0
- package/build/theme/shapermint.theme.d.ts +1 -0
- package/build/theme/thebodcon.theme.d.ts +1 -0
- package/build/theme/thespadr.theme.d.ts +1 -0
- package/build/theme/truekind.theme.d.ts +1 -0
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -1318,6 +1318,7 @@ declare type Theme = {
|
|
|
1318
1318
|
config?: {
|
|
1319
1319
|
cdn: string;
|
|
1320
1320
|
useTrafileaImages?: boolean;
|
|
1321
|
+
useTrafileaAssets?: boolean;
|
|
1321
1322
|
};
|
|
1322
1323
|
fontSizes: number[];
|
|
1323
1324
|
fontWeights: number[];
|
|
@@ -3452,7 +3453,7 @@ declare type SubtotalOption = {
|
|
|
3452
3453
|
label: string;
|
|
3453
3454
|
value: string;
|
|
3454
3455
|
};
|
|
3455
|
-
declare type Coupon
|
|
3456
|
+
declare type Coupon = {
|
|
3456
3457
|
code: string;
|
|
3457
3458
|
amount: string;
|
|
3458
3459
|
};
|
|
@@ -3464,7 +3465,7 @@ interface SubtotalProps {
|
|
|
3464
3465
|
coupon?: {
|
|
3465
3466
|
couponText: string;
|
|
3466
3467
|
appliedText: string;
|
|
3467
|
-
coupons: Coupon
|
|
3468
|
+
coupons: Coupon[];
|
|
3468
3469
|
};
|
|
3469
3470
|
}
|
|
3470
3471
|
|
|
@@ -3510,15 +3511,19 @@ interface TrackingProgressProps {
|
|
|
3510
3511
|
declare const TrackingProgress: ({ checkPoints, amountOfCheckPoints }: TrackingProgressProps) => JSX.Element;
|
|
3511
3512
|
|
|
3512
3513
|
interface CouponProps {
|
|
3513
|
-
|
|
3514
|
+
image: {
|
|
3515
|
+
src: string;
|
|
3516
|
+
alt: string;
|
|
3517
|
+
};
|
|
3514
3518
|
title: string;
|
|
3515
3519
|
content: ReactNode;
|
|
3516
3520
|
width?: string;
|
|
3521
|
+
height?: string;
|
|
3517
3522
|
btnText?: string;
|
|
3518
3523
|
couponCode?: string;
|
|
3519
3524
|
offerLink?: string;
|
|
3520
3525
|
}
|
|
3521
|
-
declare const
|
|
3526
|
+
declare const CouponCard: FC<CouponProps>;
|
|
3522
3527
|
|
|
3523
3528
|
declare type BasicAccordionProps = {
|
|
3524
3529
|
children?: ReactNode;
|
|
@@ -3531,7 +3536,7 @@ declare type BasicAccordionProps = {
|
|
|
3531
3536
|
openIcon: IconType;
|
|
3532
3537
|
closeIcon: IconType;
|
|
3533
3538
|
fillControlsCollor: string;
|
|
3534
|
-
|
|
3539
|
+
width?: string;
|
|
3535
3540
|
onClick?: (index: number) => void;
|
|
3536
3541
|
};
|
|
3537
3542
|
declare const BasicAccordion: FC<BasicAccordionProps>;
|
|
@@ -3634,7 +3639,8 @@ declare const isNumber: (value: string) => boolean;
|
|
|
3634
3639
|
declare const isPhoneNumber: (value: string) => boolean;
|
|
3635
3640
|
declare const isValidDate: (value: string) => boolean;
|
|
3636
3641
|
|
|
3642
|
+
declare type Partner = 'RevelBeauty' | 'TheSpaDr' | 'TheBodCon';
|
|
3637
3643
|
declare type PartnerContent = 'RevelBeauty-1' | 'RevelBeauty-2' | 'TheSpaDr-1' | 'TheSpaDr-2' | 'TheBodCon';
|
|
3638
|
-
declare const CancellationFlowAccordionContentPerPartner: Record<
|
|
3644
|
+
declare const CancellationFlowAccordionContentPerPartner: Record<Partner, JSX.Element[]>;
|
|
3639
3645
|
|
|
3640
|
-
export { AbsorbencyLevel, Accordion, AccordionOptions, AmazonButton, AssetsProvider, Autoship, AutoshipV2, BasicAccordion, BeforeAfterCard, BeforeAfterVariant, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, ButtonType, BuyNowPayLater, CTAProps, CancellationFlowAccordionContentPerPartner, _default as Card, CardSectionType, CartProductItem, CategorySquareTag, CategoryTag, Checkbox, ClubOfferTag, ClubRadioGroupInput, Collection, ColorPickerOption, ComponentPosition, ComponentSize, ContentType,
|
|
3646
|
+
export { AbsorbencyLevel, Accordion, AccordionOptions, AmazonButton, AssetsProvider, Autoship, AutoshipV2, BasicAccordion, BeforeAfterCard, BeforeAfterVariant, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, ButtonType, BuyNowPayLater, CTAProps, CancellationFlowAccordionContentPerPartner, _default as Card, CardSectionType, CartProductItem, CategorySquareTag, CategoryTag, Checkbox, ClubOfferTag, ClubRadioGroupInput, Collection, ColorPickerOption, ComponentPosition, ComponentSize, ContentType, CouponCard, index_d as CrossSell, DeliveryDetails, DiscountTag, Drawer, DropdownDialog, DropdownListIcons, DropdownListIconsItem, DropdownListIconsSubItem, DropdownOption, Filter, FilterChange, FilteringDropdown, Tags as FilteringTags, Filters, FitGuarantee, FitPredictor, HurryUp, HurryUpProps, Icon, IconButton, IconProps, IconWithOpacityProps, IconsWithTitle, Image, ImageCardWithDescription, ImageProps, Input, InputValidationType, Icon$1 as LibIcon, IconProps$1 as LibIconProps, Modal, MotivatorProgressBar, MultiColorPicker, Note, OfferBanner, OrderBar, Overlay, PackSelector, PackSelectorV2, Pagination, PaginatorBlog, Partner, PartnerContent, Pattern, PaymentMethod, PaypalButton, Portal, PriceLabel, PriceLabelV2, PriceLabelV3, ProductGallery, ProductGalleryMobile, ProductGalleryMobileV2, ProductGalleryMobileV3, ProductGalleryMobileV4, ProgressBar, QuantityPicker, RadioGroupInput, RadioGroupOption, RadioInput, RadioPrimary, Rating, Review, Review$1 as ReviewDetail, ReviewsHeader, ScrollToTop, SearchBar, SearchBarOptionItem, SearchNavigation, SeasonOfferTag, ShortBanner, SimpleDropdown, SimpleOrderItem, SingleColorPicker, SizeChartTable, SizeDropdown, SizeFitGuide, SizeOption, SizeSelector, SizeTable, SliderNavigation, Spacing, Spinner, SpinnerProps, StarList, StrengthBars, Tab, Tabs, Text, TextButton, TextWithImage, Theme, ThemeAssets, ThemeBasicPallete, ThemeBreakpoints, ThemeColorPallete, ThemeColors, ThemeComponent, ThemeFonts, ThemeProvider, ThemeProviderProps, ThemeTypography, ThemeVariables, Timer, Tooltip, Totals, TrackingProgress, TrackingProgressV2, Video, VideoProps, WithTestId, buildImageUrl, componentSizeMapper, decimalFormat, formatPrice, getSrcSet, imageVideoProps, isEmail, isEmpty, isNumber, isPhoneNumber, isValidDate, mediaQueries, modalEvent, SeasonOfferRoundedTag as seasonOfferRoundedTag, simulateMouseClick, sliceString, useDeviceType, useModal, useModalEvent, useOnClickOutside, useTheme, useThemeAssets, useWindowDimensions };
|
package/build/index.esm.js
CHANGED
|
@@ -3070,9 +3070,9 @@ var ThemeProvider = function (_a) {
|
|
|
3070
3070
|
var _b;
|
|
3071
3071
|
var unparsedTheme = _a.theme, isSameOriginIcons = _a.isSameOriginIcons, children = _a.children, config = _a.config;
|
|
3072
3072
|
//TODO Analyze why we are doing this and remove
|
|
3073
|
-
var theme = useMemo(function () { return
|
|
3074
|
-
var assets = __assign$1(__assign$1({}, theme.assets), { isSameOriginIcons: isSameOriginIcons, cdn:
|
|
3075
|
-
var themeWithOtherVariables = __assign$1(__assign$1({}, theme), { assets: assets });
|
|
3073
|
+
var theme = useMemo(function () { return applyVariablesIntoTheme(__assign$1({}, unparsedTheme)); }, [unparsedTheme]);
|
|
3074
|
+
var assets = __assign$1(__assign$1({}, theme.assets), { isSameOriginIcons: isSameOriginIcons, cdn: config && config.useTrafileaAssets ? "".concat(config.cdn, "/assets/common") : (_b = theme.assets) === null || _b === void 0 ? void 0 : _b.cdn });
|
|
3075
|
+
var themeWithOtherVariables = __assign$1(__assign$1({}, theme), { assets: assets, config: config });
|
|
3076
3076
|
return (jsx$1(ThemeProvider$1, __assign$1({ theme: themeWithOtherVariables }, { children: jsx$1(AssetsProvider, __assign$1({ assets: assets }, { children: children }), void 0) }), void 0));
|
|
3077
3077
|
};
|
|
3078
3078
|
var useTheme = function () { return useTheme$1(); };
|
|
@@ -4645,22 +4645,18 @@ var Container$19 = newStyled.div(templateObject_1$1R || (templateObject_1$1R = _
|
|
|
4645
4645
|
var _b = _a.height, height = _b === void 0 ? '100%' : _b;
|
|
4646
4646
|
return height;
|
|
4647
4647
|
});
|
|
4648
|
-
var FlexCentered = newStyled.div(templateObject_2$1f || (templateObject_2$1f = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 10px;\n width:
|
|
4649
|
-
var LeftSide = newStyled.div(templateObject_3$Z || (templateObject_3$Z = __makeTemplateObject(["\n width:
|
|
4650
|
-
var RightSide = newStyled.div(templateObject_4$K || (templateObject_4$K = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items:
|
|
4648
|
+
var FlexCentered = newStyled.div(templateObject_2$1f || (templateObject_2$1f = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 10px;\n width: 90%;\n height: 100%;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 10px;\n width: 90%;\n height: 100%;\n"])));
|
|
4649
|
+
var LeftSide = newStyled.div(templateObject_3$Z || (templateObject_3$Z = __makeTemplateObject(["\n width: 110px;\n height: 100%;\n flex-shrink: 0;\n resize: vertical;\n"], ["\n width: 110px;\n height: 100%;\n flex-shrink: 0;\n resize: vertical;\n"])));
|
|
4650
|
+
var RightSide = newStyled.div(templateObject_4$K || (templateObject_4$K = __makeTemplateObject(["\n display: flex;\n flex-grow: 1;\n flex-direction: column;\n align-items: center;\n height: 100%;\n"], ["\n display: flex;\n flex-grow: 1;\n flex-direction: column;\n align-items: center;\n height: 100%;\n"])));
|
|
4651
4651
|
var FlexStart = newStyled.div(templateObject_5$w || (templateObject_5$w = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: start;\n gap: 5px;\n width: 100%;\n padding: 12px;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: start;\n gap: 5px;\n width: 100%;\n padding: 12px;\n"])));
|
|
4652
4652
|
var templateObject_1$1R, templateObject_2$1f, templateObject_3$Z, templateObject_4$K, templateObject_5$w;
|
|
4653
4653
|
|
|
4654
4654
|
var _this$1 = undefined;
|
|
4655
|
-
var
|
|
4656
|
-
var
|
|
4655
|
+
var CouponCard = function (_a) {
|
|
4656
|
+
var image = _a.image, title = _a.title, content = _a.content, couponCode = _a.couponCode, offerLink = _a.offerLink, width = _a.width, height = _a.height, _b = _a.btnText, btnText = _b === void 0 ? 'Redeem Offer' : _b;
|
|
4657
4657
|
var _c = useState(false), showCoupon = _c[0], setShowCoupon = _c[1];
|
|
4658
|
-
var _d = useState('176px'), containerHeight = _d[0], setContainerHeight = _d[1];
|
|
4659
4658
|
var handleCopy = useCallback(function (couponCode) { return (couponCode ? navigator.clipboard.writeText(couponCode) : undefined); }, []);
|
|
4660
|
-
|
|
4661
|
-
setContainerHeight(function (prev) { return (showCoupon ? '220px' : prev); });
|
|
4662
|
-
}, [showCoupon]);
|
|
4663
|
-
return (jsxs$1(Container$19, __assign$1({ height: containerHeight, width: width }, { children: [jsx$1(LeftSide, { children: jsx$1(Image$3, { src: imgSrc, alt: "Product", width: "100%", height: "100%", borderRadius: "8px 0 0 8px" }, void 0) }, void 0), jsxs$1(RightSide, { children: [jsxs$1(FlexStart, { children: [jsx$1(Text$7, __assign$1({ variant: "body", weight: "bold", size: "small" }, { children: title }), void 0), content] }, void 0), jsx$1(FlexCentered, { children: !showCoupon ? (jsx$1(ButtonPrimary, { type: "button", text: btnText, wide: true, size: ComponentSize.Small, onClick: function () { return setShowCoupon(function (prev) { return !prev; }); } }, void 0)) : (jsxs$1(Fragment$2, { children: [jsx$1(ButtonSecondaryOutline, { "data-testid": "coupon-code-btn", testId: "coupon-code-btn", type: "button", text: couponCode !== null && couponCode !== void 0 ? couponCode : '', wide: true, size: ComponentSize.Small, icon: {
|
|
4659
|
+
return (jsxs$1(Container$19, __assign$1({ height: height, width: width }, { children: [jsx$1(LeftSide, { children: jsx$1(Image$3, { objectFit: "cover", src: image.src, alt: image.alt, width: "100%", height: "100%", borderRadius: "8px 0 0 8px" }, void 0) }, void 0), jsxs$1(RightSide, { children: [jsxs$1(FlexStart, { children: [jsx$1(Text$7, __assign$1({ variant: "body", weight: "bold", size: "small" }, { children: title }), void 0), content] }, void 0), jsx$1(FlexCentered, { children: !showCoupon ? (jsx$1(ButtonPrimary, { type: "button", text: btnText, wide: true, size: ComponentSize.Large, onClick: function () { return setShowCoupon(function (prev) { return !prev; }); } }, void 0)) : (jsxs$1(Fragment$2, { children: [jsx$1(ButtonSecondaryOutline, { "data-testid": "coupon-code-btn", testId: "coupon-code-btn", type: "button", text: couponCode !== null && couponCode !== void 0 ? couponCode : '', wide: true, size: ComponentSize.Small, icon: {
|
|
4664
4660
|
name: 'actions/copy_outlined',
|
|
4665
4661
|
position: 'right',
|
|
4666
4662
|
margin: '10px',
|
|
@@ -4670,7 +4666,7 @@ var Coupon = function (_a) {
|
|
|
4670
4666
|
// Partner titles
|
|
4671
4667
|
var REVEL_BEAUTY_TITLE = 'REVEL BEAUTY';
|
|
4672
4668
|
var THE_SPA_DR_TITLE = 'THE SPA DR.';
|
|
4673
|
-
//
|
|
4669
|
+
// CouponCard contents
|
|
4674
4670
|
var CouponDefaultBody = function (firstLine, secondLine) { return (jsxs$1(Fragment$2, { children: [jsx$1(Text$7, __assign$1({ variant: "body", weight: "regular", size: "small", style: { textAlign: 'initial' } }, { children: firstLine }), void 0), jsx$1(Text$7, __assign$1({ variant: "heading5", weight: "bold" }, { children: secondLine }), void 0)] }, void 0)); };
|
|
4675
4671
|
var TheBodConContent = function () { return (jsxs$1(FlexContainer$2, { children: [jsxs$1(Text$7, __assign$1({ variant: "body", weight: "regular", size: "small" }, { children: [jsx$1(Bold, { children: "FREE and PREMIUM" }, void 0), " access to The BodCon Community App."] }), void 0), jsxs$1(Text$7, __assign$1({ variant: "body", weight: "regular", size: "small" }, { children: ["The #1 Body Confidence Community. You'll have ", jsx$1(Bold, { children: "FREE access to:" }, void 0)] }), void 0), jsxs$1("ul", __assign$1({ style: { marginBottom: '5px', padding: '11px' } }, { children: [jsx$1("li", __assign$1({ style: { marginBottom: '5px' } }, { children: jsx$1(Text$7, __assign$1({ variant: "body", weight: "regular", size: "small" }, { children: "Our confidence series: great courses made by the top influencers in the field, just for you to start your body-confidence journey!" }), void 0) }), void 0), jsx$1("li", { children: jsx$1(Text$7, __assign$1({ variant: "body", weight: "regular", size: "small" }, { children: "Our more than 1.000 women's community and get-togethers to talk about women's empowerment." }), void 0) }, void 0)] }), void 0), jsxs$1(Text$7, __assign$1({ variant: "body", weight: "regular", size: "small" }, { children: [jsx$1(Bold, { children: "FREE" }, void 0), " access to The BodCon 2023 replays!"] }), void 0), jsx$1(Text$7, __assign$1({ variant: "body", weight: "regular", size: "small" }, { children: "Empower yourself and change how you see and feel about your body forever." }), void 0)] }, void 0)); };
|
|
4676
4672
|
var cancellationFlowContentPerKey = {
|
|
@@ -4680,15 +4676,30 @@ var cancellationFlowContentPerKey = {
|
|
|
4680
4676
|
'TheSpaDr-2': CouponDefaultBody('Nourish Antioxidant Serum', '$10 OFF'),
|
|
4681
4677
|
TheBodCon: TheBodConContent(),
|
|
4682
4678
|
};
|
|
4683
|
-
var
|
|
4679
|
+
var couponDimensions = {
|
|
4680
|
+
width: '95%',
|
|
4681
|
+
height: '215px',
|
|
4682
|
+
};
|
|
4684
4683
|
var CancellationFlowAccordionContentPerPartner = {
|
|
4685
4684
|
RevelBeauty: [
|
|
4686
|
-
jsx$1(
|
|
4687
|
-
|
|
4685
|
+
jsx$1(CouponCard, { width: couponDimensions.width, height: couponDimensions.height, title: REVEL_BEAUTY_TITLE, image: {
|
|
4686
|
+
src: 'https://cdn.shopify.com/s/files/1/2679/8624/files/Beauty_Lift_and_Tighten_Serum.png?v=1709316823',
|
|
4687
|
+
alt: 'Daily Essentials 4-Step Skin Care System',
|
|
4688
|
+
}, content: cancellationFlowContentPerKey['RevelBeauty-1'], couponCode: 'CLUBFRIENDS', offerLink: 'https://revelbeauty.com/products/lift-tighten-serum' }, "RevelBeauty-1"),
|
|
4689
|
+
jsx$1(CouponCard, { width: couponDimensions.width, height: couponDimensions.height, title: REVEL_BEAUTY_TITLE, image: {
|
|
4690
|
+
src: 'https://cdn.shopify.com/s/files/1/2679/8624/files/revel-beauty-orders-above-50.png?v=1709326588',
|
|
4691
|
+
alt: 'Daily Essentials 4-Step Skin Care System',
|
|
4692
|
+
}, content: cancellationFlowContentPerKey['RevelBeauty-2'], couponCode: 'SHIPPINGONUS', offerLink: 'https://revelbeauty.com/' }, "RevelBeauty-2"),
|
|
4688
4693
|
],
|
|
4689
4694
|
TheSpaDr: [
|
|
4690
|
-
jsx$1(
|
|
4691
|
-
|
|
4695
|
+
jsx$1(CouponCard, { width: couponDimensions.width, height: couponDimensions.height, title: THE_SPA_DR_TITLE, image: {
|
|
4696
|
+
src: 'https://cdn.shopify.com/s/files/1/2679/8624/files/Daily_Essentials_4-Step_Skin_Care_System.png?v=1709333354',
|
|
4697
|
+
alt: 'Daily Essentials 4-Step Skin Care System',
|
|
4698
|
+
}, content: cancellationFlowContentPerKey['TheSpaDr-1'], couponCode: 'SHMCLUBFRIENDS', offerLink: 'https://thespadr.com/products/4-step-age-defying-clean-skincare-system-3?variant=42658350727366' }, "TheSpaDr-1"),
|
|
4699
|
+
jsx$1(CouponCard, { width: couponDimensions.width, height: couponDimensions.height, title: THE_SPA_DR_TITLE, image: {
|
|
4700
|
+
src: 'https://cdn.shopify.com/s/files/1/2679/8624/files/Nourish_Antioxidant_Serum.png?v=1709333354',
|
|
4701
|
+
alt: 'Daily Essentials 4-Step Skin Care System',
|
|
4702
|
+
}, content: cancellationFlowContentPerKey['TheSpaDr-2'], couponCode: 'SHMCLUB10OFF', offerLink: 'https://thespadr.com/products/step-2-age-defying-lift-tight-serum?variant=15992476860510' }, "TheSpaDr-2"),
|
|
4692
4703
|
],
|
|
4693
4704
|
TheBodCon: [cancellationFlowContentPerKey['TheBodCon']],
|
|
4694
4705
|
};
|
|
@@ -19865,6 +19876,7 @@ var templateObject_1$4, templateObject_2$3, templateObject_3$1, templateObject_4
|
|
|
19865
19876
|
var StyledButton = newStyled(Ye.Button)(function (props) { return ({
|
|
19866
19877
|
background: props.bgColor,
|
|
19867
19878
|
height: '100%',
|
|
19879
|
+
width: '100%',
|
|
19868
19880
|
maxHeight: '48px',
|
|
19869
19881
|
border: 'none',
|
|
19870
19882
|
display: 'flex',
|
|
@@ -19894,14 +19906,14 @@ var StyledController = newStyled.div(templateObject_2$2 || (templateObject_2$2 =
|
|
|
19894
19906
|
var templateObject_1$3, templateObject_2$2;
|
|
19895
19907
|
|
|
19896
19908
|
var StyledDisclosure = newStyled(Ye)(function (_a) {
|
|
19897
|
-
var background = _a.background;
|
|
19909
|
+
var background = _a.background, width = _a.width;
|
|
19898
19910
|
return ({
|
|
19899
19911
|
display: 'flex',
|
|
19900
19912
|
flexDirection: 'column',
|
|
19901
19913
|
justifyContent: 'center',
|
|
19902
19914
|
gap: '10px',
|
|
19903
19915
|
background: background !== null && background !== void 0 ? background : '',
|
|
19904
|
-
width: 'auto',
|
|
19916
|
+
width: width !== null && width !== void 0 ? width : 'auto',
|
|
19905
19917
|
borderRadius: '8px',
|
|
19906
19918
|
border: '0.063rem solid',
|
|
19907
19919
|
borderColor: '#e5e5e5',
|
|
@@ -19925,10 +19937,10 @@ var AccordionContent = function (_a) {
|
|
|
19925
19937
|
return (jsxs$1(Fragment$2, { children: [jsxs$1(StyledButton, __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));
|
|
19926
19938
|
};
|
|
19927
19939
|
var BasicAccordion = function (_a) {
|
|
19928
|
-
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.
|
|
19929
|
-
return (jsx$1(StyledDisclosure, __assign$1({ as: "div", background: bgColor, defaultOpen: defaultOpen, disabled: disabled, onClick: onClick }, { children: function (_a) {
|
|
19940
|
+
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;
|
|
19941
|
+
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) {
|
|
19930
19942
|
var open = _a.open;
|
|
19931
|
-
return (jsx$1(AccordionContent, __assign$1({ open: open, disabled: disabled, bgColor: bgColor, fillControlsCollor: fillControlsCollor, header: header, headerOnOpen: headerOnOpen, openIcon: openIcon, closeIcon: closeIcon
|
|
19943
|
+
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));
|
|
19932
19944
|
} }), void 0));
|
|
19933
19945
|
};
|
|
19934
19946
|
|
|
@@ -20091,5 +20103,5 @@ var ProductGalleryMobileV4 = function (_a) {
|
|
|
20091
20103
|
}) }), void 0)] }), void 0) }), void 0));
|
|
20092
20104
|
};
|
|
20093
20105
|
|
|
20094
|
-
export { AbsorbencyLevel, Accordion$1 as Accordion, AccordionOptions, AmazonButton, AssetsProvider, Autoship, AutoshipV2, BasicAccordion, BeforeAfterCard, BeforeAfterVariant, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, BuyNowPayLater, CancellationFlowAccordionContentPerPartner, Card$2 as Card, CardSectionType, CartProductItem, CategorySquareTag, CategoryTag, Checkbox, ClubOfferTag, ClubRadioGroupInput, Collection, ComponentPosition, ComponentSize,
|
|
20106
|
+
export { AbsorbencyLevel, Accordion$1 as Accordion, AccordionOptions, AmazonButton, AssetsProvider, Autoship, AutoshipV2, BasicAccordion, BeforeAfterCard, BeforeAfterVariant, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, BuyNowPayLater, CancellationFlowAccordionContentPerPartner, Card$2 as Card, CardSectionType, CartProductItem, CategorySquareTag, CategoryTag, Checkbox, ClubOfferTag, ClubRadioGroupInput, Collection, ComponentPosition, ComponentSize, CouponCard, index$1 as CrossSell, DeliveryDetails, DiscountTag$1 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, Icon$1 as LibIcon, Modal, MotivatorProgressBar, MultiColorPicker, Note, OfferBanner, OrderBar, Overlay, PackSelector, PackSelectorV2, Pagination, PaginatorBlog, PaymentMethod, PaypalButton, Portal, PriceLabel, PriceLabelV2, PriceLabelV3, 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, SizeDropdown, SizeFitGuide, SizeSelector, SizeTable, SliderNavigation, Spacing, Spinner, StarList, StrengthBars, Tab, Tabs, Text$7 as Text, TextButton, TextWithImage, ThemeProvider, ThemeVariables, Timer, Tooltip, Totals, TrackingProgress, TrackingProgressV2, Video$1 as Video, buildImageUrl, componentSizeMapper, 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 };
|
|
20095
20107
|
//# sourceMappingURL=index.esm.js.map
|