@kiwicom/orbit-components
Version:
Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com's products.
16 lines • 859 B
JavaScript
import _extends from "@babel/runtime/helpers/esm/extends";
import * as React from "react";
import cx from "clsx";
import { TYPES } from "../../consts";
const TransitionPathStroke = ({
children,
type,
selected,
...props
}) => {
return /*#__PURE__*/React.createElement("path", _extends({
className: cx("duration-fast transition-colors ease-in", type === TYPES.LEGROOM && (selected ? "stroke-blue-normal group-focus-visible:stroke-blue-normal-hover group-active:stroke-blue-normal-hover" : "stroke-blue-light-active"), type === TYPES.DEFAULT && (selected ? "stroke-product-normal group-focus-visible:stroke-product-normal-hover group-active:stroke-product-normal-hover" : "stroke-product-light-active"), type === TYPES.UNAVAILABLE && "stroke-cloud-light-active"),
strokeWidth: "2"
}, props), children);
};
export default TransitionPathStroke;