UNPKG

@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.

15 lines 1.03 kB
import _extends from "@babel/runtime/helpers/esm/extends"; import * as React from "react"; import cx from "clsx"; import { TYPES } from "../../consts"; const TransitionPathFill = ({ children, type, selected, ...props }) => { return /*#__PURE__*/React.createElement("path", _extends({ className: cx("duration-fast transition-colors ease-in", type === TYPES.LEGROOM && (selected ? "fill-blue-normal group-focus-visible:fill-blue-normal-hover group-active:fill-blue-normal-hover" : "fill-blue-light group-hover:fill-blue-light-hover group-focus-visible:fill-blue-light-active group-active:fill-blue-light-active"), type === TYPES.DEFAULT && (selected ? "fill-product-normal group-focus-visible:fill-product-normal-hover group-active:fill-product-normal-hover" : "fill-product-light group-hover:fill-product-light-hover group-focus-visible:fill-product-light-active group-active:fill-product-light-active"), type === TYPES.UNAVAILABLE && "fill-cloud-light") }, props), children); }; export default TransitionPathFill;