@wlloyalty/wll-react-sdk 1.4.4 → 1.4.6

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 (76) hide show
  1. package/dist/index.d.ts +56 -37
  2. package/dist/native.js +535 -1421
  3. package/dist/native.js.map +1 -1
  4. package/dist/types/components/atoms/BaseTile/base-tile-body.d.ts +3 -2
  5. package/dist/types/components/atoms/BaseTile/base-tile-content.d.ts +3 -2
  6. package/dist/types/components/atoms/BaseTile/base-tile-header.d.ts +3 -2
  7. package/dist/types/components/atoms/BaseTile/base-tile-media.d.ts +3 -2
  8. package/dist/types/components/atoms/BaseTile/base-tile-title.d.ts +3 -2
  9. package/dist/types/components/atoms/BaseTile/index.d.ts +8 -7
  10. package/dist/types/components/atoms/Button/index.d.ts +2 -1
  11. package/dist/types/components/atoms/Chip/Chip.spec.d.ts +1 -0
  12. package/dist/types/components/atoms/Chip/Chip.stories.d.ts +7 -0
  13. package/dist/types/components/atoms/Chip/index.d.ts +17 -0
  14. package/dist/types/components/atoms/Chip/styles.d.ts +20 -0
  15. package/dist/types/components/atoms/Icon/index.d.ts +2 -1
  16. package/dist/types/components/atoms/Indicator/index.d.ts +2 -1
  17. package/dist/types/components/atoms/LoadingIndicator/index.d.ts +2 -1
  18. package/dist/types/components/atoms/Primatives/Column.d.ts +1 -1
  19. package/dist/types/components/atoms/Primatives/FullFlex.d.ts +1 -1
  20. package/dist/types/components/atoms/Primatives/Layout.d.ts +1 -1
  21. package/dist/types/components/atoms/Primatives/Row.d.ts +1 -1
  22. package/dist/types/components/atoms/Primatives/Spacer.d.ts +2 -1
  23. package/dist/types/components/atoms/ProgressBar/index.d.ts +2 -1
  24. package/dist/types/components/atoms/ProgressiveImage/index.d.ts +2 -1
  25. package/dist/types/components/atoms/Skeleton/index.d.ts +2 -1
  26. package/dist/types/components/atoms/SkeletonTile/index.d.ts +2 -1
  27. package/dist/types/components/atoms/Text/index.d.ts +4 -3
  28. package/dist/types/components/atoms/TileContainer/index.d.ts +2 -1
  29. package/dist/types/components/atoms/index.d.ts +1 -0
  30. package/dist/types/components/molecules/Carousel/index.d.ts +2 -1
  31. package/dist/types/components/molecules/CarouselNavButton/index.d.ts +2 -1
  32. package/dist/types/components/molecules/ProgressIndicator/index.d.ts +2 -1
  33. package/dist/types/components/molecules/SectionHeader/index.d.ts +2 -1
  34. package/dist/types/components/organisms/BadgeTile/badge-tile-date-earned.d.ts +3 -2
  35. package/dist/types/components/organisms/BadgeTile/badge-tile-description.d.ts +3 -2
  36. package/dist/types/components/organisms/BadgeTile/badge-tile-media.d.ts +2 -2
  37. package/dist/types/components/organisms/BadgeTile/badge-tile-status.d.ts +3 -2
  38. package/dist/types/components/organisms/BadgeTile/badge-tile-title.d.ts +3 -2
  39. package/dist/types/components/organisms/BadgeTile/index.d.ts +6 -6
  40. package/dist/types/components/organisms/BannerTile/banner-tile-cta.d.ts +3 -2
  41. package/dist/types/components/organisms/BannerTile/banner-tile-description.d.ts +3 -2
  42. package/dist/types/components/organisms/BannerTile/banner-tile-media.d.ts +3 -2
  43. package/dist/types/components/organisms/BannerTile/banner-tile-title.d.ts +3 -2
  44. package/dist/types/components/organisms/BannerTile/index.d.ts +5 -5
  45. package/dist/types/components/organisms/ContentTile/content-tile-chevron.d.ts +2 -1
  46. package/dist/types/components/organisms/ContentTile/content-tile-media.d.ts +2 -1
  47. package/dist/types/components/organisms/ContentTile/content-tile-summary.d.ts +2 -1
  48. package/dist/types/components/organisms/ContentTile/content-tile-title.d.ts +2 -1
  49. package/dist/types/components/organisms/ContentTile/index.d.ts +5 -5
  50. package/dist/types/components/organisms/Group/index.d.ts +6 -6
  51. package/dist/types/components/organisms/PointsTile/index.d.ts +5 -5
  52. package/dist/types/components/organisms/PointsTile/points-tile-chevron.d.ts +3 -2
  53. package/dist/types/components/organisms/PointsTile/points-tile-formatted-points.d.ts +3 -2
  54. package/dist/types/components/organisms/PointsTile/points-tile-media.d.ts +3 -2
  55. package/dist/types/components/organisms/PointsTile/points-tile-title.d.ts +3 -2
  56. package/dist/types/components/organisms/RewardCategoryTile/index.d.ts +3 -3
  57. package/dist/types/components/organisms/RewardCategoryTile/reward-category-header.d.ts +3 -2
  58. package/dist/types/components/organisms/RewardCategoryTile/reward-category-media.d.ts +3 -2
  59. package/dist/types/components/organisms/RewardTile/index.d.ts +6 -6
  60. package/dist/types/components/organisms/RewardTile/reward-tile-chevron.d.ts +3 -2
  61. package/dist/types/components/organisms/RewardTile/reward-tile-media.d.ts +3 -2
  62. package/dist/types/components/organisms/RewardTile/reward-tile-points.d.ts +3 -2
  63. package/dist/types/components/organisms/RewardTile/reward-tile-summary.d.ts +3 -2
  64. package/dist/types/components/organisms/RewardTile/reward-tile-title.d.ts +3 -2
  65. package/dist/types/components/organisms/RoundupTile/index.d.ts +5 -5
  66. package/dist/types/components/organisms/RoundupTile/roundup-tile-chevron.d.ts +3 -2
  67. package/dist/types/components/organisms/RoundupTile/roundup-tile-formatted-points.d.ts +3 -2
  68. package/dist/types/components/organisms/RoundupTile/roundup-tile-media.d.ts +3 -2
  69. package/dist/types/components/organisms/RoundupTile/roundup-tile-title.d.ts +3 -2
  70. package/dist/types/components/organisms/Section/index.d.ts +2 -2
  71. package/dist/types/context/WllSdkContext.d.ts +2 -1
  72. package/dist/types/types/tile.d.ts +5 -0
  73. package/dist/types/utils/storybookHelpers.d.ts +1 -1
  74. package/dist/web.js +241 -135
  75. package/dist/web.js.map +1 -1
  76. package/package.json +12 -11
package/dist/web.js CHANGED
@@ -7706,7 +7706,7 @@ var styles$g = StyleSheet$1.create({
7706
7706
  cursor: 'pointer'
7707
7707
  }
7708
7708
  });
7709
- var Text$3 = Text$2;
7709
+ var RNText = Text$2;
7710
7710
 
7711
7711
  /******************************************************************************
7712
7712
  Copyright (c) Microsoft Corporation.
@@ -8443,16 +8443,6 @@ var desaturateColor = function (color) {
8443
8443
  if (!baseColor) return COLOR_CONSTANTS.DEFAULT_COLOR;
8444
8444
  return baseColor.grayscale().lighten(COLOR_CONSTANTS.DESATURATION_LIGHTEN_AMOUNT).toString();
8445
8445
  };
8446
- /**
8447
- * Gets the appropriate state color based on type and count
8448
- * @param baseColor - Base color to process
8449
- * @param type - Type of state
8450
- * @param count - Count affecting the state
8451
- * @returns Processed color string
8452
- */
8453
- var getStateColor = function (baseColor, type, count) {
8454
- return shouldDesaturate(type, count) ? desaturateColor(baseColor) : baseColor;
8455
- };
8456
8446
 
8457
8447
  var DIMENSION_MODES = {
8458
8448
  DESKTOP: 'desktop',
@@ -8806,7 +8796,7 @@ var Button = function (_a) {
8806
8796
  disabled: disabled
8807
8797
  },
8808
8798
  testID: testID
8809
- }, /*#__PURE__*/React__namespace.createElement(Text$3, {
8799
+ }, /*#__PURE__*/React__namespace.createElement(RNText, {
8810
8800
  style: [styles.text, textStyle]
8811
8801
  }, title));
8812
8802
  };
@@ -16417,7 +16407,7 @@ var SectionList = createAnimatedComponent(SectionListWithEventThrottle);
16417
16407
  * @format
16418
16408
  */
16419
16409
 
16420
- var Text$1 = createAnimatedComponent(Text$3);
16410
+ var Text$1 = createAnimatedComponent(RNText);
16421
16411
 
16422
16412
  /**
16423
16413
  * Copyright (c) Meta Platforms, Inc. and affiliates.
@@ -19064,7 +19054,7 @@ var Text = function (_a) {
19064
19054
  accessibilityRole = IS_MOBILE ? 'contentinfo' : 'text';
19065
19055
  }
19066
19056
  var combinedStyles = [styles.base, variantStyle, styles.webOverrides, style];
19067
- return /*#__PURE__*/React__namespace.createElement(Text$3, __assign({
19057
+ return /*#__PURE__*/React__namespace.createElement(RNText, __assign({
19068
19058
  style: combinedStyles
19069
19059
  }, props, {
19070
19060
  accessible: true,
@@ -19106,6 +19096,12 @@ exports.TileHeight = void 0;
19106
19096
  TileHeight["Half"] = "HALF";
19107
19097
  TileHeight["Full"] = "FULL";
19108
19098
  })(exports.TileHeight || (exports.TileHeight = {}));
19099
+ exports.StatusVariant = void 0;
19100
+ (function (StatusVariant) {
19101
+ StatusVariant["PRIMARY"] = "primary";
19102
+ StatusVariant["GREEN"] = "green";
19103
+ StatusVariant["GREY"] = "grey";
19104
+ })(exports.StatusVariant || (exports.StatusVariant = {}));
19109
19105
  var BannerTileConfig = /** @class */function () {
19110
19106
  function BannerTileConfig() {}
19111
19107
  return BannerTileConfig;
@@ -19317,7 +19313,7 @@ var useTileSize = function (tile) {
19317
19313
  * Renders the body text of a BaseTile component.
19318
19314
  *
19319
19315
  * @param {BaseTileBodyProps} props - Component props including text styling options
19320
- * @returns {JSX.Element|null} The rendered body text or null if conditions for display are not met
19316
+ * @returns {React.ReactElement|null} The rendered body text or null if conditions for display are not met
19321
19317
  */
19322
19318
  var BaseTileBody = function (props) {
19323
19319
  var tileContext = useTileContext();
@@ -19448,7 +19444,7 @@ var useBaseTileStyles = function () {
19448
19444
  *
19449
19445
  * @param {BaseTileContentProps} props - Component props
19450
19446
  * @param {ReactNode} props.children - Child elements to render within the content area
19451
- * @returns {JSX.Element|null} The rendered content or null if conditions for display are not met
19447
+ * @returns {React.ReactElement|null} The rendered content or null if conditions for display are not met
19452
19448
  */
19453
19449
  var BaseTileContent = function (_a) {
19454
19450
  var children = _a.children;
@@ -19473,7 +19469,7 @@ var BaseTileContent = function (_a) {
19473
19469
  *
19474
19470
  * @param {BaseTileHeaderProps} props - Component props
19475
19471
  * @param {ReactNode} props.children - Child elements to render within the header
19476
- * @returns {JSX.Element|null} The rendered header or null if conditions for display are not met
19472
+ * @returns {React.ReactElement|null} The rendered header or null if conditions for display are not met
19477
19473
  */
19478
19474
  var BaseTileHeader = function (_a) {
19479
19475
  var children = _a.children;
@@ -19500,7 +19496,7 @@ var BaseTileHeader = function (_a) {
19500
19496
  * Renders the media (image) for a BaseTile component.
19501
19497
  *
19502
19498
  * @param {ImagePropsNoSource} props - The image props excluding source
19503
- * @returns {JSX.Element|null} The rendered image or null if no artwork URL is present
19499
+ * @returns {React.ReactElement|null} The rendered image or null if no artwork URL is present
19504
19500
  */
19505
19501
  var BaseTileMedia = function (props) {
19506
19502
  var tileContext = useTileContext();
@@ -19525,7 +19521,7 @@ var BaseTileMedia = function (props) {
19525
19521
  /**
19526
19522
  * Renders the title of a BaseTile component.
19527
19523
  *
19528
- * @returns {JSX.Element|null} The rendered title or null if conditions for display are not met
19524
+ * @returns {React.ReactElement|null} The rendered title or null if conditions for display are not met
19529
19525
  */
19530
19526
  var BaseTileTitle = function () {
19531
19527
  var _a, _b;
@@ -19631,7 +19627,7 @@ var BaseTileContainer = function (_a) {
19631
19627
  * BaseTileRoot component to provide context and render children.
19632
19628
  *
19633
19629
  * @param {BaseTileProps} props - Component props
19634
- * @returns {JSX.Element|null} The rendered BaseTileRoot or null if no tile is provided
19630
+ * @returns {React.ReactElement|null} The rendered BaseTileRoot or null if no tile is provided
19635
19631
  */
19636
19632
  var BaseTileRoot = function (_a) {
19637
19633
  var tile = _a.tile,
@@ -19671,7 +19667,7 @@ var Indicator = function () {
19671
19667
  };
19672
19668
  return /*#__PURE__*/React.createElement(View$2, {
19673
19669
  style: styles$5.indicator
19674
- }, /*#__PURE__*/React.createElement(Text$3, {
19670
+ }, /*#__PURE__*/React.createElement(RNText, {
19675
19671
  style: styles$5.indicatorText
19676
19672
  }, getCurrentLayout()));
19677
19673
  };
@@ -19916,7 +19912,7 @@ function withTileFetching(WrappedComponent) {
19916
19912
  if (error || !tileData) {
19917
19913
  return /*#__PURE__*/React.createElement(View$2, {
19918
19914
  style: commonStyles.emptyContainer
19919
- }, /*#__PURE__*/React.createElement(Text$3, null, "No tile data available"));
19915
+ }, /*#__PURE__*/React.createElement(RNText, null, "No tile data available"));
19920
19916
  }
19921
19917
  return /*#__PURE__*/React.createElement(WrappedComponent, __assign({}, props, {
19922
19918
  tile: tileData
@@ -19981,69 +19977,13 @@ var handleLastEarnedDate = function (date, userLocale) {
19981
19977
  }
19982
19978
  };
19983
19979
 
19984
- /**
19985
- * Custom hook that returns the styles for the BadgeTile component.
19986
- * Applies responsive styling based on the current device.
19987
- *
19988
- * @returns StyleSheet styles for the BadgeTile component
19989
- */
19990
- var useBadgeTileStyles = function () {
19991
- var _a = useResponsive$1(),
19992
- isDesktop = _a.isDesktop,
19993
- isTablet = _a.isTablet;
19994
- var theme = useWllSdk().theme;
19995
- return StyleSheet$1.create({
19996
- container: {
19997
- flex: 1
19998
- },
19999
- indicatorContainer: {
20000
- position: 'absolute',
20001
- bottom: useResponsiveValue(theme.sizes.lg, theme.sizes.xxs, isDesktop, isTablet),
20002
- right: useResponsiveValue(theme.sizes.lg, theme.sizes.xxs, isDesktop, isTablet),
20003
- backgroundColor: 'rgba(0,0,0,0.6)',
20004
- borderRadius: 40,
20005
- width: 40,
20006
- alignItems: 'center',
20007
- justifyContent: 'center',
20008
- height: 40
20009
- },
20010
- countText: {
20011
- color: '#FFF',
20012
- fontSize: 14,
20013
- fontWeight: 'bold'
20014
- },
20015
- header: {
20016
- flexBasis: '50%',
20017
- alignItems: 'center',
20018
- justifyContent: 'center',
20019
- position: 'relative',
20020
- marginBottom: useResponsiveValue(theme.sizes.lg, theme.sizes.xxs, isDesktop, isTablet)
20021
- },
20022
- image: {
20023
- width: '100%',
20024
- height: '100%'
20025
- },
20026
- titleText: {
20027
- marginBottom: useResponsiveValue(theme.sizes.xxs, theme.sizes.xxxs, isDesktop, isTablet)
20028
- },
20029
- dateEarnedContainer: {
20030
- alignItems: 'flex-start',
20031
- paddingHorizontal: 8,
20032
- paddingVertical: 4,
20033
- borderRadius: 20
20034
- }
20035
- });
20036
- };
20037
-
20038
19980
  /**
20039
19981
  * Renders the date earned for a Badge Tile.
20040
19982
  *
20041
- * @returns JSX.Element or null if badge is not earned or badgeNotEarnedMessage exists
19983
+ * @returns React.ReactElement or null if badge is not earned or badgeNotEarnedMessage exists
20042
19984
  */
20043
19985
  var BadgeTileDateEarned = function () {
20044
- var styles = useBadgeTileStyles();
20045
19986
  var tileContext = useTileContext();
20046
- var theme = useWllSdk().theme;
20047
19987
  if (!isContextValid(tileContext)) return null;
20048
19988
  var _a = tileContext.configuration,
20049
19989
  count = _a.count,
@@ -20060,34 +20000,21 @@ var BadgeTileDateEarned = function () {
20060
20000
  if (type === exports.BadgeTileType.Specific && count === 0 && !badgeNotEarnedMessage) {
20061
20001
  return null;
20062
20002
  }
20063
- var backgroundColor = getStateColor(theme.alphaDerivedPrimary[20], type, count);
20064
- var containerStyle = [styles.dateEarnedContainer, {
20065
- backgroundColor: backgroundColor
20066
- }];
20067
- var textColor = getReadableTextColor(backgroundColor);
20068
- var displayText = count === 0 ? badgeNotEarnedMessage : "".concat(awardedDatePrefix, " ").concat(handleLastEarnedDate(lastEarnedAt, locale));
20069
- var accessibilityLabel = count === 0 ? 'Badge not yet earned' : "Badge earned on ".concat(handleLastEarnedDate(lastEarnedAt, locale));
20070
- return /*#__PURE__*/React.createElement(View$2, {
20071
- style: containerStyle,
20072
- accessible: true,
20003
+ var formattedDate = handleLastEarnedDate(lastEarnedAt, locale);
20004
+ var displayText = count === 0 ? badgeNotEarnedMessage : "".concat(awardedDatePrefix, " ").concat(formattedDate);
20005
+ var accessibilityLabel = count === 0 ? 'Badge not yet earned' : "Badge earned on ".concat(formattedDate);
20006
+ return /*#__PURE__*/React.createElement(Chip, {
20007
+ label: displayText,
20008
+ variant: count === 0 ? exports.StatusVariant.GREY : exports.StatusVariant.PRIMARY,
20073
20009
  accessibilityLabel: accessibilityLabel,
20074
20010
  testID: "badge-tile-date-earned"
20075
- }, /*#__PURE__*/React.createElement(Text, {
20076
- variant: "label",
20077
- style: [styles.dateEarnedText, {
20078
- color: textColor
20079
- }],
20080
- numberOfLines: 1,
20081
- ellipsizeMode: "tail",
20082
- accessibilityElementsHidden: true,
20083
- importantForAccessibility: "no-hide-descendants"
20084
- }, displayText));
20011
+ });
20085
20012
  };
20086
20013
 
20087
20014
  /**
20088
20015
  * Renders the description for a Badge Tile.
20089
20016
  *
20090
- * @returns JSX.Element or null if description is not present
20017
+ * @returns React.ReactElement or null if description is not present
20091
20018
  */
20092
20019
  var BadgeTileDescription = function () {
20093
20020
  var tileContext = useTileContext();
@@ -20124,10 +20051,64 @@ var BadgeTileDescription = function () {
20124
20051
  }, description));
20125
20052
  };
20126
20053
 
20054
+ /**
20055
+ * Custom hook that returns the styles for the BadgeTile component.
20056
+ * Applies responsive styling based on the current device.
20057
+ *
20058
+ * @returns StyleSheet styles for the BadgeTile component
20059
+ */
20060
+ var useBadgeTileStyles = function () {
20061
+ var _a = useResponsive$1(),
20062
+ isDesktop = _a.isDesktop,
20063
+ isTablet = _a.isTablet;
20064
+ var theme = useWllSdk().theme;
20065
+ return StyleSheet$1.create({
20066
+ container: {
20067
+ flex: 1
20068
+ },
20069
+ indicatorContainer: {
20070
+ position: 'absolute',
20071
+ bottom: useResponsiveValue(theme.sizes.lg, theme.sizes.xxs, isDesktop, isTablet),
20072
+ right: useResponsiveValue(theme.sizes.lg, theme.sizes.xxs, isDesktop, isTablet),
20073
+ backgroundColor: 'rgba(0,0,0,0.6)',
20074
+ borderRadius: 40,
20075
+ width: 40,
20076
+ alignItems: 'center',
20077
+ justifyContent: 'center',
20078
+ height: 40
20079
+ },
20080
+ countText: {
20081
+ color: '#FFF',
20082
+ fontSize: 14,
20083
+ fontWeight: 'bold'
20084
+ },
20085
+ header: {
20086
+ flexBasis: '50%',
20087
+ alignItems: 'center',
20088
+ justifyContent: 'center',
20089
+ position: 'relative',
20090
+ marginBottom: useResponsiveValue(theme.sizes.lg, theme.sizes.xxs, isDesktop, isTablet)
20091
+ },
20092
+ image: {
20093
+ width: '100%',
20094
+ height: '100%'
20095
+ },
20096
+ titleText: {
20097
+ marginBottom: useResponsiveValue(theme.sizes.xxs, theme.sizes.xxxs, isDesktop, isTablet)
20098
+ },
20099
+ dateEarnedContainer: {
20100
+ alignItems: 'flex-start',
20101
+ paddingHorizontal: 8,
20102
+ paddingVertical: 4,
20103
+ borderRadius: 20
20104
+ }
20105
+ });
20106
+ };
20107
+
20127
20108
  /**
20128
20109
  * Renders the media for a Badge Tile.
20129
20110
  *
20130
- * @returns JSX.Element or null if media is not present
20111
+ * @returns React.ReactElement or null if media is not present
20131
20112
  */
20132
20113
  var BadgeTileMedia = function (_a) {
20133
20114
  var children = _a.children,
@@ -20161,7 +20142,7 @@ var BadgeTileMedia = function (_a) {
20161
20142
  /**
20162
20143
  * Renders the status for a Badge Tile.
20163
20144
  *
20164
- * @returns JSX.Element or null if badge is not earned or badgeNotEarnedMessage exists
20145
+ * @returns React.ReactElement or null if badge is not earned or badgeNotEarnedMessage exists
20165
20146
  */
20166
20147
  var BadgeTileStatus = function () {
20167
20148
  var styles = useBadgeTileStyles();
@@ -20196,7 +20177,7 @@ var BadgeTileStatus = function () {
20196
20177
  /**
20197
20178
  * Renders the title for a Badge Tile.
20198
20179
  *
20199
- * @returns JSX.Element or null if name is not present
20180
+ * @returns React.ReactElement or null if name is not present
20200
20181
  */
20201
20182
  var BadgeTileTitle = function () {
20202
20183
  var styles = useBadgeTileStyles();
@@ -20225,7 +20206,7 @@ var BadgeTileTitle = function () {
20225
20206
 
20226
20207
  /**
20227
20208
  * The main BadgeTile component.
20228
- * @returns JSX.Element or null if tile is not active or tileHeight is not full.
20209
+ * @returns React.ReactElement or null if tile is not active or tileHeight is not full.
20229
20210
  * This component renders a badge tile with optional media, status, title, description, and date earned.
20230
20211
  */
20231
20212
  var BadgeTileRoot = function (_a) {
@@ -20253,7 +20234,7 @@ var BadgeTile$1 = withTileFetching(BadgeTile);
20253
20234
  /**
20254
20235
  * Renders the call to action of a Banner Tile.
20255
20236
  *
20256
- * @returns JSX.Element or null if no text or required props are present
20237
+ * @returns React.ReactElement or null if no text or required props are present
20257
20238
  */
20258
20239
  var BannerTileCTA = function () {
20259
20240
  var bannerContext = useBannerContext();
@@ -20321,7 +20302,7 @@ var useBannerTileStyles = function () {
20321
20302
  /**
20322
20303
  * Renders the description text of a Banner Tile.
20323
20304
  *
20324
- * @returns JSX.Element or null if no description is present
20305
+ * @returns React.ReactElement or null if no description is present
20325
20306
  */
20326
20307
  var BannerTileDescription = function () {
20327
20308
  var styles = useBannerTileStyles();
@@ -20339,7 +20320,7 @@ var BannerTileDescription = function () {
20339
20320
  /**
20340
20321
  * Renders the media of a Banner Tile.
20341
20322
  *
20342
- * @returns JSX.Element or null if no media is present
20323
+ * @returns React.ReactElement or null if no media is present
20343
20324
  */
20344
20325
  var BannerTileMedia = function (_a) {
20345
20326
  var isArtworkOnly = _a.isArtworkOnly;
@@ -20370,7 +20351,7 @@ var BannerTileMedia = function (_a) {
20370
20351
  /**
20371
20352
  * Renders the title of a Banner Tile.
20372
20353
  *
20373
- * @returns JSX.Element or null if no title is present
20354
+ * @returns React.ReactElement or null if no title is present
20374
20355
  */
20375
20356
  var BannerTileTitle = function () {
20376
20357
  var styles = useBannerTileStyles();
@@ -20403,7 +20384,7 @@ var isArtworkOnly$2 = function (configuration) {
20403
20384
  * This component renders a banner tile with optional media, title, description, and CTA.
20404
20385
  *
20405
20386
  * @param {BannerTileProps} props - Component props
20406
- * @returns {JSX.Element | null} Rendered component or null if tile is inactive
20387
+ * @returns {React.ReactElement | null} Rendered component or null if tile is inactive
20407
20388
  */
20408
20389
  var BannerTileRoot = function (_a) {
20409
20390
  var tile = _a.tile;
@@ -20604,7 +20585,7 @@ var isArtworkOnly$1 = function (configuration) {
20604
20585
  *
20605
20586
  * @param {ContentTileProps} props - Component props
20606
20587
  * @param {Tile} props.tile - The tile data to render
20607
- * @returns JSX.Element or null if tile is inactive
20588
+ * @returns React.ReactElement or null if tile is inactive
20608
20589
  */
20609
20590
  var ContentTileRoot = function (_a) {
20610
20591
  var tile = _a.tile;
@@ -21447,7 +21428,7 @@ var useSectionData = function (section, sectionId) {
21447
21428
  *
21448
21429
  * @param {Object} props - Component props
21449
21430
  * @param {string} props.message - Message to display in the empty state
21450
- * @returns {JSX.Element} The empty state component
21431
+ * @returns {React.ReactElement} The empty state component
21451
21432
  */
21452
21433
  var EmptyState = function (_a) {
21453
21434
  var message = _a.message;
@@ -21455,7 +21436,7 @@ var EmptyState = function (_a) {
21455
21436
  style: commonStyles.emptyContainer,
21456
21437
  role: "article",
21457
21438
  accessibilityLabel: "Empty state: ".concat(message)
21458
- }, /*#__PURE__*/React.createElement(Text$3, null, message));
21439
+ }, /*#__PURE__*/React.createElement(RNText, null, message));
21459
21440
  };
21460
21441
  /**
21461
21442
  * The Section component renders a section based on its type (e.g., Banner, Grid).
@@ -21463,7 +21444,7 @@ var EmptyState = function (_a) {
21463
21444
  * @param {SectionProps} props - Component props
21464
21445
  * @param {TSection} [props.section] - The section data
21465
21446
  * @param {string} [props.sectionId] - The ID of the section to fetch
21466
- * @returns {JSX.Element|null} The rendered section or null if invalid props
21447
+ * @returns {React.ReactElement|null} The rendered section or null if invalid props
21467
21448
  */
21468
21449
  var Section = function (_a) {
21469
21450
  var section = _a.section,
@@ -21593,7 +21574,7 @@ var useGroupData = function (id) {
21593
21574
  *
21594
21575
  * @param {GroupEmptyStateProps} props - Component props
21595
21576
  * @param {string} props.message - Message to display
21596
- * @returns {JSX.Element} The empty state component
21577
+ * @returns {React.ReactElement} The empty state component
21597
21578
  */
21598
21579
  var GroupEmptyState = function (_a) {
21599
21580
  var message = _a.message;
@@ -21608,7 +21589,7 @@ var GroupEmptyState = function (_a) {
21608
21589
  /**
21609
21590
  * Component to render all sections in a group
21610
21591
  *
21611
- * @returns {JSX.Element} The sections component
21592
+ * @returns {React.ReactElement} The sections component
21612
21593
  */
21613
21594
  var GroupSections = function () {
21614
21595
  var groupData = useGroupContext().groupData;
@@ -21649,7 +21630,7 @@ var GroupSections = function () {
21649
21630
  *
21650
21631
  * @param {GroupProps} props - Component props
21651
21632
  * @param {string} props.id - The unique identifier of the group to fetch and display
21652
- * @returns {JSX.Element|null} The rendered group or null if invalid ID
21633
+ * @returns {React.ReactElement|null} The rendered group or null if invalid ID
21653
21634
  */
21654
21635
  var Group = function (_a) {
21655
21636
  var id = _a.id,
@@ -21970,7 +21951,7 @@ var usePointsTileStyles = function (isFullSize) {
21970
21951
  /**
21971
21952
  * Renders formatted points value for a Points Tile.
21972
21953
  *
21973
- * @returns JSX.Element or null if points are undefined or zero
21954
+ * @returns React.ReactElement or null if points are undefined or zero
21974
21955
  */
21975
21956
  var PointsTileFormattedPoints = function () {
21976
21957
  var styles = usePointsTileStyles();
@@ -22011,7 +21992,7 @@ var PointsTileFormattedPoints = function () {
22011
21992
  /**
22012
21993
  * Renders the media of a Points Tile.
22013
21994
  *
22014
- * @returns JSX.Element or null if media is not present
21995
+ * @returns React.ReactElement or null if media is not present
22015
21996
  */
22016
21997
  var PointsTileMedia = function (_a) {
22017
21998
  var isFullSize = _a.isFullSize;
@@ -22040,7 +22021,7 @@ var PointsTileMedia = function (_a) {
22040
22021
  /**
22041
22022
  * Renders the title of a Points Tile.
22042
22023
  *
22043
- * @returns JSX.Element or null if no title is present
22024
+ * @returns React.ReactElement or null if no title is present
22044
22025
  */
22045
22026
  var PointsTileTitle = function () {
22046
22027
  var tileContext = useTileContext();
@@ -22058,7 +22039,7 @@ var PointsTileTitle = function () {
22058
22039
  /**
22059
22040
  * Renders a chevron icon for a Roundup Tile.
22060
22041
  *
22061
- * @returns JSX.Element
22042
+ * @returns React.ReactElement
22062
22043
  */
22063
22044
  var PointsTileChevron = function () {
22064
22045
  var _a, _b;
@@ -22083,7 +22064,7 @@ var PointsTileChevron = function () {
22083
22064
  * The PointsTile component renders a tile with media, title, and formatted points.
22084
22065
  *
22085
22066
  * @param props - Component props
22086
- * @returns JSX.Element or null if tile is inactive or missing required props
22067
+ * @returns React.ReactElement or null if tile is inactive or missing required props
22087
22068
  */
22088
22069
  var PointsTileRoot = function (_a) {
22089
22070
  var tile = _a.tile;
@@ -22159,7 +22140,7 @@ var useRewardCategoryTileStyles = function () {
22159
22140
  /**
22160
22141
  * Renders the header for a Reward Category Tile.
22161
22142
  *
22162
- * @returns JSX.Element or null if showName is false or name is not present
22143
+ * @returns React.ReactElement or null if showName is false or name is not present
22163
22144
  */
22164
22145
  var RewardCategoryHeader = function () {
22165
22146
  var styles = useRewardCategoryTileStyles();
@@ -22191,7 +22172,7 @@ var RewardCategoryHeader = function () {
22191
22172
  /**
22192
22173
  * Renders the background media for a Reward Category Tile.
22193
22174
  *
22194
- * @returns JSX.Element or null if no artwork URL is present
22175
+ * @returns React.ReactElement or null if no artwork URL is present
22195
22176
  */
22196
22177
  var RewardCategoryMedia = function () {
22197
22178
  var styles = useRewardCategoryTileStyles();
@@ -22218,7 +22199,7 @@ var RewardCategoryMedia = function () {
22218
22199
  *
22219
22200
  * @param {RewardCategoryTileProps} props - The component props
22220
22201
  * @param {Tile} props.tile - The tile data to render
22221
- * @returns {JSX.Element|null} Rendered component or null if tile is inactive or missing configuration
22202
+ * @returns {React.ReactElement|null} Rendered component or null if tile is inactive or missing configuration
22222
22203
  */
22223
22204
  var RewardCategoryTileRoot = function (_a) {
22224
22205
  var tile = _a.tile;
@@ -22239,7 +22220,7 @@ var RewardCategoryTile$1 = withTileFetching(RewardCategoryTile);
22239
22220
  /**
22240
22221
  * Renders a chevron icon for a Reward Tile.
22241
22222
  *
22242
- * @returns JSX.Element
22223
+ * @returns React.ReactElement
22243
22224
  */
22244
22225
  var RewardTileChevron = function () {
22245
22226
  var _a;
@@ -22311,7 +22292,7 @@ var useRewardTileStyles = function () {
22311
22292
  *
22312
22293
  * @param props {RewardTileMediaProps} - Component props
22313
22294
  * @param props.isArtworkOnly {boolean} - Whether the media should be rendered as an artwork only component
22314
- * @returns JSX.Element or null if no artwork URL is present or artwork should not be shown
22295
+ * @returns React.ReactElement or null if no artwork URL is present or artwork should not be shown
22315
22296
  */
22316
22297
  var RewardTileMedia = function (_a) {
22317
22298
  var isArtworkOnly = _a.isArtworkOnly;
@@ -22345,7 +22326,7 @@ var RewardTileMedia = function (_a) {
22345
22326
  /**
22346
22327
  * Renders the points value of a Reward Tile.
22347
22328
  *
22348
- * @returns JSX.Element or null if price should not be shown or is zero/undefined
22329
+ * @returns React.ReactElement or null if price should not be shown or is zero/undefined
22349
22330
  */
22350
22331
  var RewardTilePoints = function () {
22351
22332
  var styles = useRewardTileStyles();
@@ -22389,7 +22370,7 @@ var RewardTilePoints = function () {
22389
22370
  /**
22390
22371
  * Renders the summary of a Reward Tile.
22391
22372
  *
22392
- * @returns JSX.Element or null if no summary is present
22373
+ * @returns React.ReactElement or null if no summary is present
22393
22374
  */
22394
22375
  var RewardTileSummary = function () {
22395
22376
  var tileContext = useTileContext();
@@ -22415,7 +22396,7 @@ var RewardTileSummary = function () {
22415
22396
  /**
22416
22397
  * Renders the title of a Reward Tile.
22417
22398
  *
22418
- * @returns JSX.Element or null if no name is present
22399
+ * @returns React.ReactElement or null if no name is present
22419
22400
  */
22420
22401
  var RewardTileTitle = function () {
22421
22402
  var tileContext = useTileContext();
@@ -22454,7 +22435,7 @@ var isArtworkOnly = function (configuration) {
22454
22435
  *
22455
22436
  * @param {RewardTileProps} props - Component props
22456
22437
  * @param {Tile} props.tile - The tile data to render
22457
- * @returns JSX.Element or null if tile is inactive or not a full-height tile
22438
+ * @returns React.ReactElement or null if tile is inactive or not a full-height tile
22458
22439
  */
22459
22440
  var RewardTileRoot = function (_a) {
22460
22441
  var tile = _a.tile;
@@ -22677,7 +22658,7 @@ TierTile.Empty = TierTileEmpty;
22677
22658
  /**
22678
22659
  * Renders formatted points value for a Roundup Tile.
22679
22660
  *
22680
- * @returns JSX.Element or null if points are undefined or zero
22661
+ * @returns React.ReactElement or null if points are undefined or zero
22681
22662
  */
22682
22663
  var RoundupTileFormattedPoints = function () {
22683
22664
  var tileContext = useTileContext();
@@ -22766,7 +22747,7 @@ var useRoundupTileStyles = function (isFullSize) {
22766
22747
  /**
22767
22748
  * Renders the media of a Points Tile.
22768
22749
  *
22769
- * @returns JSX.Element or null if media is not present
22750
+ * @returns React.ReactElement or null if media is not present
22770
22751
  */
22771
22752
  var RoundupTileMedia = function (_a) {
22772
22753
  var isFullSize = _a.isFullSize;
@@ -22795,7 +22776,7 @@ var RoundupTileMedia = function (_a) {
22795
22776
  /**
22796
22777
  * Renders the title of a Roundup Tile.
22797
22778
  *
22798
- * @returns JSX.Element or null if no title is present
22779
+ * @returns React.ReactElement or null if no title is present
22799
22780
  */
22800
22781
  var RoundupTileTitle = function () {
22801
22782
  var tileContext = useTileContext();
@@ -22813,7 +22794,7 @@ var RoundupTileTitle = function () {
22813
22794
  /**
22814
22795
  * Renders a chevron icon for a Roundup Tile.
22815
22796
  *
22816
- * @returns JSX.Element
22797
+ * @returns React.ReactElement
22817
22798
  */
22818
22799
  var RoundupTileChevron = function () {
22819
22800
  var _a, _b;
@@ -22838,7 +22819,7 @@ var RoundupTileChevron = function () {
22838
22819
  * The PointsTile component renders a tile with media, title, and formatted points.
22839
22820
  *
22840
22821
  * @param props - Component props
22841
- * @returns JSX.Element or null if tile is inactive or missing required props
22822
+ * @returns React.ReactElement or null if tile is inactive or missing required props
22842
22823
  */
22843
22824
  var RoundupTileRoot = function (_a) {
22844
22825
  var tile = _a.tile;
@@ -22918,6 +22899,130 @@ var styles = StyleSheet$1.create({
22918
22899
  }
22919
22900
  });
22920
22901
 
22902
+ var useChipStyles = function () {
22903
+ var theme = useWllSdk().theme;
22904
+ var _a = useResponsive$1(),
22905
+ isDesktop = _a.isDesktop,
22906
+ isTablet = _a.isTablet;
22907
+ var paddingHorizontal = useResponsiveValue(12, 8, isDesktop, isTablet);
22908
+ var paddingVertical = useResponsiveValue(6, 3, isDesktop, isTablet);
22909
+ var fontSize = useResponsiveValue(theme.sizes.sm, theme.sizes.xs, isDesktop, isTablet);
22910
+ var lineHeight = Math.max(fontSize, Math.round(fontSize * 1.3));
22911
+ return StyleSheet$1.create({
22912
+ container: {
22913
+ alignSelf: 'flex-start',
22914
+ alignItems: 'center',
22915
+ justifyContent: 'center',
22916
+ flexDirection: 'row',
22917
+ paddingHorizontal: paddingHorizontal,
22918
+ paddingVertical: paddingVertical,
22919
+ borderRadius: theme.sizes.borderRadiusRounded,
22920
+ overflow: 'hidden',
22921
+ flexShrink: 1
22922
+ },
22923
+ label: {
22924
+ fontFamily: theme.fontFamily,
22925
+ fontSize: fontSize,
22926
+ lineHeight: lineHeight,
22927
+ fontWeight: '400',
22928
+ flexShrink: 1
22929
+ }
22930
+ });
22931
+ };
22932
+
22933
+ var mapLiveRegion = function (ariaLive) {
22934
+ if (ariaLive === void 0) {
22935
+ ariaLive = 'polite';
22936
+ }
22937
+ switch (ariaLive) {
22938
+ case 'assertive':
22939
+ return {
22940
+ native: 'assertive',
22941
+ web: 'assertive'
22942
+ };
22943
+ case 'off':
22944
+ return {
22945
+ native: 'none',
22946
+ web: 'off'
22947
+ };
22948
+ case 'polite':
22949
+ default:
22950
+ return {
22951
+ native: 'polite',
22952
+ web: 'polite'
22953
+ };
22954
+ }
22955
+ };
22956
+ var Chip = function (_a) {
22957
+ var label = _a.label,
22958
+ _b = _a.variant,
22959
+ variant = _b === void 0 ? exports.StatusVariant.PRIMARY : _b,
22960
+ _c = _a.role,
22961
+ role = _c === void 0 ? 'status' : _c,
22962
+ _d = _a.ariaLive,
22963
+ ariaLive = _d === void 0 ? 'polite' : _d,
22964
+ accessibilityLabel = _a.accessibilityLabel,
22965
+ testID = _a.testID,
22966
+ style = _a.style,
22967
+ labelStyle = _a.labelStyle;
22968
+ var styles = useChipStyles();
22969
+ var theme = useWllSdk().theme;
22970
+ var variantStyles = React.useMemo(function () {
22971
+ var _a, _b;
22972
+ switch (variant) {
22973
+ case exports.StatusVariant.GREEN:
22974
+ return {
22975
+ container: {
22976
+ backgroundColor: '#d1f0e1'
22977
+ },
22978
+ label: {
22979
+ color: '#128e55'
22980
+ }
22981
+ };
22982
+ case exports.StatusVariant.GREY:
22983
+ return {
22984
+ container: {
22985
+ backgroundColor: '#dadde0'
22986
+ },
22987
+ label: {
22988
+ color: '#666666'
22989
+ }
22990
+ };
22991
+ case exports.StatusVariant.PRIMARY:
22992
+ default:
22993
+ return {
22994
+ container: {
22995
+ backgroundColor: (_b = (_a = theme.alphaDerivedPrimary) === null || _a === void 0 ? void 0 : _a[10]) !== null && _b !== void 0 ? _b : theme.primary
22996
+ },
22997
+ label: {
22998
+ color: theme.primary
22999
+ }
23000
+ };
23001
+ }
23002
+ }, [theme, variant]);
23003
+ var computedAccessibilityLabel = accessibilityLabel !== null && accessibilityLabel !== void 0 ? accessibilityLabel : typeof label === 'string' ? label : undefined;
23004
+ var _e = mapLiveRegion(ariaLive),
23005
+ accessibilityLiveRegion = _e.native,
23006
+ ariaLiveValue = _e.web;
23007
+ var isSimpleLabel = typeof label === 'string';
23008
+ var isIndividuallyAccessible = computedAccessibilityLabel !== undefined;
23009
+ return /*#__PURE__*/React.createElement(View$2, {
23010
+ style: [styles.container, variantStyles.container, style],
23011
+ accessible: isIndividuallyAccessible,
23012
+ accessibilityRole: role,
23013
+ accessibilityLiveRegion: accessibilityLiveRegion,
23014
+ accessibilityLabel: computedAccessibilityLabel,
23015
+ "aria-live": ariaLiveValue,
23016
+ testID: testID
23017
+ }, isSimpleLabel ? (/*#__PURE__*/React.createElement(RNText, {
23018
+ style: [styles.label, variantStyles.label, labelStyle],
23019
+ numberOfLines: 1,
23020
+ ellipsizeMode: "tail",
23021
+ accessible: false,
23022
+ importantForAccessibility: "no"
23023
+ }, label)) : label);
23024
+ };
23025
+
22921
23026
  var Reward = /** @class */function () {
22922
23027
  function Reward() {}
22923
23028
  return Reward;
@@ -22932,6 +23037,7 @@ exports.BaseTile = BaseTile;
22932
23037
  exports.Button = Button;
22933
23038
  exports.Carousel = Carousel;
22934
23039
  exports.CarouselNavButton = CarouselNavButton;
23040
+ exports.Chip = Chip;
22935
23041
  exports.Column = Column;
22936
23042
  exports.ContentTile = ContentTile$1;
22937
23043
  exports.ContentTileConfig = ContentTileConfig;