@nuskin/react-loyalty-elements 1.0.11-nge1-1242.14 → 1.1.0-dev-sea.1
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/CircularProgressBar/ApproximateMonthlyAmount.d.ts +14 -0
- package/dist/CircularProgressBar/AvailableVouchers.d.ts +3 -2
- package/dist/CircularProgressBar/CircularProgressBar.styled.d.ts +4 -0
- package/dist/CircularProgressBar/LoyaltyRewardsHeader.d.ts +10 -0
- package/dist/CircularProgressBar/index.d.ts +2 -0
- package/dist/CircularProgressBar/index.js +1 -1
- package/dist/CircularProgressBar/index.js.map +1 -1
- package/dist/CircularProgressBar/index.mjs +1 -1
- package/dist/CircularProgressBar/index.mjs.map +1 -1
- package/dist/CircularProgressBar/specs/LoyaltyRewardsHeader.spec.d.ts +1 -0
- package/dist/CircularProgressBar/types.d.ts +12 -0
- package/dist/GiftProgressBar/GiftProgressBar.d.ts +4 -0
- package/dist/GiftProgressBar/GiftProgressBar.styled.d.ts +13 -0
- package/dist/GiftProgressBar/GiftProgressBarMobile.d.ts +4 -0
- package/dist/GiftProgressBar/GiftProgressBarMonthDescription.d.ts +5 -0
- package/dist/GiftProgressBar/GiftReward.d.ts +4 -0
- package/dist/GiftProgressBar/GiftWheelCenterContent.d.ts +16 -0
- package/dist/GiftProgressBar/index.d.ts +4 -0
- package/dist/GiftProgressBar/index.js +12 -0
- package/dist/GiftProgressBar/index.js.map +1 -0
- package/dist/GiftProgressBar/index.mjs +1 -0
- package/dist/GiftProgressBar/index.mjs.map +1 -0
- package/dist/GiftProgressBar/logic/calculateGiftMonthCompletion.d.ts +9 -0
- package/dist/GiftProgressBar/logic/readGiftProperties.d.ts +9 -0
- package/dist/GiftProgressBar/specs/GiftProgressBar.spec.d.ts +1 -0
- package/dist/GiftProgressBar/specs/GiftProgressBarMobile.spec.d.ts +1 -0
- package/dist/GiftProgressBar/specs/GiftProgressBarMonthDescription.spec.d.ts +1 -0
- package/dist/GiftProgressBar/specs/GiftReward.spec.d.ts +1 -0
- package/dist/GiftProgressBar/specs/readGiftProperties.spec.d.ts +1 -0
- package/dist/GiftProgressBar/types.d.ts +86 -0
- package/dist/GiftRoadmap/GiftRoadmap.d.ts +4 -0
- package/dist/GiftRoadmap/GiftRoadmap.styled.d.ts +28 -0
- package/dist/GiftRoadmap/index.d.ts +2 -0
- package/dist/GiftRoadmap/index.js +12 -0
- package/dist/GiftRoadmap/index.js.map +1 -0
- package/dist/GiftRoadmap/index.mjs +1 -0
- package/dist/GiftRoadmap/index.mjs.map +1 -0
- package/dist/GiftRoadmap/specs/GiftRoadmap.spec.d.ts +1 -0
- package/dist/GiftRoadmap/types.d.ts +19 -0
- package/dist/Icons/GiftBlackFilledIcon.d.ts +2 -0
- package/dist/Icons/GiftDisabledIcon.d.ts +2 -0
- package/dist/Icons/GiftIcon.d.ts +2 -0
- package/dist/Icons/GiftWhiteFilledIcon.d.ts +2 -0
- package/dist/Icons/VoucherIcon.d.ts +2 -0
- package/dist/Icons/index.d.ts +5 -0
- package/dist/Icons/index.js +1 -0
- package/dist/Icons/index.js.map +1 -0
- package/dist/Icons/index.mjs +1 -0
- package/dist/Icons/index.mjs.map +1 -0
- package/dist/Icons/specs/GiftIcons.spec.d.ts +1 -0
- package/dist/SubscriptionRewardBanner/index.mjs +1 -1
- package/dist/SubscriptionRewardBanner/index.mjs.map +1 -1
- package/dist/SubscriptionRewardModal/index.mjs +1 -1
- package/dist/SubscriptionRewardModal/index.mjs.map +1 -1
- package/dist/chunk-73SFLUWV.mjs +1 -0
- package/dist/chunk-73SFLUWV.mjs.map +1 -0
- package/dist/chunk-CBUBKPM6.mjs +1 -0
- package/dist/chunk-CBUBKPM6.mjs.map +1 -0
- package/dist/chunk-D3ZWLTS2.mjs +1 -0
- package/dist/chunk-D3ZWLTS2.mjs.map +1 -0
- package/dist/chunk-M6F5BD5Q.mjs +1 -0
- package/dist/chunk-M6F5BD5Q.mjs.map +1 -0
- package/dist/chunk-PN67M2PP.mjs +12 -0
- package/dist/chunk-PN67M2PP.mjs.map +1 -0
- package/dist/chunk-SX6PSEGE.mjs +1 -0
- package/dist/chunk-SX6PSEGE.mjs.map +1 -0
- package/dist/chunk-THTK5CGU.mjs +1 -0
- package/dist/chunk-THTK5CGU.mjs.map +1 -0
- package/dist/chunk-TURO34CN.mjs +1 -0
- package/dist/chunk-TURO34CN.mjs.map +1 -0
- package/dist/chunk-W3CMY6UZ.mjs +1 -0
- package/dist/chunk-W3CMY6UZ.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/Utils/translation.d.ts +0 -15
- package/dist/chunk-Z6ATMGBY.mjs +0 -12
- package/dist/chunk-Z6ATMGBY.mjs.map +0 -1
- /package/dist/{Utils/specs/translation.spec.d.ts → GiftProgressBar/specs/calculateGiftMonthCompletion.spec.d.ts} +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type ApproximateMonthlyAmountProps = Readonly<{
|
|
2
|
+
approximateMonthlyText: string;
|
|
3
|
+
amountShowText: string;
|
|
4
|
+
estimateDisclaimer?: string;
|
|
5
|
+
}>;
|
|
6
|
+
/**
|
|
7
|
+
* "Approximate Monthly Total: $X (i)" line with its disclaimer tooltip. Shared by
|
|
8
|
+
* RewardSubscriptionTotal (voucher-only card) and LoyaltyRewardsHeader (combined card) so the two
|
|
9
|
+
* places that show this figure can't drift apart.
|
|
10
|
+
*/
|
|
11
|
+
declare const ApproximateMonthlyAmount: ({ approximateMonthlyText, amountShowText, estimateDisclaimer, }: ApproximateMonthlyAmountProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default ApproximateMonthlyAmount;
|
|
13
|
+
export { ApproximateMonthlyAmount };
|
|
14
|
+
export type { ApproximateMonthlyAmountProps };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { LoyaltyProps } from './types';
|
|
1
|
+
import { LoyaltyProps, TranslationConfig } from './types';
|
|
2
2
|
type AvailableVouchersProps = Readonly<{
|
|
3
3
|
loyaltyData?: LoyaltyProps;
|
|
4
|
+
translationConfig?: Pick<TranslationConfig, 'voucherAvailable' | 'voucherExpires'>;
|
|
4
5
|
}>;
|
|
5
|
-
declare const AvailableVouchers: ({ loyaltyData }: Readonly<AvailableVouchersProps>) => import("react/jsx-runtime").JSX.Element | null;
|
|
6
|
+
declare const AvailableVouchers: ({ loyaltyData, translationConfig }: Readonly<AvailableVouchersProps>) => import("react/jsx-runtime").JSX.Element | null;
|
|
6
7
|
export default AvailableVouchers;
|
|
7
8
|
export { AvailableVouchers };
|
|
@@ -15,6 +15,10 @@ export declare const Learn3XLink: import("@emotion/styled").StyledComponent<{
|
|
|
15
15
|
theme?: import("@emotion/react").Theme | undefined;
|
|
16
16
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
17
17
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
18
|
+
export declare const LoyaltyRewardsHeaderContainer: import("@emotion/styled").StyledComponent<{
|
|
19
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
20
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
21
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
18
22
|
export declare const ProgressBarCenter: import("@emotion/styled").StyledComponent<{
|
|
19
23
|
theme?: import("@emotion/react").Theme | undefined;
|
|
20
24
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LoyaltyRewardsHeaderProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Shared header for the combined voucher + gift card. Presentational only — `amountShow` is the
|
|
4
|
+
* same value the widgets already read off `approximateMonthlyTotalResponse`, so no streak
|
|
5
|
+
* calculation is repeated here. The threshold warnings stay per-widget because the voucher and the
|
|
6
|
+
* gift qualify at different amounts.
|
|
7
|
+
*/
|
|
8
|
+
declare const LoyaltyRewardsHeader: (props: LoyaltyRewardsHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default LoyaltyRewardsHeader;
|
|
10
|
+
export { LoyaltyRewardsHeader };
|