widenarrow-ui 2.3.5 → 2.3.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.
- package/lib/index.css +1 -1
- package/lib/index.d.ts +9 -5
- package/lib/index.esm.css +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1016,9 +1016,12 @@ interface IconButtonProps extends IconStyleInterface {
|
|
|
1016
1016
|
toolTipComponent?: ReactNode;
|
|
1017
1017
|
ariaLabel?: string;
|
|
1018
1018
|
toggleIcon?: IconTypes;
|
|
1019
|
+
badge?: string | number;
|
|
1020
|
+
/** @default BadgeTypes.PURPLE */
|
|
1021
|
+
badgeColor?: BadgeTypes;
|
|
1019
1022
|
}
|
|
1020
1023
|
|
|
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>;
|
|
1024
|
+
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
1025
|
|
|
1023
1026
|
interface IconInterface$1 {
|
|
1024
1027
|
loading?: boolean;
|
|
@@ -1429,14 +1432,15 @@ declare const MultiActionButton: {
|
|
|
1429
1432
|
interface NumberBadgeProps {
|
|
1430
1433
|
/** Already formatted. The badge does no rounding or shortening of its own. */
|
|
1431
1434
|
count: string | number;
|
|
1432
|
-
/** Pins the badge to this element's top right corner instead of rendering it inline. */
|
|
1433
|
-
anchor?: ReactNode;
|
|
1434
1435
|
/** Animates each digit when `count` changes. Never fires on mount. */
|
|
1435
1436
|
animate?: boolean;
|
|
1436
|
-
/** Renders
|
|
1437
|
+
/** Renders nothing when `count` is empty. */
|
|
1437
1438
|
hideWhenEmpty?: boolean;
|
|
1438
1439
|
className?: string;
|
|
1440
|
+
id?: string;
|
|
1439
1441
|
color?: BadgeTypes;
|
|
1442
|
+
/** @default SizeTypes.MEDIUM */
|
|
1443
|
+
size?: SizeTypes.SMALL | SizeTypes.MEDIUM;
|
|
1440
1444
|
/** Pass an already translated string. */
|
|
1441
1445
|
toolTip?: string;
|
|
1442
1446
|
/** Escape hatch for a one-off colour, i.e. a value picked at runtime. */
|
|
@@ -1444,7 +1448,7 @@ interface NumberBadgeProps {
|
|
|
1444
1448
|
}
|
|
1445
1449
|
|
|
1446
1450
|
declare const NumberBadge: {
|
|
1447
|
-
({
|
|
1451
|
+
({ count, animate, className, color, id, hideWhenEmpty, size, toolTip, style }: NumberBadgeProps): JSX.Element | null;
|
|
1448
1452
|
displayName: string;
|
|
1449
1453
|
};
|
|
1450
1454
|
|