@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 +82 -48
- package/dist/index.js +457 -362
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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:
|
|
8
|
-
borderRadiusLg:
|
|
9
|
-
borderRadiusButton:
|
|
10
|
-
borderRadiusRounded:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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:
|
|
392
|
+
declare const Column: FC<LayoutProps>;
|
|
385
393
|
|
|
386
|
-
declare const Row:
|
|
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
|
-
|
|
475
|
-
declare const
|
|
476
|
-
|
|
477
|
-
declare const
|
|
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 =
|
|
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:
|
|
542
|
+
declare const PointsTile: FC<PointsTileProps> & {
|
|
509
543
|
Title: typeof PointsTileTitle;
|
|
510
|
-
Points: typeof
|
|
511
|
-
|
|
544
|
+
Points: typeof PointsTileFormattedPoints;
|
|
545
|
+
Media: typeof PointsTileMedia;
|
|
512
546
|
};
|
|
513
|
-
|
|
514
|
-
declare const
|
|
515
|
-
|
|
516
|
-
|
|
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
|
-
|
|
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
|
|
528
|
-
|
|
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:
|
|
576
|
+
declare const RewardTile: FC<RewardTileProps> & {
|
|
534
577
|
Media: typeof RewardTileMedia;
|
|
535
578
|
Title: typeof RewardTileTitle;
|
|
536
|
-
|
|
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,
|
|
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 };
|