yt-uikit 0.9.8 → 0.9.9-catalog.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.
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import "./Loader.css";
3
+ interface LoaderProps {
4
+ size?: number;
5
+ color?: string;
6
+ thickness?: number;
7
+ centered?: boolean;
8
+ }
9
+ export default function Loader({ size, color, thickness, centered, }: LoaderProps): React.JSX.Element;
10
+ export {};
@@ -0,0 +1,60 @@
1
+ import React from "react";
2
+ import "./fonts.css";
3
+ import "./LoyaltyProductCatalog.css";
4
+ export type CatalogDisplayMode = "wrap" | "grid" | "scroll";
5
+ export type CatalogTextAlignment = "left" | "center" | "right";
6
+ export interface LoyaltyCatalogTier {
7
+ id: string | number;
8
+ value: number;
9
+ label?: string;
10
+ }
11
+ export interface LoyaltyCatalogProduct {
12
+ id: string | number;
13
+ imageUrl: string;
14
+ title: string;
15
+ description?: string;
16
+ disabled?: boolean;
17
+ coinsRequired: number;
18
+ price?: string | number;
19
+ mrp?: string | number;
20
+ rating?: number;
21
+ reviewCount?: number;
22
+ buttonText?: string;
23
+ onButtonClick?: (product: LoyaltyCatalogProduct) => void | Promise<void>;
24
+ }
25
+ export interface LoyaltyProductCatalogConfig {
26
+ filterBy?: string;
27
+ selectType?: string;
28
+ selectCampaign?: string;
29
+ selectCollection?: string;
30
+ subheading?: string;
31
+ sectionTitle?: string;
32
+ catalogBanner?: string;
33
+ coinBalance?: string | number;
34
+ coinBalanceLabel?: string;
35
+ coinIconUrl?: string;
36
+ display?: CatalogDisplayMode;
37
+ alignment?: CatalogTextAlignment;
38
+ titleFontSize?: number;
39
+ titleColor?: string;
40
+ subtitleColor?: string;
41
+ tabBackgroundColor?: string;
42
+ tabActiveColor?: string;
43
+ tabActiveTextColor?: string;
44
+ tabTextColor?: string;
45
+ cardBackgroundColor?: string;
46
+ buttonColor?: string;
47
+ buttonTextColor?: string;
48
+ buttonBorderColor?: string;
49
+ borderColor?: string;
50
+ roundness?: number;
51
+ tiers: LoyaltyCatalogTier[];
52
+ selectedTierId?: string | number;
53
+ onTierChange?: (tier: LoyaltyCatalogTier) => void;
54
+ products: LoyaltyCatalogProduct[];
55
+ ctaText?: string;
56
+ }
57
+ declare const LoyaltyProductCatalog: ({ config, }: {
58
+ config: LoyaltyProductCatalogConfig;
59
+ }) => React.JSX.Element;
60
+ export default LoyaltyProductCatalog;
@@ -0,0 +1,2 @@
1
+ export { default as LoyaltyProductCatalog } from "./LoyaltyProductCatalog";
2
+ export type { LoyaltyProductCatalogConfig, LoyaltyCatalogProduct, LoyaltyCatalogTier, CatalogDisplayMode, CatalogTextAlignment, } from "./LoyaltyProductCatalog";
@@ -3,5 +3,7 @@ export { default as SpinnerWheel } from "./SpinnerWheel";
3
3
  export { default as Cart } from "./Cart";
4
4
  export { default as Bundle } from "./BundleBlock";
5
5
  export { default as BundleLoader } from "./BundleBlock/Loader";
6
+ export { LoyaltyProductCatalog as LoyaltyProductCatalog } from "./Loyalty";
7
+ export type { LoyaltyProductCatalogConfig, LoyaltyCatalogProduct, LoyaltyCatalogTier, CatalogDisplayMode, CatalogTextAlignment, } from "./Loyalty";
6
8
  export { default as LoyaltyPageBlock, LoyaltyPageConfigType, BrandConfigType, } from "./LoyaltyPageBlock/LoyaltyPageBlock";
7
9
  export { default as ProductOffers, ProductsOffersConfigType, CartCheckpoint, } from "./ProductOffersBlock/ProductsOffers";