yt-uikit 0.10.126 → 0.10.128
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/esm/components/Cart/{FreebieVariantDropdown.d.ts → VariantDropDown.d.ts} +2 -2
- package/dist/esm/components/Loyalty/PointEarnBadge.d.ts +3 -1
- package/dist/esm/components/Loyalty/PointRedeemBadge.d.ts +17 -0
- package/dist/esm/components/Loyalty/index.d.ts +1 -0
- package/dist/esm/components/Loyalty/styles/PointRedeemBadge.styles.d.ts +3 -0
- package/dist/esm/components/index.d.ts +1 -0
- package/dist/esm/index.js +540 -537
- package/dist/esm/utils/freebieUtils.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { CustomVariantOptions } from "../../utils/customVariantOptions";
|
|
3
|
-
interface
|
|
3
|
+
interface VariantDropDownProps {
|
|
4
4
|
product: any;
|
|
5
5
|
variants: any[];
|
|
6
6
|
selectedVariantId?: string;
|
|
@@ -9,5 +9,5 @@ interface FreebieVariantDropdownProps {
|
|
|
9
9
|
isFreebie?: boolean;
|
|
10
10
|
classNamePrefix?: string;
|
|
11
11
|
}
|
|
12
|
-
declare const _default: React.NamedExoticComponent<
|
|
12
|
+
declare const _default: React.NamedExoticComponent<VariantDropDownProps>;
|
|
13
13
|
export default _default;
|
|
@@ -3,6 +3,7 @@ export type PointEarnBadgeAlignment = "left" | "center" | "right";
|
|
|
3
3
|
export interface PointEarnBadgeProps {
|
|
4
4
|
prefix?: string;
|
|
5
5
|
iconUrl?: string;
|
|
6
|
+
showIcon?: boolean;
|
|
6
7
|
suffix?: string;
|
|
7
8
|
coinsEarned?: number | string;
|
|
8
9
|
widgetBackground?: string;
|
|
@@ -11,5 +12,6 @@ export interface PointEarnBadgeProps {
|
|
|
11
12
|
borderColor?: string;
|
|
12
13
|
badgeRoundness?: string | number;
|
|
13
14
|
fontSize?: string | number;
|
|
15
|
+
tooltipMessage?: string;
|
|
14
16
|
}
|
|
15
|
-
export default function PointEarnBadge({ prefix, iconUrl, suffix, coinsEarned, widgetBackground, alignment, textColor, borderColor, badgeRoundness, fontSize, }: PointEarnBadgeProps): React.JSX.Element;
|
|
17
|
+
export default function PointEarnBadge({ prefix, iconUrl, showIcon, suffix, coinsEarned, widgetBackground, alignment, textColor, borderColor, badgeRoundness, fontSize, tooltipMessage, }: PointEarnBadgeProps): React.JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type PointRedeemBadgeAlignment = "left" | "center" | "right";
|
|
3
|
+
export interface PointRedeemBadgeProps {
|
|
4
|
+
prefix?: string;
|
|
5
|
+
suffix?: string;
|
|
6
|
+
priceValue?: number | string;
|
|
7
|
+
coinValue?: number | string;
|
|
8
|
+
coinIcon?: string;
|
|
9
|
+
showIcon?: boolean;
|
|
10
|
+
widgetBackground?: string;
|
|
11
|
+
alignment?: PointRedeemBadgeAlignment;
|
|
12
|
+
textColor?: string;
|
|
13
|
+
borderColor?: string;
|
|
14
|
+
badgeRoundness?: string | number;
|
|
15
|
+
fontSize?: string | number;
|
|
16
|
+
}
|
|
17
|
+
export default function PointRedeemBadge({ prefix, suffix, priceValue, coinValue, coinIcon, showIcon, widgetBackground, alignment, textColor, borderColor, badgeRoundness, fontSize, }: PointRedeemBadgeProps): React.JSX.Element;
|
|
@@ -4,6 +4,7 @@ export { default as RewardsModal } from "./RewardsModal";
|
|
|
4
4
|
export { default as LoyaltyWidget } from "./LoyaltyWidget";
|
|
5
5
|
export { default as LoyaltyProductCatalog } from "./LoyaltyProductCatalog";
|
|
6
6
|
export { default as PointEarnBadge } from "./PointEarnBadge";
|
|
7
|
+
export { default as PointRedeemBadge } from "./PointRedeemBadge";
|
|
7
8
|
export { default as AccountBlock } from "./AccountBlock";
|
|
8
9
|
export { default as AccountOrderHistory } from "./AccountOrderHistory";
|
|
9
10
|
export { default as AccountAddresses } from "./AccountAddresses";
|
|
@@ -11,6 +11,7 @@ export { RewardsModal as RewardsModal } from "./Loyalty";
|
|
|
11
11
|
export { LoyaltyWidget as LoyaltyWidget } from "./Loyalty";
|
|
12
12
|
export { LoyaltyProductCatalog as LoyaltyProductCatalog } from "./Loyalty";
|
|
13
13
|
export { PointEarnBadge as PointEarnBadge } from "./Loyalty";
|
|
14
|
+
export { PointRedeemBadge as PointRedeemBadge } from "./Loyalty";
|
|
14
15
|
export { AccountBlock as AccountBlock } from "./Loyalty";
|
|
15
16
|
export { AccountLoginForm as AccountLoginForm } from "./Loyalty";
|
|
16
17
|
export type { AccountBlockProps, AccountTabId, AccountCustomHtmlConfig, AccountRewardsSectionId, AccountUser, AccountOrder, AccountOrderLineItem, AccountAddress, AccountAddressType, AccountAddressPayload, AccountOption, AccountProfilePayload, AccountNotificationPreference, AccountRewardsConfig, AccountLoginAuthType, AccountLoginFormProps, AccountLoginIdentity, } from "./Loyalty";
|