@wlloyalty/wll-react-sdk 1.0.51 → 1.0.52

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.
Files changed (144) hide show
  1. package/dist/components/__test__/test-setup.d.ts +9 -0
  2. package/dist/components/__test__/test-utils.d.ts +4 -0
  3. package/dist/components/atoms/BaseBanner/index.d.ts +15 -0
  4. package/dist/components/atoms/BaseTile/base-tile-body.d.ts +8 -0
  5. package/dist/components/atoms/BaseTile/base-tile-content.d.ts +4 -0
  6. package/dist/components/atoms/BaseTile/base-tile-header.d.ts +4 -0
  7. package/dist/components/atoms/BaseTile/base-tile-media.d.ts +2 -0
  8. package/dist/components/atoms/BaseTile/base-tile-title.d.ts +1 -0
  9. package/dist/components/atoms/BaseTile/index.d.ts +36 -0
  10. package/dist/components/atoms/BaseTile/styles.d.ts +47 -0
  11. package/dist/components/atoms/Button/Button.stories.d.ts +7 -0
  12. package/dist/components/atoms/Button/index.d.ts +12 -0
  13. package/dist/components/atoms/Button/styles.d.ts +2 -0
  14. package/dist/components/atoms/Icon/Icon.stories.d.ts +28 -0
  15. package/dist/components/atoms/Icon/index.d.ts +11 -0
  16. package/dist/components/atoms/Indicator/index.d.ts +2 -0
  17. package/dist/components/atoms/LoadingIndicator/index.d.ts +2 -0
  18. package/dist/components/atoms/Primatives/Column.d.ts +22 -0
  19. package/dist/components/atoms/Primatives/FullFlex.d.ts +20 -0
  20. package/dist/components/atoms/Primatives/Layout.d.ts +21 -0
  21. package/dist/components/atoms/Primatives/Row.d.ts +22 -0
  22. package/dist/components/atoms/Primatives/Spacer.d.ts +17 -0
  23. package/dist/components/atoms/Primatives/index.d.ts +5 -0
  24. package/dist/components/atoms/ProgressBar/ProgressBar.stories.d.ts +8 -0
  25. package/dist/components/atoms/ProgressBar/index.d.ts +9 -0
  26. package/dist/components/atoms/ProgressiveImage/ProgressiveImage.stories.d.ts +9 -0
  27. package/dist/components/atoms/ProgressiveImage/index.d.ts +9 -0
  28. package/dist/components/atoms/Skeleton/index.d.ts +10 -0
  29. package/dist/components/atoms/SkeletonTile/index.d.ts +6 -0
  30. package/dist/components/atoms/Text/Text.stories.d.ts +11 -0
  31. package/dist/components/atoms/Text/index.d.ts +9 -0
  32. package/dist/components/atoms/TileContainer/index.d.ts +9 -0
  33. package/dist/components/atoms/index.d.ts +12 -0
  34. package/dist/components/hoc/withTileFetching.d.ts +9 -0
  35. package/dist/components/molecules/Carousel/Carousel.spec.d.ts +1 -0
  36. package/dist/components/molecules/Carousel/Carousel.stories.d.ts +12 -0
  37. package/dist/components/molecules/Carousel/index.d.ts +6 -0
  38. package/dist/components/molecules/Carousel/styles.d.ts +2 -0
  39. package/dist/components/molecules/Grid/Grid.spec.d.ts +1 -0
  40. package/dist/components/molecules/Grid/Grid.stories.d.ts +6 -0
  41. package/dist/components/molecules/Grid/index.d.ts +7 -0
  42. package/dist/components/molecules/ProgressIndicator/ProgressIndicator.stories.d.ts +8 -0
  43. package/dist/components/molecules/ProgressIndicator/index.d.ts +10 -0
  44. package/dist/components/molecules/SectionHeader/SectionHeader.spec.d.ts +1 -0
  45. package/dist/components/molecules/SectionHeader/SectionHeader.stories.d.ts +7 -0
  46. package/dist/components/molecules/SectionHeader/index.d.ts +6 -0
  47. package/dist/components/molecules/SectionHeader/styles.d.ts +2 -0
  48. package/dist/components/molecules/index.d.ts +4 -0
  49. package/dist/components/organisms/BadgeTile/BadgeTile.spec.d.ts +1 -0
  50. package/dist/components/organisms/BadgeTile/BadgeTile.stories.d.ts +21 -0
  51. package/dist/components/organisms/BadgeTile/badge-tile-date-earned.d.ts +1 -0
  52. package/dist/components/organisms/BadgeTile/badge-tile-description.d.ts +1 -0
  53. package/dist/components/organisms/BadgeTile/badge-tile-media.d.ts +6 -0
  54. package/dist/components/organisms/BadgeTile/badge-tile-status.d.ts +1 -0
  55. package/dist/components/organisms/BadgeTile/badge-tile-title.d.ts +1 -0
  56. package/dist/components/organisms/BadgeTile/index.d.ts +17 -0
  57. package/dist/components/organisms/BadgeTile/styles.d.ts +2 -0
  58. package/dist/components/organisms/BannerTile/BannerTile.spec.d.ts +1 -0
  59. package/dist/components/organisms/BannerTile/BannerTile.stories.d.ts +12 -0
  60. package/dist/components/organisms/BannerTile/banner-tile-cta.d.ts +1 -0
  61. package/dist/components/organisms/BannerTile/banner-tile-description.d.ts +1 -0
  62. package/dist/components/organisms/BannerTile/banner-tile-media.d.ts +5 -0
  63. package/dist/components/organisms/BannerTile/banner-tile-title.d.ts +1 -0
  64. package/dist/components/organisms/BannerTile/index.d.ts +18 -0
  65. package/dist/components/organisms/BannerTile/styles.d.ts +2 -0
  66. package/dist/components/organisms/ContentTile/ContentTile.spec.d.ts +2 -0
  67. package/dist/components/organisms/ContentTile/ContentTile.stories.d.ts +28 -0
  68. package/dist/components/organisms/ContentTile/content-tile-body.d.ts +1 -0
  69. package/dist/components/organisms/ContentTile/content-tile-container.d.ts +4 -0
  70. package/dist/components/organisms/ContentTile/content-tile-content.d.ts +4 -0
  71. package/dist/components/organisms/ContentTile/content-tile-header.d.ts +1 -0
  72. package/dist/components/organisms/ContentTile/content-tile-media.d.ts +1 -0
  73. package/dist/components/organisms/ContentTile/index.d.ts +21 -0
  74. package/dist/components/organisms/ContentTile/styles.d.ts +2 -0
  75. package/dist/components/organisms/Group/Group.stories.d.ts +10 -0
  76. package/dist/components/organisms/Group/index.d.ts +27 -0
  77. package/dist/components/organisms/PointsTile/PointsTile.spec.d.ts +3 -0
  78. package/dist/components/organisms/PointsTile/PointsTile.stories.d.ts +30 -0
  79. package/dist/components/organisms/PointsTile/index.d.ts +17 -0
  80. package/dist/components/organisms/PointsTile/points-tile-formatted-points.d.ts +1 -0
  81. package/dist/components/organisms/PointsTile/points-tile-media.d.ts +5 -0
  82. package/dist/components/organisms/PointsTile/points-tile-title.d.ts +1 -0
  83. package/dist/components/organisms/PointsTile/styles.d.ts +9 -0
  84. package/dist/components/organisms/RewardCategoryTile/RewardCategoryTile.spec.d.ts +17 -0
  85. package/dist/components/organisms/RewardCategoryTile/RewardCategoryTile.stories.d.ts +24 -0
  86. package/dist/components/organisms/RewardCategoryTile/index.d.ts +14 -0
  87. package/dist/components/organisms/RewardCategoryTile/reward-category-header.d.ts +1 -0
  88. package/dist/components/organisms/RewardCategoryTile/reward-category-media.d.ts +1 -0
  89. package/dist/components/organisms/RewardCategoryTile/styles.d.ts +2 -0
  90. package/dist/components/organisms/RewardTile/RewardTile.spec.d.ts +2 -0
  91. package/dist/components/organisms/RewardTile/RewardTile.stories.d.ts +12 -0
  92. package/dist/components/organisms/RewardTile/index.d.ts +19 -0
  93. package/dist/components/organisms/RewardTile/reward-tile-chevron.d.ts +1 -0
  94. package/dist/components/organisms/RewardTile/reward-tile-media.d.ts +5 -0
  95. package/dist/components/organisms/RewardTile/reward-tile-points.d.ts +1 -0
  96. package/dist/components/organisms/RewardTile/reward-tile-summary.d.ts +1 -0
  97. package/dist/components/organisms/RewardTile/reward-tile-title.d.ts +1 -0
  98. package/dist/components/organisms/RewardTile/styles.d.ts +2 -0
  99. package/dist/components/organisms/Section/Section.spec.d.ts +1 -0
  100. package/dist/components/organisms/Section/Section.stories.d.ts +7 -0
  101. package/dist/components/organisms/Section/index.d.ts +22 -0
  102. package/dist/components/organisms/Section/styles.d.ts +2 -0
  103. package/dist/components/organisms/TierTileUpdated/TierTileUpdated.stories.d.ts +33 -0
  104. package/dist/components/organisms/TierTileUpdated/index.d.ts +15 -0
  105. package/dist/components/organisms/TierTileUpdated/styles.d.ts +36 -0
  106. package/dist/components/organisms/index.d.ts +9 -0
  107. package/dist/constants/device.d.ts +7 -0
  108. package/dist/constants/grid.d.ts +1 -0
  109. package/dist/constants/index.d.ts +3 -0
  110. package/dist/constants/responsive.d.ts +7 -0
  111. package/dist/context/ResponsiveContext.d.ts +4 -0
  112. package/dist/context/WllSdkContext.d.ts +33 -0
  113. package/dist/hooks/useHandleTilePress.d.ts +2 -0
  114. package/dist/hooks/useNavigationHandler.d.ts +3 -0
  115. package/dist/hooks/useResponsive.d.ts +8 -0
  116. package/dist/hooks/useTileSize.d.ts +5 -0
  117. package/dist/index.d.ts +10 -4
  118. package/dist/index.js +7958 -8017
  119. package/dist/index.js.map +1 -1
  120. package/dist/types/common.d.ts +14 -0
  121. package/dist/types/group.d.ts +9 -0
  122. package/dist/types/navigation.d.ts +14 -0
  123. package/dist/types/responsive.d.ts +11 -0
  124. package/dist/types/section.d.ts +23 -0
  125. package/dist/types/theme.d.ts +40 -0
  126. package/dist/types/tile.d.ts +158 -0
  127. package/dist/types/wll.d.ts +60 -0
  128. package/dist/unit-tests/apiHelpers.spec.d.ts +1 -0
  129. package/dist/unit-tests/navigationHelpers.spec.d.ts +1 -0
  130. package/dist/unit-tests/pointsHelpers.spec.d.ts +1 -0
  131. package/dist/unit-tests/responsiveHelper.spec.d.ts +1 -0
  132. package/dist/unit-tests/transforms.spec.d.ts +1 -0
  133. package/dist/unit-tests/useNavigationHandler.spec.d.ts +1 -0
  134. package/dist/utils/apiHelpers.d.ts +28 -0
  135. package/dist/utils/navigationHelpers.d.ts +5 -0
  136. package/dist/utils/pointsHelpers.d.ts +21 -0
  137. package/dist/utils/responsiveHelper.d.ts +2 -0
  138. package/dist/utils/storybookHelpers.d.ts +5 -0
  139. package/dist/utils/storybookThemes.d.ts +74 -0
  140. package/dist/utils/styling.d.ts +26 -0
  141. package/dist/utils/themeHelpers.d.ts +13 -0
  142. package/dist/utils/transforms.d.ts +7 -0
  143. package/dist/utils/variant.d.ts +5 -0
  144. package/package.json +21 -6
@@ -0,0 +1,11 @@
1
+ import * as LucideIcons from 'lucide-react';
2
+ import { ViewProps } from 'react-native';
3
+ type IconName = keyof typeof LucideIcons;
4
+ type IconProps = {
5
+ name: IconName;
6
+ color?: string;
7
+ size?: number;
8
+ strokeWidth?: number;
9
+ } & Omit<ViewProps, 'style'>;
10
+ declare const Icon: ({ name, color, size, strokeWidth, ...props }: IconProps) => JSX.Element | null;
11
+ export default Icon;
@@ -0,0 +1,2 @@
1
+ declare const Indicator: () => JSX.Element;
2
+ export default Indicator;
@@ -0,0 +1,2 @@
1
+ declare const LoadingIndicator: () => JSX.Element;
2
+ export default LoadingIndicator;
@@ -0,0 +1,22 @@
1
+ import * as React from 'react';
2
+ import { ViewProps } from 'react-native';
3
+ import { Align, Justify } from '../../../types/common';
4
+ type ColumnProps = {
5
+ children: React.ReactNode;
6
+ justify?: Justify;
7
+ align?: Align;
8
+ reverse?: boolean;
9
+ flex?: number;
10
+ style?: ViewProps['style'];
11
+ } & Omit<ViewProps, 'style'>;
12
+ /**
13
+ * A primitive Column component that extends Layout with vertical direction.
14
+ * Provides a cleaner API for creating vertically aligned layouts.
15
+ * @param reverse - When true, reverses the direction of the column (column-reverse)
16
+ * @param justify - The justify content of the column
17
+ * @param align - The align items of the column
18
+ * @param flex - Optional flex number to control the column's flex behavior
19
+ * @param style - Additional styles to apply to the column
20
+ */
21
+ export declare const Column: ({ children, justify, align, reverse, flex, style, ...rest }: ColumnProps) => JSX.Element;
22
+ export {};
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { ViewProps, ViewStyle } from 'react-native';
3
+ /**
4
+ * Props for the FullFlex component.
5
+ *
6
+ * @param children - The child components to render inside the flex container.
7
+ * @param style - Optional custom styles to apply to the container.
8
+ */
9
+ type FullFlexProps = {
10
+ children: React.ReactNode;
11
+ style?: ViewStyle;
12
+ } & Omit<ViewProps, 'style'>;
13
+ /**
14
+ * A FullFlex component that provides a flexible container with `flex: 1`.
15
+ *
16
+ * This component is commonly used to create a full-flex container that expands
17
+ * to fill available space in a layout.
18
+ */
19
+ export declare const FullFlex: ({ children, style, ...rest }: FullFlexProps) => JSX.Element;
20
+ export {};
@@ -0,0 +1,21 @@
1
+ import * as React from 'react';
2
+ import { ViewProps } from 'react-native';
3
+ import { Align, FlexDirection, Justify } from '../../../types/common';
4
+ type LayoutProps = {
5
+ children: React.ReactNode;
6
+ direction?: FlexDirection;
7
+ justify?: Justify;
8
+ align?: Align;
9
+ style?: ViewProps['style'];
10
+ } & Omit<ViewProps, 'style'>;
11
+ /**
12
+ * A primitive Layout component that provides flexible layout options.
13
+ * @param direction - The direction of the layout (column or row)
14
+ * @param justify - The justify content of the layout
15
+ * @param align - The align items of the layout
16
+ * @param style - Additional styles to apply to the layout
17
+ * @param children - The child components to render inside the layout
18
+ * @returns The rendered Layout component with special paddings
19
+ */
20
+ export declare const Layout: ({ children, direction, justify, align, style, ...rest }: LayoutProps) => JSX.Element;
21
+ export {};
@@ -0,0 +1,22 @@
1
+ import * as React from 'react';
2
+ import { ViewProps } from 'react-native';
3
+ import { Align, Justify } from '../../../types/common';
4
+ type RowProps = {
5
+ children: React.ReactNode;
6
+ justify?: Justify;
7
+ align?: Align;
8
+ reverse?: boolean;
9
+ flex?: number;
10
+ style?: ViewProps['style'];
11
+ } & Omit<ViewProps, 'style'>;
12
+ /**
13
+ * A primitive Row component that extends Layout with horizontal direction.
14
+ * Provides a cleaner API for creating horizontally aligned layouts.
15
+ * @param reverse - When true, reverses the direction of the row (row-reverse)
16
+ * @param justify - The justify content of the row
17
+ * @param align - The align items of the row
18
+ * @param flex - Optional flex number to control the row's flex behavior
19
+ * @param style - Additional styles to apply to the row
20
+ */
21
+ export declare const Row: ({ children, justify, align, reverse, flex, style, ...rest }: RowProps) => JSX.Element;
22
+ export {};
@@ -0,0 +1,17 @@
1
+ import { ViewProps, ViewStyle } from 'react-native';
2
+ /**
3
+ * Props for the Spacer component.
4
+ *
5
+ * @param style - Optional custom styles to apply to the spacer.
6
+ */
7
+ type SpacerProps = {
8
+ style?: ViewStyle;
9
+ } & Omit<ViewProps, 'style'>;
10
+ /**
11
+ * A simple Spacer component that creates flexible space in layouts.
12
+ *
13
+ * The Spacer is commonly used in flexbox layouts to create adjustable empty space
14
+ * between child elements, avoiding the need for explicit margins or padding.
15
+ */
16
+ export declare const Spacer: ({ style, ...rest }: SpacerProps) => JSX.Element;
17
+ export {};
@@ -0,0 +1,5 @@
1
+ export { Column } from './Column';
2
+ export { FullFlex } from './FullFlex';
3
+ export { Layout } from './Layout';
4
+ export { Row } from './Row';
5
+ export { Spacer } from './Spacer';
@@ -0,0 +1,8 @@
1
+ import { Meta } from "@storybook/react";
2
+ declare const _default: Meta;
3
+ export default _default;
4
+ export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import(".").ProgressBarProps>;
5
+ export declare const Accent: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import(".").ProgressBarProps>;
6
+ export declare const Small: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import(".").ProgressBarProps>;
7
+ export declare const Full: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import(".").ProgressBarProps>;
8
+ export declare const Empty: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import(".").ProgressBarProps>;
@@ -0,0 +1,9 @@
1
+ import { Size, Variant } from '../../../types/theme';
2
+ export type ProgressBarProps = {
3
+ percentage: number;
4
+ variant?: Variant;
5
+ height?: Size;
6
+ animationDuration?: number;
7
+ };
8
+ declare const ProgressBar: ({ percentage, variant, height, animationDuration, }: ProgressBarProps) => JSX.Element;
9
+ export default ProgressBar;
@@ -0,0 +1,9 @@
1
+ import { Meta } from '@storybook/react';
2
+ declare const _default: Meta;
3
+ export default _default;
4
+ export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
5
+ [key: string]: any;
6
+ source: import("react-native").ImageSourcePropType;
7
+ style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
8
+ isDesaturated?: boolean;
9
+ }>;
@@ -0,0 +1,9 @@
1
+ import { ImageSourcePropType, StyleProp, ViewStyle } from 'react-native';
2
+ type ProgressiveImageProps = {
3
+ source: ImageSourcePropType;
4
+ style?: StyleProp<ViewStyle>;
5
+ isDesaturated?: boolean;
6
+ [key: string]: any;
7
+ };
8
+ declare const ProgressiveImage: ({ source, style, isDesaturated, ...props }: ProgressiveImageProps) => JSX.Element;
9
+ export default ProgressiveImage;
@@ -0,0 +1,10 @@
1
+ import { ViewStyle } from 'react-native';
2
+ interface SkeletonProps {
3
+ width?: number | `${number}%`;
4
+ height?: number | `${number}%`;
5
+ borderRadius?: number;
6
+ style?: ViewStyle;
7
+ numberOfSquares?: number;
8
+ }
9
+ declare const Skeleton: ({ style, numberOfSquares, }: SkeletonProps) => JSX.Element;
10
+ export default Skeleton;
@@ -0,0 +1,6 @@
1
+ import { ViewStyle } from 'react-native';
2
+ interface SkeletonTileProps {
3
+ style?: ViewStyle;
4
+ }
5
+ declare const SkeletonTile: ({ style }: SkeletonTileProps) => JSX.Element;
6
+ export default SkeletonTile;
@@ -0,0 +1,11 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { Text } from '.';
3
+ declare const meta: Meta<typeof Text>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Text>;
6
+ export declare const Body: Story;
7
+ export declare const Eyebrow: Story;
8
+ export declare const Title: Story;
9
+ export declare const description: Story;
10
+ export declare const Caption: Story;
11
+ export declare const Label: Story;
@@ -0,0 +1,9 @@
1
+ import { TextProps as RNTextProps, TextStyle } from 'react-native';
2
+ type TextVariant = 'eyebrow' | 'title' | 'description' | 'body' | 'caption' | 'label' | 'tier-requirement' | 'tier-earned';
3
+ type TextProps = RNTextProps & {
4
+ variant?: TextVariant;
5
+ style?: TextStyle;
6
+ isSurface?: boolean;
7
+ };
8
+ export declare const Text: ({ variant, style, isSurface, ...props }: TextProps) => JSX.Element;
9
+ export default Text;
@@ -0,0 +1,9 @@
1
+ import { Tile } from '../../../types/tile';
2
+ type TileContainerProps = {
3
+ tiles: Tile[];
4
+ };
5
+ /**
6
+ * TileContainer component to render a list of tiles with proper layout and spacing.
7
+ */
8
+ declare const TileContainer: ({ tiles }: TileContainerProps) => JSX.Element;
9
+ export default TileContainer;
@@ -0,0 +1,12 @@
1
+ export { default as Button } from './Button';
2
+ export { default as Icon } from './Icon';
3
+ export { default as LoadingIndicator } from './LoadingIndicator';
4
+ export { default as ProgressBar } from './ProgressBar';
5
+ export { default as ProgressiveImage } from './ProgressiveImage';
6
+ export { default as Text } from './Text';
7
+ export { default as BaseBanner } from './BaseBanner';
8
+ export { default as BaseTile } from './BaseTile';
9
+ export { default as Indicator } from './Indicator';
10
+ export { default as Skeleton } from './Skeleton';
11
+ export { default as TileContainer } from './TileContainer';
12
+ export { Column, FullFlex, Layout, Row, Spacer } from './Primatives';
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { Tile } from '../../types/tile';
3
+ export type WithTileFetchingProps = {
4
+ tile?: Tile;
5
+ tileId?: string;
6
+ };
7
+ export declare function withTileFetching<P extends {
8
+ tile: Tile;
9
+ }>(WrappedComponent: React.ComponentType<P>): (props: Omit<P, "tile"> & WithTileFetchingProps) => React.JSX.Element;
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1,12 @@
1
+ import { Meta } from '@storybook/react';
2
+ declare const _default: Meta;
3
+ export default _default;
4
+ export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
5
+ section?: import("../../../types/section").TSection;
6
+ }>;
7
+ export declare const SingleItem: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
8
+ section?: import("../../../types/section").TSection;
9
+ }>;
10
+ export declare const ManyItems: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
11
+ section?: import("../../../types/section").TSection;
12
+ }>;
@@ -0,0 +1,6 @@
1
+ import { TSection } from '../../../types/section';
2
+ type CarouselProps = {
3
+ section?: TSection;
4
+ };
5
+ declare const Carousel: ({ section }: CarouselProps) => JSX.Element | null;
6
+ export default Carousel;
@@ -0,0 +1,2 @@
1
+ import { StyleSheet } from 'react-native';
2
+ export declare const useCarouselStyles: (buttonSize?: number) => ReturnType<typeof StyleSheet.create>;
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1,6 @@
1
+ import { Meta } from '@storybook/react';
2
+ declare const _default: Meta;
3
+ export default _default;
4
+ export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
5
+ section: import("../../../types/section").TSection;
6
+ }>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { TSection } from '../../../types/section';
3
+ type GridProps = {
4
+ section: TSection;
5
+ };
6
+ declare const Grid: ({ section }: GridProps) => React.JSX.Element | null;
7
+ export default Grid;
@@ -0,0 +1,8 @@
1
+ import { Meta } from '@storybook/react';
2
+ import ProgressIndicator, { ProgressIndicatorProps } from '.';
3
+ declare const _default: Meta<typeof ProgressIndicator>;
4
+ export default _default;
5
+ export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, ProgressIndicatorProps>;
6
+ export declare const Incomplete: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, ProgressIndicatorProps>;
7
+ export declare const AlmostComplete: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, ProgressIndicatorProps>;
8
+ export declare const Complete: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, ProgressIndicatorProps>;
@@ -0,0 +1,10 @@
1
+ import { Size, Variant } from '../../../types/theme';
2
+ export type ProgressIndicatorProps = {
3
+ currentPoints: number;
4
+ maxPoints: number;
5
+ variant?: Variant;
6
+ height?: Size;
7
+ attained?: boolean;
8
+ };
9
+ export declare const ProgressIndicator: ({ currentPoints, maxPoints, variant, height, attained, }: ProgressIndicatorProps) => JSX.Element;
10
+ export default ProgressIndicator;
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1,7 @@
1
+ import { Meta } from '@storybook/react';
2
+ declare const _default: Meta;
3
+ export default _default;
4
+ export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
5
+ title?: string;
6
+ description?: string;
7
+ }>;
@@ -0,0 +1,6 @@
1
+ type SectionHeaderProps = {
2
+ title?: string;
3
+ description?: string;
4
+ };
5
+ declare const SectionHeader: ({ title, description, }: SectionHeaderProps) => JSX.Element | null;
6
+ export default SectionHeader;
@@ -0,0 +1,2 @@
1
+ import { StyleSheet } from 'react-native';
2
+ export declare const useSectionHeaderStyles: () => ReturnType<typeof StyleSheet.create>;
@@ -0,0 +1,4 @@
1
+ export { default as Carousel } from './Carousel';
2
+ export { default as Grid } from './Grid';
3
+ export { default as ProgressIndicator } from './ProgressIndicator';
4
+ export { default as SectionHeader } from './SectionHeader';
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1,21 @@
1
+ import { Meta } from '@storybook/react';
2
+ declare const _default: Meta;
3
+ export default _default;
4
+ export declare const LatestNoBadgesEarned: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, Omit<{
5
+ tile: import("../../../types/tile").Tile;
6
+ }, "tile"> & import("../../hoc/withTileFetching").WithTileFetchingProps>;
7
+ export declare const LatestEarned: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, Omit<{
8
+ tile: import("../../../types/tile").Tile;
9
+ }, "tile"> & import("../../hoc/withTileFetching").WithTileFetchingProps>;
10
+ export declare const SpecificBadgeNotEarned: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, Omit<{
11
+ tile: import("../../../types/tile").Tile;
12
+ }, "tile"> & import("../../hoc/withTileFetching").WithTileFetchingProps>;
13
+ export declare const SpecificBadgeHighCount: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, Omit<{
14
+ tile: import("../../../types/tile").Tile;
15
+ }, "tile"> & import("../../hoc/withTileFetching").WithTileFetchingProps>;
16
+ export declare const SpecificBadgeAwardedOnce: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, Omit<{
17
+ tile: import("../../../types/tile").Tile;
18
+ }, "tile"> & import("../../hoc/withTileFetching").WithTileFetchingProps>;
19
+ export declare const SpecificBadgeNotEarnedNoEmpty: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, Omit<{
20
+ tile: import("../../../types/tile").Tile;
21
+ }, "tile"> & import("../../hoc/withTileFetching").WithTileFetchingProps>;
@@ -0,0 +1 @@
1
+ export declare const BadgeTileDateEarned: () => JSX.Element | null;
@@ -0,0 +1 @@
1
+ export declare const BadgeTileDescription: () => JSX.Element | null;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { ProgressiveImage } from '../../atoms';
3
+ export type BadgeTileMediaProps = {
4
+ children?: React.ReactNode;
5
+ } & Omit<React.ComponentProps<typeof ProgressiveImage>, 'source'>;
6
+ export declare const BadgeTileMedia: ({ children, ...props }: BadgeTileMediaProps) => JSX.Element | null;
@@ -0,0 +1 @@
1
+ export declare const BadgeTileStatus: () => JSX.Element | null;
@@ -0,0 +1 @@
1
+ export declare const BadgeTileTitle: () => JSX.Element | null;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { Tile } from '../../../types/tile';
3
+ type BadgeTileProps = {
4
+ tile: Tile;
5
+ };
6
+ /**
7
+ * The BadgeTile component with subcomponents attached.
8
+ */
9
+ export declare const BadgeTile: (({ tile }: BadgeTileProps) => JSX.Element | null) & {
10
+ Media: ({ children, ...props }: import("./badge-tile-media").BadgeTileMediaProps) => JSX.Element | null;
11
+ Title: () => JSX.Element | null;
12
+ Description: () => JSX.Element | null;
13
+ DateEarned: () => JSX.Element | null;
14
+ Status: () => JSX.Element | null;
15
+ };
16
+ declare const _default: (props: Omit<BadgeTileProps, "tile"> & import("../../hoc/withTileFetching").WithTileFetchingProps) => React.JSX.Element;
17
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { StyleSheet } from 'react-native';
2
+ export declare const useBadgeTileStyles: () => ReturnType<typeof StyleSheet.create>;
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1,12 @@
1
+ import { Meta } from '@storybook/react';
2
+ declare const _default: Meta;
3
+ export default _default;
4
+ export declare const SeasonalPromotionBanner: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, Omit<{
5
+ tile: import("../../../types/tile").Tile;
6
+ }, "tile"> & import("../../hoc/withTileFetching").WithTileFetchingProps>;
7
+ export declare const LoyaltyTierUpgrade: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, Omit<{
8
+ tile: import("../../../types/tile").Tile;
9
+ }, "tile"> & import("../../hoc/withTileFetching").WithTileFetchingProps>;
10
+ export declare const RewardsHighlight: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, Omit<{
11
+ tile: import("../../../types/tile").Tile;
12
+ }, "tile"> & import("../../hoc/withTileFetching").WithTileFetchingProps>;
@@ -0,0 +1 @@
1
+ export declare const BannerTileCTA: () => JSX.Element | null;
@@ -0,0 +1 @@
1
+ export declare const BannerTileDescription: () => JSX.Element | null;
@@ -0,0 +1,5 @@
1
+ type BannerTileMediaProps = {
2
+ isArtworkOnly: boolean;
3
+ };
4
+ export declare const BannerTileMedia: ({ isArtworkOnly, }: BannerTileMediaProps) => JSX.Element | null;
5
+ export {};
@@ -0,0 +1 @@
1
+ export declare const BannerTileTitle: () => JSX.Element | null;
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { Tile } from '../../../types/tile';
3
+ type BannerTileProps = {
4
+ tile: Tile;
5
+ };
6
+ /**
7
+ * The BannerTile component with subcomponents attached.
8
+ */
9
+ export declare const BannerTile: (({ tile }: BannerTileProps) => JSX.Element | null) & {
10
+ Media: ({ isArtworkOnly, }: {
11
+ isArtworkOnly: boolean;
12
+ }) => JSX.Element | null;
13
+ Title: () => JSX.Element | null;
14
+ Description: () => JSX.Element | null;
15
+ CTA: () => JSX.Element | null;
16
+ };
17
+ declare const _default: (props: Omit<BannerTileProps, "tile"> & import("../../hoc/withTileFetching").WithTileFetchingProps) => React.JSX.Element;
18
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { StyleSheet } from 'react-native';
2
+ export declare const useBannerTileStyles: () => ReturnType<typeof StyleSheet.create>;
@@ -0,0 +1,2 @@
1
+ import { Tile } from '../../../types/tile';
2
+ export declare const ContentTileMock: Tile;
@@ -0,0 +1,28 @@
1
+ import { Meta } from '@storybook/react';
2
+ import ContentTile from '.';
3
+ declare const _default: Meta<typeof ContentTile>;
4
+ export default _default;
5
+ export declare const FullSizeWelcomeTier: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, Omit<{
6
+ tile: import("../../../types/tile").Tile;
7
+ }, "tile"> & import("../../hoc/withTileFetching").WithTileFetchingProps>;
8
+ export declare const FullSizeRewardHighlight: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, Omit<{
9
+ tile: import("../../../types/tile").Tile;
10
+ }, "tile"> & import("../../hoc/withTileFetching").WithTileFetchingProps>;
11
+ export declare const FullSizeMilestoneAlert: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, Omit<{
12
+ tile: import("../../../types/tile").Tile;
13
+ }, "tile"> & import("../../hoc/withTileFetching").WithTileFetchingProps>;
14
+ export declare const FullSizePointsExpiry: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, Omit<{
15
+ tile: import("../../../types/tile").Tile;
16
+ }, "tile"> & import("../../hoc/withTileFetching").WithTileFetchingProps>;
17
+ export declare const HalfSizeBirthdayReward: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, Omit<{
18
+ tile: import("../../../types/tile").Tile;
19
+ }, "tile"> & import("../../hoc/withTileFetching").WithTileFetchingProps>;
20
+ export declare const HalfSizePointsBoost: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, Omit<{
21
+ tile: import("../../../types/tile").Tile;
22
+ }, "tile"> & import("../../hoc/withTileFetching").WithTileFetchingProps>;
23
+ export declare const HalfSizeReferralBonus: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, Omit<{
24
+ tile: import("../../../types/tile").Tile;
25
+ }, "tile"> & import("../../hoc/withTileFetching").WithTileFetchingProps>;
26
+ export declare const FullSizePartnerRewards: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, Omit<{
27
+ tile: import("../../../types/tile").Tile;
28
+ }, "tile"> & import("../../hoc/withTileFetching").WithTileFetchingProps>;
@@ -0,0 +1 @@
1
+ export declare const ContentTileBody: () => JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { ReactNode } from 'react';
2
+ export declare const ContentTileContainer: ({ children, }: {
3
+ children: ReactNode;
4
+ }) => JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { ReactNode } from 'react';
2
+ export declare const ContentTileContent: ({ children, }: {
3
+ children: ReactNode;
4
+ }) => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const ContentTileHeader: () => JSX.Element | null;
@@ -0,0 +1 @@
1
+ export declare const ContentTileMedia: () => JSX.Element;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import { Tile } from '../../../types/tile';
3
+ type ContentTileProps = {
4
+ tile: Tile;
5
+ };
6
+ /**
7
+ * The ContentTile component with subcomponents attached.
8
+ */
9
+ export declare const ContentTile: (({ tile }: ContentTileProps) => JSX.Element | null) & {
10
+ Container: ({ children, }: {
11
+ children: React.ReactNode;
12
+ }) => JSX.Element;
13
+ Media: () => JSX.Element;
14
+ Content: ({ children, }: {
15
+ children: React.ReactNode;
16
+ }) => JSX.Element;
17
+ Header: () => JSX.Element | null;
18
+ Body: () => JSX.Element;
19
+ };
20
+ declare const _default: (props: Omit<ContentTileProps, "tile"> & import("../../hoc/withTileFetching").WithTileFetchingProps) => React.JSX.Element;
21
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { StyleSheet } from 'react-native';
2
+ export declare const useContentTileStyles: () => ReturnType<typeof StyleSheet.create>;
@@ -0,0 +1,10 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Group from './index';
3
+ declare const meta: Meta<typeof Group>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Group>;
6
+ export declare const EmptyGroup: Story;
7
+ export declare const EmptySections: Story;
8
+ export declare const FullGroup: Story;
9
+ export declare const GamificationFullGroup: Story;
10
+ export declare const AirMilesTravelFullGroup: Story;
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ import { TGroup } from '../../../types/group';
3
+ type GroupProps = {
4
+ id: string;
5
+ };
6
+ type GroupContextType = {
7
+ groupData: TGroup;
8
+ };
9
+ type GroupEmptyStateProps = {
10
+ message: string;
11
+ };
12
+ export declare const GroupContext: React.Context<GroupContextType | undefined>;
13
+ export declare const useGroupContext: () => GroupContextType;
14
+ /**
15
+ * A page-level component that represents a Group view in the application.
16
+ *
17
+ * This component serves as a container page that manages the fetching and display
18
+ * of a group's data and its associated sections. It handles various states including
19
+ * loading, errors, and empty states, providing a complete page experience for
20
+ * viewing group content.
21
+ *
22
+ * @param id - The unique identifier of the group to fetch and display.
23
+ */
24
+ declare const Group: ({ id }: GroupProps) => JSX.Element | null;
25
+ export default Group;
26
+ export declare const GroupSections: () => JSX.Element;
27
+ export declare const GroupEmptyState: ({ message, }: GroupEmptyStateProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import '@testing-library/jest-dom';
2
+ import { Tile } from '../../../types/tile';
3
+ export declare const PointsTileMock: Tile;