@wlloyalty/wll-react-sdk 1.4.6 → 1.4.7

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.
@@ -1,10 +1,9 @@
1
1
  import React from 'react';
2
2
  import { AccessibilityRole, StyleProp, TextStyle, ViewStyle } from 'react-native';
3
3
  import { StatusVariant } from '../../../types/tile';
4
- type ChipLabel = React.ReactNode;
5
4
  type AriaLive = 'polite' | 'assertive' | 'off';
6
5
  export type ChipProps = {
7
- label: ChipLabel;
6
+ label: string;
8
7
  variant?: StatusVariant;
9
8
  role?: AccessibilityRole | 'status';
10
9
  ariaLive?: AriaLive;
package/dist/web.js CHANGED
@@ -20004,7 +20004,7 @@ var BadgeTileDateEarned = function () {
20004
20004
  var displayText = count === 0 ? badgeNotEarnedMessage : "".concat(awardedDatePrefix, " ").concat(formattedDate);
20005
20005
  var accessibilityLabel = count === 0 ? 'Badge not yet earned' : "Badge earned on ".concat(formattedDate);
20006
20006
  return /*#__PURE__*/React.createElement(Chip, {
20007
- label: displayText,
20007
+ label: (displayText === null || displayText === void 0 ? void 0 : displayText.toString()) || '',
20008
20008
  variant: count === 0 ? exports.StatusVariant.GREY : exports.StatusVariant.PRIMARY,
20009
20009
  accessibilityLabel: accessibilityLabel,
20010
20010
  testID: "badge-tile-date-earned"
@@ -23004,7 +23004,6 @@ var Chip = function (_a) {
23004
23004
  var _e = mapLiveRegion(ariaLive),
23005
23005
  accessibilityLiveRegion = _e.native,
23006
23006
  ariaLiveValue = _e.web;
23007
- var isSimpleLabel = typeof label === 'string';
23008
23007
  var isIndividuallyAccessible = computedAccessibilityLabel !== undefined;
23009
23008
  return /*#__PURE__*/React.createElement(View$2, {
23010
23009
  style: [styles.container, variantStyles.container, style],
@@ -23014,13 +23013,13 @@ var Chip = function (_a) {
23014
23013
  accessibilityLabel: computedAccessibilityLabel,
23015
23014
  "aria-live": ariaLiveValue,
23016
23015
  testID: testID
23017
- }, isSimpleLabel ? (/*#__PURE__*/React.createElement(RNText, {
23016
+ }, /*#__PURE__*/React.createElement(RNText, {
23018
23017
  style: [styles.label, variantStyles.label, labelStyle],
23019
23018
  numberOfLines: 1,
23020
23019
  ellipsizeMode: "tail",
23021
23020
  accessible: false,
23022
23021
  importantForAccessibility: "no"
23023
- }, label)) : label);
23022
+ }, label));
23024
23023
  };
23025
23024
 
23026
23025
  var Reward = /** @class */function () {