widenarrow-ui 2.3.5 → 2.3.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.
package/lib/index.d.ts CHANGED
@@ -48,6 +48,7 @@ declare enum IconTypes {
48
48
  CARD_MODE = "iconCardMode",
49
49
  CHANGE_ORDER = "iconChangeOrder",
50
50
  CHECK = "iconCheck",
51
+ CHECKLIST = "iconChecklist",
51
52
  CHECK_CIRCLE_200 = "iconCheckCircle200",
52
53
  CHECK_CIRCLE_300 = "iconCheckCircle300",
53
54
  CHECK_CIRCLE_DASHED_200 = "iconCheckCircleDashed200",
@@ -166,6 +167,7 @@ declare enum IconTypes {
166
167
  NEWSLETTER_TEMPLATE_FILLED = "iconNewsLetterTemplateFilled",
167
168
  NO_CHANGE = "iconNoChange",
168
169
  NO_DIRECTION = "iconNoDirection",
170
+ CIRCLE = "iconCircle",
169
171
  NOTIFICATION_200 = "iconNotification200",
170
172
  NOTIFICATION_300 = "iconNotification300",
171
173
  NOTIFICATION_FILLED = "iconNotificationFilled",
@@ -245,6 +247,7 @@ declare enum IconTypes {
245
247
  STRATEGY_FILLED = "iconStrategyFilled",
246
248
  SUGGESTION = "iconSuggestion",
247
249
  SUMMARIZE = "iconSummarize",
250
+ TASK = "iconTask",
248
251
  TAXONOMY_200 = "iconTaxonomy200",
249
252
  TAXONOMY_300 = "iconTaxonomy300",
250
253
  TAXONOMY_FILLED = "iconTaxonomyFilled",
@@ -274,6 +277,7 @@ declare enum IconTypes {
274
277
  VECTOR_FILTER_FILLED = "iconVectorFilterFilled",
275
278
  VERIFIED = "iconVerified",
276
279
  VERIFIED_SHIELD = "iconVerifiedShield",
280
+ VERIFIED_OFF = "iconVerifiedOff",
277
281
  WARNING = "iconWarning",
278
282
  WARNING_FILLED = "iconWarningFilled",
279
283
  WILL_BE_DELETED = "iconWillBeDeleted",
@@ -1016,9 +1020,12 @@ interface IconButtonProps extends IconStyleInterface {
1016
1020
  toolTipComponent?: ReactNode;
1017
1021
  ariaLabel?: string;
1018
1022
  toggleIcon?: IconTypes;
1023
+ badge?: string | number;
1024
+ /** @default BadgeTypes.PURPLE */
1025
+ badgeColor?: BadgeTypes;
1019
1026
  }
1020
1027
 
1021
- declare const IconButton: react.MemoExoticComponent<({ className, disabled, style, icon, id, text, size, type, href, iconColor, iconSize, iconClassName, onClickCallback, rotateIcon, tabIndex, autoFocus, buttonRef, rotateIconByDegree, toolTip, toolTipComponent, ariaLabel, toggleIcon }: IconButtonProps) => JSX.Element>;
1028
+ declare const IconButton: react.MemoExoticComponent<({ className, disabled, style, icon, id, text, size, type, href, iconColor, iconSize, iconClassName, onClickCallback, rotateIcon, tabIndex, autoFocus, buttonRef, rotateIconByDegree, toolTip, toolTipComponent, ariaLabel, toggleIcon, badge, badgeColor }: IconButtonProps) => JSX.Element>;
1022
1029
 
1023
1030
  interface IconInterface$1 {
1024
1031
  loading?: boolean;
@@ -1429,14 +1436,15 @@ declare const MultiActionButton: {
1429
1436
  interface NumberBadgeProps {
1430
1437
  /** Already formatted. The badge does no rounding or shortening of its own. */
1431
1438
  count: string | number;
1432
- /** Pins the badge to this element's top right corner instead of rendering it inline. */
1433
- anchor?: ReactNode;
1434
1439
  /** Animates each digit when `count` changes. Never fires on mount. */
1435
1440
  animate?: boolean;
1436
- /** Renders no badge when `count` is empty. The `anchor` still renders. */
1441
+ /** Renders nothing when `count` is empty. */
1437
1442
  hideWhenEmpty?: boolean;
1438
1443
  className?: string;
1444
+ id?: string;
1439
1445
  color?: BadgeTypes;
1446
+ /** @default SizeTypes.MEDIUM */
1447
+ size?: SizeTypes.SMALL | SizeTypes.MEDIUM;
1440
1448
  /** Pass an already translated string. */
1441
1449
  toolTip?: string;
1442
1450
  /** Escape hatch for a one-off colour, i.e. a value picked at runtime. */
@@ -1444,7 +1452,7 @@ interface NumberBadgeProps {
1444
1452
  }
1445
1453
 
1446
1454
  declare const NumberBadge: {
1447
- ({ anchor, count, animate, className, color, hideWhenEmpty, toolTip, style }: NumberBadgeProps): JSX.Element | null;
1455
+ ({ count, animate, className, color, id, hideWhenEmpty, size, toolTip, style }: NumberBadgeProps): JSX.Element | null;
1448
1456
  displayName: string;
1449
1457
  };
1450
1458