@wlloyalty/wll-react-sdk 1.0.28 → 1.0.30

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.d.ts CHANGED
@@ -4,13 +4,21 @@ import { ViewStyle, ImageSourcePropType, StyleProp, View, TextProps as TextProps
4
4
  import * as LucideIcons from 'lucide-react';
5
5
 
6
6
  declare const sizes: {
7
- borderRadiusSm: number;
8
- borderRadiusLg: number;
9
- borderRadiusButton: number;
10
- borderRadiusRounded: number;
11
- sm: number;
12
- md: number;
13
- lg: number;
7
+ readonly borderRadiusSm: 15;
8
+ readonly borderRadiusLg: 20;
9
+ readonly borderRadiusButton: 9;
10
+ readonly borderRadiusRounded: 9999;
11
+ readonly xxxs: 4;
12
+ readonly xxs: 8;
13
+ readonly xs: 10;
14
+ readonly sm: 12;
15
+ readonly md: 14;
16
+ readonly lg: 16;
17
+ readonly xl: 18;
18
+ readonly xxl: 24;
19
+ readonly xxxl: 32;
20
+ readonly xxxxl: 40;
21
+ readonly xxxxxl: 60;
14
22
  };
15
23
 
16
24
  type PercentageKey = 5 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 95;
@@ -381,15 +389,20 @@ type TileContainerProps = {
381
389
  };
382
390
  declare const TileContainer: React$1.FC<TileContainerProps>;
383
391
 
384
- declare const Column: React.FC<LayoutProps>;
392
+ declare const Column: FC<LayoutProps>;
385
393
 
386
- declare const Row: React.FC<LayoutProps>;
394
+ declare const Row: FC<LayoutProps>;
395
+
396
+ type FlexBoxProps = {
397
+ children: React__default.ReactNode;
398
+ };
399
+ declare const FlexBox: ({ children }: FlexBoxProps) => React__default.JSX.Element;
387
400
 
388
401
  declare const Stack: React.FC<LayoutProps>;
389
402
 
390
403
  type FlexDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse';
391
404
  type Justify = 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly';
392
- type Align = 'start' | 'end' | 'center' | 'stretch';
405
+ type Align = 'start' | 'end' | 'center' | 'stretch' | 'baseline';
393
406
  type LayoutProps = {
394
407
  children: React.ReactNode;
395
408
  justify?: Justify;
@@ -462,6 +475,17 @@ type BadgeTileComponent = FC<BadgeTileProps> & {
462
475
  };
463
476
  declare const BadgeTile: BadgeTileComponent;
464
477
 
478
+ declare const BannerTileCTA: FC;
479
+
480
+ declare const BannerTileDescription: FC;
481
+
482
+ type BannerTileMediaProps = {
483
+ isArtworkOnly: boolean;
484
+ };
485
+ declare const BannerTileMedia: React__default.FC<BannerTileMediaProps>;
486
+
487
+ declare const BannerTileTitle: FC;
488
+
465
489
  type BannerTileProps = {
466
490
  tile: Tile;
467
491
  };
@@ -471,30 +495,31 @@ declare const BannerTile: React$1.FC<BannerTileProps> & {
471
495
  Description: typeof BannerTileDescription;
472
496
  CTA: typeof BannerTileCTA;
473
497
  };
474
- declare const BannerTileMedia: React$1.FC;
475
- declare const BannerTileTitle: React$1.FC;
476
- declare const BannerTileDescription: React$1.FC;
477
- declare const BannerTileCTA: React$1.FC;
498
+
499
+ declare const ContentTileBody: FC;
500
+
501
+ declare const ContentTileContent: FC<{
502
+ children: ReactNode;
503
+ }>;
504
+
505
+ declare const ContentTileHeader: FC;
506
+
507
+ declare const ContentTileMedia: FC;
508
+
509
+ declare const ContentTileRoot: FC<{
510
+ children: ReactNode;
511
+ }>;
478
512
 
479
513
  type ContentTileProps = {
480
514
  tile: Tile;
481
515
  };
482
- type ContentTileComponent = React$1.FC<ContentTileProps> & {
516
+ type ContentTileComponent = FC<ContentTileProps> & {
483
517
  Root: typeof ContentTileRoot;
484
518
  Media: typeof ContentTileMedia;
485
519
  Content: typeof ContentTileContent;
486
520
  Header: typeof ContentTileHeader;
487
521
  Body: typeof ContentTileBody;
488
522
  };
489
- declare const ContentTileRoot: React$1.FC<{
490
- children: React$1.ReactNode;
491
- }>;
492
- declare const ContentTileMedia: React$1.FC;
493
- declare const ContentTileContent: React$1.FC<{
494
- children: React$1.ReactNode;
495
- }>;
496
- declare const ContentTileHeader: React$1.FC;
497
- declare const ContentTileBody: React$1.FC;
498
523
  declare const ContentTile: ContentTileComponent;
499
524
 
500
525
  type GroupProps = {
@@ -502,50 +527,59 @@ type GroupProps = {
502
527
  };
503
528
  declare const Group: React__default.FC<GroupProps>;
504
529
 
530
+ declare const PointsTileFormattedPoints: React$1.FC;
531
+
532
+ declare const PointsTileTitle: FC;
533
+
534
+ type PointsTileMediaProps = {
535
+ isFullSize: boolean;
536
+ };
537
+ declare const PointsTileMedia: FC<PointsTileMediaProps>;
538
+
505
539
  type PointsTileProps = {
506
540
  tile: Tile;
507
541
  };
508
- declare const PointsTile: React$1.FC<PointsTileProps> & {
542
+ declare const PointsTile: FC<PointsTileProps> & {
509
543
  Title: typeof PointsTileTitle;
510
- Points: typeof PointsTilePoints;
511
- Image: typeof PointsTileImage;
544
+ Points: typeof PointsTileFormattedPoints;
545
+ Media: typeof PointsTileMedia;
512
546
  };
513
- declare const PointsTileTitle: React$1.FC;
514
- declare const PointsTilePoints: React$1.FC;
515
- type PointTileImageProps = {
516
- isFullSize: boolean;
517
- };
518
- declare const PointsTileImage: React$1.FC<PointTileImageProps>;
547
+
548
+ declare const RewardCategoryHeader: FC;
549
+
550
+ declare const RewardCategoryMedia: FC;
519
551
 
520
552
  type RewardCategoryTileProps = {
521
553
  tile: Tile;
522
554
  };
523
555
  declare const RewardCategoryTile: React$1.FC<RewardCategoryTileProps> & {
524
556
  Header: typeof RewardCategoryHeader;
525
- Background: typeof RewardCategoryBackground;
557
+ Media: typeof RewardCategoryMedia;
558
+ };
559
+
560
+ declare const RewardTileChevron: FC;
561
+
562
+ declare const RewardTileSummary: FC;
563
+
564
+ type RewardTileMediaProps = {
565
+ isArtworkOnly: boolean;
526
566
  };
527
- declare const RewardCategoryHeader: React$1.FC;
528
- declare const RewardCategoryBackground: React$1.FC;
567
+ declare const RewardTileMedia: FC<RewardTileMediaProps>;
568
+
569
+ declare const RewardTilePoints: FC;
570
+
571
+ declare const RewardTileTitle: FC;
529
572
 
530
573
  type RewardTileProps = {
531
574
  tile: Tile;
532
575
  };
533
- declare const RewardTile: React$1.FC<RewardTileProps> & {
576
+ declare const RewardTile: FC<RewardTileProps> & {
534
577
  Media: typeof RewardTileMedia;
535
578
  Title: typeof RewardTileTitle;
536
- Description: typeof RewardTileDescription;
579
+ Summary: typeof RewardTileSummary;
537
580
  Points: typeof RewardTilePoints;
538
581
  Chevron: typeof RewardTileChevron;
539
- Content: typeof RewardTileContent;
540
582
  };
541
- declare const RewardTileMedia: React$1.FC;
542
- declare const RewardTileTitle: React$1.FC;
543
- declare const RewardTileDescription: React$1.FC;
544
- declare const RewardTilePoints: React$1.FC;
545
- declare const RewardTileContent: React$1.FC<{
546
- children: React$1.ReactNode;
547
- }>;
548
- declare const RewardTileChevron: React$1.FC;
549
583
 
550
584
  type SectionProps = {
551
585
  section: TSection;
@@ -615,4 +649,4 @@ type WllSdkProviderProps = {
615
649
  declare const WllSdkProvider: React__default.FC<WllSdkProviderProps>;
616
650
  declare const useWllSdk: () => WllSdkContextType;
617
651
 
618
- export { type APIResponse, type Availability, type Badge, type BadgeDetail, BadgeTileConfig, BadgeTileType, BadgeTile as BadgeTileUpdated, BannerTile, BannerTileConfig, BaseBanner, type BaseThemeObject, BaseTile, Button, CTALinkTarget, Carousel, Column, Column$1 as Content, ContentTile, ContentTileConfig, type DerivedProperties, Grid, Group, Icon, type ImagePropsNoSource, Indicator, type LayoutProps, LoadingIndicator, type NavigationConfig, type NavigationType, PointsTile, PointsTileConfig, type ProgessType, ProgressBar, ProgressIndicator, ProgressType, ProgressiveImage, Reward, type RewardCategory, RewardCategoryTile, RewardCategoryTileConfig, RewardTile, RewardTileConfig, Row, RowHeader, type SDKConfig, Section, SectionHeader, SectionType, type Size, Skeleton, Stack, type TGroup, type TSection, Text, type ThemeContextType, type ThemeObject, type ThemeProviderProps, TierTileConfig, TierTileType, TierTile as TierTileUpdated, type TierType, type Tile, type TileConfig, TileContainer, TileHeight, TileType, type Variant, WllSdkProvider, useWllSdk };
652
+ export { type APIResponse, type Availability, type Badge, type BadgeDetail, BadgeTile, BadgeTileConfig, BadgeTileType, BannerTile, BannerTileConfig, BaseBanner, type BaseThemeObject, BaseTile, Button, CTALinkTarget, Carousel, Column, Column$1 as Content, ContentTile, ContentTileConfig, type DerivedProperties, FlexBox, Grid, Group, Icon, type ImagePropsNoSource, Indicator, type LayoutProps, LoadingIndicator, type NavigationConfig, type NavigationType, PointsTile, PointsTileConfig, type ProgessType, ProgressBar, ProgressIndicator, ProgressType, ProgressiveImage, Reward, type RewardCategory, RewardCategoryTile, RewardCategoryTileConfig, RewardTile, RewardTileConfig, Row, RowHeader, type SDKConfig, Section, SectionHeader, SectionType, type Size, Skeleton, Stack, type TGroup, type TSection, Text, type ThemeContextType, type ThemeObject, type ThemeProviderProps, TierTileConfig, TierTileType, TierTile as TierTileUpdated, type TierType, type Tile, type TileConfig, TileContainer, TileHeight, TileType, type Variant, WllSdkProvider, useWllSdk };