@lucynam/fashiongo-ui 0.2.5 → 0.2.8
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/dist/index.css +70 -26
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +41 -9
- package/dist/index.d.ts +41 -9
- package/dist/index.js +120 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +126 -27
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -373,23 +373,25 @@ declare const Tooltip: React.ForwardRefExoticComponent<TooltipProps & React.RefA
|
|
|
373
373
|
/**
|
|
374
374
|
* PDP CTA Button — "Add to Bag" with FashionGo-specific states.
|
|
375
375
|
*
|
|
376
|
-
* Figma:
|
|
376
|
+
* Figma: node 7:130096
|
|
377
377
|
*
|
|
378
378
|
* Variants match Figma property1:
|
|
379
|
-
* default → "1" — black bg, white text, Add to Bag
|
|
380
|
-
*
|
|
381
|
-
*
|
|
382
|
-
*
|
|
383
|
-
* outline → "line" — bordered, transparent bg
|
|
379
|
+
* default → "1" — black bg, white text, [icon] "Add to Bag" · price
|
|
380
|
+
* loading → "2" — gray bg, spinner only
|
|
381
|
+
* complete → "3" — black bg, [icon] [bullet] "Add to Bag" (no price)
|
|
382
|
+
* outline → "line" — bordered, transparent bg, dark text
|
|
384
383
|
* disabled → "disable" — 8% black bg, quaternary text
|
|
384
|
+
* link → "Link" — no bg, dark text, inline link style
|
|
385
385
|
*/
|
|
386
|
-
type PdpCtaVariant = "default" | "loading" | "complete" | "outline" | "disabled";
|
|
386
|
+
type PdpCtaVariant = "default" | "loading" | "complete" | "outline" | "disabled" | "link";
|
|
387
387
|
interface PdpCtaProps {
|
|
388
388
|
variant?: PdpCtaVariant;
|
|
389
389
|
label?: string;
|
|
390
390
|
price?: string;
|
|
391
|
-
/**
|
|
391
|
+
/** Left icon — 20×20 brand logo or similar (shown in default/complete/outline/disabled/link) */
|
|
392
392
|
icon?: React.ReactNode;
|
|
393
|
+
/** Bullet icon shown between icon and label in "complete" variant (16×16) */
|
|
394
|
+
bullet?: React.ReactNode;
|
|
393
395
|
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
394
396
|
className?: string;
|
|
395
397
|
}
|
|
@@ -1640,4 +1642,34 @@ interface CommonPriceProps {
|
|
|
1640
1642
|
}
|
|
1641
1643
|
declare const CommonPrice: React.ForwardRefExoticComponent<CommonPriceProps & React.RefAttributes<HTMLDivElement>>;
|
|
1642
1644
|
|
|
1643
|
-
|
|
1645
|
+
type MobilePlpState = "standard" | "vendor" | "compact";
|
|
1646
|
+
type MobilePlpCase = "beforelogin" | "afterlogin" | "marginO" | "marginX";
|
|
1647
|
+
interface MobilePlpProps {
|
|
1648
|
+
state?: MobilePlpState;
|
|
1649
|
+
plpCase?: MobilePlpCase;
|
|
1650
|
+
className?: string;
|
|
1651
|
+
}
|
|
1652
|
+
declare const MobilePlp: React.ForwardRefExoticComponent<MobilePlpProps & React.RefAttributes<HTMLDivElement>>;
|
|
1653
|
+
|
|
1654
|
+
type MobileProductInfoTemplate = "standard" | "vendorhome" | "compact";
|
|
1655
|
+
type MobileProductInfoColor = "o" | "x";
|
|
1656
|
+
interface MobileProductInfoProps {
|
|
1657
|
+
template?: MobileProductInfoTemplate;
|
|
1658
|
+
color?: MobileProductInfoColor;
|
|
1659
|
+
className?: string;
|
|
1660
|
+
}
|
|
1661
|
+
declare const MobileProductInfo: React.ForwardRefExoticComponent<MobileProductInfoProps & React.RefAttributes<HTMLDivElement>>;
|
|
1662
|
+
|
|
1663
|
+
interface PlpTabBarProps {
|
|
1664
|
+
className?: string;
|
|
1665
|
+
}
|
|
1666
|
+
declare const PlpTabBar: React.ForwardRefExoticComponent<PlpTabBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
1667
|
+
|
|
1668
|
+
type PlpTabItemState = "default" | "active";
|
|
1669
|
+
interface PlpTabItemProps {
|
|
1670
|
+
state?: PlpTabItemState;
|
|
1671
|
+
className?: string;
|
|
1672
|
+
}
|
|
1673
|
+
declare const PlpTabItem: React.ForwardRefExoticComponent<PlpTabItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
1674
|
+
|
|
1675
|
+
export { Badge, type BadgeProps, type BadgeVariant, BtnShowMore, type BtnShowMoreProps, type BtnShowMoreSize, type BtnShowMoreState, BtnText, type BtnTextProps, type BtnTextState, BtnVendorInfo, type BtnVendorInfoProps, type BtnVendorInfoState, BulletLarge, type BulletLargeProps, BulletSmall, type BulletSmallProps, Button, type ButtonProps, type ButtonVariant, Checkbox, type CheckboxProps, type CheckboxState, CollectionSale, type CollectionSaleDuration, type CollectionSaleProps, type CollectionSaleStatus, CommonImg, type CommonImgProps, type CommonImgState, type CommonImgStyle, CommonPrice, type CommonPriceLine, type CommonPriceProps, type CommonPriceVariant, CommonVendorComponent, type CommonVendorComponentLine, type CommonVendorComponentProps, type CommonVendorComponentType, CommonVendorInfo, type CommonVendorInfoProps, CommonVendorName, type CommonVendorNameProps, type CommonVendorNameVariant, CountButton, type CountButtonProps, type CountButtonType, CountingBadge, type CountingBadgeColor, type CountingBadgeProps, CtaComplete, CtaCompleteBig, type CtaCompleteBigProps, type CtaCompleteBigStep, type CtaCompleteProps, type CtaCompleteStep, CtaExclamation, type CtaExclamationProps, type CtaExclamationSize, CtaFavorite, type CtaFavoriteProps, type CtaFavoriteState, CtaLoading, type CtaLoadingProps, type CtaLoadingVariant, CtaSearch, type CtaSearchProps, type CtaSearchSize, Dropdown, type DropdownOption, type DropdownProps, type DropdownState, Favorite, type FavoriteProps, type FavoriteType, FgFreeShippingBadge, type FgFreeShippingBadgeProps, FilterChip, type FilterChipFilter, type FilterChipProps, type FilterChipState, FreeShipping, type FreeShippingProps, type FreeShippingVariant, GnbAllCategories, type GnbAllCategoriesProps, type GnbAllCategoriesState, GnbButton, type GnbButtonProps, GnbHeaderFull, type GnbHeaderFullNavItem, type GnbHeaderFullProps, type GnbHeaderFullSignInState, GnbHeaderLogo, type GnbHeaderLogoProps, GnbNewIn, type GnbNewInProps, IcAccordionChevron, type IcAccordionChevronDirection, type IcAccordionChevronProps, IcAi, type IcAiProps, IcAiStar, type IcAiStarProps, IcCal, type IcCalProps, IcCamera, type IcCameraProps, IcCheck, type IcCheckProps, IcChevrons, type IcChevronsColor, type IcChevronsDirection, type IcChevronsProps, IcClip, type IcClipProps, IcCopy, type IcCopyProps, IcDiscount, type IcDiscountProps, IcDivider, type IcDividerProps, IcEyeOff, type IcEyeOffProps, IcFilter, type IcFilterProps, IcImgCarousel, type IcImgCarouselDirection, type IcImgCarouselProps, IcInformation, IcInformationFill, type IcInformationFillProps, type IcInformationProps, IcLink, type IcLinkProps, IcMore, type IcMoreProps, IcMoreW, type IcMoreWProps, IcNonReturnableS, type IcNonReturnableSProps, IcNoticeGray, type IcNoticeGrayProps, IcNoticeRed, type IcNoticeRedProps, IcOrderlist, type IcOrderlistProps, IcQuickFill, type IcQuickFillProps, IcRecommendCarousel, type IcRecommendCarouselDirection, type IcRecommendCarouselProps, type IcRecommendCarouselState, IcRefresh, type IcRefreshProps, IcReply, type IcReplyProps, IcReturn, type IcReturnProps, IcReward, type IcRewardProps, IcRuler, type IcRulerProps, IcSmallChevrons, type IcSmallChevronsDirection, type IcSmallChevronsProps, IcSmallClose, type IcSmallCloseProps, IcTime, type IcTimeProps, IcTooltipClose, type IcTooltipCloseProps, IcZoom, type IcZoomProps, type IcZoomType, ImageModal, type ImageModalProps, type ImageModalVariant, Images, type ImagesLayout, type ImagesProps, type ImagesSize, ImagesTag, type ImagesTagProps, ImgMore, type ImgMoreProps, type ImgMoreState, ImgSlider, type ImgSliderProps, InputField, type InputFieldProps, type InputFieldSize, type InputFieldState, InputWithLabel, type InputWithLabelProps, type InputWithLabelState, Like, type LikeDesign, type LikeProps, type LikeStatus, MAsiaDirectPanel, type MAsiaDirectPanelProps, type MAsiaDirectPanelState, MBottomsheetList, type MBottomsheetListProps, type MBottomsheetListType, MBottomsheetLists, type MBottomsheetListsProps, type MBottomsheetListsType, MColorList, MColorListContainer, type MColorListContainerProps, MColorListImg, type MColorListImgProps, type MColorListImgState, type MColorListPhase, type MColorListProps, MCountingBadgeWh, type MCountingBadgeWhProps, MCoupon, type MCouponProps, type MCouponType, MCustomization, type MCustomizationProps, type MCustomizationState, MDetail, type MDetailProps, type MDetailState, MHomeIndicator, type MHomeIndicatorProps, MIcAsiadirect, type MIcAsiadirectProps, MIcChevrons, type MIcChevronsDirection, type MIcChevronsProps, MIcTheedit, type MIcTheeditProps, MImgMain, type MImgMainProps, type MImgMainType, MKeyword, type MKeywordProps, MOrderList, type MOrderListPhase, type MOrderListProps, type MOrderListState, MPagination, type MPaginationProps, MPrice, type MPriceProps, type MPriceState, MProductNamePrice, type MProductNamePriceProps, MProductTitle, type MProductTitleProps, type MProductTitleType, MReturnPolicy, type MReturnPolicyProps, type MReturnPolicyState, MReview, type MReviewProps, type MReviewState, MShipping, type MShippingProps, MSizeListContainer, type MSizeListContainerProps, MSquareBadge, type MSquareBadgeProps, type MSquareBadgeVariant, MSwatchBottomsheet, type MSwatchBottomsheetProps, type MSwatchBottomsheetState, MSwatchPhase1, MSwatchPhase1Img, type MSwatchPhase1ImgProps, type MSwatchPhase1ImgState, type MSwatchPhase1Props, type MSwatchPhase1State, MTopVendor, type MTopVendorProps, type MTopVendorState, MTotalColorCount, type MTotalColorCountProps, MVendor, MVendorInfo, type MVendorInfoProps, type MVendorInfoState, type MVendorProps, type MVendorState, MinibagList, type MinibagListItem, type MinibagListProps, type MinibagListStockStatus, MinibagPromo, type MinibagPromoProps, type MinibagPromoState, type MinibagPromoStyle, MobileBadge, type MobileBadgeProps, type MobileBadgeVariant, MobileCTA, type MobileCTAProps, type MobileCTAState, MobileCheckbox, type MobileCheckboxProps, type MobileCheckboxState, MobileCountInput, type MobileCountInputProps, type MobileCountInputState, MobileCounter, type MobileCounterAction, type MobileCounterProps, type MobileCounterStatus, MobilePlp, type MobilePlpCase, type MobilePlpProps, type MobilePlpState, MobileProductInfo, type MobileProductInfoColor, type MobileProductInfoProps, type MobileProductInfoTemplate, OnboardingAddress, type OnboardingAddressProps, type OnboardingAddressState, OnboardingCta, type OnboardingCtaProps, type OnboardingCtaVariant, OrderInfo, OrderInfoAnimation, type OrderInfoAnimationProps, type OrderInfoAnimationVariant, type OrderInfoProps, type OrderInfoVariant, PDPAsiaDirect, type PDPAsiaDirectProps, PDPDropdown, PDPDropdownItem, type PDPDropdownItemProps, type PDPDropdownOption, type PDPDropdownProps, type PDPDropdownState, PDPMobileToast, type PDPMobileToastProps, type PDPMobileToastVariant, PDPPagination, type PDPPaginationProps, PDPSwatchItem, type PDPSwatchItemProps, type PDPSwatchItemState, PDPTheEdit, type PDPTheEditProps, PDPTopVendor, type PDPTopVendorProps, type PDPTopVendorVariant, PLPTab, type PLPTabProps, type PLPTabState, Pagination, PaginationChevron, type PaginationChevronColor, type PaginationChevronDirection, type PaginationChevronProps, type PaginationProps, PdpAsiaDirectSection, type PdpAsiaDirectSectionProps, type PdpAsiaDirectSectionState, PdpColorInfo, type PdpColorInfoProps, PdpColorSwatches, type PdpColorSwatchesProps, type PdpColorSwatchesRow, type PdpColorSwatchesState, PdpCta, type PdpCtaProps, PdpCtaSection, type PdpCtaSectionProps, type PdpCtaVariant, PdpDetailSection, type PdpDetailSectionProps, type PdpDetailSectionVariant, PdpList, type PdpListProps, type PdpListVariant, PdpPrepack, type PdpPrepackColor, type PdpPrepackCount, type PdpPrepackLine, type PdpPrepackProps, PdpRecommend, type PdpRecommendProps, PdpRightSide, type PdpRightSideLayout, type PdpRightSideProps, PdpSizeQty, type PdpSizeQtyProps, PdpVendorBtn, type PdpVendorBtnProps, type PdpVendorBtnState, PdpVendorSection, type PdpVendorSectionProps, type PdpVendorSectionState, PlpTabBar, type PlpTabBarProps, PlpTabItem, type PlpTabItemProps, type PlpTabItemState, PrepackBadge, type PrepackBadgeProps, type PrepackBadgeVariant, ProductCard, type ProductCardImageBadge, type ProductCardLogin, type ProductCardProps, type ProductCardState, type ProductCardVendorBadge, ProductPrice, type ProductPriceProps, type ProductPriceVariant, PromoBadge, type PromoBadgeProps, type PromoTier, RadioButton, type RadioButtonProps, type RadioButtonState, RecommandAddtocart, type RecommandAddtocartProps, ReviewRating, type ReviewRatingProps, RoundBadge, type RoundBadgeProps, type RoundBadgeVariant, SearchVendor, type SearchVendorProps, SquareBadge, type SquareBadgeProps, type SquareBadgeSize, type SquareBadgeVariant, StarRating, type StarRatingFill, type StarRatingProps, type StarRatingSize, StockIcon, type StockIconProps, type StockIconType, type StockState, StockStatus, type StockStatusProps, Toast, ToastIcon, type ToastIconProps, type ToastIconType, type ToastProps, type ToastVariant, Tooltip, TooltipArrow, type TooltipArrowPosition, type TooltipArrowProps, type TooltipProps, TooltipShippingIcon, type TooltipShippingIconProps, type TooltipShippingIconType, type TooltipTail, type TooltipType, type TypeStyleKey, VendorBadge, type VendorBadgeInteraction, type VendorBadgeProps, type VendorBadgeState, VendorCartCount, type VendorCartCountProps, VendorInfo, type VendorInfoProps, type VendorInfoState, type VendorInfoType, VideoControl, type VideoControlProps, type VideoControlType, WebColors, type WebColorsColor, type WebColorsCount, type WebColorsProps, WebDropdown, type WebDropdownOption, type WebDropdownProps, type WebDropdownState, WebPlp, type WebPlpCase, type WebPlpProps, type WebPlpState, WebPreorder, type WebPreorderCase, type WebPreorderProps, WebProductInfo, type WebProductInfoColor, type WebProductInfoProps, type WebProductInfoTemplate, fontFamily, fontSize, fontWeight, lineHeight, tokenVersion, typeStyles };
|
package/dist/index.d.ts
CHANGED
|
@@ -373,23 +373,25 @@ declare const Tooltip: React.ForwardRefExoticComponent<TooltipProps & React.RefA
|
|
|
373
373
|
/**
|
|
374
374
|
* PDP CTA Button — "Add to Bag" with FashionGo-specific states.
|
|
375
375
|
*
|
|
376
|
-
* Figma:
|
|
376
|
+
* Figma: node 7:130096
|
|
377
377
|
*
|
|
378
378
|
* Variants match Figma property1:
|
|
379
|
-
* default → "1" — black bg, white text, Add to Bag
|
|
380
|
-
*
|
|
381
|
-
*
|
|
382
|
-
*
|
|
383
|
-
* outline → "line" — bordered, transparent bg
|
|
379
|
+
* default → "1" — black bg, white text, [icon] "Add to Bag" · price
|
|
380
|
+
* loading → "2" — gray bg, spinner only
|
|
381
|
+
* complete → "3" — black bg, [icon] [bullet] "Add to Bag" (no price)
|
|
382
|
+
* outline → "line" — bordered, transparent bg, dark text
|
|
384
383
|
* disabled → "disable" — 8% black bg, quaternary text
|
|
384
|
+
* link → "Link" — no bg, dark text, inline link style
|
|
385
385
|
*/
|
|
386
|
-
type PdpCtaVariant = "default" | "loading" | "complete" | "outline" | "disabled";
|
|
386
|
+
type PdpCtaVariant = "default" | "loading" | "complete" | "outline" | "disabled" | "link";
|
|
387
387
|
interface PdpCtaProps {
|
|
388
388
|
variant?: PdpCtaVariant;
|
|
389
389
|
label?: string;
|
|
390
390
|
price?: string;
|
|
391
|
-
/**
|
|
391
|
+
/** Left icon — 20×20 brand logo or similar (shown in default/complete/outline/disabled/link) */
|
|
392
392
|
icon?: React.ReactNode;
|
|
393
|
+
/** Bullet icon shown between icon and label in "complete" variant (16×16) */
|
|
394
|
+
bullet?: React.ReactNode;
|
|
393
395
|
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
394
396
|
className?: string;
|
|
395
397
|
}
|
|
@@ -1640,4 +1642,34 @@ interface CommonPriceProps {
|
|
|
1640
1642
|
}
|
|
1641
1643
|
declare const CommonPrice: React.ForwardRefExoticComponent<CommonPriceProps & React.RefAttributes<HTMLDivElement>>;
|
|
1642
1644
|
|
|
1643
|
-
|
|
1645
|
+
type MobilePlpState = "standard" | "vendor" | "compact";
|
|
1646
|
+
type MobilePlpCase = "beforelogin" | "afterlogin" | "marginO" | "marginX";
|
|
1647
|
+
interface MobilePlpProps {
|
|
1648
|
+
state?: MobilePlpState;
|
|
1649
|
+
plpCase?: MobilePlpCase;
|
|
1650
|
+
className?: string;
|
|
1651
|
+
}
|
|
1652
|
+
declare const MobilePlp: React.ForwardRefExoticComponent<MobilePlpProps & React.RefAttributes<HTMLDivElement>>;
|
|
1653
|
+
|
|
1654
|
+
type MobileProductInfoTemplate = "standard" | "vendorhome" | "compact";
|
|
1655
|
+
type MobileProductInfoColor = "o" | "x";
|
|
1656
|
+
interface MobileProductInfoProps {
|
|
1657
|
+
template?: MobileProductInfoTemplate;
|
|
1658
|
+
color?: MobileProductInfoColor;
|
|
1659
|
+
className?: string;
|
|
1660
|
+
}
|
|
1661
|
+
declare const MobileProductInfo: React.ForwardRefExoticComponent<MobileProductInfoProps & React.RefAttributes<HTMLDivElement>>;
|
|
1662
|
+
|
|
1663
|
+
interface PlpTabBarProps {
|
|
1664
|
+
className?: string;
|
|
1665
|
+
}
|
|
1666
|
+
declare const PlpTabBar: React.ForwardRefExoticComponent<PlpTabBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
1667
|
+
|
|
1668
|
+
type PlpTabItemState = "default" | "active";
|
|
1669
|
+
interface PlpTabItemProps {
|
|
1670
|
+
state?: PlpTabItemState;
|
|
1671
|
+
className?: string;
|
|
1672
|
+
}
|
|
1673
|
+
declare const PlpTabItem: React.ForwardRefExoticComponent<PlpTabItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
1674
|
+
|
|
1675
|
+
export { Badge, type BadgeProps, type BadgeVariant, BtnShowMore, type BtnShowMoreProps, type BtnShowMoreSize, type BtnShowMoreState, BtnText, type BtnTextProps, type BtnTextState, BtnVendorInfo, type BtnVendorInfoProps, type BtnVendorInfoState, BulletLarge, type BulletLargeProps, BulletSmall, type BulletSmallProps, Button, type ButtonProps, type ButtonVariant, Checkbox, type CheckboxProps, type CheckboxState, CollectionSale, type CollectionSaleDuration, type CollectionSaleProps, type CollectionSaleStatus, CommonImg, type CommonImgProps, type CommonImgState, type CommonImgStyle, CommonPrice, type CommonPriceLine, type CommonPriceProps, type CommonPriceVariant, CommonVendorComponent, type CommonVendorComponentLine, type CommonVendorComponentProps, type CommonVendorComponentType, CommonVendorInfo, type CommonVendorInfoProps, CommonVendorName, type CommonVendorNameProps, type CommonVendorNameVariant, CountButton, type CountButtonProps, type CountButtonType, CountingBadge, type CountingBadgeColor, type CountingBadgeProps, CtaComplete, CtaCompleteBig, type CtaCompleteBigProps, type CtaCompleteBigStep, type CtaCompleteProps, type CtaCompleteStep, CtaExclamation, type CtaExclamationProps, type CtaExclamationSize, CtaFavorite, type CtaFavoriteProps, type CtaFavoriteState, CtaLoading, type CtaLoadingProps, type CtaLoadingVariant, CtaSearch, type CtaSearchProps, type CtaSearchSize, Dropdown, type DropdownOption, type DropdownProps, type DropdownState, Favorite, type FavoriteProps, type FavoriteType, FgFreeShippingBadge, type FgFreeShippingBadgeProps, FilterChip, type FilterChipFilter, type FilterChipProps, type FilterChipState, FreeShipping, type FreeShippingProps, type FreeShippingVariant, GnbAllCategories, type GnbAllCategoriesProps, type GnbAllCategoriesState, GnbButton, type GnbButtonProps, GnbHeaderFull, type GnbHeaderFullNavItem, type GnbHeaderFullProps, type GnbHeaderFullSignInState, GnbHeaderLogo, type GnbHeaderLogoProps, GnbNewIn, type GnbNewInProps, IcAccordionChevron, type IcAccordionChevronDirection, type IcAccordionChevronProps, IcAi, type IcAiProps, IcAiStar, type IcAiStarProps, IcCal, type IcCalProps, IcCamera, type IcCameraProps, IcCheck, type IcCheckProps, IcChevrons, type IcChevronsColor, type IcChevronsDirection, type IcChevronsProps, IcClip, type IcClipProps, IcCopy, type IcCopyProps, IcDiscount, type IcDiscountProps, IcDivider, type IcDividerProps, IcEyeOff, type IcEyeOffProps, IcFilter, type IcFilterProps, IcImgCarousel, type IcImgCarouselDirection, type IcImgCarouselProps, IcInformation, IcInformationFill, type IcInformationFillProps, type IcInformationProps, IcLink, type IcLinkProps, IcMore, type IcMoreProps, IcMoreW, type IcMoreWProps, IcNonReturnableS, type IcNonReturnableSProps, IcNoticeGray, type IcNoticeGrayProps, IcNoticeRed, type IcNoticeRedProps, IcOrderlist, type IcOrderlistProps, IcQuickFill, type IcQuickFillProps, IcRecommendCarousel, type IcRecommendCarouselDirection, type IcRecommendCarouselProps, type IcRecommendCarouselState, IcRefresh, type IcRefreshProps, IcReply, type IcReplyProps, IcReturn, type IcReturnProps, IcReward, type IcRewardProps, IcRuler, type IcRulerProps, IcSmallChevrons, type IcSmallChevronsDirection, type IcSmallChevronsProps, IcSmallClose, type IcSmallCloseProps, IcTime, type IcTimeProps, IcTooltipClose, type IcTooltipCloseProps, IcZoom, type IcZoomProps, type IcZoomType, ImageModal, type ImageModalProps, type ImageModalVariant, Images, type ImagesLayout, type ImagesProps, type ImagesSize, ImagesTag, type ImagesTagProps, ImgMore, type ImgMoreProps, type ImgMoreState, ImgSlider, type ImgSliderProps, InputField, type InputFieldProps, type InputFieldSize, type InputFieldState, InputWithLabel, type InputWithLabelProps, type InputWithLabelState, Like, type LikeDesign, type LikeProps, type LikeStatus, MAsiaDirectPanel, type MAsiaDirectPanelProps, type MAsiaDirectPanelState, MBottomsheetList, type MBottomsheetListProps, type MBottomsheetListType, MBottomsheetLists, type MBottomsheetListsProps, type MBottomsheetListsType, MColorList, MColorListContainer, type MColorListContainerProps, MColorListImg, type MColorListImgProps, type MColorListImgState, type MColorListPhase, type MColorListProps, MCountingBadgeWh, type MCountingBadgeWhProps, MCoupon, type MCouponProps, type MCouponType, MCustomization, type MCustomizationProps, type MCustomizationState, MDetail, type MDetailProps, type MDetailState, MHomeIndicator, type MHomeIndicatorProps, MIcAsiadirect, type MIcAsiadirectProps, MIcChevrons, type MIcChevronsDirection, type MIcChevronsProps, MIcTheedit, type MIcTheeditProps, MImgMain, type MImgMainProps, type MImgMainType, MKeyword, type MKeywordProps, MOrderList, type MOrderListPhase, type MOrderListProps, type MOrderListState, MPagination, type MPaginationProps, MPrice, type MPriceProps, type MPriceState, MProductNamePrice, type MProductNamePriceProps, MProductTitle, type MProductTitleProps, type MProductTitleType, MReturnPolicy, type MReturnPolicyProps, type MReturnPolicyState, MReview, type MReviewProps, type MReviewState, MShipping, type MShippingProps, MSizeListContainer, type MSizeListContainerProps, MSquareBadge, type MSquareBadgeProps, type MSquareBadgeVariant, MSwatchBottomsheet, type MSwatchBottomsheetProps, type MSwatchBottomsheetState, MSwatchPhase1, MSwatchPhase1Img, type MSwatchPhase1ImgProps, type MSwatchPhase1ImgState, type MSwatchPhase1Props, type MSwatchPhase1State, MTopVendor, type MTopVendorProps, type MTopVendorState, MTotalColorCount, type MTotalColorCountProps, MVendor, MVendorInfo, type MVendorInfoProps, type MVendorInfoState, type MVendorProps, type MVendorState, MinibagList, type MinibagListItem, type MinibagListProps, type MinibagListStockStatus, MinibagPromo, type MinibagPromoProps, type MinibagPromoState, type MinibagPromoStyle, MobileBadge, type MobileBadgeProps, type MobileBadgeVariant, MobileCTA, type MobileCTAProps, type MobileCTAState, MobileCheckbox, type MobileCheckboxProps, type MobileCheckboxState, MobileCountInput, type MobileCountInputProps, type MobileCountInputState, MobileCounter, type MobileCounterAction, type MobileCounterProps, type MobileCounterStatus, MobilePlp, type MobilePlpCase, type MobilePlpProps, type MobilePlpState, MobileProductInfo, type MobileProductInfoColor, type MobileProductInfoProps, type MobileProductInfoTemplate, OnboardingAddress, type OnboardingAddressProps, type OnboardingAddressState, OnboardingCta, type OnboardingCtaProps, type OnboardingCtaVariant, OrderInfo, OrderInfoAnimation, type OrderInfoAnimationProps, type OrderInfoAnimationVariant, type OrderInfoProps, type OrderInfoVariant, PDPAsiaDirect, type PDPAsiaDirectProps, PDPDropdown, PDPDropdownItem, type PDPDropdownItemProps, type PDPDropdownOption, type PDPDropdownProps, type PDPDropdownState, PDPMobileToast, type PDPMobileToastProps, type PDPMobileToastVariant, PDPPagination, type PDPPaginationProps, PDPSwatchItem, type PDPSwatchItemProps, type PDPSwatchItemState, PDPTheEdit, type PDPTheEditProps, PDPTopVendor, type PDPTopVendorProps, type PDPTopVendorVariant, PLPTab, type PLPTabProps, type PLPTabState, Pagination, PaginationChevron, type PaginationChevronColor, type PaginationChevronDirection, type PaginationChevronProps, type PaginationProps, PdpAsiaDirectSection, type PdpAsiaDirectSectionProps, type PdpAsiaDirectSectionState, PdpColorInfo, type PdpColorInfoProps, PdpColorSwatches, type PdpColorSwatchesProps, type PdpColorSwatchesRow, type PdpColorSwatchesState, PdpCta, type PdpCtaProps, PdpCtaSection, type PdpCtaSectionProps, type PdpCtaVariant, PdpDetailSection, type PdpDetailSectionProps, type PdpDetailSectionVariant, PdpList, type PdpListProps, type PdpListVariant, PdpPrepack, type PdpPrepackColor, type PdpPrepackCount, type PdpPrepackLine, type PdpPrepackProps, PdpRecommend, type PdpRecommendProps, PdpRightSide, type PdpRightSideLayout, type PdpRightSideProps, PdpSizeQty, type PdpSizeQtyProps, PdpVendorBtn, type PdpVendorBtnProps, type PdpVendorBtnState, PdpVendorSection, type PdpVendorSectionProps, type PdpVendorSectionState, PlpTabBar, type PlpTabBarProps, PlpTabItem, type PlpTabItemProps, type PlpTabItemState, PrepackBadge, type PrepackBadgeProps, type PrepackBadgeVariant, ProductCard, type ProductCardImageBadge, type ProductCardLogin, type ProductCardProps, type ProductCardState, type ProductCardVendorBadge, ProductPrice, type ProductPriceProps, type ProductPriceVariant, PromoBadge, type PromoBadgeProps, type PromoTier, RadioButton, type RadioButtonProps, type RadioButtonState, RecommandAddtocart, type RecommandAddtocartProps, ReviewRating, type ReviewRatingProps, RoundBadge, type RoundBadgeProps, type RoundBadgeVariant, SearchVendor, type SearchVendorProps, SquareBadge, type SquareBadgeProps, type SquareBadgeSize, type SquareBadgeVariant, StarRating, type StarRatingFill, type StarRatingProps, type StarRatingSize, StockIcon, type StockIconProps, type StockIconType, type StockState, StockStatus, type StockStatusProps, Toast, ToastIcon, type ToastIconProps, type ToastIconType, type ToastProps, type ToastVariant, Tooltip, TooltipArrow, type TooltipArrowPosition, type TooltipArrowProps, type TooltipProps, TooltipShippingIcon, type TooltipShippingIconProps, type TooltipShippingIconType, type TooltipTail, type TooltipType, type TypeStyleKey, VendorBadge, type VendorBadgeInteraction, type VendorBadgeProps, type VendorBadgeState, VendorCartCount, type VendorCartCountProps, VendorInfo, type VendorInfoProps, type VendorInfoState, type VendorInfoType, VideoControl, type VideoControlProps, type VideoControlType, WebColors, type WebColorsColor, type WebColorsCount, type WebColorsProps, WebDropdown, type WebDropdownOption, type WebDropdownProps, type WebDropdownState, WebPlp, type WebPlpCase, type WebPlpProps, type WebPlpState, WebPreorder, type WebPreorderCase, type WebPreorderProps, WebProductInfo, type WebProductInfoColor, type WebProductInfoProps, type WebProductInfoTemplate, fontFamily, fontSize, fontWeight, lineHeight, tokenVersion, typeStyles };
|
package/dist/index.js
CHANGED
|
@@ -145,6 +145,8 @@ __export(index_exports, {
|
|
|
145
145
|
MobileCheckbox: () => MobileCheckbox,
|
|
146
146
|
MobileCountInput: () => MobileCountInput,
|
|
147
147
|
MobileCounter: () => MobileCounter,
|
|
148
|
+
MobilePlp: () => MobilePlp,
|
|
149
|
+
MobileProductInfo: () => MobileProductInfo,
|
|
148
150
|
OnboardingAddress: () => OnboardingAddress,
|
|
149
151
|
OnboardingCta: () => OnboardingCta,
|
|
150
152
|
OrderInfo: () => OrderInfo,
|
|
@@ -173,6 +175,8 @@ __export(index_exports, {
|
|
|
173
175
|
PdpSizeQty: () => PdpSizeQty,
|
|
174
176
|
PdpVendorBtn: () => PdpVendorBtn,
|
|
175
177
|
PdpVendorSection: () => PdpVendorSection,
|
|
178
|
+
PlpTabBar: () => PlpTabBar,
|
|
179
|
+
PlpTabItem: () => PlpTabItem,
|
|
176
180
|
PrepackBadge: () => PrepackBadge,
|
|
177
181
|
ProductCard: () => ProductCard,
|
|
178
182
|
ProductPrice: () => ProductPrice,
|
|
@@ -749,12 +753,15 @@ var PdpCta_default = {
|
|
|
749
753
|
"variant-complete": "PdpCta_variant-complete",
|
|
750
754
|
"variant-outline": "PdpCta_variant-outline",
|
|
751
755
|
"variant-disabled": "PdpCta_variant-disabled",
|
|
756
|
+
"variant-link": "PdpCta_variant-link",
|
|
752
757
|
label: "PdpCta_label",
|
|
753
758
|
"label-white": "PdpCta_label-white",
|
|
754
759
|
"label-disabled": "PdpCta_label-disabled",
|
|
755
|
-
|
|
760
|
+
separator: "PdpCta_separator",
|
|
761
|
+
iconWrap: "PdpCta_iconWrap",
|
|
762
|
+
bulletWrap: "PdpCta_bulletWrap",
|
|
756
763
|
spinner: "PdpCta_spinner",
|
|
757
|
-
|
|
764
|
+
pdpCtaSpin: "PdpCta_pdpCtaSpin"
|
|
758
765
|
};
|
|
759
766
|
|
|
760
767
|
// src/components/PdpCta/PdpCta.tsx
|
|
@@ -765,34 +772,63 @@ var PdpCta = import_react11.default.forwardRef(
|
|
|
765
772
|
label = "Add to Bag",
|
|
766
773
|
price,
|
|
767
774
|
icon,
|
|
775
|
+
bullet,
|
|
768
776
|
onClick,
|
|
769
777
|
className
|
|
770
778
|
}, ref) => {
|
|
771
|
-
const
|
|
772
|
-
const classes = [
|
|
779
|
+
const rootClass = [
|
|
773
780
|
PdpCta_default.cta,
|
|
774
781
|
PdpCta_default[`variant-${variant}`],
|
|
775
|
-
className
|
|
782
|
+
className
|
|
776
783
|
].filter(Boolean).join(" ");
|
|
777
784
|
if (variant === "loading") {
|
|
778
|
-
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className:
|
|
785
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: rootClass, role: "status", "aria-label": "Loading", "aria-busy": "true", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: PdpCta_default.spinner, "aria-hidden": "true" }) });
|
|
779
786
|
}
|
|
780
|
-
const
|
|
787
|
+
const isDisabled = variant === "disabled";
|
|
788
|
+
const isWhiteText = variant === "default" || variant === "complete";
|
|
789
|
+
const labelClass = [
|
|
790
|
+
PdpCta_default.label,
|
|
791
|
+
isWhiteText ? PdpCta_default["label-white"] : "",
|
|
792
|
+
isDisabled ? PdpCta_default["label-disabled"] : ""
|
|
793
|
+
].filter(Boolean).join(" ");
|
|
781
794
|
if (variant === "complete") {
|
|
782
|
-
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className:
|
|
783
|
-
icon && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: PdpCta_default.
|
|
784
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className:
|
|
795
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: rootClass, children: [
|
|
796
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: PdpCta_default.iconWrap, "aria-hidden": "true", children: icon }),
|
|
797
|
+
bullet && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: PdpCta_default.bulletWrap, "aria-hidden": "true", children: bullet }),
|
|
798
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: labelClass, children: label })
|
|
785
799
|
] });
|
|
786
800
|
}
|
|
801
|
+
if (variant === "link") {
|
|
802
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
803
|
+
"button",
|
|
804
|
+
{
|
|
805
|
+
ref,
|
|
806
|
+
className: rootClass,
|
|
807
|
+
onClick,
|
|
808
|
+
type: "button",
|
|
809
|
+
children: [
|
|
810
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: PdpCta_default.iconWrap, "aria-hidden": "true", children: icon }),
|
|
811
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: PdpCta_default.label, children: label }),
|
|
812
|
+
price && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
|
|
813
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: PdpCta_default.separator, "aria-hidden": "true", children: "\xB7" }),
|
|
814
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: PdpCta_default.label, children: price })
|
|
815
|
+
] })
|
|
816
|
+
]
|
|
817
|
+
}
|
|
818
|
+
);
|
|
819
|
+
}
|
|
787
820
|
if (variant === "outline") {
|
|
788
|
-
return /* @__PURE__ */ (0, import_jsx_runtime11.
|
|
821
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
789
822
|
"button",
|
|
790
823
|
{
|
|
791
824
|
ref,
|
|
792
|
-
className:
|
|
825
|
+
className: rootClass,
|
|
793
826
|
onClick,
|
|
794
827
|
type: "button",
|
|
795
|
-
children:
|
|
828
|
+
children: [
|
|
829
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: PdpCta_default.iconWrap, "aria-hidden": "true", children: icon }),
|
|
830
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: PdpCta_default.label, children: label })
|
|
831
|
+
]
|
|
796
832
|
}
|
|
797
833
|
);
|
|
798
834
|
}
|
|
@@ -800,14 +836,17 @@ var PdpCta = import_react11.default.forwardRef(
|
|
|
800
836
|
"button",
|
|
801
837
|
{
|
|
802
838
|
ref,
|
|
803
|
-
className:
|
|
839
|
+
className: rootClass,
|
|
804
840
|
onClick,
|
|
805
841
|
disabled: isDisabled,
|
|
806
842
|
type: "button",
|
|
807
843
|
children: [
|
|
808
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className:
|
|
809
|
-
|
|
810
|
-
price && /* @__PURE__ */ (0, import_jsx_runtime11.
|
|
844
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: PdpCta_default.iconWrap, "aria-hidden": "true", children: icon }),
|
|
845
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: labelClass, children: label }),
|
|
846
|
+
price && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
|
|
847
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: [PdpCta_default.separator, isWhiteText ? PdpCta_default["label-white"] : "", isDisabled ? PdpCta_default["label-disabled"] : ""].filter(Boolean).join(" "), "aria-hidden": "true", children: "\xB7" }),
|
|
848
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: labelClass, children: price })
|
|
849
|
+
] })
|
|
811
850
|
]
|
|
812
851
|
}
|
|
813
852
|
);
|
|
@@ -5275,6 +5314,66 @@ var CommonPrice = import_react119.default.forwardRef(
|
|
|
5275
5314
|
({ price = "discount", line = "1", className }, ref) => /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("div", { ref, className: [CommonPrice_default.root, className].filter(Boolean).join(" "), "data-price": price, "data-line": line })
|
|
5276
5315
|
);
|
|
5277
5316
|
CommonPrice.displayName = "CommonPrice";
|
|
5317
|
+
|
|
5318
|
+
// src/components/MobilePlp/MobilePlp.tsx
|
|
5319
|
+
var import_react120 = __toESM(require("react"));
|
|
5320
|
+
|
|
5321
|
+
// src/components/MobilePlp/MobilePlp.module.css
|
|
5322
|
+
var MobilePlp_default = {
|
|
5323
|
+
root: "MobilePlp_root"
|
|
5324
|
+
};
|
|
5325
|
+
|
|
5326
|
+
// src/components/MobilePlp/MobilePlp.tsx
|
|
5327
|
+
var import_jsx_runtime170 = require("react/jsx-runtime");
|
|
5328
|
+
var MobilePlp = import_react120.default.forwardRef(
|
|
5329
|
+
({ state = "standard", plpCase = "beforelogin", className }, ref) => /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { ref, className: [MobilePlp_default.root, className].filter(Boolean).join(" "), "data-state": state, "data-case": plpCase })
|
|
5330
|
+
);
|
|
5331
|
+
MobilePlp.displayName = "MobilePlp";
|
|
5332
|
+
|
|
5333
|
+
// src/components/MobileProductInfo/MobileProductInfo.tsx
|
|
5334
|
+
var import_react121 = __toESM(require("react"));
|
|
5335
|
+
|
|
5336
|
+
// src/components/MobileProductInfo/MobileProductInfo.module.css
|
|
5337
|
+
var MobileProductInfo_default = {
|
|
5338
|
+
root: "MobileProductInfo_root"
|
|
5339
|
+
};
|
|
5340
|
+
|
|
5341
|
+
// src/components/MobileProductInfo/MobileProductInfo.tsx
|
|
5342
|
+
var import_jsx_runtime171 = require("react/jsx-runtime");
|
|
5343
|
+
var MobileProductInfo = import_react121.default.forwardRef(
|
|
5344
|
+
({ template = "standard", color = "x", className }, ref) => /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("div", { ref, className: [MobileProductInfo_default.root, className].filter(Boolean).join(" "), "data-template": template, "data-color": color })
|
|
5345
|
+
);
|
|
5346
|
+
MobileProductInfo.displayName = "MobileProductInfo";
|
|
5347
|
+
|
|
5348
|
+
// src/components/PlpTabBar/PlpTabBar.tsx
|
|
5349
|
+
var import_react122 = __toESM(require("react"));
|
|
5350
|
+
|
|
5351
|
+
// src/components/PlpTabBar/PlpTabBar.module.css
|
|
5352
|
+
var PlpTabBar_default = {
|
|
5353
|
+
root: "PlpTabBar_root"
|
|
5354
|
+
};
|
|
5355
|
+
|
|
5356
|
+
// src/components/PlpTabBar/PlpTabBar.tsx
|
|
5357
|
+
var import_jsx_runtime172 = require("react/jsx-runtime");
|
|
5358
|
+
var PlpTabBar = import_react122.default.forwardRef(
|
|
5359
|
+
({ className }, ref) => /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("div", { ref, className: [PlpTabBar_default.root, className].filter(Boolean).join(" ") })
|
|
5360
|
+
);
|
|
5361
|
+
PlpTabBar.displayName = "PlpTabBar";
|
|
5362
|
+
|
|
5363
|
+
// src/components/PlpTabItem/PlpTabItem.tsx
|
|
5364
|
+
var import_react123 = __toESM(require("react"));
|
|
5365
|
+
|
|
5366
|
+
// src/components/PlpTabItem/PlpTabItem.module.css
|
|
5367
|
+
var PlpTabItem_default = {
|
|
5368
|
+
root: "PlpTabItem_root"
|
|
5369
|
+
};
|
|
5370
|
+
|
|
5371
|
+
// src/components/PlpTabItem/PlpTabItem.tsx
|
|
5372
|
+
var import_jsx_runtime173 = require("react/jsx-runtime");
|
|
5373
|
+
var PlpTabItem = import_react123.default.forwardRef(
|
|
5374
|
+
({ state = "default", className }, ref) => /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("div", { ref, className: [PlpTabItem_default.root, className].filter(Boolean).join(" "), "data-state": state })
|
|
5375
|
+
);
|
|
5376
|
+
PlpTabItem.displayName = "PlpTabItem";
|
|
5278
5377
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5279
5378
|
0 && (module.exports = {
|
|
5280
5379
|
Badge,
|
|
@@ -5392,6 +5491,8 @@ CommonPrice.displayName = "CommonPrice";
|
|
|
5392
5491
|
MobileCheckbox,
|
|
5393
5492
|
MobileCountInput,
|
|
5394
5493
|
MobileCounter,
|
|
5494
|
+
MobilePlp,
|
|
5495
|
+
MobileProductInfo,
|
|
5395
5496
|
OnboardingAddress,
|
|
5396
5497
|
OnboardingCta,
|
|
5397
5498
|
OrderInfo,
|
|
@@ -5420,6 +5521,8 @@ CommonPrice.displayName = "CommonPrice";
|
|
|
5420
5521
|
PdpSizeQty,
|
|
5421
5522
|
PdpVendorBtn,
|
|
5422
5523
|
PdpVendorSection,
|
|
5524
|
+
PlpTabBar,
|
|
5525
|
+
PlpTabItem,
|
|
5423
5526
|
PrepackBadge,
|
|
5424
5527
|
ProductCard,
|
|
5425
5528
|
ProductPrice,
|