@uncinc/uncinc-react-kitchen-sink 2.21.4 → 2.22.0
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.
|
@@ -14,8 +14,9 @@ var DIRECTION_BACKWARDS = -1;
|
|
|
14
14
|
var LottieAnimation = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
15
15
|
var id = props.id,
|
|
16
16
|
className = props.className,
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
ariaLabel = props.ariaLabel,
|
|
18
|
+
_props$ariaHidden = props.ariaHidden,
|
|
19
|
+
ariaHidden = _props$ariaHidden === void 0 ? false : _props$ariaHidden,
|
|
19
20
|
data = props.data,
|
|
20
21
|
path = props.path,
|
|
21
22
|
_props$renderer = props.renderer,
|
|
@@ -176,7 +177,8 @@ var LottieAnimation = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
176
177
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
177
178
|
className: lottieClasses,
|
|
178
179
|
id: "lottie--".concat(lottieId),
|
|
179
|
-
"aria-label": ariaLabel
|
|
180
|
+
"aria-label": ariaLabel,
|
|
181
|
+
"aria-hidden": ariaHidden
|
|
180
182
|
// Only make the Lottie interactable if we provide the necessary props,
|
|
181
183
|
// otherwise it's just a plain div.
|
|
182
184
|
}, pauseOnClick || activateOnHover ? {
|
|
@@ -186,6 +188,8 @@ var LottieAnimation = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
186
188
|
onMouseLeave: onMouseLeave,
|
|
187
189
|
onClick: onClick,
|
|
188
190
|
onKeyDown: onKeyDown
|
|
189
|
-
} : {
|
|
191
|
+
} : {
|
|
192
|
+
role: 'img'
|
|
193
|
+
}));
|
|
190
194
|
});
|
|
191
195
|
export default LottieAnimation;
|
|
@@ -11,7 +11,8 @@ 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
|
|
14
|
+
ariaLabel: string;
|
|
15
|
+
ariaHidden?: boolean;
|
|
15
16
|
data?: unknown;
|
|
16
17
|
autoPlay?: AnimationConfig['autoplay'];
|
|
17
18
|
delay?: number;
|