@kubit-ui-web/react-components
Version:
Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience
23 lines • 1.34 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ThirdPartyAnimationStandAlone = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const react_1 = __importDefault(require("react"));
const role_1 = require("../../types/role/role");
// styles
const thirdPartyAnimation_styled_1 = require("./thirdPartyAnimation.styled");
const ThirdPartyAnimationStandAloneComponent = ({ dataTestId = 'third-party-animation', height, width, ...props }, ref) => {
const emptyAriaLabel = props['aria-label'].length === 0;
return ((0, jsx_runtime_1.jsx)(thirdPartyAnimation_styled_1.ThirdPartyAnimationStyled, { ref: ref, "$height": height, "$width": width, "aria-hidden": emptyAriaLabel, "aria-label": props['aria-label'], "data-testid": dataTestId, role: role_1.ROLES.IMG }));
};
/**
* @description
* ThirdPartyAnimation component is a component that can be used to create a ThirdPartyAnimation.
* @param {React.PropsWithChildren<IThirdPartyAnimationStandAlone>} props
* @returns {JSX.Element}
*/
exports.ThirdPartyAnimationStandAlone = react_1.default.forwardRef(ThirdPartyAnimationStandAloneComponent);
//# sourceMappingURL=thirdPartyAnimationStandAlone.js.map