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.

22 lines 1.3 kB
import * as React from "react"; import styled, { css } from "styled-components"; import defaultTheme from "../../defaultTheme"; export const StyledFormFeedback = styled(props => /*#__PURE__*/React.createElement("div", props)).withConfig({ displayName: "Feedback__StyledFormFeedback", componentId: "sc-1v9nu75-0" })(["", ""], ({ theme }) => css(["color:", ";font-family:", ";font-size:", ";font-weight:", ";line-height:", ";width:100%;margin-top:2px;position:absolute;top:100%;max-height:", "px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;& a{color:", ";font-weight:", ";text-decoration:underline;cursor:pointer;}strong,b{font-weight:", ";color:", ";}"], theme.orbit.colorTextError, theme.orbit.fontFamily, theme.orbit.fontSizeFormFeedback, theme.orbit.fontWeightMedium, theme.orbit.lineHeightTextSmall, Math.floor(theme.orbit.lineHeightText * parseInt(theme.orbit.fontSizeFormFeedback, 10)), theme.orbit.colorTextError, theme.orbit.fontWeightMedium, theme.fontWeightMedium, theme.paletteInkDark)); StyledFormFeedback.defaultProps = { theme: defaultTheme }; const FormFeedback = props => { const { children, dataTest } = props; return /*#__PURE__*/React.createElement(StyledFormFeedback, { "data-test": dataTest }, children); }; export default FormFeedback;