import * as React from 'react'; import { IconProps } from '../../types'; import { IconWrapper } from '../IconWrapper'; const TextField = (allProps: IconProps) => { const { svgProps: props, iconStyle, ...restProps } = allProps; const styles: { [style: string]: React.ReactNode } = { Broken: <svg width="inherit" height="inherit" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}><path d="M22 12c0 3.771 0 5.657-1.172 6.828C19.657 20 17.771 20 14 20h-4c-3.771 0-5.657 0-6.828-1.172C2 17.657 2 15.771 2 12c0-3.771 0-5.657 1.172-6.828C4.343 4 6.229 4 10 4h4c3.771 0 5.657 0 6.828 1.172.654.653.943 1.528 1.07 2.828" stroke="currentColor" strokeWidth={1.5} strokeLinecap="round" /><path d="M8.25 15.5a.75.75 0 0 0 1.5 0h-1.5Zm3.414-6.748.498-.56-.498.56Zm-.414 1.673a.75.75 0 0 0 1.5 0h-1.5Zm.498-1.59.56-.497-.56.498Zm-5.412-.083-.498-.56.498.56ZM5.25 10.425a.75.75 0 0 0 1.5 0h-1.5Zm1.002-1.59-.56-.497.56.498ZM7 14.75a.75.75 0 0 0 0 1.5v-1.5Zm4 1.5a.75.75 0 0 0 0-1.5v1.5Zm-3.075-7H9v-1.5H7.925v1.5ZM9 9.25h1.075v-1.5H9v1.5Zm.75 6.25v-7h-1.5v7h1.5Zm.325-6.25c.455 0 .726.001.921.026.178.022.187.052.17.037l.996-1.121c-.3-.268-.651-.364-.98-.405-.31-.038-.691-.037-1.107-.037v1.5Zm2.675 1.175c0-.416.001-.797-.037-1.107-.041-.329-.137-.68-.405-.98l-1.121.996c-.015-.017.015-.008.037.17.025.195.026.466.026.921h1.5Zm-1.584-1.112a.25.25 0 0 1 .02.02l1.122-.995a1.737 1.737 0 0 0-.146-.146l-.996 1.121ZM7.925 7.75c-.416 0-.797-.001-1.107.037-.329.041-.68.137-.98.405l.996 1.121c-.017.015-.008-.015.17-.037.195-.025.466-.026.921-.026v-1.5ZM6.75 10.425c0-.455.001-.726.026-.922.022-.177.052-.186.037-.17l-1.121-.995c-.268.3-.364.651-.405.98-.038.31-.037.691-.037 1.107h1.5Zm-.912-2.233c-.052.046-.1.094-.146.146l1.121.996a.252.252 0 0 1 .02-.02l-.995-1.122ZM7 16.25h4v-1.5H7v1.5Z" fill="currentColor" /></svg>, LineDuotone: <svg width="inherit" height="inherit" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}><path opacity={0.5} d="M2 12c0-3.771 0-5.657 1.172-6.828C4.343 4 6.229 4 10 4h4c3.771 0 5.657 0 6.828 1.172C22 6.343 22 8.229 22 12c0 3.771 0 5.657-1.172 6.828C19.657 20 17.771 20 14 20h-4c-3.771 0-5.657 0-6.828-1.172C2 17.657 2 15.771 2 12Z" stroke="currentColor" strokeWidth={1.5} /><path d="M8.25 15.5a.75.75 0 0 0 1.5 0h-1.5Zm3.414-6.748.498-.56-.498.56Zm-.414 1.673a.75.75 0 0 0 1.5 0h-1.5Zm.498-1.59.56-.497-.56.498Zm-5.412-.083-.498-.56.498.56ZM5.25 10.425a.75.75 0 0 0 1.5 0h-1.5Zm1.002-1.59-.56-.497.56.498ZM7 14.75a.75.75 0 0 0 0 1.5v-1.5Zm4 1.5a.75.75 0 0 0 0-1.5v1.5Zm-3.075-7H9v-1.5H7.925v1.5ZM9 9.25h1.075v-1.5H9v1.5Zm.75 6.25v-7h-1.5v7h1.5Zm.325-6.25c.455 0 .726.001.921.026.178.022.187.052.17.037l.996-1.121c-.3-.268-.651-.364-.98-.405-.31-.038-.691-.037-1.107-.037v1.5Zm2.675 1.175c0-.416.001-.797-.037-1.107-.041-.329-.137-.68-.405-.98l-1.121.996c-.015-.017.015-.008.037.17.025.195.026.466.026.921h1.5Zm-1.584-1.112a.25.25 0 0 1 .02.02l1.122-.995a1.737 1.737 0 0 0-.146-.146l-.996 1.121ZM7.925 7.75c-.416 0-.797-.001-1.107.037-.329.041-.68.137-.98.405l.996 1.121c-.017.015-.008-.015.17-.037.195-.025.466-.026.921-.026v-1.5ZM6.75 10.425c0-.455.001-.726.026-.922.022-.177.052-.186.037-.17l-1.121-.995c-.268.3-.364.651-.405.98-.038.31-.037.691-.037 1.107h1.5Zm-.912-2.233c-.052.046-.1.094-.146.146l1.121.996a.252.252 0 0 1 .02-.02l-.995-1.122ZM7 16.25h4v-1.5H7v1.5Z" fill="currentColor" /></svg>, Linear: <svg width="inherit" height="inherit" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}><path d="M2 12c0-3.771 0-5.657 1.172-6.828C4.343 4 6.229 4 10 4h4c3.771 0 5.657 0 6.828 1.172C22 6.343 22 8.229 22 12c0 3.771 0 5.657-1.172 6.828C19.657 20 17.771 20 14 20h-4c-3.771 0-5.657 0-6.828-1.172C2 17.657 2 15.771 2 12Z" stroke="currentColor" strokeWidth={1.5} /><path d="M8.25 15.5a.75.75 0 0 0 1.5 0h-1.5Zm3.414-6.748.498-.56-.498.56Zm-.414 1.673a.75.75 0 0 0 1.5 0h-1.5Zm.498-1.59.56-.497-.56.498Zm-5.412-.083-.498-.56.498.56ZM5.25 10.425a.75.75 0 0 0 1.5 0h-1.5Zm1.002-1.59-.56-.497.56.498ZM7 14.75a.75.75 0 0 0 0 1.5v-1.5Zm4 1.5a.75.75 0 0 0 0-1.5v1.5Zm-3.075-7H9v-1.5H7.925v1.5ZM9 9.25h1.075v-1.5H9v1.5Zm.75 6.25v-7h-1.5v7h1.5Zm.325-6.25c.455 0 .726.001.921.026.178.022.187.052.17.037l.996-1.121c-.3-.268-.651-.364-.98-.405-.31-.038-.691-.037-1.107-.037v1.5Zm2.675 1.175c0-.416.001-.797-.037-1.107-.041-.329-.137-.68-.405-.98l-1.121.996c-.015-.017.015-.008.037.17.025.195.026.466.026.921h1.5Zm-1.584-1.112a.25.25 0 0 1 .02.02l1.122-.995a1.737 1.737 0 0 0-.146-.146l-.996 1.121ZM7.925 7.75c-.416 0-.797-.001-1.107.037-.329.041-.68.137-.98.405l.996 1.121c-.017.015-.008-.015.17-.037.195-.025.466-.026.921-.026v-1.5ZM6.75 10.425c0-.455.001-.726.026-.922.022-.177.052-.186.037-.17l-1.121-.995c-.268.3-.364.651-.405.98-.038.31-.037.691-.037 1.107h1.5Zm-.912-2.233c-.052.046-.1.094-.146.146l1.121.996a.252.252 0 0 1 .02-.02l-.995-1.122ZM7 16.25h4v-1.5H7v1.5Z" fill="currentColor" /></svg>, Outline: <svg width="inherit" height="inherit" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}><path d="M7.884 7.75c-.4 0-.766 0-1.066.037-.329.041-.68.137-.98.405a1.75 1.75 0 0 0-.146.146c-.268.3-.364.651-.405.98-.037.3-.037.666-.037 1.066v.041a.75.75 0 0 0 1.5 0c0-.455.001-.726.026-.922.024-.195.227-.227.227-.227.196-.025.467-.026.922-.026h.325v5.5H7a.75.75 0 0 0 0 1.5h4a.75.75 0 0 0 0-1.5H9.75v-5.5h.325c.455 0 .726.001.921.026 0 0 .204.032.228.227.025.196.026.467.026.922a.75.75 0 0 0 1.5 0v-.041c0-.4 0-.766-.037-1.066-.041-.329-.137-.68-.405-.98a1.739 1.739 0 0 0-.146-.146c-.3-.268-.651-.364-.98-.405-.3-.037-.666-.037-1.066-.037H7.884Z" fill="currentColor" /><path fillRule="evenodd" clipRule="evenodd" d="M14.056 3.25H9.944c-1.838 0-3.294 0-4.433.153-1.172.158-2.121.49-2.87 1.238-.748.749-1.08 1.698-1.238 2.87-.153 1.14-.153 2.595-.153 4.433v.112c0 1.838 0 3.294.153 4.433.158 1.172.49 2.121 1.238 2.87.749.748 1.698 1.08 2.87 1.238 1.14.153 2.595.153 4.433.153h4.112c1.838 0 3.294 0 4.433-.153 1.172-.158 2.121-.49 2.87-1.238.748-.749 1.08-1.698 1.238-2.87.153-1.14.153-2.595.153-4.433v-.112c0-1.838 0-3.294-.153-4.433-.158-1.172-.49-2.121-1.238-2.87-.749-.748-1.698-1.08-2.87-1.238-1.14-.153-2.595-.153-4.433-.153ZM3.702 5.702c.423-.423 1.003-.677 2.009-.812 1.028-.138 2.382-.14 4.289-.14h4c1.907 0 3.262.002 4.29.14 1.005.135 1.585.389 2.008.812.423.423.677 1.003.812 2.009.138 1.028.14 2.382.14 4.289 0 1.907-.002 3.261-.14 4.29-.135 1.005-.389 1.585-.812 2.008-.423.423-1.003.677-2.009.812-1.027.138-2.382.14-4.289.14h-4c-1.907 0-3.261-.002-4.29-.14-1.005-.135-1.585-.389-2.008-.812-.423-.423-.677-1.003-.812-2.009-.138-1.028-.14-2.382-.14-4.289 0-1.907.002-3.261.14-4.29.135-1.005.389-1.585.812-2.008Z" fill="currentColor" /></svg>, Bold: <svg width="inherit" height="inherit" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}><path fillRule="evenodd" clipRule="evenodd" d="M3.172 5.172C2 6.343 2 8.229 2 12c0 3.771 0 5.657 1.172 6.828C4.343 20 6.229 20 10 20h4c3.771 0 5.657 0 6.828-1.172C22 17.657 22 15.771 22 12c0-3.771 0-5.657-1.172-6.828C19.657 4 17.771 4 14 4h-4C6.229 4 4.343 4 3.172 5.172Zm3.646 2.615c.3-.037.666-.037 1.066-.037h2.232c.4 0 .766 0 1.066.037.329.041.68.137.98.405.052.046.1.094.146.146.268.3.364.651.405.98.037.3.037.666.037 1.066v.041a.75.75 0 0 1-1.5 0c0-.455-.001-.726-.026-.922-.024-.195-.228-.227-.228-.227-.195-.025-.466-.026-.921-.026H9.75v5.5H11a.75.75 0 0 1 0 1.5H7a.75.75 0 0 1 0-1.5h1.25v-5.5h-.325c-.455 0-.726.001-.922.026 0 0-.203.032-.227.227-.025.196-.026.467-.026.922a.75.75 0 0 1-1.5 0v-.041c0-.4 0-.766.037-1.066.041-.329.137-.68.405-.98.046-.052.094-.1.146-.146.3-.268.651-.364.98-.405Z" fill="currentColor" /></svg>, BoldDuotone: <svg width="inherit" height="inherit" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}><path opacity={0.5} d="M3.172 5.172C2 6.343 2 8.229 2 12c0 3.771 0 5.657 1.172 6.828C4.343 20 6.229 20 10 20h4c3.771 0 5.657 0 6.828-1.172C22 17.657 22 15.771 22 12c0-3.771 0-5.657-1.172-6.828C19.657 4 17.771 4 14 4h-4C6.229 4 4.343 4 3.172 5.172Z" fill="currentColor" /><path d="M6.818 7.787c.3-.037.666-.037 1.066-.037h2.232c.4 0 .766 0 1.066.037.329.041.68.137.98.405.052.046.1.094.146.146.268.3.364.651.405.98.037.3.037.666.037 1.066v.041a.75.75 0 0 1-1.5 0c0-.455-.001-.726-.026-.922-.024-.195-.228-.227-.228-.227-.195-.025-.466-.026-.921-.026H9.75v5.5H11a.75.75 0 0 1 0 1.5H7a.75.75 0 0 1 0-1.5h1.25v-5.5h-.325c-.455 0-.726.001-.922.026 0 0-.203.032-.227.227-.025.196-.026.467-.026.922a.75.75 0 0 1-1.5 0v-.041c0-.4 0-.766.037-1.066.041-.329.137-.68.405-.98.046-.052.094-.1.146-.146.3-.268.651-.364.98-.405Z" fill="currentColor" /></svg> }; return <IconWrapper icon={styles[iconStyle || 'Linear']} {...restProps} /> }; export default TextField