@trafilea/afrodita-components 6.15.5 → 6.16.0
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 +53 -4
- package/build/index.esm.js +536 -357
- package/build/index.esm.js.map +1 -1
- package/build/index.js +538 -355
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -2304,7 +2304,14 @@ declare type CTAProps = {
|
|
|
2304
2304
|
className?: string;
|
|
2305
2305
|
testId?: string;
|
|
2306
2306
|
inline?: boolean;
|
|
2307
|
+
/** @deprecated Use 'name' inside the 'icon' object prop instead. */
|
|
2307
2308
|
iconName?: IconProps$1['name'];
|
|
2309
|
+
icon?: {
|
|
2310
|
+
name: IconProps$1['name'];
|
|
2311
|
+
position?: 'left' | 'right';
|
|
2312
|
+
margin?: string;
|
|
2313
|
+
size?: string;
|
|
2314
|
+
};
|
|
2308
2315
|
};
|
|
2309
2316
|
declare type DropdownOption<T> = {
|
|
2310
2317
|
key: string;
|
|
@@ -2552,13 +2559,15 @@ declare type CommonProps<T> = {
|
|
|
2552
2559
|
declare type ControlledProps<T> = {
|
|
2553
2560
|
value: Value<T>;
|
|
2554
2561
|
onChange: OnChange<T>;
|
|
2562
|
+
selectedOptionWeight?: number | string;
|
|
2555
2563
|
} & CommonProps<T>;
|
|
2556
2564
|
declare type UncontrolledProps<T> = {
|
|
2557
2565
|
value?: never;
|
|
2558
2566
|
onChange?: OnChange<T>;
|
|
2567
|
+
selectedOptionWeight?: number | string;
|
|
2559
2568
|
} & CommonProps<T>;
|
|
2560
2569
|
declare type SimpleDropdownProps<T> = UncontrolledProps<T> | ControlledProps<T>;
|
|
2561
|
-
declare function SimpleDropdown<T>({ options, disabled, initialValue, placeHolder, label, wide, sort, onChange, value, testId, required, showRequiredPlaceholder, }: SimpleDropdownProps<T>): JSX.Element;
|
|
2570
|
+
declare function SimpleDropdown<T>({ options, disabled, initialValue, placeHolder, label, wide, sort, onChange, value, testId, required, showRequiredPlaceholder, selectedOptionWeight, }: SimpleDropdownProps<T>): JSX.Element;
|
|
2562
2571
|
|
|
2563
2572
|
interface FiltersProps {
|
|
2564
2573
|
values: Filter[];
|
|
@@ -2709,7 +2718,14 @@ interface BaseCTAProps {
|
|
|
2709
2718
|
type?: ButtonType;
|
|
2710
2719
|
inline?: boolean;
|
|
2711
2720
|
testId?: string;
|
|
2721
|
+
/** @deprecated Use 'name' inside the 'icon' object prop instead. */
|
|
2712
2722
|
iconName?: IconProps$1['name'];
|
|
2723
|
+
icon?: {
|
|
2724
|
+
name: IconProps$1['name'];
|
|
2725
|
+
size?: string;
|
|
2726
|
+
position?: 'left' | 'right';
|
|
2727
|
+
margin?: string;
|
|
2728
|
+
};
|
|
2713
2729
|
}
|
|
2714
2730
|
|
|
2715
2731
|
declare type ButtonProps = {
|
|
@@ -3432,7 +3448,7 @@ declare type SubtotalOption = {
|
|
|
3432
3448
|
label: string;
|
|
3433
3449
|
value: string;
|
|
3434
3450
|
};
|
|
3435
|
-
declare type Coupon = {
|
|
3451
|
+
declare type Coupon$1 = {
|
|
3436
3452
|
code: string;
|
|
3437
3453
|
amount: string;
|
|
3438
3454
|
};
|
|
@@ -3444,7 +3460,7 @@ interface SubtotalProps {
|
|
|
3444
3460
|
coupon?: {
|
|
3445
3461
|
couponText: string;
|
|
3446
3462
|
appliedText: string;
|
|
3447
|
-
coupons: Coupon[];
|
|
3463
|
+
coupons: Coupon$1[];
|
|
3448
3464
|
};
|
|
3449
3465
|
}
|
|
3450
3466
|
|
|
@@ -3489,6 +3505,33 @@ interface TrackingProgressProps {
|
|
|
3489
3505
|
}
|
|
3490
3506
|
declare const TrackingProgress: ({ checkPoints, amountOfCheckPoints }: TrackingProgressProps) => JSX.Element;
|
|
3491
3507
|
|
|
3508
|
+
interface CouponProps {
|
|
3509
|
+
imgSrc: string;
|
|
3510
|
+
title: string;
|
|
3511
|
+
content: ReactNode;
|
|
3512
|
+
width?: string;
|
|
3513
|
+
btnText?: string;
|
|
3514
|
+
couponCode?: string;
|
|
3515
|
+
offerLink?: string;
|
|
3516
|
+
}
|
|
3517
|
+
declare const Coupon: FC<CouponProps>;
|
|
3518
|
+
|
|
3519
|
+
declare type BasicAccordionProps = {
|
|
3520
|
+
children?: ReactNode;
|
|
3521
|
+
defaultOpen?: boolean;
|
|
3522
|
+
titleColor?: string;
|
|
3523
|
+
bgColor: string;
|
|
3524
|
+
header: ReactNode;
|
|
3525
|
+
headerOnOpen?: ReactNode;
|
|
3526
|
+
disabled?: boolean;
|
|
3527
|
+
openIcon: IconType;
|
|
3528
|
+
closeIcon: IconType;
|
|
3529
|
+
fillControlsCollor: string;
|
|
3530
|
+
contentWidth?: string;
|
|
3531
|
+
onClick?: (index: number) => void;
|
|
3532
|
+
};
|
|
3533
|
+
declare const BasicAccordion: FC<BasicAccordionProps>;
|
|
3534
|
+
|
|
3492
3535
|
declare type HurryUpProps = {
|
|
3493
3536
|
hurryUpText: string;
|
|
3494
3537
|
backgroundColor?: string;
|
|
@@ -3542,6 +3585,9 @@ declare type UseWindowDimensions = (breakpoints?: ThemeBreakpoints, options?: {
|
|
|
3542
3585
|
};
|
|
3543
3586
|
declare const useWindowDimensions: UseWindowDimensions;
|
|
3544
3587
|
|
|
3588
|
+
declare type DeviceType = 'desktop' | 'tablet' | 'mobile';
|
|
3589
|
+
declare const useDeviceType: () => DeviceType;
|
|
3590
|
+
|
|
3545
3591
|
declare global {
|
|
3546
3592
|
interface Events {
|
|
3547
3593
|
modal: {
|
|
@@ -3584,4 +3630,7 @@ declare const isNumber: (value: string) => boolean;
|
|
|
3584
3630
|
declare const isPhoneNumber: (value: string) => boolean;
|
|
3585
3631
|
declare const isValidDate: (value: string) => boolean;
|
|
3586
3632
|
|
|
3587
|
-
|
|
3633
|
+
declare type PartnerContent = 'RevelBeauty-1' | 'RevelBeauty-2' | 'TheSpaDr-1' | 'TheSpaDr-2' | 'TheBodCon';
|
|
3634
|
+
declare const CancellationFlowAccordionContentPerPartner: Record<string, JSX.Element[]>;
|
|
3635
|
+
|
|
3636
|
+
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, Coupon, 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, 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 };
|