@okshaun/components 0.5.1 → 0.5.3
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.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/panda.buildinfo.json +4 -2
- package/dist/sprite.symbol.html +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2681,10 +2681,14 @@ const Button = React.forwardRef(
|
|
|
2681
2681
|
);
|
|
2682
2682
|
const animationStyles = {
|
|
2683
2683
|
pop: css({
|
|
2684
|
-
|
|
2684
|
+
animationName: "badgePop",
|
|
2685
|
+
animationDuration: "normal",
|
|
2686
|
+
animationTimingFunction: "default"
|
|
2685
2687
|
}),
|
|
2686
2688
|
popStandalone: css({
|
|
2687
|
-
|
|
2689
|
+
animationName: "badgePopStandalone",
|
|
2690
|
+
animationDuration: "normal",
|
|
2691
|
+
animationTimingFunction: "default"
|
|
2688
2692
|
})
|
|
2689
2693
|
};
|
|
2690
2694
|
const Badge = React.forwardRef(
|
|
@@ -3516,7 +3520,7 @@ const Chip = ({
|
|
|
3516
3520
|
after: hasAfter
|
|
3517
3521
|
});
|
|
3518
3522
|
const iconSize = chipSizeToIconSize[size2];
|
|
3519
|
-
const handleClick = () => {
|
|
3523
|
+
const handleClick = (e) => {
|
|
3520
3524
|
if (dismissable && onDismiss) {
|
|
3521
3525
|
onDismiss();
|
|
3522
3526
|
} else if (isSelectable && groupContext) {
|
|
@@ -3528,7 +3532,7 @@ const Chip = ({
|
|
|
3528
3532
|
groupContext.onChange(newValues);
|
|
3529
3533
|
}
|
|
3530
3534
|
} else if (onClick) {
|
|
3531
|
-
onClick();
|
|
3535
|
+
onClick(e);
|
|
3532
3536
|
}
|
|
3533
3537
|
};
|
|
3534
3538
|
const handleKeyDown = (e) => {
|