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.

31 lines (29 loc) 919 B
import * as React from "react"; import styled from "styled-components"; import defaultTheme from "../defaultTheme"; const StyledCoupon = styled.mark.withConfig({ displayName: "Coupon__StyledCoupon", componentId: "j40qmb-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.paletteInkLighter, ({ theme }) => theme.orbit.spaceXXSmall, ({ theme }) => theme.orbit.fontWeightMedium, ({ theme }) => theme.orbit.borderRadiusNormal, ({ theme }) => theme.orbit.paletteInkNormal); StyledCoupon.defaultProps = { theme: defaultTheme }; const Coupon = ({ children, dataTest }) => React.createElement(StyledCoupon, { "data-test": dataTest }, children); export default Coupon;