@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.
48 lines (37 loc) • 1.46 kB
JavaScript
;
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
exports.__esModule = true;
exports.default = void 0;
var React = _interopRequireWildcard(require("react"));
var _styledComponents = _interopRequireDefault(require("styled-components"));
var _defaultTheme = _interopRequireDefault(require("../defaultTheme"));
const StyledCoupon = _styledComponents.default.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.default
};
const Coupon = ({
children,
dataTest,
id
}) => /*#__PURE__*/React.createElement(StyledCoupon, {
"data-test": dataTest,
id: id
}, children);
var _default = Coupon;
exports.default = _default;