@wlloyalty/wll-react-sdk 1.0.67 → 1.0.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -3,7 +3,6 @@ import * as react_native from 'react-native';
3
3
  import { ViewProps, ImageSourcePropType, StyleProp, ViewStyle, TextProps as TextProps$1, TextStyle, ImageProps } from 'react-native';
4
4
  import * as React$1 from 'react';
5
5
  import React__default from 'react';
6
- import * as react_jsx_runtime from 'react/jsx-runtime';
7
6
 
8
7
  declare const sizes: {
9
8
  readonly borderRadiusSm: 15;
@@ -532,7 +531,7 @@ declare const Carousel: ({ section }: CarouselProps) => JSX.Element | null;
532
531
  type GridProps = {
533
532
  section: TSection;
534
533
  };
535
- declare const Grid: ({ section }: GridProps) => react_jsx_runtime.JSX.Element | null;
534
+ declare const Grid: ({ section }: GridProps) => React__default.JSX.Element | null;
536
535
 
537
536
  type ProgressIndicatorProps = {
538
537
  currentPoints: number;
@@ -557,17 +556,17 @@ type WithTileFetchingProps = {
557
556
  type BadgeTileProps = {
558
557
  tile: Tile;
559
558
  };
560
- declare const _default$5: (props: Omit<BadgeTileProps, "tile"> & WithTileFetchingProps) => react_jsx_runtime.JSX.Element;
559
+ declare const _default$5: (props: Omit<BadgeTileProps, "tile"> & WithTileFetchingProps) => React__default.JSX.Element;
561
560
 
562
561
  type BannerTileProps = {
563
562
  tile: Tile;
564
563
  };
565
- declare const _default$4: (props: Omit<BannerTileProps, "tile"> & WithTileFetchingProps) => react_jsx_runtime.JSX.Element;
564
+ declare const _default$4: (props: Omit<BannerTileProps, "tile"> & WithTileFetchingProps) => React__default.JSX.Element;
566
565
 
567
566
  type ContentTileProps = {
568
567
  tile: Tile;
569
568
  };
570
- declare const _default$3: (props: Omit<ContentTileProps, "tile"> & WithTileFetchingProps) => react_jsx_runtime.JSX.Element;
569
+ declare const _default$3: (props: Omit<ContentTileProps, "tile"> & WithTileFetchingProps) => React__default.JSX.Element;
571
570
 
572
571
  type TGroup = {
573
572
  name: string;
@@ -598,17 +597,17 @@ declare const Group: ({ id }: GroupProps) => JSX.Element | null;
598
597
  type PointsTileProps = {
599
598
  tile: Tile;
600
599
  };
601
- declare const _default$2: (props: Omit<PointsTileProps, "tile"> & WithTileFetchingProps) => react_jsx_runtime.JSX.Element;
600
+ declare const _default$2: (props: Omit<PointsTileProps, "tile"> & WithTileFetchingProps) => React__default.JSX.Element;
602
601
 
603
602
  type RewardCategoryTileProps = {
604
603
  tile: Tile;
605
604
  };
606
- declare const _default$1: (props: Omit<RewardCategoryTileProps, "tile"> & WithTileFetchingProps) => react_jsx_runtime.JSX.Element;
605
+ declare const _default$1: (props: Omit<RewardCategoryTileProps, "tile"> & WithTileFetchingProps) => React__default.JSX.Element;
607
606
 
608
607
  type RewardTileProps = {
609
608
  tile: Tile;
610
609
  };
611
- declare const _default: (props: Omit<RewardTileProps, "tile"> & WithTileFetchingProps) => react_jsx_runtime.JSX.Element;
610
+ declare const _default: (props: Omit<RewardTileProps, "tile"> & WithTileFetchingProps) => React__default.JSX.Element;
612
611
 
613
612
  type SectionProps = {
614
613
  section?: TSection;
package/dist/native.js CHANGED
@@ -1669,14 +1669,11 @@ var validateTheme = function (theme) {
1669
1669
  var requiredColors = [
1670
1670
  'accent',
1671
1671
  'background',
1672
- 'errorPrimary',
1673
- 'negative',
1674
- 'pageButtonBackground',
1675
- 'pageButtonText',
1676
- 'positive',
1677
1672
  'primary',
1678
1673
  'surface',
1679
1674
  'surfaceText',
1675
+ 'positive',
1676
+ 'negative',
1680
1677
  'text',
1681
1678
  ];
1682
1679
  return requiredColors.every(function (color) { return theme[color] && isValidColor(theme[color]); });
@@ -3655,6 +3652,7 @@ var Grid = function (_a) {
3655
3652
  width: "calc(".concat(100 / columns, "% - ").concat(((columns - 1) * GRID_GAP) / columns, "px)"),
3656
3653
  marginBottom: GRID_GAP,
3657
3654
  height: 'auto',
3655
+ aspectRatio: 1,
3658
3656
  };
3659
3657
  }
3660
3658
  else {
@@ -3662,7 +3660,7 @@ var Grid = function (_a) {
3662
3660
  return {
3663
3661
  width: tileWidth,
3664
3662
  marginBottom: GRID_GAP,
3665
- height: 'auto',
3663
+ aspectRatio: 1,
3666
3664
  };
3667
3665
  }
3668
3666
  }, []);
@@ -4583,8 +4581,6 @@ var useTierTileStyles = function () {
4583
4581
  },
4584
4582
  name: {
4585
4583
  marginBottom: 0,
4586
- numberOfLines: 1,
4587
- ellipsizeMode: 'tail',
4588
4584
  },
4589
4585
  });
4590
4586
  };