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S,IAAI,EAAC,IAAK,6BAAO;0BAAC;gBAAI;;IAC1F;AACF","sources":["packages/@react-spectrum/s2/ui-icons/Cross.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 Cross_L from './S2_CrossSize200.svg';\nimport Cross_M from './S2_CrossSize100.svg';\nimport Cross_S from './S2_CrossSize75.svg';\nimport Cross_XL from './S2_CrossSize300.svg';\nimport Cross_XXL from './S2_CrossSize400.svg';\nimport Cross_XXXL from './S2_CrossSize500.svg';\nimport Cross_XXXXL from './S2_CrossSize600.svg';\nimport {ReactNode, SVGProps} from 'react';\nimport {style} from '../style' with {type: 'macro'};\n\nlet styles = style({\n width: {\n size: {\n M: 8,\n L: 10,\n XL: 12,\n XXL: 12,\n XXXL: 14,\n XXXXL: 16,\n S: 8\n }\n },\n height: {\n size: {\n M: 8,\n L: 10,\n XL: 12,\n XXL: 12,\n XXXL: 14,\n XXXXL: 16,\n S: 8\n }\n }\n});\n\nexport default function Cross(props: SVGProps<SVGSVGElement> & {size?: 'M' | 'L' | 'XL' | 'XXL' | 'XXXL' | 'XXXXL' | 'S'}): ReactNode {\n let {size = 'M', ...otherProps} = props;\n switch (size) {\n case 'M':\n return <Cross_M {...otherProps} className={(otherProps.className || '') + styles({size})} />;\n case 'L':\n return <Cross_L {...otherProps} className={(otherProps.className || '') + styles({size})} />;\n case 'XL':\n return <Cross_XL {...otherProps} className={(otherProps.className || '') + styles({size})} />;\n case 'XXL':\n return <Cross_XXL {...otherProps} className={(otherProps.className || '') + styles({size})} />;\n case 'XXXL':\n return <Cross_XXXL {...otherProps} className={(otherProps.className || '') + styles({size})} />;\n case 'XXXXL':\n return <Cross_XXXXL {...otherProps} className={(otherProps.className || '') + styles({size})} />;\n case 'S':\n return <Cross_S {...otherProps} className={(otherProps.className || '') + styles({size})} />;\n }\n}\n"],"names":[],"version":3,"file":"Cross.cjs.map"}