@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.
32 lines (29 loc) • 1.03 kB
JavaScript
import * as React from "react";
import styled from "styled-components";
import defaultTheme from "../defaultTheme";
const StyledCoupon = styled.mark.withConfig({
displayName: "Coupon__StyledCoupon",
componentId: "sc-1jlomxb-0"
})(["display:inline;background:none;font-size:", ";letter-spacing:0.75px;text-transform:uppercase;border:1px dashed ", ";padding:2px ", ";line-height:inherit;font-weight:", ";border-radius:", ";color:", ";"], ({
theme
}) => theme.orbit.fontSizeTextSmall, ({
theme
}) => theme.orbit.paletteCloudDarker, ({
theme
}) => theme.orbit.spaceXXSmall, ({
theme
}) => theme.orbit.fontWeightMedium, ({
theme
}) => theme.orbit.borderRadiusNormal, ({
theme
}) => theme.orbit.paletteInkNormal); // $FlowFixMe: https://github.com/flow-typed/flow-typed/issues/3653#issuecomment-568539198
StyledCoupon.defaultProps = {
theme: defaultTheme
};
const Coupon = ({
children,
dataTest
}) => /*#__PURE__*/React.createElement(StyledCoupon, {
"data-test": dataTest
}, children);
export default Coupon;