@wlloyalty/wll-react-sdk 1.0.3 → 1.0.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.
Files changed (60) hide show
  1. package/dist/index.d.ts +606 -9
  2. package/dist/index.js +20113 -2
  3. package/dist/index.js.map +1 -0
  4. package/package.json +7 -6
  5. package/dist/components/atoms/BaseBanner/BaseBanner.stories.d.ts +0 -8
  6. package/dist/components/atoms/BaseBanner/index.d.ts +0 -9
  7. package/dist/components/atoms/BaseTile/BaseTile.stories.d.ts +0 -14
  8. package/dist/components/atoms/BaseTile/index.d.ts +0 -17
  9. package/dist/components/atoms/Button/Button.stories.d.ts +0 -7
  10. package/dist/components/atoms/Button/index.d.ts +0 -9
  11. package/dist/components/atoms/Icon/Icon.stories.d.ts +0 -28
  12. package/dist/components/atoms/Icon/index.d.ts +0 -11
  13. package/dist/components/atoms/Image/index.d.ts +0 -9
  14. package/dist/components/atoms/LoadingIndicator/index.d.ts +0 -7
  15. package/dist/components/atoms/ProgressBar/ProgressBar.stories.d.ts +0 -8
  16. package/dist/components/atoms/ProgressBar/index.d.ts +0 -9
  17. package/dist/components/atoms/Text/Text.stories.d.ts +0 -11
  18. package/dist/components/atoms/Text/index.d.ts +0 -10
  19. package/dist/components/atoms/TileContainer/index.d.ts +0 -7
  20. package/dist/components/atoms/index.d.ts +0 -9
  21. package/dist/components/molecules/Carousel/Carousel.stories.d.ts +0 -13
  22. package/dist/components/molecules/Carousel/index.d.ts +0 -7
  23. package/dist/components/molecules/Grid/Grid.stories.d.ts +0 -6
  24. package/dist/components/molecules/Grid/index.d.ts +0 -7
  25. package/dist/components/molecules/ProgressIndicator/ProgressIndicator.stories.d.ts +0 -11
  26. package/dist/components/molecules/ProgressIndicator/index.d.ts +0 -11
  27. package/dist/components/molecules/SectionHeader/SectionHeader.stories.d.ts +0 -7
  28. package/dist/components/molecules/SectionHeader/index.d.ts +0 -7
  29. package/dist/components/molecules/index.d.ts +0 -5
  30. package/dist/components/organisms/BadgeTile/BadgeTile.stories.d.ts +0 -9
  31. package/dist/components/organisms/BadgeTile/index.d.ts +0 -13
  32. package/dist/components/organisms/BannerTile/BannerTile.stories.d.ts +0 -9
  33. package/dist/components/organisms/BannerTile/index.d.ts +0 -16
  34. package/dist/components/organisms/ContentTile/ContentTile.stories.d.ts +0 -28
  35. package/dist/components/organisms/ContentTile/index.d.ts +0 -7
  36. package/dist/components/organisms/PointsTile/PointsTile.stories.d.ts +0 -9
  37. package/dist/components/organisms/PointsTile/index.d.ts +0 -17
  38. package/dist/components/organisms/RewardCategoryTile/RewardCategoryTile.stories.d.ts +0 -12
  39. package/dist/components/organisms/RewardCategoryTile/index.d.ts +0 -12
  40. package/dist/components/organisms/RewardTile/RewardTile.stories.d.ts +0 -9
  41. package/dist/components/organisms/RewardTile/index.d.ts +0 -16
  42. package/dist/components/organisms/Section/Section.stories.d.ts +0 -3
  43. package/dist/components/organisms/Section/index.d.ts +0 -19
  44. package/dist/components/organisms/TierTile/TierTile.stories.d.ts +0 -22
  45. package/dist/components/organisms/TierTile/index.d.ts +0 -25
  46. package/dist/components/organisms/index.d.ts +0 -9
  47. package/dist/constants/device.d.ts +0 -7
  48. package/dist/context/WllSdkContext.d.ts +0 -25
  49. package/dist/index.js.LICENSE.txt +0 -6
  50. package/dist/types/common.d.ts +0 -2
  51. package/dist/types/section.d.ts +0 -19
  52. package/dist/types/theme.d.ts +0 -39
  53. package/dist/types/tile.d.ts +0 -91
  54. package/dist/types/wll.d.ts +0 -62
  55. package/dist/utils/responsiveHelper.d.ts +0 -5
  56. package/dist/utils/storybookHelpers.d.ts +0 -5
  57. package/dist/utils/styling.d.ts +0 -11
  58. package/dist/utils/themeHelpers.d.ts +0 -9
  59. package/dist/utils/transforms.d.ts +0 -0
  60. package/dist/utils/variant.d.ts +0 -5
@@ -1,11 +0,0 @@
1
- import * as LucideIcons from 'lucide-react';
2
- import * as React from 'react';
3
- type IconName = keyof typeof LucideIcons;
4
- type IconProps = {
5
- name: IconName;
6
- color?: string;
7
- size?: number;
8
- strokeWidth?: number;
9
- };
10
- declare const Icon: React.FC<IconProps>;
11
- export default Icon;
@@ -1,9 +0,0 @@
1
- import React from "react";
2
- import { ImageProps as RNImageProps } from "react-native";
3
- type ImageProps = RNImageProps & {
4
- roundedCorners?: boolean;
5
- borderRadius?: number;
6
- aspectRatio?: number;
7
- };
8
- declare const Image: React.FC<ImageProps>;
9
- export default Image;
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- import { Tile } from '../../../types/tile';
3
- type LoadingIndicatorProps = {
4
- tile: Tile;
5
- };
6
- declare const LoadingIndicator: React.FC<LoadingIndicatorProps>;
7
- export default LoadingIndicator;
@@ -1,8 +0,0 @@
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>;
@@ -1,9 +0,0 @@
1
- import * as React from 'react';
2
- import { Size, Variant } from '../../../types/theme';
3
- export type ProgressBarProps = {
4
- percentage: number;
5
- variant?: Variant;
6
- height?: Size;
7
- };
8
- declare const ProgressBar: React.FC<ProgressBarProps>;
9
- export default ProgressBar;
@@ -1,11 +0,0 @@
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 Subtitle: Story;
10
- export declare const Caption: Story;
11
- export declare const Label: Story;
@@ -1,10 +0,0 @@
1
- import * as React from 'react';
2
- import { TextProps as RNTextProps, TextStyle } from 'react-native';
3
- type TextVariant = 'eyebrow' | 'title' | 'subtitle' | 'body' | 'caption' | 'label' | 'tier-requirement' | 'tier-earned';
4
- type TextProps = RNTextProps & {
5
- variant?: TextVariant;
6
- style?: TextStyle;
7
- isSurface?: boolean;
8
- };
9
- export declare const Text: React.FC<TextProps>;
10
- export default Text;
@@ -1,7 +0,0 @@
1
- import { Tile } from '../../../types/tile';
2
- import * as React from 'react';
3
- type TileContainerProps = {
4
- tiles: Tile[];
5
- };
6
- declare const TileContainer: React.FC<TileContainerProps>;
7
- export default TileContainer;
@@ -1,9 +0,0 @@
1
- import Button from "./Button";
2
- import Icon from "./Icon";
3
- import Image from "./Image";
4
- import LoadingIndicator from "./LoadingIndicator";
5
- import ProgressBar from "./ProgressBar";
6
- import Text from "./Text";
7
- import BaseTile from "./BaseTile";
8
- import TileContainer from "./TileContainer";
9
- export { Button, Icon, Image, LoadingIndicator, ProgressBar, Text, BaseTile, TileContainer, };
@@ -1,13 +0,0 @@
1
- import { Meta } from '@storybook/react';
2
- import { TSection } from '../../../types/section';
3
- declare const _default: Meta;
4
- export default _default;
5
- export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
6
- section: TSection;
7
- }>;
8
- export declare const SingleItem: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
9
- section: TSection;
10
- }>;
11
- export declare const ManyItems: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
12
- section: TSection;
13
- }>;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { TSection } from '../../../types/section';
3
- type CarouselProps = {
4
- section: TSection;
5
- };
6
- declare const Carousel: React.FC<CarouselProps>;
7
- export default Carousel;
@@ -1,6 +0,0 @@
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
- }>;
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- import { TSection as SectionData } from '../../../types/section';
3
- type GridProps = {
4
- section: SectionData;
5
- };
6
- declare const Grid: React.FC<GridProps>;
7
- export default Grid;
@@ -1,11 +0,0 @@
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>;
9
- export declare const AccentVariant: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, ProgressIndicatorProps>;
10
- export declare const SmallHeight: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, ProgressIndicatorProps>;
11
- export declare const LargeHeight: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, ProgressIndicatorProps>;
@@ -1,11 +0,0 @@
1
- import * as React from 'react';
2
- import { Size, Variant } from '../../../types/theme';
3
- export type ProgressIndicatorProps = {
4
- currentPoints: number;
5
- maxPoints: number;
6
- variant?: Variant;
7
- height?: Size;
8
- attained?: boolean;
9
- };
10
- export declare const ProgressIndicator: React.FC<ProgressIndicatorProps>;
11
- export default ProgressIndicator;
@@ -1,7 +0,0 @@
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
- }>;
@@ -1,7 +0,0 @@
1
- import React from "react";
2
- type SectionHeaderProps = {
3
- title?: string;
4
- description?: string;
5
- };
6
- declare const SectionHeader: React.FC<SectionHeaderProps>;
7
- export default SectionHeader;
@@ -1,5 +0,0 @@
1
- import Carousel from "./Carousel";
2
- import Grid from "./Grid";
3
- import ProgressIndicator from "./ProgressIndicator";
4
- import SectionHeader from "./SectionHeader";
5
- export { Carousel, Grid, ProgressIndicator, SectionHeader };
@@ -1,9 +0,0 @@
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
- tile: import("../../../types/tile").Tile;
6
- }>;
7
- export declare const Locked: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
8
- tile: import("../../../types/tile").Tile;
9
- }>;
@@ -1,13 +0,0 @@
1
- import { FC } from 'react';
2
- import { ImagePropsNoSource } from '../../../types/common';
3
- import { Tile } from '../../../types/tile';
4
- type BadgeTileProps = {
5
- tile: Tile;
6
- };
7
- type BadgeTileComponent = FC<BadgeTileProps> & {
8
- Title: FC;
9
- Body: FC;
10
- Image: FC<ImagePropsNoSource>;
11
- };
12
- export declare const BadgeTile: BadgeTileComponent;
13
- export default BadgeTile;
@@ -1,9 +0,0 @@
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
- tile: import("../../../types/tile").Tile;
6
- }>;
7
- export declare const WithoutButton: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
8
- tile: import("../../../types/tile").Tile;
9
- }>;
@@ -1,16 +0,0 @@
1
- import * as React from 'react';
2
- import { Tile } from '../../../types/tile';
3
- type BannerTileProps = {
4
- tile: Tile;
5
- };
6
- declare const BannerTile: React.FC<BannerTileProps> & {
7
- Image: typeof BannerTileImage;
8
- Title: typeof BannerTileTitle;
9
- Description: typeof BannerTileDescription;
10
- CTA: typeof BannerTileCTA;
11
- };
12
- declare const BannerTileImage: React.FC;
13
- declare const BannerTileTitle: React.FC;
14
- declare const BannerTileDescription: React.FC;
15
- declare const BannerTileCTA: React.FC;
16
- export default BannerTile;
@@ -1,28 +0,0 @@
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 FullSizeImageAndText: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
6
- tile: import("../../../types/tile").Tile;
7
- }>;
8
- export declare const FullSizeImageOnly: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
9
- tile: import("../../../types/tile").Tile;
10
- }>;
11
- export declare const FullSizeTextOnly: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
12
- tile: import("../../../types/tile").Tile;
13
- }>;
14
- export declare const FullSizeTextOnlyLongBody: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
15
- tile: import("../../../types/tile").Tile;
16
- }>;
17
- export declare const HalfSizeImageOnly: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
18
- tile: import("../../../types/tile").Tile;
19
- }>;
20
- export declare const HalfSizeTextOnly: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
21
- tile: import("../../../types/tile").Tile;
22
- }>;
23
- export declare const HalfSizeTextOnlyWithLink: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
24
- tile: import("../../../types/tile").Tile;
25
- }>;
26
- export declare const FullSizeWithLink: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
27
- tile: import("../../../types/tile").Tile;
28
- }>;
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- import { Tile } from '../../../types/tile';
3
- type ContentTileProps = {
4
- tile: Tile;
5
- };
6
- declare const ContentTile: React.FC<ContentTileProps>;
7
- export default ContentTile;
@@ -1,9 +0,0 @@
1
- import { Meta } from '@storybook/react';
2
- declare const _default: Meta;
3
- export default _default;
4
- export declare const HalfTile: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
5
- tile: import("../../../types/tile").Tile;
6
- }>;
7
- export declare const FullTile: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
8
- tile: import("../../../types/tile").Tile;
9
- }>;
@@ -1,17 +0,0 @@
1
- import * as React from 'react';
2
- import { Tile } from '../../../types/tile';
3
- type PointsTileProps = {
4
- tile: Tile;
5
- };
6
- declare const PointsTile: React.FC<PointsTileProps> & {
7
- Title: typeof PointsTileTitle;
8
- Points: typeof PointsTilePoints;
9
- Image: typeof PointsTileImage;
10
- };
11
- declare const PointsTileTitle: React.FC;
12
- declare const PointsTilePoints: React.FC;
13
- type PointTileImageProps = {
14
- isFullSize: boolean;
15
- };
16
- declare const PointsTileImage: React.FC<PointTileImageProps>;
17
- export default PointsTile;
@@ -1,12 +0,0 @@
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
- tile: import("../../../types/tile").Tile;
6
- }>;
7
- export declare const LongCategoryName: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
8
- tile: import("../../../types/tile").Tile;
9
- }>;
10
- export declare const NoDecorationOverlay: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
11
- tile: import("../../../types/tile").Tile;
12
- }>;
@@ -1,12 +0,0 @@
1
- import * as React from 'react';
2
- import { Tile } from '../../../types/tile';
3
- type RewardCategoryTileProps = {
4
- tile: Tile;
5
- };
6
- declare const RewardCategoryTile: React.FC<RewardCategoryTileProps> & {
7
- Overlay: typeof RewardCategoryTileOverlay;
8
- Image: typeof RewardCategoryTileImage;
9
- };
10
- declare const RewardCategoryTileOverlay: React.FC;
11
- declare const RewardCategoryTileImage: React.FC;
12
- export default RewardCategoryTile;
@@ -1,9 +0,0 @@
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
- tile: import("../../../types/tile").Tile;
6
- }>;
7
- export declare const DefaultWithPoints: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
8
- tile: import("../../../types/tile").Tile;
9
- }>;
@@ -1,16 +0,0 @@
1
- import * as React from 'react';
2
- import { Tile } from '../../../types/tile';
3
- type RewardTileProps = {
4
- tile: Tile;
5
- };
6
- declare const RewardTile: React.FC<RewardTileProps> & {
7
- Image: typeof RewardTileImage;
8
- Title: typeof RewardTileTitle;
9
- Description: typeof RewardTileDescription;
10
- Points: typeof RewardTilePoints;
11
- };
12
- declare const RewardTileImage: React.FC;
13
- declare const RewardTileTitle: React.FC;
14
- declare const RewardTileDescription: React.FC;
15
- declare const RewardTilePoints: React.FC;
16
- export default RewardTile;
@@ -1,3 +0,0 @@
1
- import { Meta } from '@storybook/react';
2
- declare const _default: Meta;
3
- export default _default;
@@ -1,19 +0,0 @@
1
- import { TSection as SectionData } from '../../../types/section';
2
- import React from 'react';
3
- type SectionContextType = {
4
- sectionData: SectionData | null;
5
- loading: boolean;
6
- error: Error | null;
7
- };
8
- export declare const SectionContext: React.Context<SectionContextType | undefined>;
9
- type SectionProviderProps = {
10
- sectionId: string;
11
- children: React.ReactNode;
12
- };
13
- export declare const SectionProvider: React.FC<SectionProviderProps>;
14
- export declare const useSectionContext: () => SectionContextType;
15
- interface SectionProps {
16
- section: SectionData;
17
- }
18
- declare const Section: React.FC<SectionProps>;
19
- export default Section;
@@ -1,22 +0,0 @@
1
- import { Meta } from '@storybook/react';
2
- import TierTile from '.';
3
- declare const _default: Meta<typeof TierTile>;
4
- export default _default;
5
- export declare const CurrentTierHalf: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
6
- tile: import("../../../types/tile").Tile;
7
- }>;
8
- export declare const CurrentTierFull: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
9
- tile: import("../../../types/tile").Tile;
10
- }>;
11
- export declare const CurrentTargetNextTierHalf: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
12
- tile: import("../../../types/tile").Tile;
13
- }>;
14
- export declare const CurrentTargetNextTierFull: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
15
- tile: import("../../../types/tile").Tile;
16
- }>;
17
- export declare const CurrentTargetSpecificTierHalf: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
18
- tile: import("../../../types/tile").Tile;
19
- }>;
20
- export declare const CurrentTargetSpecificTierFull: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
21
- tile: import("../../../types/tile").Tile;
22
- }>;
@@ -1,25 +0,0 @@
1
- import * as React from 'react';
2
- import { Tile } from '../../../types/tile';
3
- type TierTileProps = {
4
- tile: Tile;
5
- };
6
- declare const TierTile: React.FC<TierTileProps> & {
7
- Name: typeof Name;
8
- Count: typeof Count;
9
- Image: typeof TierTileImage;
10
- Progress: typeof Progress;
11
- Description: typeof Description;
12
- NextName: typeof NextName;
13
- NextCount: typeof NextCount;
14
- };
15
- type TierTileImageProps = {
16
- isFullSize: boolean;
17
- };
18
- declare const TierTileImage: React.FC<TierTileImageProps>;
19
- declare const Name: React.FC;
20
- declare const NextName: React.FC;
21
- declare const Count: React.FC;
22
- declare const NextCount: React.FC;
23
- declare const Progress: React.FC;
24
- declare const Description: React.FC;
25
- export default TierTile;
@@ -1,9 +0,0 @@
1
- import BadgeTile from './BadgeTile';
2
- import BannerTile from './BannerTile';
3
- import ContentTile from './ContentTile';
4
- import PointsTile from './PointsTile';
5
- import RewardCategoryTile from './RewardCategoryTile';
6
- import RewardTile from './RewardTile';
7
- import Section from './Section';
8
- import TierTile from './TierTile';
9
- export { BadgeTile, BannerTile, ContentTile, PointsTile, RewardCategoryTile, RewardTile, Section, TierTile, };
@@ -1,7 +0,0 @@
1
- export declare const IS_WEB: boolean;
2
- export declare const IS_IOS: boolean;
3
- export declare const IS_ANDROID: boolean;
4
- export declare const IS_MOBILE: boolean;
5
- export declare const IS_DESKTOP: boolean;
6
- export declare const SCREEN_WIDTH: number;
7
- export declare const SCREEN_HEIGHT: number;
@@ -1,25 +0,0 @@
1
- import React from 'react';
2
- import { TSection } from '../types/section';
3
- import { BaseThemeObject, ThemeContextType } from '../types/theme';
4
- import { Tile } from '../types/tile';
5
- type SDKConfig = {
6
- apiKey: string;
7
- baseUrl: string;
8
- proxyEndpoint?: string;
9
- };
10
- type APIResponse<T> = {
11
- data: T;
12
- status: string;
13
- };
14
- type WllSdkContextType = ThemeContextType & {
15
- getSectionByID: (id: string) => Promise<APIResponse<TSection>>;
16
- getTileByID: (id: string) => Promise<APIResponse<Tile>>;
17
- };
18
- type WllSdkProviderProps = {
19
- children: React.ReactNode;
20
- theme?: Partial<BaseThemeObject>;
21
- config: SDKConfig;
22
- };
23
- export declare const WllSdkProvider: React.FC<WllSdkProviderProps>;
24
- export declare const useWllSdk: () => WllSdkContextType;
25
- export {};
@@ -1,6 +0,0 @@
1
- /**
2
- * @license lucide-react v0.427.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */
@@ -1,2 +0,0 @@
1
- import { ImageProps } from 'react-native';
2
- export type ImagePropsNoSource = Omit<ImageProps, 'source'>;
@@ -1,19 +0,0 @@
1
- import { Tile } from './tile';
2
- export declare enum SectionType {
3
- Grid = "GRID",
4
- Banner = "BANNER"
5
- }
6
- export type TSection = {
7
- id: string;
8
- type: SectionType;
9
- createdAt: string;
10
- updatedAt: string;
11
- title?: string;
12
- description?: string;
13
- tiles: Tile[];
14
- pointsMultiplier?: number;
15
- pointsPrefix?: string | null;
16
- pointsSuffix?: string | null;
17
- priority: number;
18
- active: boolean;
19
- };
@@ -1,39 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { sizes } from '../utils/styling';
3
- import { DerivedColors } from '../utils/themeHelpers';
4
- export type BaseThemeObject = {
5
- accent: string;
6
- background: string;
7
- errorPrimary: string;
8
- negative: string;
9
- pageButtonBackground: string;
10
- pageButtonText: string;
11
- positive: string;
12
- primary: string;
13
- surface: string;
14
- surfaceText: string;
15
- text: string;
16
- };
17
- export type DerivedProperties = {
18
- accentText: string;
19
- derivedBackground: string;
20
- primaryText: string;
21
- positiveText: string;
22
- negativeText: string;
23
- derivedSurfaceText: DerivedColors;
24
- derivedSurface: DerivedColors;
25
- alphaDerivedPrimary: DerivedColors;
26
- };
27
- export type ThemeObject = BaseThemeObject & DerivedProperties & {
28
- readonly sizes: typeof sizes;
29
- };
30
- export type ThemeContextType = {
31
- theme: ThemeObject;
32
- setTheme: (theme: ThemeObject) => void;
33
- };
34
- export type ThemeProviderProps = {
35
- children: ReactNode;
36
- theme?: Partial<BaseThemeObject>;
37
- };
38
- export type Variant = 'primary' | 'accent' | 'positive' | 'negative';
39
- export type Size = 'sm' | 'md' | 'lg';