@wlloyalty/wll-react-sdk 1.4.4 → 1.4.5
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 +35 -35
- package/dist/native.js +397 -1351
- package/dist/native.js.map +1 -1
- package/dist/types/components/atoms/BaseTile/base-tile-body.d.ts +3 -2
- package/dist/types/components/atoms/BaseTile/base-tile-content.d.ts +3 -2
- package/dist/types/components/atoms/BaseTile/base-tile-header.d.ts +3 -2
- package/dist/types/components/atoms/BaseTile/base-tile-media.d.ts +3 -2
- package/dist/types/components/atoms/BaseTile/base-tile-title.d.ts +3 -2
- package/dist/types/components/atoms/BaseTile/index.d.ts +8 -7
- package/dist/types/components/atoms/Button/index.d.ts +2 -1
- package/dist/types/components/atoms/Icon/index.d.ts +2 -1
- package/dist/types/components/atoms/Indicator/index.d.ts +2 -1
- package/dist/types/components/atoms/LoadingIndicator/index.d.ts +2 -1
- package/dist/types/components/atoms/Primatives/Column.d.ts +1 -1
- package/dist/types/components/atoms/Primatives/FullFlex.d.ts +1 -1
- package/dist/types/components/atoms/Primatives/Layout.d.ts +1 -1
- package/dist/types/components/atoms/Primatives/Row.d.ts +1 -1
- package/dist/types/components/atoms/Primatives/Spacer.d.ts +2 -1
- package/dist/types/components/atoms/ProgressBar/index.d.ts +2 -1
- package/dist/types/components/atoms/ProgressiveImage/index.d.ts +2 -1
- package/dist/types/components/atoms/Skeleton/index.d.ts +2 -1
- package/dist/types/components/atoms/SkeletonTile/index.d.ts +2 -1
- package/dist/types/components/atoms/Text/index.d.ts +4 -3
- package/dist/types/components/atoms/TileContainer/index.d.ts +2 -1
- package/dist/types/components/molecules/Carousel/index.d.ts +2 -1
- package/dist/types/components/molecules/CarouselNavButton/index.d.ts +2 -1
- package/dist/types/components/molecules/ProgressIndicator/index.d.ts +2 -1
- package/dist/types/components/molecules/SectionHeader/index.d.ts +2 -1
- package/dist/types/components/organisms/BadgeTile/badge-tile-date-earned.d.ts +3 -2
- package/dist/types/components/organisms/BadgeTile/badge-tile-description.d.ts +3 -2
- package/dist/types/components/organisms/BadgeTile/badge-tile-media.d.ts +2 -2
- package/dist/types/components/organisms/BadgeTile/badge-tile-status.d.ts +3 -2
- package/dist/types/components/organisms/BadgeTile/badge-tile-title.d.ts +3 -2
- package/dist/types/components/organisms/BadgeTile/index.d.ts +6 -6
- package/dist/types/components/organisms/BannerTile/banner-tile-cta.d.ts +3 -2
- package/dist/types/components/organisms/BannerTile/banner-tile-description.d.ts +3 -2
- package/dist/types/components/organisms/BannerTile/banner-tile-media.d.ts +3 -2
- package/dist/types/components/organisms/BannerTile/banner-tile-title.d.ts +3 -2
- package/dist/types/components/organisms/BannerTile/index.d.ts +5 -5
- package/dist/types/components/organisms/ContentTile/content-tile-chevron.d.ts +2 -1
- package/dist/types/components/organisms/ContentTile/content-tile-media.d.ts +2 -1
- package/dist/types/components/organisms/ContentTile/content-tile-summary.d.ts +2 -1
- package/dist/types/components/organisms/ContentTile/content-tile-title.d.ts +2 -1
- package/dist/types/components/organisms/ContentTile/index.d.ts +5 -5
- package/dist/types/components/organisms/Group/index.d.ts +6 -6
- package/dist/types/components/organisms/PointsTile/index.d.ts +5 -5
- package/dist/types/components/organisms/PointsTile/points-tile-chevron.d.ts +3 -2
- package/dist/types/components/organisms/PointsTile/points-tile-formatted-points.d.ts +3 -2
- package/dist/types/components/organisms/PointsTile/points-tile-media.d.ts +3 -2
- package/dist/types/components/organisms/PointsTile/points-tile-title.d.ts +3 -2
- package/dist/types/components/organisms/RewardCategoryTile/index.d.ts +3 -3
- package/dist/types/components/organisms/RewardCategoryTile/reward-category-header.d.ts +3 -2
- package/dist/types/components/organisms/RewardCategoryTile/reward-category-media.d.ts +3 -2
- package/dist/types/components/organisms/RewardTile/index.d.ts +6 -6
- package/dist/types/components/organisms/RewardTile/reward-tile-chevron.d.ts +3 -2
- package/dist/types/components/organisms/RewardTile/reward-tile-media.d.ts +3 -2
- package/dist/types/components/organisms/RewardTile/reward-tile-points.d.ts +3 -2
- package/dist/types/components/organisms/RewardTile/reward-tile-summary.d.ts +3 -2
- package/dist/types/components/organisms/RewardTile/reward-tile-title.d.ts +3 -2
- package/dist/types/components/organisms/RoundupTile/index.d.ts +5 -5
- package/dist/types/components/organisms/RoundupTile/roundup-tile-chevron.d.ts +3 -2
- package/dist/types/components/organisms/RoundupTile/roundup-tile-formatted-points.d.ts +3 -2
- package/dist/types/components/organisms/RoundupTile/roundup-tile-media.d.ts +3 -2
- package/dist/types/components/organisms/RoundupTile/roundup-tile-title.d.ts +3 -2
- package/dist/types/components/organisms/Section/index.d.ts +2 -2
- package/dist/types/context/WllSdkContext.d.ts +2 -1
- package/dist/types/utils/storybookHelpers.d.ts +1 -1
- package/dist/web.js +42 -42
- package/dist/web.js.map +1 -1
- package/package.json +12 -11
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { TextProps, TextStyle } from 'react-native';
|
|
2
3
|
type BaseTileBodyProps = Omit<TextProps, 'style'> & {
|
|
3
4
|
variant?: 'eyebrow' | 'title' | 'description' | 'body' | 'caption' | 'label' | 'tier-requirement' | 'tier-earned';
|
|
@@ -8,7 +9,7 @@ type BaseTileBodyProps = Omit<TextProps, 'style'> & {
|
|
|
8
9
|
* Renders the body text of a BaseTile component.
|
|
9
10
|
*
|
|
10
11
|
* @param {BaseTileBodyProps} props - Component props including text styling options
|
|
11
|
-
* @returns {
|
|
12
|
+
* @returns {React.ReactElement|null} The rendered body text or null if conditions for display are not met
|
|
12
13
|
*/
|
|
13
|
-
export declare const BaseTileBody: (props: BaseTileBodyProps) =>
|
|
14
|
+
export declare const BaseTileBody: (props: BaseTileBodyProps) => React.ReactElement | null;
|
|
14
15
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { WithChildren } from '../../../types/helpers';
|
|
2
3
|
type BaseTileContentProps = WithChildren;
|
|
3
4
|
/**
|
|
@@ -5,7 +6,7 @@ type BaseTileContentProps = WithChildren;
|
|
|
5
6
|
*
|
|
6
7
|
* @param {BaseTileContentProps} props - Component props
|
|
7
8
|
* @param {ReactNode} props.children - Child elements to render within the content area
|
|
8
|
-
* @returns {
|
|
9
|
+
* @returns {React.ReactElement|null} The rendered content or null if conditions for display are not met
|
|
9
10
|
*/
|
|
10
|
-
export declare const BaseTileContent: ({ children, }: BaseTileContentProps) =>
|
|
11
|
+
export declare const BaseTileContent: ({ children, }: BaseTileContentProps) => React.ReactElement | null;
|
|
11
12
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { WithChildren } from '../../../types/helpers';
|
|
2
3
|
type BaseTileHeaderProps = WithChildren;
|
|
3
4
|
/**
|
|
@@ -5,7 +6,7 @@ type BaseTileHeaderProps = WithChildren;
|
|
|
5
6
|
*
|
|
6
7
|
* @param {BaseTileHeaderProps} props - Component props
|
|
7
8
|
* @param {ReactNode} props.children - Child elements to render within the header
|
|
8
|
-
* @returns {
|
|
9
|
+
* @returns {React.ReactElement|null} The rendered header or null if conditions for display are not met
|
|
9
10
|
*/
|
|
10
|
-
export declare const BaseTileHeader: ({ children, }: BaseTileHeaderProps) =>
|
|
11
|
+
export declare const BaseTileHeader: ({ children, }: BaseTileHeaderProps) => React.ReactElement | null;
|
|
11
12
|
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { ImagePropsNoSource } from '../../../types/common';
|
|
2
3
|
/**
|
|
3
4
|
* Renders the media (image) for a BaseTile component.
|
|
4
5
|
*
|
|
5
6
|
* @param {ImagePropsNoSource} props - The image props excluding source
|
|
6
|
-
* @returns {
|
|
7
|
+
* @returns {React.ReactElement|null} The rendered image or null if no artwork URL is present
|
|
7
8
|
*/
|
|
8
|
-
export declare const BaseTileMedia: (props: ImagePropsNoSource) =>
|
|
9
|
+
export declare const BaseTileMedia: (props: ImagePropsNoSource) => React.ReactElement | null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
/**
|
|
2
3
|
* Renders the title of a BaseTile component.
|
|
3
4
|
*
|
|
4
|
-
* @returns {
|
|
5
|
+
* @returns {React.ReactElement|null} The rendered title or null if conditions for display are not met
|
|
5
6
|
*/
|
|
6
|
-
export declare const BaseTileTitle: () =>
|
|
7
|
+
export declare const BaseTileTitle: () => React.ReactElement | null;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { ViewStyle } from 'react-native';
|
|
2
3
|
import { Tile } from '../../../types/tile';
|
|
3
4
|
import { WithChildren } from '../../../types/helpers';
|
|
@@ -18,20 +19,20 @@ type BaseTileRootProps = WithChildren & {
|
|
|
18
19
|
/**
|
|
19
20
|
* BaseTile component with subcomponents attached.
|
|
20
21
|
*/
|
|
21
|
-
export declare const BaseTile: (({ tile, children, style, }: BaseTileProps) =>
|
|
22
|
-
Container: ({ children, style, }: BaseTileRootProps) =>
|
|
23
|
-
Media: (props: import("../../..").ImagePropsNoSource) =>
|
|
22
|
+
export declare const BaseTile: (({ tile, children, style, }: BaseTileProps) => React.ReactElement | null) & {
|
|
23
|
+
Container: ({ children, style, }: BaseTileRootProps) => React.ReactElement;
|
|
24
|
+
Media: (props: import("../../..").ImagePropsNoSource) => React.ReactElement | null;
|
|
24
25
|
Content: ({ children, }: {
|
|
25
26
|
children?: React.ReactNode;
|
|
26
|
-
}) =>
|
|
27
|
+
}) => React.ReactElement | null;
|
|
27
28
|
Header: ({ children, }: {
|
|
28
29
|
children?: React.ReactNode;
|
|
29
|
-
}) =>
|
|
30
|
-
Title: () =>
|
|
30
|
+
}) => React.ReactElement | null;
|
|
31
|
+
Title: () => React.ReactElement | null;
|
|
31
32
|
Body: (props: Omit<import("react-native").TextProps, "style"> & {
|
|
32
33
|
variant?: "eyebrow" | "title" | "description" | "body" | "caption" | "label" | "tier-requirement" | "tier-earned";
|
|
33
34
|
isSurface?: boolean;
|
|
34
35
|
style?: import("react-native").TextStyle;
|
|
35
|
-
}) =>
|
|
36
|
+
}) => React.ReactElement | null;
|
|
36
37
|
};
|
|
37
38
|
export default BaseTile;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { Variant } from '../../../types/theme';
|
|
2
3
|
type ButtonProps = {
|
|
3
4
|
title: string;
|
|
@@ -8,5 +9,5 @@ type ButtonProps = {
|
|
|
8
9
|
accessibilityHint?: string;
|
|
9
10
|
testID?: string;
|
|
10
11
|
};
|
|
11
|
-
declare const Button: ({ title, onPress, variant, disabled, accessibilityLabel, accessibilityHint, testID, }: ButtonProps) =>
|
|
12
|
+
declare const Button: ({ title, onPress, variant, disabled, accessibilityLabel, accessibilityHint, testID, }: ButtonProps) => React.ReactElement;
|
|
12
13
|
export default Button;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as LucideReactIcons from 'lucide-react';
|
|
2
|
+
import * as React from 'react';
|
|
2
3
|
import { ViewProps } from 'react-native';
|
|
3
4
|
type IconName = keyof typeof LucideReactIcons;
|
|
4
5
|
type IconProps = {
|
|
@@ -7,5 +8,5 @@ type IconProps = {
|
|
|
7
8
|
size?: number;
|
|
8
9
|
strokeWidth?: number;
|
|
9
10
|
} & Omit<ViewProps, 'style'>;
|
|
10
|
-
declare const Icon: ({ name, color, size, strokeWidth, ...props }: IconProps) =>
|
|
11
|
+
declare const Icon: ({ name, color, size, strokeWidth, ...props }: IconProps) => React.ReactElement | null;
|
|
11
12
|
export default Icon;
|
|
@@ -18,5 +18,5 @@ type ColumnProps = {
|
|
|
18
18
|
* @param flex - Optional flex number to control the column's flex behavior
|
|
19
19
|
* @param style - Additional styles to apply to the column
|
|
20
20
|
*/
|
|
21
|
-
export declare const Column: ({ children, justify, align, reverse, flex, style, ...rest }: ColumnProps) =>
|
|
21
|
+
export declare const Column: ({ children, justify, align, reverse, flex, style, ...rest }: ColumnProps) => React.ReactElement;
|
|
22
22
|
export {};
|
|
@@ -16,5 +16,5 @@ type FullFlexProps = {
|
|
|
16
16
|
* This component is commonly used to create a full-flex container that expands
|
|
17
17
|
* to fill available space in a layout.
|
|
18
18
|
*/
|
|
19
|
-
export declare const FullFlex: ({ children, style, ...rest }: FullFlexProps) =>
|
|
19
|
+
export declare const FullFlex: ({ children, style, ...rest }: FullFlexProps) => React.ReactElement;
|
|
20
20
|
export {};
|
|
@@ -17,5 +17,5 @@ type LayoutProps = {
|
|
|
17
17
|
* @param children - The child components to render inside the layout
|
|
18
18
|
* @returns The rendered Layout component with special paddings
|
|
19
19
|
*/
|
|
20
|
-
export declare const Layout: ({ children, direction, justify, align, style, ...rest }: LayoutProps) =>
|
|
20
|
+
export declare const Layout: ({ children, direction, justify, align, style, ...rest }: LayoutProps) => React.ReactElement;
|
|
21
21
|
export {};
|
|
@@ -18,5 +18,5 @@ type RowProps = {
|
|
|
18
18
|
* @param flex - Optional flex number to control the row's flex behavior
|
|
19
19
|
* @param style - Additional styles to apply to the row
|
|
20
20
|
*/
|
|
21
|
-
export declare const Row: ({ children, justify, align, reverse, flex, style, ...rest }: RowProps) =>
|
|
21
|
+
export declare const Row: ({ children, justify, align, reverse, flex, style, ...rest }: RowProps) => React.ReactElement;
|
|
22
22
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { ViewProps, ViewStyle } from 'react-native';
|
|
2
3
|
/**
|
|
3
4
|
* Props for the Spacer component.
|
|
@@ -13,5 +14,5 @@ type SpacerProps = {
|
|
|
13
14
|
* The Spacer is commonly used in flexbox layouts to create adjustable empty space
|
|
14
15
|
* between child elements, avoiding the need for explicit margins or padding.
|
|
15
16
|
*/
|
|
16
|
-
export declare const Spacer: ({ style, ...rest }: SpacerProps) =>
|
|
17
|
+
export declare const Spacer: ({ style, ...rest }: SpacerProps) => React.ReactElement;
|
|
17
18
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { Size, Variant } from '../../../types/theme';
|
|
2
3
|
export type ProgressBarProps = {
|
|
3
4
|
percentage: number;
|
|
@@ -5,5 +6,5 @@ export type ProgressBarProps = {
|
|
|
5
6
|
height?: Size;
|
|
6
7
|
animationDuration?: number;
|
|
7
8
|
};
|
|
8
|
-
declare const ProgressBar: ({ percentage, variant, height, animationDuration, }: ProgressBarProps) =>
|
|
9
|
+
declare const ProgressBar: ({ percentage, variant, height, animationDuration, }: ProgressBarProps) => React.ReactElement;
|
|
9
10
|
export default ProgressBar;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { ImageSourcePropType, StyleProp, ViewStyle } from 'react-native';
|
|
2
3
|
type ProgressiveImageProps = {
|
|
3
4
|
source: ImageSourcePropType;
|
|
@@ -6,5 +7,5 @@ type ProgressiveImageProps = {
|
|
|
6
7
|
alt?: string;
|
|
7
8
|
[key: string]: any;
|
|
8
9
|
};
|
|
9
|
-
declare const ProgressiveImage: ({ source, style, isDesaturated, alt, ...props }: ProgressiveImageProps) =>
|
|
10
|
+
declare const ProgressiveImage: ({ source, style, isDesaturated, alt, ...props }: ProgressiveImageProps) => React.ReactElement;
|
|
10
11
|
export default ProgressiveImage;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { ViewStyle } from 'react-native';
|
|
2
3
|
type SkeletonProps = {
|
|
3
4
|
width?: number | `${number}%`;
|
|
@@ -6,5 +7,5 @@ type SkeletonProps = {
|
|
|
6
7
|
style?: ViewStyle;
|
|
7
8
|
numberOfSquares?: number;
|
|
8
9
|
};
|
|
9
|
-
declare const Skeleton: ({ style, numberOfSquares, }: SkeletonProps) =>
|
|
10
|
+
declare const Skeleton: ({ style, numberOfSquares, }: SkeletonProps) => React.ReactElement;
|
|
10
11
|
export default Skeleton;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { ViewStyle } from 'react-native';
|
|
2
3
|
type SkeletonTileProps = {
|
|
3
4
|
style?: ViewStyle;
|
|
4
5
|
};
|
|
5
|
-
declare const SkeletonTile: ({ style }: SkeletonTileProps) =>
|
|
6
|
+
declare const SkeletonTile: ({ style }: SkeletonTileProps) => React.ReactElement;
|
|
6
7
|
export default SkeletonTile;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { TextProps as RNTextProps, StyleProp, TextStyle } from 'react-native';
|
|
2
3
|
type TextVariant = 'eyebrow' | 'title' | 'description' | 'body' | 'caption' | 'label' | 'tier-requirement' | 'tier-earned';
|
|
3
4
|
type TextProps = RNTextProps & {
|
|
4
5
|
variant?: TextVariant;
|
|
5
|
-
style?: TextStyle
|
|
6
|
+
style?: StyleProp<TextStyle>;
|
|
6
7
|
isSurface?: boolean;
|
|
7
8
|
};
|
|
8
|
-
export declare const Text: ({ variant, style, isSurface, ...props }: TextProps) =>
|
|
9
|
+
export declare const Text: ({ variant, style, isSurface, ...props }: TextProps) => React.ReactElement;
|
|
9
10
|
export default Text;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { Tile } from '../../../types/tile';
|
|
2
3
|
type TileContainerProps = {
|
|
3
4
|
tiles: Tile[];
|
|
@@ -5,5 +6,5 @@ type TileContainerProps = {
|
|
|
5
6
|
/**
|
|
6
7
|
* TileContainer component to render a list of tiles with proper layout and spacing.
|
|
7
8
|
*/
|
|
8
|
-
declare const TileContainer: ({ tiles }: TileContainerProps) =>
|
|
9
|
+
declare const TileContainer: ({ tiles }: TileContainerProps) => React.ReactElement;
|
|
9
10
|
export default TileContainer;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { TSection } from '../../../types/section';
|
|
2
3
|
type CarouselProps = {
|
|
3
4
|
section?: TSection;
|
|
4
5
|
autoRotateInterval?: number;
|
|
5
6
|
};
|
|
6
|
-
declare const Carousel: ({ section, autoRotateInterval, }: CarouselProps) =>
|
|
7
|
+
declare const Carousel: ({ section, autoRotateInterval, }: CarouselProps) => React.ReactElement | null;
|
|
7
8
|
export default Carousel;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
type CarouselNavButtonProps = {
|
|
2
3
|
direction: 'left' | 'right';
|
|
3
4
|
onPress: () => void;
|
|
4
5
|
};
|
|
5
|
-
export declare const CarouselNavButton: ({ direction, onPress, }: CarouselNavButtonProps) =>
|
|
6
|
+
export declare const CarouselNavButton: ({ direction, onPress, }: CarouselNavButtonProps) => React.ReactElement;
|
|
6
7
|
export default CarouselNavButton;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { Size, Variant } from '../../../types/theme';
|
|
2
3
|
export type ProgressIndicatorProps = {
|
|
3
4
|
currentPoints: number;
|
|
@@ -6,5 +7,5 @@ export type ProgressIndicatorProps = {
|
|
|
6
7
|
height?: Size;
|
|
7
8
|
attained?: boolean;
|
|
8
9
|
};
|
|
9
|
-
export declare const ProgressIndicator: ({ currentPoints, maxPoints, variant, height, attained, }: ProgressIndicatorProps) =>
|
|
10
|
+
export declare const ProgressIndicator: ({ currentPoints, maxPoints, variant, height, attained, }: ProgressIndicatorProps) => React.ReactElement;
|
|
10
11
|
export default ProgressIndicator;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
type SectionHeaderProps = {
|
|
2
3
|
title?: string;
|
|
3
4
|
description?: string;
|
|
4
5
|
};
|
|
5
|
-
declare const SectionHeader: ({ title, description, }: SectionHeaderProps) =>
|
|
6
|
+
declare const SectionHeader: ({ title, description, }: SectionHeaderProps) => React.ReactElement | null;
|
|
6
7
|
export default SectionHeader;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
/**
|
|
2
3
|
* Renders the date earned for a Badge Tile.
|
|
3
4
|
*
|
|
4
|
-
* @returns
|
|
5
|
+
* @returns React.ReactElement or null if badge is not earned or badgeNotEarnedMessage exists
|
|
5
6
|
*/
|
|
6
|
-
export declare const BadgeTileDateEarned: () =>
|
|
7
|
+
export declare const BadgeTileDateEarned: () => React.ReactElement | null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
/**
|
|
2
3
|
* Renders the description for a Badge Tile.
|
|
3
4
|
*
|
|
4
|
-
* @returns
|
|
5
|
+
* @returns React.ReactElement or null if description is not present
|
|
5
6
|
*/
|
|
6
|
-
export declare const BadgeTileDescription: () =>
|
|
7
|
+
export declare const BadgeTileDescription: () => React.ReactElement | null;
|
|
@@ -7,6 +7,6 @@ export type BadgeTileMediaProps = {
|
|
|
7
7
|
/**
|
|
8
8
|
* Renders the media for a Badge Tile.
|
|
9
9
|
*
|
|
10
|
-
* @returns
|
|
10
|
+
* @returns React.ReactElement or null if media is not present
|
|
11
11
|
*/
|
|
12
|
-
export declare const BadgeTileMedia: ({ children, alt, ...props }: BadgeTileMediaProps) =>
|
|
12
|
+
export declare const BadgeTileMedia: ({ children, alt, ...props }: BadgeTileMediaProps) => React.ReactElement | null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
/**
|
|
2
3
|
* Renders the status for a Badge Tile.
|
|
3
4
|
*
|
|
4
|
-
* @returns
|
|
5
|
+
* @returns React.ReactElement or null if badge is not earned or badgeNotEarnedMessage exists
|
|
5
6
|
*/
|
|
6
|
-
export declare const BadgeTileStatus: () =>
|
|
7
|
+
export declare const BadgeTileStatus: () => React.ReactElement | null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
/**
|
|
2
3
|
* Renders the title for a Badge Tile.
|
|
3
4
|
*
|
|
4
|
-
* @returns
|
|
5
|
+
* @returns React.ReactElement or null if name is not present
|
|
5
6
|
*/
|
|
6
|
-
export declare const BadgeTileTitle: () =>
|
|
7
|
+
export declare const BadgeTileTitle: () => React.ReactElement | null;
|
|
@@ -6,12 +6,12 @@ type BadgeTileProps = {
|
|
|
6
6
|
/**
|
|
7
7
|
* The BadgeTile component with subcomponents attached.
|
|
8
8
|
*/
|
|
9
|
-
export declare const BadgeTile: (({ tile }: BadgeTileProps) =>
|
|
10
|
-
Media: ({ children, alt, ...props }: import("./badge-tile-media").BadgeTileMediaProps) =>
|
|
11
|
-
Title: () =>
|
|
12
|
-
Description: () =>
|
|
13
|
-
DateEarned: () =>
|
|
14
|
-
Status: () =>
|
|
9
|
+
export declare const BadgeTile: (({ tile }: BadgeTileProps) => React.ReactElement | null) & {
|
|
10
|
+
Media: ({ children, alt, ...props }: import("./badge-tile-media").BadgeTileMediaProps) => React.ReactElement | null;
|
|
11
|
+
Title: () => React.ReactElement | null;
|
|
12
|
+
Description: () => React.ReactElement | null;
|
|
13
|
+
DateEarned: () => React.ReactElement | null;
|
|
14
|
+
Status: () => React.ReactElement | null;
|
|
15
15
|
};
|
|
16
16
|
declare const _default: (props: Omit<BadgeTileProps, "tile"> & import("../../hoc/withTileFetching").WithTileFetchingProps) => React.JSX.Element;
|
|
17
17
|
export default _default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
/**
|
|
2
3
|
* Renders the call to action of a Banner Tile.
|
|
3
4
|
*
|
|
4
|
-
* @returns
|
|
5
|
+
* @returns React.ReactElement or null if no text or required props are present
|
|
5
6
|
*/
|
|
6
|
-
export declare const BannerTileCTA: () =>
|
|
7
|
+
export declare const BannerTileCTA: () => React.ReactElement | null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
/**
|
|
2
3
|
* Renders the description text of a Banner Tile.
|
|
3
4
|
*
|
|
4
|
-
* @returns
|
|
5
|
+
* @returns React.ReactElement or null if no description is present
|
|
5
6
|
*/
|
|
6
|
-
export declare const BannerTileDescription: () =>
|
|
7
|
+
export declare const BannerTileDescription: () => React.ReactElement | null;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
type BannerTileMediaProps = {
|
|
2
3
|
isArtworkOnly: boolean;
|
|
3
4
|
};
|
|
4
5
|
/**
|
|
5
6
|
* Renders the media of a Banner Tile.
|
|
6
7
|
*
|
|
7
|
-
* @returns
|
|
8
|
+
* @returns React.ReactElement or null if no media is present
|
|
8
9
|
*/
|
|
9
|
-
export declare const BannerTileMedia: ({ isArtworkOnly, }: BannerTileMediaProps) =>
|
|
10
|
+
export declare const BannerTileMedia: ({ isArtworkOnly, }: BannerTileMediaProps) => React.ReactElement | null;
|
|
10
11
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
/**
|
|
2
3
|
* Renders the title of a Banner Tile.
|
|
3
4
|
*
|
|
4
|
-
* @returns
|
|
5
|
+
* @returns React.ReactElement or null if no title is present
|
|
5
6
|
*/
|
|
6
|
-
export declare const BannerTileTitle: () =>
|
|
7
|
+
export declare const BannerTileTitle: () => React.ReactElement | null;
|
|
@@ -6,13 +6,13 @@ type BannerTileProps = {
|
|
|
6
6
|
/**
|
|
7
7
|
* The BannerTile component with subcomponents attached.
|
|
8
8
|
*/
|
|
9
|
-
export declare const BannerTile: (({ tile }: BannerTileProps) =>
|
|
9
|
+
export declare const BannerTile: (({ tile }: BannerTileProps) => React.ReactElement | null) & {
|
|
10
10
|
Media: ({ isArtworkOnly, }: {
|
|
11
11
|
isArtworkOnly: boolean;
|
|
12
|
-
}) =>
|
|
13
|
-
Title: () =>
|
|
14
|
-
Description: () =>
|
|
15
|
-
CTA: () =>
|
|
12
|
+
}) => React.ReactElement | null;
|
|
13
|
+
Title: () => React.ReactElement | null;
|
|
14
|
+
Description: () => React.ReactElement | null;
|
|
15
|
+
CTA: () => React.ReactElement | null;
|
|
16
16
|
};
|
|
17
17
|
declare const _default: (props: Omit<BannerTileProps, "tile"> & import("../../hoc/withTileFetching").WithTileFetchingProps) => React.JSX.Element;
|
|
18
18
|
export default _default;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const ContentTileChevron: () => React.ReactElement | null;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
type ContentTileMediaProps = {
|
|
2
3
|
isArtworkOnly: boolean;
|
|
3
4
|
};
|
|
4
|
-
export declare const ContentTileMedia: ({ isArtworkOnly, }: ContentTileMediaProps) =>
|
|
5
|
+
export declare const ContentTileMedia: ({ isArtworkOnly, }: ContentTileMediaProps) => React.ReactElement | null;
|
|
5
6
|
export {};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const ContentTileSummary: () => React.ReactElement | null;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const ContentTileTitle: () => React.ReactElement | null;
|
|
@@ -6,13 +6,13 @@ type ContentTileProps = {
|
|
|
6
6
|
/**
|
|
7
7
|
* The ContentTile component with subcomponents attached.
|
|
8
8
|
*/
|
|
9
|
-
export declare const ContentTile: (({ tile }: ContentTileProps) =>
|
|
9
|
+
export declare const ContentTile: (({ tile }: ContentTileProps) => React.ReactElement | null) & {
|
|
10
10
|
Media: ({ isArtworkOnly, }: {
|
|
11
11
|
isArtworkOnly: boolean;
|
|
12
|
-
}) =>
|
|
13
|
-
Title: () =>
|
|
14
|
-
Summary: () =>
|
|
15
|
-
Chevron: () =>
|
|
12
|
+
}) => React.ReactElement | null;
|
|
13
|
+
Title: () => React.ReactElement | null;
|
|
14
|
+
Summary: () => React.ReactElement | null;
|
|
15
|
+
Chevron: () => React.ReactElement | null;
|
|
16
16
|
};
|
|
17
17
|
declare const _default: (props: Omit<ContentTileProps, "tile"> & import("../../hoc/withTileFetching").WithTileFetchingProps) => React.JSX.Element;
|
|
18
18
|
export default _default;
|
|
@@ -27,15 +27,15 @@ export declare const useGroupContext: () => GroupContextType;
|
|
|
27
27
|
*
|
|
28
28
|
* @param {GroupEmptyStateProps} props - Component props
|
|
29
29
|
* @param {string} props.message - Message to display
|
|
30
|
-
* @returns {
|
|
30
|
+
* @returns {React.ReactElement} The empty state component
|
|
31
31
|
*/
|
|
32
|
-
export declare const GroupEmptyState: ({ message, }: GroupEmptyStateProps) =>
|
|
32
|
+
export declare const GroupEmptyState: ({ message, }: GroupEmptyStateProps) => React.ReactElement;
|
|
33
33
|
/**
|
|
34
34
|
* Component to render all sections in a group
|
|
35
35
|
*
|
|
36
|
-
* @returns {
|
|
36
|
+
* @returns {React.ReactElement} The sections component
|
|
37
37
|
*/
|
|
38
|
-
export declare const GroupSections: () =>
|
|
38
|
+
export declare const GroupSections: () => React.ReactElement;
|
|
39
39
|
/**
|
|
40
40
|
* A page-level component that represents a Group view in the application.
|
|
41
41
|
*
|
|
@@ -46,7 +46,7 @@ export declare const GroupSections: () => JSX.Element;
|
|
|
46
46
|
*
|
|
47
47
|
* @param {GroupProps} props - Component props
|
|
48
48
|
* @param {string} props.id - The unique identifier of the group to fetch and display
|
|
49
|
-
* @returns {
|
|
49
|
+
* @returns {React.ReactElement|null} The rendered group or null if invalid ID
|
|
50
50
|
*/
|
|
51
|
-
declare const Group: ({ id, enablePullToRefresh, onRefresh }: GroupProps) =>
|
|
51
|
+
declare const Group: ({ id, enablePullToRefresh, onRefresh }: GroupProps) => React.ReactElement | null;
|
|
52
52
|
export default Group;
|
|
@@ -6,13 +6,13 @@ type PointsTileProps = {
|
|
|
6
6
|
/**
|
|
7
7
|
* The PointsTile component with subcomponents attached.
|
|
8
8
|
*/
|
|
9
|
-
export declare const PointsTile: (({ tile }: PointsTileProps) =>
|
|
10
|
-
Title: () =>
|
|
11
|
-
Points: () =>
|
|
9
|
+
export declare const PointsTile: (({ tile }: PointsTileProps) => React.ReactElement | null) & {
|
|
10
|
+
Title: () => React.ReactElement | null;
|
|
11
|
+
Points: () => React.ReactElement | null;
|
|
12
12
|
Media: ({ isFullSize, }: {
|
|
13
13
|
isFullSize: boolean;
|
|
14
|
-
}) =>
|
|
15
|
-
Chevron: () =>
|
|
14
|
+
}) => React.ReactElement | null;
|
|
15
|
+
Chevron: () => React.ReactElement | null;
|
|
16
16
|
};
|
|
17
17
|
declare const _default: (props: Omit<PointsTileProps, "tile"> & import("../../hoc/withTileFetching").WithTileFetchingProps) => React.JSX.Element;
|
|
18
18
|
export default _default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
/**
|
|
2
3
|
* Renders a chevron icon for a Roundup Tile.
|
|
3
4
|
*
|
|
4
|
-
* @returns
|
|
5
|
+
* @returns React.ReactElement
|
|
5
6
|
*/
|
|
6
|
-
export declare const PointsTileChevron: () =>
|
|
7
|
+
export declare const PointsTileChevron: () => React.ReactElement | null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
/**
|
|
2
3
|
* Renders formatted points value for a Points Tile.
|
|
3
4
|
*
|
|
4
|
-
* @returns
|
|
5
|
+
* @returns React.ReactElement or null if points are undefined or zero
|
|
5
6
|
*/
|
|
6
|
-
export declare const PointsTileFormattedPoints: () =>
|
|
7
|
+
export declare const PointsTileFormattedPoints: () => React.ReactElement | null;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
type PointsTileMediaProps = {
|
|
2
3
|
isFullSize: boolean;
|
|
3
4
|
};
|
|
4
5
|
/**
|
|
5
6
|
* Renders the media of a Points Tile.
|
|
6
7
|
*
|
|
7
|
-
* @returns
|
|
8
|
+
* @returns React.ReactElement or null if media is not present
|
|
8
9
|
*/
|
|
9
|
-
export declare const PointsTileMedia: ({ isFullSize, }: PointsTileMediaProps) =>
|
|
10
|
+
export declare const PointsTileMedia: ({ isFullSize, }: PointsTileMediaProps) => React.ReactElement | null;
|
|
10
11
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
/**
|
|
2
3
|
* Renders the title of a Points Tile.
|
|
3
4
|
*
|
|
4
|
-
* @returns
|
|
5
|
+
* @returns React.ReactElement or null if no title is present
|
|
5
6
|
*/
|
|
6
|
-
export declare const PointsTileTitle: () =>
|
|
7
|
+
export declare const PointsTileTitle: () => React.ReactElement | null;
|
|
@@ -6,9 +6,9 @@ type RewardCategoryTileProps = {
|
|
|
6
6
|
/**
|
|
7
7
|
* The RewardCategoryTile component with subcomponents attached.
|
|
8
8
|
*/
|
|
9
|
-
export declare const RewardCategoryTile: (({ tile, }: RewardCategoryTileProps) =>
|
|
10
|
-
Header: () =>
|
|
11
|
-
Media: () =>
|
|
9
|
+
export declare const RewardCategoryTile: (({ tile, }: RewardCategoryTileProps) => React.ReactElement | null) & {
|
|
10
|
+
Header: () => React.ReactElement | null;
|
|
11
|
+
Media: () => React.ReactElement | null;
|
|
12
12
|
};
|
|
13
13
|
declare const _default: (props: Omit<RewardCategoryTileProps, "tile"> & import("../../hoc/withTileFetching").WithTileFetchingProps) => React.JSX.Element;
|
|
14
14
|
export default _default;
|