{"version":3,"file":"static/js/3740.65b1d86c.chunk.js","mappings":"yNAMA,MAAMA,EAAqBC,EAAAA,GAAOC,MAAKC,IAAAA,GAAAC,EAAAA,EAAAA,GAAA,iIAK5BC,EAAAA,EAAAA,IAAG,cACHC,EAAAA,GAAAA,WAAiBC,WAAWC,OAQjCC,EAAQC,IAAA,IAAC,SAAEC,KAAaC,GAAOF,EAAA,OACnCG,EAAAA,EAAAA,MAACb,EAAkB,IAAKY,EAAKE,SAAA,CAC1BF,EAAME,SACNH,GAAY,OACM,EAQvBF,EAAMM,aAAe,CACnBJ,UAAU,GAGZ,S","sources":["components/Atoms/Label/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport theme from '@fortress-technology-solutions/fortress-component-library/theme';\nimport styled from 'styled-components';\nimport { tc } from 'utils/theme';\n\nconst StyledLabelWrapper = styled.label`\n font-weight: 500;\n font-size: 14px;\n line-height: 20px;\n letter-spacing: 0.1px;\n color: ${tc('labelColor')};\n color: ${theme.typography.inputLabel.color};\n`;\n\n/**\n * Reusable label for form inputs and form groups\n * @param {string} text text of the label\n * @param {boolean} required boolean to show the required asterisk in the UI\n */\nconst Label = ({ required, ...props }) => (\n \n {props.children}\n {required && ' *'}\n \n);\n\nLabel.propTypes = {\n children: PropTypes.node.isRequired,\n required: PropTypes.bool,\n};\n\nLabel.defaultProps = {\n required: false,\n};\n\nexport default Label;\n"],"names":["StyledLabelWrapper","styled","label","_templateObject","_taggedTemplateLiteral","tc","theme","inputLabel","color","Label","_ref","required","props","_jsxs","children","defaultProps"],"sourceRoot":""}