UNPKG

@react-spectrum/s2

Version:
1 lines 2.04 kB
{"mappings":"AAmBa;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA","sources":["packages/@react-spectrum/s2/ui-icons/LinkOut.tsx"],"sourcesContent":["/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport LinkOut_L from './S2_LinkOutSize200.svg';\nimport LinkOut_M from './S2_LinkOutSize100.svg';\nimport LinkOut_XL from './S2_LinkOutSize300.svg';\nimport LinkOut_XXL from './S2_LinkOutSize400.svg';\nimport {ReactNode, SVGProps} from 'react';\nimport {style} from '../style' with {type: 'macro'};\n\nlet styles = style({\n width: {\n size: {\n M: 10,\n L: 12,\n XL: 14,\n XXL: 16\n }\n },\n height: {\n size: {\n M: 10,\n L: 12,\n XL: 14,\n XXL: 16\n }\n }\n});\n\nexport default function LinkOut(props: SVGProps<SVGSVGElement> & {size?: 'M' | 'L' | 'XL' | 'XXL'}): ReactNode {\n let {size = 'M', ...otherProps} = props;\n switch (size) {\n case 'M':\n return <LinkOut_M {...otherProps} className={(otherProps.className || '') + styles({size})} />;\n case 'L':\n return <LinkOut_L {...otherProps} className={(otherProps.className || '') + styles({size})} />;\n case 'XL':\n return <LinkOut_XL {...otherProps} className={(otherProps.className || '') + styles({size})} />;\n case 'XXL':\n return <LinkOut_XXL {...otherProps} className={(otherProps.className || '') + styles({size})} />;\n }\n}\n"],"names":[],"version":3,"file":"LinkOut.css.map"}