@uncinc/uncinc-react-kitchen-sink 2.23.0 → 2.23.1
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.
|
@@ -25,8 +25,6 @@ var LottieAnimation = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
25
25
|
var id = props.id,
|
|
26
26
|
className = props.className,
|
|
27
27
|
ariaLabel = props.ariaLabel,
|
|
28
|
-
_props$ariaHidden = props.ariaHidden,
|
|
29
|
-
ariaHidden = _props$ariaHidden === void 0 ? false : _props$ariaHidden,
|
|
30
28
|
data = props.data,
|
|
31
29
|
path = props.path,
|
|
32
30
|
_props$renderer = props.renderer,
|
|
@@ -186,18 +184,18 @@ var LottieAnimation = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
186
184
|
}, [loadAnimation, lottieAnimation, onDestroy]);
|
|
187
185
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
188
186
|
className: lottieClasses,
|
|
189
|
-
id: "lottie--".concat(lottieId)
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
187
|
+
id: "lottie--".concat(lottieId)
|
|
188
|
+
}, ariaLabel && {
|
|
189
|
+
'aria-label': ariaLabel
|
|
190
|
+
}, !ariaLabel && !pauseOnClick && !activateOnHover && {
|
|
191
|
+
role: 'presentation'
|
|
192
|
+
}, (pauseOnClick || activateOnHover) && {
|
|
194
193
|
role: 'button',
|
|
195
194
|
tabIndex: 0,
|
|
196
195
|
onMouseEnter: onMouseEnter,
|
|
197
196
|
onMouseLeave: onMouseLeave,
|
|
198
|
-
ariaLabel: ariaLabel,
|
|
199
197
|
onClick: onClick,
|
|
200
198
|
onKeyDown: onKeyDown
|
|
201
|
-
}
|
|
199
|
+
}));
|
|
202
200
|
});
|
|
203
201
|
export default LottieAnimation;
|
|
@@ -11,8 +11,7 @@ export interface LottieConfig<T extends RendererType = 'svg'> extends Omit<Anima
|
|
|
11
11
|
export interface LottieProps extends Omit<Partial<LottieConfig>, 'animationData' | 'autoplay'> {
|
|
12
12
|
id?: string;
|
|
13
13
|
className?: string;
|
|
14
|
-
ariaLabel
|
|
15
|
-
ariaHidden?: boolean;
|
|
14
|
+
ariaLabel?: string;
|
|
16
15
|
data?: unknown;
|
|
17
16
|
autoPlay?: AnimationConfig['autoplay'];
|
|
18
17
|
delay?: number;
|